/aosp14/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/area/ |
H A D | WindowAreaComponentImplTests.java | 56 Surface.ROTATION_0, Surface.ROTATION_0, mTestDisplayMetrics); in testRotateRearDisplayMetrics_noTransformNeeded() 64 Surface.ROTATION_0, Surface.ROTATION_180, mTestDisplayMetrics); in testRotateRearDisplayMetrics_noTransformNeeded() 68 Surface.ROTATION_180, Surface.ROTATION_0, mTestDisplayMetrics); in testRotateRearDisplayMetrics_noTransformNeeded() 88 Surface.ROTATION_90, Surface.ROTATION_0, mTestDisplayMetrics); in testRotateRearDisplayMetrics_transformNeeded() 93 Surface.ROTATION_270, Surface.ROTATION_0, mTestDisplayMetrics); in testRotateRearDisplayMetrics_transformNeeded()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayRotationTests.java | 514 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsSensorRotation_RotationThawed() 646 freezeRotation(Surface.ROTATION_0); in testAllowAllRotations_allowsUpsideDownSuggestion() 664 freezeRotation(Surface.ROTATION_0); in testDoNotAllowAllRotations_doesNotAllowUpsideDownSuggestion() 682 freezeRotation(Surface.ROTATION_0); in testAllowAllRotations_allowAllRotationsBecomesDisabled_forbidsUpsideDownSuggestion() 689 mTarget.applyCurrentRotation(Surface.ROTATION_0); in testAllowAllRotations_allowAllRotationsBecomesDisabled_forbidsUpsideDownSuggestion() 713 Surface.ROTATION_0); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed() 745 SCREEN_ORIENTATION_SENSOR, Surface.ROTATION_0)); in testReturnsSensorRotation_180degrees_allRotationsAllowed() 759 SCREEN_ORIENTATION_SENSOR, Surface.ROTATION_0)); in testReturnLastRotation_sensor180_allRotationsNotAllowed() 781 SCREEN_ORIENTATION_SENSOR, Surface.ROTATION_0)); in testAllowRotationsIsCached() 805 SCREEN_ORIENTATION_SENSOR, Surface.ROTATION_0)); in testResetAllowRotations() [all …]
|
H A D | DisplayRotationImmersiveAppCompatPolicyTests.java | 95 when(mockDisplayRotation.isAnyPortrait(Surface.ROTATION_0)).thenReturn(true); in createDisplayRotationMock() 99 when(mockDisplayRotation.isLandscapeOrSeascape(Surface.ROTATION_0)).thenReturn(false); in createDisplayRotationMock() 121 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait() 136 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape() 216 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_0)); in assertIsRotationLockEnforcedReturnsFalseForAllRotations()
|
H A D | DisplayPolicyTestsBase.java | 23 import static android.view.Surface.ROTATION_0; 86 ? displayCutoutForRotation(ROTATION_0, isLongEdgeCutout) in displayInfoAndCutoutForRotation() 108 case ROTATION_0: in displayCutoutForRotation()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
H A D | UnfoldMoveFromCenterAnimatorTest.kt | 21 import android.view.Surface.ROTATION_0 58 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 74 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 90 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 106 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 122 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 135 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 162 givenScreen(width = 100, height = 100, rotation = ROTATION_0) 226 rotation: Int = ROTATION_0
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/shared/model/ |
H A D | DisplayRotation.kt | 7 ROTATION_0, 16 Surface.ROTATION_0 -> DisplayRotation.ROTATION_0
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | RotationUtils.java | 19 import static android.view.Surface.ROTATION_0; 50 case ROTATION_0: in rotateInsets() 104 case ROTATION_0: in rotateBounds() 157 case ROTATION_0: in rotateSurface() 181 case ROTATION_0: in rotatePoint() 204 case ROTATION_0: in rotatePointF() 230 case ROTATION_0: in transformPhysicalToLogicalCoordinates()
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | Utilities.java | 50 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW() 51 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW() 52 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW() 53 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW() 56 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW() 59 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_0) return false; in isRotationAnimationCCW()
|
/aosp14/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/util/ |
H A D | ExtensionHelperTest.java | 50 Surface.ROTATION_0, 57 getMockDisplayInfo(Surface.ROTATION_0), 85 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getMockDisplayInfo() 103 case Surface.ROTATION_0: in getExpectedFeatureRectAfterRotation()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
H A D | FloatingRotationButtonPositionCalculatorTest.kt | 71 rotation = Surface.ROTATION_0, 115 rotation = Surface.ROTATION_0, 126 rotation = Surface.ROTATION_0, 150 rotation = Surface.ROTATION_0, 194 rotation = Surface.ROTATION_0, 205 rotation = Surface.ROTATION_0,
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/util/ |
H A D | NaturalRotationUnfoldProgressProviderTest.kt | 68 onRotationChanged(Surface.ROTATION_0) 77 onRotationChanged(Surface.ROTATION_0) 104 onRotationChanged(Surface.ROTATION_0) 119 onRotationChanged(Surface.ROTATION_0)
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
H A D | PipAnimationControllerTest.java | 20 import static android.view.Surface.ROTATION_0; 93 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in getAnimator_withBounds_returnBoundsAnimator() 107 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 114 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in getAnimator_whenSameTypeRunning_updateExistingAnimator() 174 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in pipTransitionAnimator_updateEndValue() 188 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in pipTransitionAnimator_setPipAnimationCallback()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | CoordinateTransforms.java | 19 import static android.view.Surface.ROTATION_0; 45 case ROTATION_0: in transformPhysicalToLogicalCoordinates() 75 case ROTATION_0: in transformLogicalToPhysicalCoordinates() 141 case Surface.ROTATION_0: in computeRotationMatrix()
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A D | CoordinateTransformsTest.java | 19 import static android.view.Surface.ROTATION_0; 67 transformPhysicalToLogicalCoordinates(ROTATION_0, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot0() 97 transformLogicalToPhysicalCoordinates(ROTATION_0, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot0() 127 transformLogicalToPhysicalCoordinates(ROTATION_0, W, H, mMatrix); in transformLogicalToPhysicalCoordinatesIsInverse_rot0() 128 transformPhysicalToLogicalCoordinates(ROTATION_0, W, H, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot0() 191 computeRotationMatrix(ROTATION_0, W, H, mMatrix); in rotate_0_bottomRight()
|
H A D | InsetUtilsTest.java | 20 import static android.view.Surface.ROTATION_0; 53 assertEquals("rot0", original, rotateCopy(original, ROTATION_0)); in rotate()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/ |
H A D | TvPipTestBase.kt | 25 import android.view.Surface.ROTATION_0 33 abstract class TvPipTestBase : PipTestBase(rotationToString(ROTATION_0), ROTATION_0) {
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/ |
H A D | FloatingRotationButtonPositionCalculator.kt | 22 val isTaskbarSide = currentRotation == Surface.ROTATION_0 60 Surface.ROTATION_0 -> Gravity.BOTTOM or Gravity.LEFT 68 Surface.ROTATION_0 -> Gravity.BOTTOM or Gravity.RIGHT
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
H A D | OverlayWindowTest.kt | 116 overlay.addDecorProvider(decorProvider1, Surface.ROTATION_0, Color.BLACK) 117 overlay.addDecorProvider(decorProvider2, Surface.ROTATION_0, Color.BLACK) 135 overlay.addDecorProvider(decorProvider1, Surface.ROTATION_0, Color.BLACK) 136 overlay.addDecorProvider(decorProvider2, Surface.ROTATION_0, Color.BLACK) 191 overlay.addDecorProvider(decorProvider1, Surface.ROTATION_0, Color.BLACK) 197 overlay.addDecorProvider(decorProvider2, Surface.ROTATION_0, Color.BLACK)
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
H A D | TabletopModeControllerTest.java | 113 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in registerOnTabletopModeChangedListener_notInTabletopMode_callbackFalse() 145 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce() 166 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in foldedRotation0_halfOpen_noScheduleTabletopModeChange() 205 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in foldedRotation90_halfOpenThenRotate_cancelTabletopModeChange() 226 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in unfoldedRotation0_halfOpen_noScheduleTabletopModeChange() 265 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in unfoldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
|
H A D | DisplayLayoutTest.java | 20 import static android.view.Surface.ROTATION_0; 80 DisplayInfo info = createDisplayInfo(1000, 1500, 0, ROTATION_0); in testInsets() 94 info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testInsets() 111 DisplayInfo info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testRotate()
|
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
H A D | DisplayDeviceTest.java | 19 import static android.view.Surface.ROTATION_0; 65 mDisplayDeviceInfo.rotation = ROTATION_0; in setup() 77 displayDevice.setProjectionLocked(mMockTransaction, ROTATION_0, new Rect(), new Rect()); in testGetDisplaySurfaceDefaultSizeLocked_rotation0()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | RotationUtilsTest.java | 22 import static android.view.Surface.ROTATION_0; 114 assertEquals(ROTATION_0, in testReverseRotationDirectionAroundZAxis() 115 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_0)); in testReverseRotationDirectionAroundZAxis()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/ |
H A D | SetRequestedOrientationWhilePinned.kt | 51 private val startingBounds = WindowUtils.getDisplayBounds(Rotation.ROTATION_0) 82 .withRotation(Rotation.ROTATION_0) 154 supportedRotations = listOf(Rotation.ROTATION_0)
|
H A D | ClosePipTransition.kt | 33 teardown { this.setRotation(Rotation.ROTATION_0) } 84 supportedRotations = listOf(Rotation.ROTATION_0)
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | AuthBiometricFingerprintIconController.kt | 241 Surface.ROTATION_0 -> R.raw.biometricprompt_fingerprint_to_error_landscape 255 Surface.ROTATION_0 -> 267 Surface.ROTATION_0 -> R.raw.biometricprompt_fingerprint_to_error_landscape 281 Surface.ROTATION_0 -> 293 Surface.ROTATION_0 ->
|