Home
last modified time | relevance | path

Searched refs:WindowManagerPolicy (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotation.java19 import static com.android.server.policy.WindowManagerPolicy.WindowManagerFuncs.LID_OPEN;
47 import com.android.server.policy.WindowManagerPolicy;
95 private int mUserRotationMode = WindowManagerPolicy.USER_ROTATION_FREE;
272 if (userRotationMode != WindowManagerPolicy.USER_ROTATION_FREE in restoreSettings()
273 && userRotationMode != WindowManagerPolicy.USER_ROTATION_LOCKED) { in restoreSettings()
276 userRotationMode = WindowManagerPolicy.USER_ROTATION_FREE; in restoreSettings()
303 userRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED ? 0 : 1; in setUserRotation()
330 setUserRotation(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation); in freezeRotation()
334 setUserRotation(WindowManagerPolicy.USER_ROTATION_FREE, mUserRotation); in thawRotation()
339 return mUserRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED; in isRotationFrozen()
[all …]
DStartingData.java19 import com.android.server.policy.WindowManagerPolicy.StartingSurface;
DWindowStateAnimator.java28 import static com.android.server.policy.WindowManagerPolicy.FINISH_LAYOUT_REDO_ANIM;
29 import static com.android.server.policy.WindowManagerPolicy.FINISH_LAYOUT_REDO_WALLPAPER;
68 import com.android.server.policy.WindowManagerPolicy;
104 final WindowManagerPolicy mPolicy;
1302 transit = WindowManagerPolicy.TRANSIT_ENTER; in applyEnterAnimationLocked()
1304 transit = WindowManagerPolicy.TRANSIT_SHOW; in applyEnterAnimationLocked()
1353 case WindowManagerPolicy.TRANSIT_ENTER: in applyAnimationLocked()
1356 case WindowManagerPolicy.TRANSIT_EXIT: in applyAnimationLocked()
1359 case WindowManagerPolicy.TRANSIT_SHOW: in applyAnimationLocked()
1362 case WindowManagerPolicy.TRANSIT_HIDE: in applyAnimationLocked()
DKeyguardDisableHandler.java33 import com.android.server.policy.WindowManagerPolicy;
123 static KeyguardDisableHandler create(Context context, WindowManagerPolicy policy, in create()
DSnapshotStartingData.java21 import com.android.server.policy.WindowManagerPolicy.StartingSurface;
DSplashScreenStartingData.java22 import com.android.server.policy.WindowManagerPolicy.StartingSurface;
DDisplayWindowSettings.java45 import com.android.server.policy.WindowManagerPolicy;
102 private int mUserRotationMode = WindowManagerPolicy.USER_ROTATION_FREE;
144 && mUserRotationMode == WindowManagerPolicy.USER_ROTATION_FREE in isEmpty()
540 WindowManagerPolicy.USER_ROTATION_FREE); in readDisplay()
614 if (entry.mUserRotationMode != WindowManagerPolicy.USER_ROTATION_FREE) { in writeSettings()
DInputMonitor.java51 import com.android.server.policy.WindowManagerPolicy;
89 implements WindowManagerPolicy.InputConsumer {
214 WindowManagerPolicy.InputConsumer createInputConsumer(Looper looper, String name, in createInputConsumer()
DWindowAnimator.java35 import com.android.server.policy.WindowManagerPolicy;
49 final WindowManagerPolicy mPolicy;
/frameworks/base/services/core/java/com/android/server/policy/
DPowerAction.java23 import com.android.server.policy.WindowManagerPolicy;
27 private final WindowManagerPolicy.WindowManagerFuncs mWindowManagerFuncs;
30 WindowManagerPolicy.WindowManagerFuncs windowManagerFuncs) { in PowerAction()
DRestartAction.java23 import com.android.server.policy.WindowManagerPolicy;
27 private final WindowManagerPolicy.WindowManagerFuncs mWindowManagerFuncs;
30 WindowManagerPolicy.WindowManagerFuncs windowManagerFuncs) { in RestartAction()
DSplashScreenSurface.java29 import com.android.server.policy.WindowManagerPolicy.StartingSurface;
DGlobalActions.java22 import com.android.server.policy.WindowManagerPolicy.WindowManagerFuncs;
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java26 import com.android.server.policy.WindowManagerPolicy;
36 private final WindowManagerPolicy mPolicy;
46 public KeyboardInterceptor(AccessibilityManagerService service, WindowManagerPolicy policy) { in KeyboardInterceptor()
57 public KeyboardInterceptor(AccessibilityManagerService service, WindowManagerPolicy policy, in KeyboardInterceptor()
DKeyEventDispatcher.java30 import com.android.server.policy.WindowManagerPolicy;
270 int policyFlags = pendingEvent.policyFlags | WindowManagerPolicy.FLAG_PASS_TO_USER; in removeReferenceToPendingEventLocked()
DAccessibilityInputFilter.java33 import com.android.server.policy.WindowManagerPolicy;
196 if ((policyFlags & WindowManagerPolicy.FLAG_PASS_TO_USER) == 0) { in onInputEvent()
422 LocalServices.getService(WindowManagerPolicy.class)); in enableFeatures()
DMotionEventInjector.java36 import com.android.server.policy.WindowManagerPolicy;
158 sendMotionEventToNext(motionEvent, motionEvent, WindowManagerPolicy.FLAG_PASS_TO_USER); in handleMessage()
309 WindowManagerPolicy.FLAG_PASS_TO_USER); in cancelAnyGestureInProgress()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayWindowSettingsTests.java55 import com.android.server.policy.WindowManagerPolicy;
324 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, rotation.getUserRotationMode()); in testDefaultToFreeUserRotation()
398 mTarget.setUserRotation(mSecondaryDisplay, WindowManagerPolicy.USER_ROTATION_LOCKED, in testPersistUserRotationModeInSameInstance()
404 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation.getUserRotationMode()); in testPersistUserRotationModeInSameInstance()
410 mTarget.setUserRotation(mSecondaryDisplay, WindowManagerPolicy.USER_ROTATION_LOCKED, in testPersistUserRotationInSameInstance()
420 mTarget.setUserRotation(mSecondaryDisplay, WindowManagerPolicy.USER_ROTATION_LOCKED, in testPersistUserRotationModeAcrossInstances()
426 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation.getUserRotationMode()); in testPersistUserRotationModeAcrossInstances()
432 mTarget.setUserRotation(mSecondaryDisplay, WindowManagerPolicy.USER_ROTATION_LOCKED, in testPersistUserRotationAcrossInstances()
443 mTarget.setUserRotation(mPrimaryDisplay, WindowManagerPolicy.USER_ROTATION_LOCKED, in testFixedToUserRotationDefault()
DDisplayRotationTests.java64 import com.android.server.policy.WindowManagerPolicy;
120 sMockWm.mPolicy = mock(WindowManagerPolicy.class); in setUpOnce()
155 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testLocksUserRotation_LockRotation_DefaultDisplay()
170 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
174 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
183 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testPersistUserRotation_UnlockRotation_DefaultDisplay()
195 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testPersistsUserRotation_UnlockRotation_NonDefaultDisplay()
198 eq(WindowManagerPolicy.USER_ROTATION_FREE), anyInt()); in testPersistsUserRotation_UnlockRotation_NonDefaultDisplay()
527 WindowManagerPolicy.WindowManagerFuncs.LID_OPEN); in testReturnsLidOpenRotation_LidOpen()
663 private int mLidOpenRotation = WindowManagerPolicy.WindowManagerFuncs.LID_ABSENT;
DTestWindowManagerPolicy.java42 import com.android.server.policy.WindowManagerPolicy;
47 class TestWindowManagerPolicy implements WindowManagerPolicy {
DSystemServicesTestRule.java59 import com.android.server.policy.WindowManagerPolicy;
203 LocalServices.removeServiceForTest(WindowManagerPolicy.class);
DDisplayPolicyTests.java40 import static com.android.server.policy.WindowManagerPolicy.NAV_BAR_BOTTOM;
41 import static com.android.server.policy.WindowManagerPolicy.NAV_BAR_RIGHT;
/frameworks/base/services/core/java/com/android/server/power/
DNotifier.java61 import com.android.server.policy.WindowManagerPolicy;
119 private final WindowManagerPolicy mPolicy;
162 SuspendBlocker suspendBlocker, WindowManagerPolicy policy) { in Notifier()
537 return WindowManagerPolicy.OFF_BECAUSE_OF_ADMIN; in translateOffReason()
539 return WindowManagerPolicy.OFF_BECAUSE_OF_TIMEOUT; in translateOffReason()
541 return WindowManagerPolicy.OFF_BECAUSE_OF_USER; in translateOffReason()
554 return WindowManagerPolicy.ON_BECAUSE_OF_USER; in translateOnReason()
556 return WindowManagerPolicy.ON_BECAUSE_OF_APPLICATION; in translateOnReason()
558 return WindowManagerPolicy.ON_BECAUSE_OF_UNKNOWN; in translateOnReason()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java35 import com.android.server.policy.WindowManagerPolicy;
36 import com.android.server.policy.WindowManagerPolicy.WindowState;
58 @Mock WindowManagerPolicy mMockPolicy;
DKeyEventDispatcherTest.java47 import com.android.server.policy.WindowManagerPolicy;
550 assertEquals(WindowManagerPolicy.FLAG_PASS_TO_USER, m.arg1); in assertOneKeyEventSentToFramework()
559 assertEquals(WindowManagerPolicy.FLAG_PASS_TO_USER, m0.arg1); in assertTwoKeyEventsSentToFrameworkInOrder()
564 assertEquals(WindowManagerPolicy.FLAG_PASS_TO_USER, m1.arg1); in assertTwoKeyEventsSentToFrameworkInOrder()

123