blob: 3e625f98367d50e1de3f4cb5b4c89ac29dc7f1fd [file] [log] [blame]
Xavier Ducrohet0a496352011-07-12 11:39:27 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070017package android.view;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070018
19import com.android.internal.view.IInputContext;
20import com.android.internal.view.IInputMethodClient;
21
22import android.content.res.CompatibilityInfo;
23import android.content.res.Configuration;
24import android.graphics.Bitmap;
Adam Cohenf7522022012-10-03 20:03:18 -070025import android.os.Bundle;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070026import android.os.IBinder;
Dianne Hackbornce801c42011-09-18 15:22:24 -070027import android.os.IRemoteCallback;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070028import android.os.RemoteException;
29import android.util.DisplayMetrics;
30import android.view.Display;
Adam Powelldfee59a2011-08-05 20:48:30 -070031import android.view.Gravity;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070032import android.view.IApplicationToken;
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -070033import android.view.IDisplayContentChangeListener;
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -070034import android.view.IInputFilter;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070035import android.view.IOnKeyguardExitResult;
36import android.view.IRotationWatcher;
37import android.view.IWindowManager;
38import android.view.IWindowSession;
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -070039import android.view.WindowInfo;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070040
41import java.util.List;
42
43/**
44 * Basic implementation of {@link IWindowManager} so that {@link Display} (and
45 * {@link Display_Delegate}) can return a valid instance.
46 */
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070047public class IWindowManagerImpl implements IWindowManager {
Xavier Ducrohet0a496352011-07-12 11:39:27 -070048
49 private final Configuration mConfig;
50 private final DisplayMetrics mMetrics;
51 private final int mRotation;
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070052 private final boolean mHasSystemNavBar;
53 private final boolean mHasNavigationBar;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070054
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070055 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation,
56 boolean hasSystemNavBar, boolean hasNavigationBar) {
Xavier Ducrohet0a496352011-07-12 11:39:27 -070057 mConfig = config;
58 mMetrics = metrics;
59 mRotation = rotation;
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070060 mHasSystemNavBar = hasSystemNavBar;
61 mHasNavigationBar = hasNavigationBar;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070062 }
63
64 // custom API.
65
66 public DisplayMetrics getMetrics() {
67 return mMetrics;
68 }
69
70 // ---- implementation of IWindowManager that we care about ----
71
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080072 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -070073 public int getRotation() throws RemoteException {
74 return mRotation;
75 }
76
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070077 @Override
78 public boolean hasNavigationBar() {
79 return mHasNavigationBar;
80 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -070081
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080082 @Override
Dianne Hackbornf87d1962012-04-04 12:48:24 -070083 public boolean hasSystemNavBar() throws RemoteException {
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070084 return mHasSystemNavBar;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070085 }
86
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070087 // ---- unused implementation of IWindowManager ----
88
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080089 @Override
Craig Mautner5962b122012-10-05 14:45:52 -070090 public void addAppToken(int arg0, IApplicationToken arg1, int arg2, int arg3, boolean arg4,
91 boolean arg5)
Xavier Ducrohet0a496352011-07-12 11:39:27 -070092 throws RemoteException {
93 // TODO Auto-generated method stub
94
95 }
96
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080097 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -070098 public void addWindowToken(IBinder arg0, int arg1) throws RemoteException {
99 // TODO Auto-generated method stub
100
101 }
102
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800103 @Override
Craig Mautner59c00972012-07-30 12:10:24 -0700104 public void clearForcedDisplaySize(int displayId) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700105 // TODO Auto-generated method stub
Craig Mautnerb49a0652012-08-03 19:03:24 -0700106 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700107
Craig Mautnerb49a0652012-08-03 19:03:24 -0700108 @Override
109 public void clearForcedDisplayDensity(int displayId) throws RemoteException {
110 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700111 }
112
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800113 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700114 public void closeSystemDialogs(String arg0) throws RemoteException {
115 // TODO Auto-generated method stub
116
117 }
118
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800119 @Override
Dianne Hackborn9d9ece32012-09-10 15:33:52 -0700120 public void startFreezingScreen(int exitAnim, int enterAnim) {
121 // TODO Auto-generated method stub
122 }
123
124 @Override
125 public void stopFreezingScreen() {
126 // TODO Auto-generated method stub
127 }
128
129 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700130 public void disableKeyguard(IBinder arg0, String arg1) throws RemoteException {
131 // TODO Auto-generated method stub
132
133 }
134
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800135 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700136 public void executeAppTransition() throws RemoteException {
137 // TODO Auto-generated method stub
138
139 }
140
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800141 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700142 public void exitKeyguardSecurely(IOnKeyguardExitResult arg0) throws RemoteException {
143 // TODO Auto-generated method stub
144
145 }
146
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800147 @Override
Jeff Brown24478712011-10-05 18:01:23 -0700148 public void freezeRotation(int arg0) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700149 // TODO Auto-generated method stub
150
151 }
152
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800153 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700154 public float getAnimationScale(int arg0) throws RemoteException {
155 // TODO Auto-generated method stub
156 return 0;
157 }
158
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800159 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700160 public float[] getAnimationScales() throws RemoteException {
161 // TODO Auto-generated method stub
162 return null;
163 }
164
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800165 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700166 public int getAppOrientation(IApplicationToken arg0) throws RemoteException {
167 // TODO Auto-generated method stub
168 return 0;
169 }
170
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800171 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700172 public int getPendingAppTransition() throws RemoteException {
173 // TODO Auto-generated method stub
174 return 0;
175 }
176
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800177 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700178 public boolean inKeyguardRestrictedInputMode() throws RemoteException {
179 // TODO Auto-generated method stub
180 return false;
181 }
182
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800183 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700184 public boolean inputMethodClientHasFocus(IInputMethodClient arg0) throws RemoteException {
185 // TODO Auto-generated method stub
186 return false;
187 }
188
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800189 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700190 public boolean isKeyguardLocked() throws RemoteException {
191 // TODO Auto-generated method stub
192 return false;
193 }
194
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800195 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700196 public boolean isKeyguardSecure() throws RemoteException {
197 // TODO Auto-generated method stub
198 return false;
199 }
200
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800201 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700202 public boolean isViewServerRunning() throws RemoteException {
203 // TODO Auto-generated method stub
204 return false;
205 }
206
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800207 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700208 public void moveAppToken(int arg0, IBinder arg1) throws RemoteException {
209 // TODO Auto-generated method stub
210
211 }
212
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800213 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700214 public void moveAppTokensToBottom(List<IBinder> arg0) throws RemoteException {
215 // TODO Auto-generated method stub
216
217 }
218
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800219 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700220 public void moveAppTokensToTop(List<IBinder> arg0) throws RemoteException {
221 // TODO Auto-generated method stub
222
223 }
224
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800225 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700226 public IWindowSession openSession(IInputMethodClient arg0, IInputContext arg1)
227 throws RemoteException {
228 // TODO Auto-generated method stub
229 return null;
230 }
231
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800232 @Override
Dianne Hackbornbb47cf62012-06-04 10:51:17 -0700233 public void overridePendingAppTransition(String arg0, int arg1, int arg2,
234 IRemoteCallback startedCallback) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700235 // TODO Auto-generated method stub
236
237 }
238
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800239 @Override
Dianne Hackborneabfb3a2012-04-16 16:28:22 -0700240 public void overridePendingAppTransitionScaleUp(int startX, int startY, int startWidth,
241 int startHeight) throws RemoteException {
242 // TODO Auto-generated method stub
243 }
244
245 @Override
Dianne Hackborn8078d8c2012-03-20 11:11:26 -0700246 public void overridePendingAppTransitionThumb(Bitmap srcThumb, int startX, int startY,
Michael Jurka832cb222012-04-13 09:32:47 -0700247 IRemoteCallback startedCallback, boolean scaleUp) throws RemoteException {
Dianne Hackborn8078d8c2012-03-20 11:11:26 -0700248 // TODO Auto-generated method stub
249 }
250
251 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700252 public void pauseKeyDispatching(IBinder arg0) throws RemoteException {
253 // TODO Auto-generated method stub
254
255 }
256
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800257 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700258 public void prepareAppTransition(int arg0, boolean arg1) throws RemoteException {
259 // TODO Auto-generated method stub
260
261 }
262
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800263 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700264 public void reenableKeyguard(IBinder arg0) throws RemoteException {
265 // TODO Auto-generated method stub
266
267 }
268
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800269 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700270 public void removeAppToken(IBinder arg0) throws RemoteException {
271 // TODO Auto-generated method stub
272
273 }
274
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800275 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700276 public void removeWindowToken(IBinder arg0) throws RemoteException {
277 // TODO Auto-generated method stub
278
279 }
280
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800281 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700282 public void resumeKeyDispatching(IBinder arg0) throws RemoteException {
283 // TODO Auto-generated method stub
284
285 }
286
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800287 @Override
Craig Mautner59c00972012-07-30 12:10:24 -0700288 public Bitmap screenshotApplications(IBinder arg0, int displayId, int arg1, int arg2)
289 throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700290 // TODO Auto-generated method stub
291 return null;
292 }
293
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800294 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700295 public void setAnimationScale(int arg0, float arg1) throws RemoteException {
296 // TODO Auto-generated method stub
297
298 }
299
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800300 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700301 public void setAnimationScales(float[] arg0) throws RemoteException {
302 // TODO Auto-generated method stub
303
304 }
305
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800306 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700307 public void setAppGroupId(IBinder arg0, int arg1) throws RemoteException {
308 // TODO Auto-generated method stub
309
310 }
311
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800312 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700313 public void setAppOrientation(IApplicationToken arg0, int arg1) throws RemoteException {
314 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700315 }
316
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800317 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700318 public void setAppStartingWindow(IBinder arg0, String arg1, int arg2, CompatibilityInfo arg3,
319 CharSequence arg4, int arg5, int arg6, int arg7, IBinder arg8, boolean arg9)
320 throws RemoteException {
321 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700322 }
323
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800324 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700325 public void setAppVisibility(IBinder arg0, boolean arg1) throws RemoteException {
326 // TODO Auto-generated method stub
327
328 }
329
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800330 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700331 public void setAppWillBeHidden(IBinder arg0) throws RemoteException {
332 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700333 }
334
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800335 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700336 public void setEventDispatching(boolean arg0) throws RemoteException {
337 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700338 }
339
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800340 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700341 public void setFocusedApp(IBinder arg0, boolean arg1) throws RemoteException {
342 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700343 }
344
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800345 @Override
Craig Mautner59c00972012-07-30 12:10:24 -0700346 public void setForcedDisplaySize(int displayId, int arg0, int arg1) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700347 // TODO Auto-generated method stub
Craig Mautnerb49a0652012-08-03 19:03:24 -0700348 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700349
Craig Mautnerb49a0652012-08-03 19:03:24 -0700350 @Override
351 public void setForcedDisplayDensity(int displayId, int density) throws RemoteException {
352 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700353 }
354
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800355 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700356 public void setInTouchMode(boolean arg0) throws RemoteException {
357 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700358 }
359
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800360 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700361 public void setNewConfiguration(Configuration arg0) throws RemoteException {
362 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700363 }
364
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800365 @Override
Dianne Hackbornf87d1962012-04-04 12:48:24 -0700366 public void updateRotation(boolean arg0, boolean arg1) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700367 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700368 }
369
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800370 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700371 public void setStrictModeVisualIndicatorPreference(String arg0) throws RemoteException {
372 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700373 }
374
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800375 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700376 public void showStrictModeViolation(boolean arg0) throws RemoteException {
377 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700378 }
379
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800380 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700381 public void startAppFreezingScreen(IBinder arg0, int arg1) throws RemoteException {
382 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700383 }
384
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800385 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700386 public boolean startViewServer(int arg0) throws RemoteException {
387 // TODO Auto-generated method stub
388 return false;
389 }
390
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800391 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700392 public void statusBarVisibilityChanged(int arg0) throws RemoteException {
393 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700394 }
395
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800396 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700397 public void stopAppFreezingScreen(IBinder arg0, boolean arg1) throws RemoteException {
398 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700399 }
400
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800401 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700402 public boolean stopViewServer() throws RemoteException {
403 // TODO Auto-generated method stub
404 return false;
405 }
406
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800407 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700408 public void thawRotation() throws RemoteException {
409 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700410 }
411
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800412 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700413 public Configuration updateOrientationFromAppTokens(Configuration arg0, IBinder arg1)
414 throws RemoteException {
415 // TODO Auto-generated method stub
416 return null;
417 }
418
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800419 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700420 public int watchRotation(IRotationWatcher arg0) throws RemoteException {
421 // TODO Auto-generated method stub
422 return 0;
423 }
424
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800425 @Override
Jeff Brownc38c9be2012-10-04 13:16:19 -0700426 public boolean waitForWindowDrawn(IBinder token, IRemoteCallback callback) {
427 return false;
Dianne Hackborn29aae6f2011-08-18 18:30:09 -0700428 }
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800429
430 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700431 public IBinder asBinder() {
432 // TODO Auto-generated method stub
433 return null;
434 }
435
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800436 @Override
Adam Powelldfee59a2011-08-05 20:48:30 -0700437 public int getPreferredOptionsPanelGravity() throws RemoteException {
438 return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
439 }
Dianne Hackborn90c52de2011-09-23 12:57:44 -0700440
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800441 @Override
Dianne Hackborn90c52de2011-09-23 12:57:44 -0700442 public void dismissKeyguard() {
443 }
Daniel Sandler0c4ccff2011-10-19 16:39:14 -0400444
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800445 @Override
Adam Cohenf7522022012-10-03 20:03:18 -0700446 public void lockNow(Bundle options) {
Jim Miller93c518e2012-01-17 15:55:31 -0800447 // TODO Auto-generated method stub
448 }
Jim Millerbfec0a82012-11-05 20:05:22 -0800449
450 @Override
451 public boolean isSafeModeEnabled() {
452 return false;
453 }
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -0700454
455 @Override
Jim Miller4eeb4f62012-11-08 00:04:29 -0800456 public void showAssistant() {
457
458 }
459
460 @Override
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -0700461 public IBinder getFocusedWindowToken() {
462 // TODO Auto-generated method stub
463 return null;
464 }
465
466 @Override
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -0700467 public float getWindowCompatibilityScale(IBinder windowToken) throws RemoteException {
468 // TODO Auto-generated method stub
469 return 0;
470 }
471
472 @Override
473 public void setInputFilter(IInputFilter filter) throws RemoteException {
474 // TODO Auto-generated method stub
475 }
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700476
477 @Override
Svetoslav Ganov4b15ab62012-09-06 19:25:53 -0700478 public void magnifyDisplay(int dipslayId, float scale, float offsetX, float offsetY)
479 throws RemoteException {
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700480 // TODO Auto-generated method stub
481 }
482
483 @Override
484 public void addDisplayContentChangeListener(int displayId,
485 IDisplayContentChangeListener listener) throws RemoteException {
486 // TODO Auto-generated method stub
487 }
488
489 @Override
490 public void removeDisplayContentChangeListener(int displayId,
491 IDisplayContentChangeListener listener) throws RemoteException {
492 // TODO Auto-generated method stub
493 }
494
495 @Override
496 public WindowInfo getWindowInfo(IBinder token) throws RemoteException {
497 // TODO Auto-generated method stub
498 return null;
499 }
500
501 @Override
Svetoslav Ganov4b15ab62012-09-06 19:25:53 -0700502 public void getVisibleWindowsForDisplay(int displayId, List<WindowInfo> outInfos)
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700503 throws RemoteException {
504 // TODO Auto-generated method stub
505 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700506}