Home
last modified time | relevance | path

Searched refs:ROTATION_90 (Results 1 – 25 of 249) sorted by relevance

12345678910

/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/shared/model/
DDisplayRotation.kt8 ROTATION_90,
20 Surface.ROTATION_90 -> DisplayRotation.ROTATION_90 in isDefaultOrientation()
30 DisplayRotation.ROTATION_90 -> Surface.ROTATION_90 in DisplayRotation()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationCoordinatorTests.java49 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testDefaultDisplayRotationChangedWhenNoCallbackRegistered()
70 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testSecondRegistrationAfterRemovingFirst()
82 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testRegisterThenDefaultDisplayRotationChanged()
84 assertEquals(Surface.ROTATION_90, mCoordinator.getDefaultDisplayCurrentRotation()); in testRegisterThenDefaultDisplayRotationChanged()
89 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testDefaultDisplayRotationChangedThenRegister()
93 assertEquals(Surface.ROTATION_90, mCoordinator.getDefaultDisplayCurrentRotation()); in testDefaultDisplayRotationChangedThenRegister()
DDisplayRotationTests.java226 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_InternalDisplay()
241 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_ExternalDisplay()
247 assertEquals(Surface.ROTATION_90, mTarget.getUserRotation()); in testUserRotationSystemProperty_NonDefault_ExternalDisplay()
256 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_OverlayDisplay()
262 assertEquals(Surface.ROTATION_90, mTarget.getUserRotation()); in testUserRotationSystemProperty_NonDefault_OverlayDisplay()
273 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_VirtualDisplay()
290 assertEquals(Surface.ROTATION_90, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_VirtualDisplay()
352 ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
365 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, Surface.ROTATION_90)); in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape()
378 ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE, Surface.ROTATION_90)); in testReturnsSeascape_UserRotationLockedSeascape_AppRequestsSeascape()
[all …]
DDisplayRotationImmersiveAppCompatPolicyTests.java96 when(mockDisplayRotation.isAnyPortrait(Surface.ROTATION_90)).thenReturn(false); in createDisplayRotationMock()
100 when(mockDisplayRotation.isLandscapeOrSeascape(Surface.ROTATION_90)).thenReturn(true); in createDisplayRotationMock()
123 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait()
138 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape()
217 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in assertIsRotationLockEnforcedReturnsFalseForAllRotations()
DDisplayPolicyTestsBase.java26 import static android.view.Surface.ROTATION_90;
81 final boolean flippedDimensions = rotation == ROTATION_90 || rotation == ROTATION_270; in displayInfoAndCutoutForRotation()
111 case ROTATION_90: in displayCutoutForRotation()
/frameworks/base/services/tests/servicestests/src/com/android/server/camera/
DCameraServiceProxyTest.java51 Surface.ROTATION_90 , CameraCharacteristics.LENS_FACING_BACK, in testGetCropRotateScale()
56 Surface.ROTATION_90, CameraCharacteristics.LENS_FACING_BACK, in testGetCropRotateScale()
62 Surface.ROTATION_90, CameraCharacteristics.LENS_FACING_BACK, in testGetCropRotateScale()
67 Surface.ROTATION_90, CameraCharacteristics.LENS_FACING_BACK, in testGetCropRotateScale()
74 Surface.ROTATION_90, CameraCharacteristics.LENS_FACING_BACK, in testGetCropRotateScale()
80 Surface.ROTATION_90, CameraMetadata.SCALER_ROTATE_AND_CROP_90, in testGetCropRotateScale()
91 Surface.ROTATION_90, CameraMetadata.SCALER_ROTATE_AND_CROP_270, in testGetCropRotateScale()
/frameworks/base/core/java/android/util/
DRotationUtils.java22 import static android.view.Surface.ROTATION_90;
54 case ROTATION_90: in rotateInsets()
107 case ROTATION_90: in rotateBounds()
161 case ROTATION_90: in rotateSurface()
184 case ROTATION_90: in rotatePoint()
207 case ROTATION_90: in rotatePointF()
234 case ROTATION_90: in transformPhysicalToLogicalCoordinates()
262 if (rotation == Surface.ROTATION_90) { in reverseRotationDirectionAroundZAxis()
265 rotation = Surface.ROTATION_90; in reverseRotationDirectionAroundZAxis()
/frameworks/base/core/tests/coretests/src/android/util/
DRotationUtilsTest.java25 import static android.view.Surface.ROTATION_90;
55 rotateBounds(testResult, testParent, ROTATION_90); in testRotateBounds()
74 rotatePoint(testResult, ROTATION_90, parentW, parentH); in testRotatePoint()
93 rotatePointF(testResult, ROTATION_90, parentW, parentH); in testRotatePointF()
110 assertEquals(ROTATION_90, in testReverseRotationDirectionAroundZAxis()
113 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_90)); in testReverseRotationDirectionAroundZAxis()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java22 import static android.view.Surface.ROTATION_90;
48 case ROTATION_90: in transformPhysicalToLogicalCoordinates()
78 case ROTATION_90: in transformLogicalToPhysicalCoordinates()
106 final boolean flipped = info.rotation == ROTATION_90 || info.rotation == ROTATION_270; in transformToRotation()
128 final boolean flipped = newRotation == ROTATION_90 || newRotation == ROTATION_270; in transformToRotation()
144 case Surface.ROTATION_90: in computeRotationMatrix()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DTabletopModeControllerTest.java126 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in registerOnTabletopModeChangedListener_inTabletopMode_callbackTrue()
139 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
155 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpen_scheduleTabletopModeChange()
177 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpenThenUnfold_cancelTabletopModeChange()
189 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpenThenFold_cancelTabletopModeChange()
201 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
215 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in unfoldedRotation90_halfOpen_scheduleTabletopModeChange()
237 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in unfoldedRotation90_halfOpenThenUnfold_cancelTabletopModeChange()
249 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in unfoldedRotation90_halfOpenThenFold_cancelTabletopModeChange()
261 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in unfoldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
/frameworks/native/libs/input/tests/
DTouchVideoFrame_test.cpp76 frame.rotate(ui::ROTATION_90); in TEST()
83 frame.rotate(ui::ROTATION_90); in TEST()
90 frame.rotate(ui::ROTATION_90); in TEST()
97 frame.rotate(ui::ROTATION_90); in TEST()
104 frame.rotate(ui::ROTATION_90); in TEST()
105 frame.rotate(ui::ROTATION_90); in TEST()
106 frame.rotate(ui::ROTATION_90); in TEST()
107 frame.rotate(ui::ROTATION_90); in TEST()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DInsetUtilsTest.java19 import static android.hardware.camera2.params.OutputConfiguration.ROTATION_90;
55 final Rect rot90 = rotateCopy(original, ROTATION_90); in rotate()
60 assertEquals("rot90(rot90)=rot180", rotateCopy(rot90, ROTATION_90), rot180); in rotate()
64 assertEquals("rot90(rot180)=rot270", rotateCopy(rot180, ROTATION_90), rot270); in rotate()
DCoordinateTransformsTest.java22 import static android.view.Surface.ROTATION_90;
73 transformPhysicalToLogicalCoordinates(ROTATION_90, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot90()
103 transformLogicalToPhysicalCoordinates(ROTATION_90, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot90()
135 transformLogicalToPhysicalCoordinates(ROTATION_90, W, H, mMatrix); in transformLogicalToPhysicalCoordinatesIsInverse_rot90()
136 transformPhysicalToLogicalCoordinates(ROTATION_90, W, H, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot90()
178 di.rotation = ROTATION_90; in transformBetweenRotations_displayInfo()
199 computeRotationMatrix(ROTATION_90, W, H, mMatrix); in rotate_90_bottomRight()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java51 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW()
54 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW()
55 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW()
56 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_270) return true; //180d so CCW in isRotationAnimationCCW()
58 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW()
61 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_90) return true; //180d so CCW in isRotationAnimationCCW()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/util/
DNaturalRotationUnfoldProgressProviderTest.kt90 onRotationChanged(Surface.ROTATION_90) in testNotNaturalRotation90_sendTransitionStartedEvent_eventNotReceived()
99 onRotationChanged(Surface.ROTATION_90) in testNaturalRotation90_sendTransitionProgressEvent_eventNotReceived()
112 onRotationChanged(Surface.ROTATION_90) in testRotationBecameUnnaturalDuringTransition_sendsTransitionFinishedEvent()
119 onRotationChanged(Surface.ROTATION_90) in testRotationBecameNaturalDuringTransition_sendsTransitionStartedEvent()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
DFloatingRotationButtonPositionCalculator.kt23 || currentRotation == Surface.ROTATION_90 in calculatePosition()
61 Surface.ROTATION_90 -> Gravity.BOTTOM or Gravity.RIGHT in resolveGravity()
69 Surface.ROTATION_90 -> Gravity.TOP or Gravity.RIGHT
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/util/
DExtensionHelperTest.java51 Surface.ROTATION_90,
58 getMockDisplayInfo(Surface.ROTATION_90),
106 case Surface.ROTATION_90: in getExpectedFeatureRectAfterRotation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DOverlayWindowTest.kt121 rotation = Surface.ROTATION_90, in testOnReloadResAndMeasureWithoutIds()
126 overlay.getView(TEST_DECOR_VIEW_ID_1)!!, 1, Surface.ROTATION_90, Color.BLACK, null in testOnReloadResAndMeasureWithoutIds()
129 overlay.getView(TEST_DECOR_VIEW_ID_2)!!, 1, Surface.ROTATION_90, Color.BLACK, null in testOnReloadResAndMeasureWithoutIds()
141 rotation = Surface.ROTATION_90, in testOnReloadResAndMeasureWithIds()
146 overlay.getView(TEST_DECOR_VIEW_ID_1)!!, 1, Surface.ROTATION_90, Color.BLACK, null in testOnReloadResAndMeasureWithIds()
149 overlay.getView(TEST_DECOR_VIEW_ID_2)!!, 1, Surface.ROTATION_90, Color.BLACK, null in testOnReloadResAndMeasureWithIds()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayDeviceTest.java22 import static android.view.Surface.ROTATION_90;
117 displayDevice.setProjectionLocked(mMockTransaction, ROTATION_90, new Rect(), new Rect()); in testGetDisplaySurfaceDefaultSizeLocked_rotation90_anisotropyCorrection()
129 displayDevice.setProjectionLocked(mMockTransaction, ROTATION_90, new Rect(), new Rect()); in testGetDisplaySurfaceDefaultSizeLocked_rotation90_noAnisotropyCorrection()
137 displayDevice.setProjectionLocked(mMockTransaction, ROTATION_90, new Rect(), new Rect()); in testGetDisplaySurfaceDefaultSizeLocked_rotation90()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/shared/model/
DUdfpsOverlayParams.kt65 if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) {
73 if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) {
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizerTest.java193 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_portrait_0_to_landscape_90()
217 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_portrait_180_to_landscape_90()
241 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_portrait_0()
254 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_portrait_180()
328 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_portrait_180_to_portrait_0()
341 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_landscape_90()
343 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_landscape_90_to_landscape_90()
354 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_seascape_270()
382 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_seascape_270_to_landscape_90()
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.cpp49 case ui::ROTATION_90: in getInverseRotation()
52 return ui::ROTATION_90; in getInverseRotation()
61 case ui::ROTATION_90: in rotateDelta()
/frameworks/native/include/ui/
DRotation.h34 constexpr auto ROTATION_90 = Rotation::Rotation90; variable
64 case ROTATION_90: in toCString()
/frameworks/native/libs/ui/include/ui/
DRotation.h34 constexpr auto ROTATION_90 = Rotation::Rotation90; variable
64 case ROTATION_90: in toCString()
/frameworks/native/libs/ui/include_vndk/ui/
DRotation.h34 constexpr auto ROTATION_90 = Rotation::Rotation90; variable
64 case ROTATION_90: in toCString()

12345678910