Home
last modified time | relevance | path

Searched refs:USER_ROTATION_LOCKED (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotationReversionController.java23 import static com.android.server.policy.WindowManagerPolicy.USER_ROTATION_LOCKED;
118 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in revertOverride()
119 displayRotation.setUserRotation(USER_ROTATION_LOCKED, mUserRotationOverridden, in revertOverride()
131 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in maybeSaveUserRotation()
DDisplayRotation.java911 && userRotationMode != WindowManagerPolicy.USER_ROTATION_LOCKED) { in restoreSettings()
923 userRotationMode = WindowManagerPolicy.USER_ROTATION_LOCKED; in restoreSettings()
954 userRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED ? 0 : 1; in setUserRotation()
992 setUserRotation(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation, caller); in freezeRotation()
1001 return mUserRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED; in isRotationFrozen()
1186 if (mUserRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED) { in needSensorRunning()
1250 mUserRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED in rotationForOrientation()
1357 } else if (mUserRotationMode == WindowManagerPolicy.USER_ROTATION_LOCKED in rotationForOrientation()
1502 && mUserRotationMode != WindowManagerPolicy.USER_ROTATION_LOCKED) { in isRotationChoiceAllowed()
1648 : WindowManagerPolicy.USER_ROTATION_LOCKED; in updateSettings()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationReversionControllerTests.java21 import static com.android.server.policy.WindowManagerPolicy.USER_ROTATION_LOCKED;
59 doReturn(USER_ROTATION_LOCKED).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked()
DDisplayWindowSettingsTests.java357 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_90); in testSetUserRotationMode()
362 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation.getUserRotationMode()); in testSetUserRotationMode()
369 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_90); in testSetUserRotation()
379 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_0); in testFixedToUserRotationDefault()
DDisplayRotationTests.java199 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testLocksUserRotation_LockRotation_DefaultDisplay()
214 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
218 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
246 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_ExternalDisplay()
261 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_OverlayDisplay()
289 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotation()); in testUserRotationSystemProperty_NonDefault_VirtualDisplay()
1248 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testReturnsUserRotation_FixedToUserRotationIfNoAutoRotation_AutoRotationNotSupport()
DDisplayContentTests.java1082 dc.getDisplayRotation().setUserRotation(WindowManagerPolicy.USER_ROTATION_LOCKED, in testNoSensorRevert()
1096 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, in testNoSensorRevert()
1129 WindowManagerPolicy.USER_ROTATION_LOCKED, ROTATION_180, in testOnDescendantOrientationRequestChanged_FrozenToUserRotation()
1170 WindowManagerPolicy.USER_ROTATION_LOCKED, ROTATION_0, in testFixedToUserRotationChanged()
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java397 @IntDef({USER_ROTATION_FREE, USER_ROTATION_LOCKED})
406 public final int USER_ROTATION_LOCKED = 1; field
1206 case USER_ROTATION_LOCKED: in userRotationModeToString()
/frameworks/base/core/proto/android/server/
Dwindowmanagerservice.proto147 USER_ROTATION_LOCKED = 1; enumerator