Searched refs:isRotationLockEnforced (Results 1 – 4 of 4) sorted by relevance
121 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait()123 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait()125 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait()127 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_270)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait()136 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape()138 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape()140 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape()142 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_270)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape()216 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in assertIsRotationLockEnforcedReturnsFalseForAllRotations()217 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in assertIsRotationLockEnforcedReturnsFalseForAllRotations()[all …]
610 when(mDisplayRotationImmersiveAppCompatPolicyMock.isRotationLockEnforced( in testNotifiesChoiceWhenSensorUpdates_immersiveApp()626 when(mDisplayRotationImmersiveAppCompatPolicyMock.isRotationLockEnforced( in testNotifiesChoiceWhenSensorUpdates_immersiveApp()
89 boolean isRotationLockEnforced(@Surface.Rotation final int proposedRotation) { in isRotationLockEnforced() method in DisplayRotationImmersiveAppCompatPolicy
1460 final boolean isRotationLockEnforced = mCompatPolicyForImmersiveApps != null in isRotationChoiceAllowed()1461 && mCompatPolicyForImmersiveApps.isRotationLockEnforced(proposedRotation); in isRotationChoiceAllowed()1464 if (!isRotationLockEnforced // not enforcing locked rotation in isRotationChoiceAllowed()