blob: 6343049cb89bc67ca0b912d7b093648fc33e91ec [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
Dianne Hackbornf3d46ce2013-03-26 18:00:42 -070019import android.graphics.Point;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070020import com.android.internal.view.IInputContext;
21import com.android.internal.view.IInputMethodClient;
22
23import android.content.res.CompatibilityInfo;
24import android.content.res.Configuration;
25import android.graphics.Bitmap;
Svetoslav Ganov152e9bb2012-10-12 20:15:29 -070026import android.graphics.Rect;
Adam Cohenf7522022012-10-03 20:03:18 -070027import android.os.Bundle;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070028import android.os.IBinder;
Dianne Hackbornce801c42011-09-18 15:22:24 -070029import android.os.IRemoteCallback;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070030import android.os.RemoteException;
31import android.util.DisplayMetrics;
32import android.view.Display;
Adam Powelldfee59a2011-08-05 20:48:30 -070033import android.view.Gravity;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070034import android.view.IApplicationToken;
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -070035import android.view.IInputFilter;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070036import android.view.IOnKeyguardExitResult;
37import android.view.IRotationWatcher;
38import android.view.IWindowManager;
39import android.view.IWindowSession;
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 mHasNavigationBar;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070053
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070054 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation,
John Spurlock80f00c12013-06-13 11:10:51 -040055 boolean hasNavigationBar) {
Xavier Ducrohet0a496352011-07-12 11:39:27 -070056 mConfig = config;
57 mMetrics = metrics;
58 mRotation = rotation;
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070059 mHasNavigationBar = hasNavigationBar;
Xavier Ducrohet0a496352011-07-12 11:39:27 -070060 }
61
62 // custom API.
63
64 public DisplayMetrics getMetrics() {
65 return mMetrics;
66 }
67
68 // ---- implementation of IWindowManager that we care about ----
69
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080070 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -070071 public int getRotation() throws RemoteException {
72 return mRotation;
73 }
74
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070075 @Override
76 public boolean hasNavigationBar() {
77 return mHasNavigationBar;
78 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -070079
Xavier Ducrohet6dfd0b392012-10-15 14:38:31 -070080 // ---- unused implementation of IWindowManager ----
81
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080082 @Override
Craig Mautner124af2d2013-03-18 18:05:21 -070083 public void addAppToken(int arg0, IApplicationToken arg1, int arg2, int arg3, int arg4,
84 boolean arg5, boolean arg6)
Xavier Ducrohet0a496352011-07-12 11:39:27 -070085 throws RemoteException {
86 // TODO Auto-generated method stub
87
88 }
89
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080090 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -070091 public void addWindowToken(IBinder arg0, int arg1) throws RemoteException {
92 // TODO Auto-generated method stub
93
94 }
95
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -080096 @Override
Craig Mautner59c00972012-07-30 12:10:24 -070097 public void clearForcedDisplaySize(int displayId) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -070098 // TODO Auto-generated method stub
Craig Mautnerb49a0652012-08-03 19:03:24 -070099 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700100
Craig Mautnerb49a0652012-08-03 19:03:24 -0700101 @Override
102 public void clearForcedDisplayDensity(int displayId) throws RemoteException {
103 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700104 }
105
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800106 @Override
Dianne Hackbornee973c22013-02-19 13:36:32 -0800107 public void setOverscan(int displayId, int left, int top, int right, int bottom)
108 throws RemoteException {
109 // TODO Auto-generated method stub
110 }
111
112 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700113 public void closeSystemDialogs(String arg0) throws RemoteException {
114 // TODO Auto-generated method stub
115
116 }
117
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800118 @Override
Dianne Hackborn9d9ece32012-09-10 15:33:52 -0700119 public void startFreezingScreen(int exitAnim, int enterAnim) {
120 // TODO Auto-generated method stub
121 }
122
123 @Override
124 public void stopFreezingScreen() {
125 // TODO Auto-generated method stub
126 }
127
128 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700129 public void disableKeyguard(IBinder arg0, String arg1) throws RemoteException {
130 // TODO Auto-generated method stub
131
132 }
133
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800134 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700135 public void executeAppTransition() throws RemoteException {
136 // TODO Auto-generated method stub
137
138 }
139
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800140 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700141 public void exitKeyguardSecurely(IOnKeyguardExitResult arg0) throws RemoteException {
142 // TODO Auto-generated method stub
143
144 }
145
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800146 @Override
Jeff Brown24478712011-10-05 18:01:23 -0700147 public void freezeRotation(int arg0) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700148 // TODO Auto-generated method stub
149
150 }
151
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800152 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700153 public float getAnimationScale(int arg0) throws RemoteException {
154 // TODO Auto-generated method stub
155 return 0;
156 }
157
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800158 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700159 public float[] getAnimationScales() throws RemoteException {
160 // TODO Auto-generated method stub
161 return null;
162 }
163
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800164 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700165 public int getAppOrientation(IApplicationToken arg0) throws RemoteException {
166 // TODO Auto-generated method stub
167 return 0;
168 }
169
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800170 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700171 public int getPendingAppTransition() throws RemoteException {
172 // TODO Auto-generated method stub
173 return 0;
174 }
175
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800176 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700177 public boolean inKeyguardRestrictedInputMode() throws RemoteException {
178 // TODO Auto-generated method stub
179 return false;
180 }
181
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800182 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700183 public boolean inputMethodClientHasFocus(IInputMethodClient arg0) throws RemoteException {
184 // TODO Auto-generated method stub
185 return false;
186 }
187
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800188 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700189 public boolean isKeyguardLocked() throws RemoteException {
190 // TODO Auto-generated method stub
191 return false;
192 }
193
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800194 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700195 public boolean isKeyguardSecure() throws RemoteException {
196 // TODO Auto-generated method stub
197 return false;
198 }
199
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800200 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700201 public boolean isViewServerRunning() throws RemoteException {
202 // TODO Auto-generated method stub
203 return false;
204 }
205
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800206 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700207 public IWindowSession openSession(IInputMethodClient arg0, IInputContext arg1)
208 throws RemoteException {
209 // TODO Auto-generated method stub
210 return null;
211 }
212
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800213 @Override
Dianne Hackbornbb47cf62012-06-04 10:51:17 -0700214 public void overridePendingAppTransition(String arg0, int arg1, int arg2,
215 IRemoteCallback startedCallback) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700216 // TODO Auto-generated method stub
217
218 }
219
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800220 @Override
Dianne Hackborneabfb3a2012-04-16 16:28:22 -0700221 public void overridePendingAppTransitionScaleUp(int startX, int startY, int startWidth,
222 int startHeight) throws RemoteException {
223 // TODO Auto-generated method stub
224 }
225
226 @Override
Dianne Hackborn8078d8c2012-03-20 11:11:26 -0700227 public void overridePendingAppTransitionThumb(Bitmap srcThumb, int startX, int startY,
Michael Jurka832cb222012-04-13 09:32:47 -0700228 IRemoteCallback startedCallback, boolean scaleUp) throws RemoteException {
Dianne Hackborn8078d8c2012-03-20 11:11:26 -0700229 // TODO Auto-generated method stub
230 }
231
232 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700233 public void pauseKeyDispatching(IBinder arg0) throws RemoteException {
234 // TODO Auto-generated method stub
235
236 }
237
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800238 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700239 public void prepareAppTransition(int arg0, boolean arg1) throws RemoteException {
240 // TODO Auto-generated method stub
241
242 }
243
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800244 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700245 public void reenableKeyguard(IBinder arg0) throws RemoteException {
246 // TODO Auto-generated method stub
247
248 }
249
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800250 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700251 public void removeAppToken(IBinder arg0) throws RemoteException {
252 // TODO Auto-generated method stub
253
254 }
255
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800256 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700257 public void removeWindowToken(IBinder arg0) throws RemoteException {
258 // TODO Auto-generated method stub
259
260 }
261
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800262 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700263 public void resumeKeyDispatching(IBinder arg0) throws RemoteException {
264 // TODO Auto-generated method stub
265
266 }
267
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800268 @Override
Craig Mautner59c00972012-07-30 12:10:24 -0700269 public Bitmap screenshotApplications(IBinder arg0, int displayId, int arg1, int arg2)
270 throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700271 // TODO Auto-generated method stub
272 return null;
273 }
274
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800275 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700276 public void setAnimationScale(int arg0, float arg1) 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 setAnimationScales(float[] arg0) throws RemoteException {
283 // TODO Auto-generated method stub
284
285 }
286
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800287 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700288 public void setAppGroupId(IBinder arg0, int arg1) throws RemoteException {
289 // TODO Auto-generated method stub
290
291 }
292
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800293 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700294 public void setAppOrientation(IApplicationToken arg0, int arg1) throws RemoteException {
295 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700296 }
297
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800298 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700299 public void setAppStartingWindow(IBinder arg0, String arg1, int arg2, CompatibilityInfo arg3,
Adam Powell04fe6eb2013-05-31 14:39:48 -0700300 CharSequence arg4, int arg5, int arg6, int arg7, int arg8, IBinder arg9, boolean arg10)
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700301 throws RemoteException {
302 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700303 }
304
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800305 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700306 public void setAppVisibility(IBinder arg0, boolean arg1) throws RemoteException {
307 // TODO Auto-generated method stub
308
309 }
310
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800311 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700312 public void setAppWillBeHidden(IBinder arg0) throws RemoteException {
313 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700314 }
315
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800316 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700317 public void setEventDispatching(boolean arg0) throws RemoteException {
318 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700319 }
320
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800321 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700322 public void setFocusedApp(IBinder arg0, boolean arg1) throws RemoteException {
323 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700324 }
325
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800326 @Override
Dianne Hackbornf3d46ce2013-03-26 18:00:42 -0700327 public void getInitialDisplaySize(int displayId, Point size) {
328 // TODO Auto-generated method stub
329 }
330
331 @Override
332 public void getBaseDisplaySize(int displayId, Point size) {
333 // TODO Auto-generated method stub
334 }
335
336 @Override
Craig Mautner59c00972012-07-30 12:10:24 -0700337 public void setForcedDisplaySize(int displayId, int arg0, int arg1) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700338 // TODO Auto-generated method stub
Craig Mautnerb49a0652012-08-03 19:03:24 -0700339 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700340
Craig Mautnerb49a0652012-08-03 19:03:24 -0700341 @Override
Dianne Hackbornf3d46ce2013-03-26 18:00:42 -0700342 public int getInitialDisplayDensity(int displayId) {
343 return -1;
344 }
345
346 @Override
347 public int getBaseDisplayDensity(int displayId) {
348 return -1;
349 }
350
351 @Override
Craig Mautnerb49a0652012-08-03 19:03:24 -0700352 public void setForcedDisplayDensity(int displayId, int density) throws RemoteException {
353 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700354 }
355
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800356 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700357 public void setInTouchMode(boolean arg0) throws RemoteException {
358 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700359 }
360
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800361 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700362 public void setNewConfiguration(Configuration arg0) throws RemoteException {
363 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700364 }
365
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800366 @Override
Dianne Hackbornf87d1962012-04-04 12:48:24 -0700367 public void updateRotation(boolean arg0, boolean arg1) throws RemoteException {
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700368 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700369 }
370
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800371 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700372 public void setStrictModeVisualIndicatorPreference(String arg0) throws RemoteException {
373 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700374 }
375
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800376 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700377 public void showStrictModeViolation(boolean arg0) throws RemoteException {
378 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700379 }
380
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800381 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700382 public void startAppFreezingScreen(IBinder arg0, int arg1) throws RemoteException {
383 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700384 }
385
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800386 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700387 public boolean startViewServer(int arg0) throws RemoteException {
388 // TODO Auto-generated method stub
389 return false;
390 }
391
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800392 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700393 public void statusBarVisibilityChanged(int arg0) throws RemoteException {
394 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700395 }
396
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800397 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700398 public void stopAppFreezingScreen(IBinder arg0, boolean arg1) throws RemoteException {
399 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700400 }
401
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800402 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700403 public boolean stopViewServer() throws RemoteException {
404 // TODO Auto-generated method stub
405 return false;
406 }
407
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800408 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700409 public void thawRotation() throws RemoteException {
410 // TODO Auto-generated method stub
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700411 }
412
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800413 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700414 public Configuration updateOrientationFromAppTokens(Configuration arg0, IBinder arg1)
415 throws RemoteException {
416 // TODO Auto-generated method stub
417 return null;
418 }
419
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800420 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700421 public int watchRotation(IRotationWatcher arg0) throws RemoteException {
422 // TODO Auto-generated method stub
423 return 0;
424 }
425
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800426 @Override
Brian Colonnab1b9a8a2013-03-29 11:52:42 -0400427 public void removeRotationWatcher(IRotationWatcher arg0) throws RemoteException {
428 }
429
430 @Override
Jeff Brownc38c9be2012-10-04 13:16:19 -0700431 public boolean waitForWindowDrawn(IBinder token, IRemoteCallback callback) {
432 return false;
Dianne Hackborn29aae6f2011-08-18 18:30:09 -0700433 }
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800434
435 @Override
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700436 public IBinder asBinder() {
437 // TODO Auto-generated method stub
438 return null;
439 }
440
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800441 @Override
Adam Powelldfee59a2011-08-05 20:48:30 -0700442 public int getPreferredOptionsPanelGravity() throws RemoteException {
443 return Gravity.CENTER_HORIZONTAL | Gravity.BOTTOM;
444 }
Dianne Hackborn90c52de2011-09-23 12:57:44 -0700445
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800446 @Override
Dianne Hackborn90c52de2011-09-23 12:57:44 -0700447 public void dismissKeyguard() {
448 }
Daniel Sandler0c4ccff2011-10-19 16:39:14 -0400449
Xavier Ducrohet46d43cc2012-02-02 15:44:50 -0800450 @Override
Adam Cohenf7522022012-10-03 20:03:18 -0700451 public void lockNow(Bundle options) {
Jim Miller93c518e2012-01-17 15:55:31 -0800452 // TODO Auto-generated method stub
453 }
Svetoslav Ganov152e9bb2012-10-12 20:15:29 -0700454
Jim Millerbfec0a82012-11-05 20:05:22 -0800455 @Override
456 public boolean isSafeModeEnabled() {
457 return false;
458 }
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -0700459
460 @Override
Jim Miller4eeb4f62012-11-08 00:04:29 -0800461 public void showAssistant() {
462
463 }
464
465 @Override
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -0700466 public IBinder getFocusedWindowToken() {
467 // TODO Auto-generated method stub
468 return null;
469 }
470
471 @Override
Svetoslav Ganovc9c9a482012-07-16 08:46:07 -0700472 public void setInputFilter(IInputFilter filter) throws RemoteException {
473 // TODO Auto-generated method stub
474 }
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700475
476 @Override
Svetoslav Ganov2ec50932012-12-14 17:45:44 -0800477 public void getWindowFrame(IBinder token, Rect outFrame) {
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700478 // TODO Auto-generated method stub
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700479 }
480
481 @Override
Svetoslav Ganov2ec50932012-12-14 17:45:44 -0800482 public void setMagnificationCallbacks(IMagnificationCallbacks callbacks) {
Svetoslav Ganov1cf70bb2012-08-06 10:53:34 -0700483 // TODO Auto-generated method stub
484 }
Svetoslav Ganov2ec50932012-12-14 17:45:44 -0800485
486 @Override
487 public void setMagnificationSpec(MagnificationSpec spec) {
488 // TODO Auto-generated method stub
489 }
490
491 @Override
492 public MagnificationSpec getCompatibleMagnificationSpecForWindow(IBinder windowToken) {
493 // TODO Auto-generated method stub
494 return null;
495 }
Svetoslavf5f7d972013-01-29 02:08:54 -0800496
497 @Override
498 public boolean isRotationFrozen() throws RemoteException {
499 // TODO Auto-generated method stub
500 return false;
501 }
Xavier Ducrohet0a496352011-07-12 11:39:27 -0700502}