Home
last modified time | relevance | path

Searched refs:getUserRotationMode (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationReversionControllerTests.java59 doReturn(USER_ROTATION_LOCKED).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_useDisplayRotationWhenUserRotationLocked()
70 doReturn(USER_ROTATION_FREE).when(displayRotation).getUserRotationMode(); in beforeOverrideApplied_dontUseDisplayRotationWhenNotUserRotationLocked()
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()
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()
DDisplayWindowSettingsTests.java280 assertEquals(WindowManagerPolicy.USER_ROTATION_FREE, rotation.getUserRotationMode()); in testDefaultToFreeUserRotation()
362 assertEquals(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation.getUserRotationMode()); in testSetUserRotationMode()
DDisplayContentTests.java1097 dc.getDisplayRotation().getUserRotationMode()); in testNoSensorRevert()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotationReversionController.java118 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in revertOverride()
131 && displayRotation.getUserRotationMode() == USER_ROTATION_LOCKED) { in maybeSaveUserRotation()
DDisplayRotation.java1057 public int getUserRotationMode() { in getUserRotationMode() method in DisplayRotation
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java6527 proto.write(ROTATION_MODE, mDefaultDisplayRotation.getUserRotationMode());