Searched refs:getUserRotationMode (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationReversionControllerTests.java | 59 doReturn(USER_ROTATION_LOCKED).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked() 70 doReturn(USER_ROTATION_FREE).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_dontUseDisplayRotationWhenNotUserRotationLocked()
|
D | DisplayRotationTests.java | 199 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testLocksUserRotation_LockRotation_DefaultDisplay() 214 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay() 232 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_InternalDisplay() 246 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_ExternalDisplay() 261 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_OverlayDisplay() 280 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_VirtualDisplay() 290 assertEquals(Surface.ROTATION_90, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_VirtualDisplay() 300 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testPersistUserRotation_UnlockRotation_DefaultDisplay() 312 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, mTarget.getUserRotationMode()); in testPersistsUserRotation_UnlockRotation_NonDefaultDisplay() 1248 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, mTarget.getUserRotationMode()); in testReturnsUserRotation_FixedToUserRotationIfNoAutoRotation_AutoRotationNotSupport()
|
D | DisplayWindowSettingsTests.java | 280 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, rotation.getUserRotationMode()); in testDefaultToFreeUserRotation() 362 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation.getUserRotationMode()); in testSetUserRotationMode()
|
D | DisplayContentTests.java | 1097 dc.getDisplayRotation().getUserRotationMode()); in testNoSensorRevert()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotationReversionController.java | 118 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in revertOverride() 131 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in maybeSaveUserRotation()
|
D | DisplayRotation.java | 1057 public int getUserRotationMode() { in getUserRotationMode() method in DisplayRotation
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 6527 proto.write(ROTATION_MODE, mDefaultDisplayRotation.getUserRotationMode());
|