/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/shared/model/ |
D | DisplayRotation.kt | 7 ROTATION_0, 14 this == DisplayRotation.ROTATION_0 || this == DisplayRotation.ROTATION_180 in isDefaultOrientation() 19 Surface.ROTATION_0 -> DisplayRotation.ROTATION_0 in isDefaultOrientation() 29 DisplayRotation.ROTATION_0 -> Surface.ROTATION_0 in DisplayRotation()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/area/ |
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()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | ActiveDisplayRotationFlagsTest.cpp | 55 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 65 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 75 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 80 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 91 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 96 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 106 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F() 111 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | UnfoldMoveFromCenterAnimatorTest.kt | 21 import android.view.Surface.ROTATION_0 58 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_halfProgress_viewTranslatedToTheRight() 74 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_zeroProgress_viewTranslatedToTheRight() 90 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewOnTheLeftOfVerticalFold_fullProgress_viewTranslatedToTheOriginalPosition() 106 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testViewOnTheLeftOfVerticalFoldWithTranslation_halfProgress_viewTranslatedToTheRight() 122 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewAndUnregister_halfProgress_viewIsNotUpdated() 135 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testRegisterViewUpdateProgressAndUnregister_halfProgress_viewIsNotUpdated() 162 givenScreen(width = 100, height = 100, rotation = ROTATION_0) in testUpdateViewPositions_viewOnTheLeftAndMovedToTheRight_viewTranslatedToTheLeft() 226 rotation: Int = ROTATION_0 in givenScreen()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 364 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation( in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape() 391 ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, Surface.ROTATION_0)); in testReturnsPortrait_UserRotationLockedPortrait_AppRequestsPortrait() 404 ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT, Surface.ROTATION_0)); in testReturnsUpsideDown_UserRotationLockedUpsideDown_AppRequestsUpsideDown() 590 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsSensorRotation_RotationThawed() 607 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReverseRotation() 611 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReverseRotation() 613 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_0)); in testReverseRotation() 614 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation( in testReverseRotation() 615 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReverseRotation() 724 freezeRotation(Surface.ROTATION_0); in testAllowAllRotations_allowsUpsideDownSuggestion() [all …]
|
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()
|
/frameworks/base/core/java/android/util/ |
D | RotationUtils.java | 19 import static android.view.Surface.ROTATION_0; 51 case ROTATION_0: in rotateInsets() 105 case ROTATION_0: in rotateBounds() 158 case ROTATION_0: in rotateSurface() 182 case ROTATION_0: in rotatePoint() 205 case ROTATION_0: in rotatePointF() 231 case ROTATION_0: in transformPhysicalToLogicalCoordinates()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | Utilities.java | 51 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW() 52 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW() 53 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW() 54 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW() 57 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW() 60 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_0) return false; in isRotationAnimationCCW()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/util/ |
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()
|
/frameworks/native/include/ui/ |
D | Rotation.h | 33 constexpr auto ROTATION_0 = Rotation::Rotation0; variable 57 return ROTATION_0 - rotation; 62 case ROTATION_0: in toCString()
|
/frameworks/native/libs/ui/include/ui/ |
D | Rotation.h | 33 constexpr auto ROTATION_0 = Rotation::Rotation0; variable 57 return ROTATION_0 - rotation; 62 case ROTATION_0: in toCString()
|
D | Transform.h | 143 case ROTATION_0: in toRotationFlags() 159 return ROTATION_0; in toRotation() 167 return ROTATION_0; in toRotation()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rotation.h | 33 constexpr auto ROTATION_0 = Rotation::Rotation0; variable 57 return ROTATION_0 - rotation; 62 case ROTATION_0: in toCString()
|
D | Transform.h | 143 case ROTATION_0: in toRotationFlags() 159 return ROTATION_0; in toRotation() 167 return ROTATION_0; in toRotation()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/util/ |
D | NaturalRotationUnfoldProgressProviderTest.kt | 72 onRotationChanged(Surface.ROTATION_0) in testNaturalRotation0_sendTransitionStartedEvent_eventReceived() 81 onRotationChanged(Surface.ROTATION_0) in testNaturalRotation0_sendTransitionProgressEvent_eventReceived() 108 onRotationChanged(Surface.ROTATION_0) in testRotationBecameUnnaturalDuringTransition_sendsTransitionFinishedEvent() 123 onRotationChanged(Surface.ROTATION_0) in testRotationBecameNaturalDuringTransition_sendsTransitionStartedEvent()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | FloatingRotationButtonPositionCalculatorTest.kt | 73 rotation = Surface.ROTATION_0, 117 rotation = Surface.ROTATION_0, 128 rotation = Surface.ROTATION_0, 152 rotation = Surface.ROTATION_0, 196 rotation = Surface.ROTATION_0, 207 rotation = Surface.ROTATION_0,
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | SysUICutoutProviderTest.kt | 124 rotation = Surface.ROTATION_0, in cutoutInfo_rotation0_returnsOriginalProtectionBounds() 180 whenever(display.rotation).thenReturn(Surface.ROTATION_0) in cutoutInfo_withRotation_doesNotMutateOriginalBounds() 228 rotation: Int = Surface.ROTATION_0, in setUpProviderWithCameraProtection() 236 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in setUpProviderWithCameraProtection() 242 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) in setUpProviderWithCameraProtection() 260 @Rotation rotation: Int = Surface.ROTATION_0, in createDisplay()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/ |
D | FloatingRotationButtonPositionCalculator.kt | 22 val isTaskbarSide = currentRotation == Surface.ROTATION_0 in calculatePosition() 60 Surface.ROTATION_0 -> Gravity.BOTTOM or Gravity.LEFT in resolveGravity() 68 Surface.ROTATION_0 -> Gravity.BOTTOM or Gravity.RIGHT
|
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/ |
D | TvPipTestBase.kt | 25 import android.view.Surface.ROTATION_0 33 abstract class TvPipTestBase : PipTestBase(rotationToString(ROTATION_0), ROTATION_0) {
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
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()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
D | OverlayWindowTest.kt | 116 overlay.addDecorProvider(decorProvider1, Surface.ROTATION_0, Color.BLACK) in testOnReloadResAndMeasureWithoutIds() 117 overlay.addDecorProvider(decorProvider2, Surface.ROTATION_0, Color.BLACK) in testOnReloadResAndMeasureWithoutIds() 135 overlay.addDecorProvider(decorProvider1, Surface.ROTATION_0, Color.BLACK) in testOnReloadResAndMeasureWithIds() 136 overlay.addDecorProvider(decorProvider2, Surface.ROTATION_0, Color.BLACK) in testOnReloadResAndMeasureWithIds() 191 overlay.addDecorProvider(decorProvider1, Surface.ROTATION_0, Color.BLACK) in testHasSameProviders() 197 overlay.addDecorProvider(decorProvider2, Surface.ROTATION_0, Color.BLACK) in testHasSameProviders()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | RotationUtilsTest.java | 22 import static android.view.Surface.ROTATION_0; 114 assertEquals(ROTATION_0, in testReverseRotationDirectionAroundZAxis() 115 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_0)); in testReverseRotationDirectionAroundZAxis()
|