Home
last modified time | relevance | path

Searched refs:isRotationLockEnforced (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayRotationImmersiveAppCompatPolicyTests.java121 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 …]
H A DDisplayRotationTests.java610 when(mDisplayRotationImmersiveAppCompatPolicyMock.isRotationLockEnforced( in testNotifiesChoiceWhenSensorUpdates_immersiveApp()
626 when(mDisplayRotationImmersiveAppCompatPolicyMock.isRotationLockEnforced( in testNotifiesChoiceWhenSensorUpdates_immersiveApp()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayRotationImmersiveAppCompatPolicy.java89 boolean isRotationLockEnforced(@Surface.Rotation final int proposedRotation) { in isRotationLockEnforced() method in DisplayRotationImmersiveAppCompatPolicy
H A DDisplayRotation.java1460 final boolean isRotationLockEnforced = mCompatPolicyForImmersiveApps != null in isRotationChoiceAllowed()
1461 && mCompatPolicyForImmersiveApps.isRotationLockEnforced(proposedRotation); in isRotationChoiceAllowed()
1464 if (!isRotationLockEnforced // not enforcing locked rotation in isRotationChoiceAllowed()