/aosp_15_r20/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayRotationTests.java | 210 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_InternalDisplay() 225 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_ExternalDisplay() 231 assertEquals(Surface.ROTATION_90, mTarget.getUserRotation()); in testUserRotationSystemProperty_NonDefault_ExternalDisplay() 240 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_OverlayDisplay() 246 assertEquals(Surface.ROTATION_90, mTarget.getUserRotation()); in testUserRotationSystemProperty_NonDefault_OverlayDisplay() 257 when(mTarget.getDemoUserRotationOverride()).thenReturn(Surface.ROTATION_90); in testUserRotationSystemProperty_NonDefault_VirtualDisplay() 274 assertEquals(Surface.ROTATION_90, mTarget.getUserRotationMode()); in testUserRotationSystemProperty_NonDefault_VirtualDisplay() 336 ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_NoAppRequest() 349 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, Surface.ROTATION_90)); in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape() 362 ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE, Surface.ROTATION_90)); in testReturnsSeascape_UserRotationLockedSeascape_AppRequestsSeascape() [all …]
|
H A D | DisplayRotationCoordinatorTests.java | 52 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testDefaultDisplayRotationChangedWhenNoCallbackRegistered() 96 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testSecondRegistrationAfterRemovingFirst() 108 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testRegisterThenDefaultDisplayRotationChanged() 110 assertEquals(Surface.ROTATION_90, mCoordinator.getDefaultDisplayCurrentRotation()); in testRegisterThenDefaultDisplayRotationChanged() 115 mCoordinator.onDefaultDisplayRotationChanged(Surface.ROTATION_90); in testDefaultDisplayRotationChangedThenRegister() 119 assertEquals(Surface.ROTATION_90, mCoordinator.getDefaultDisplayCurrentRotation()); in testDefaultDisplayRotationChangedThenRegister()
|
H A D | DisplayRotationImmersiveAppCompatPolicyTests.java | 98 when(mockDisplayRotation.isAnyPortrait(Surface.ROTATION_90)).thenReturn(false); in createDisplayRotationMock() 102 when(mockDisplayRotation.isLandscapeOrSeascape(Surface.ROTATION_90)).thenReturn(true); in createDisplayRotationMock() 126 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait() 141 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape() 209 doReturn(Surface.ROTATION_90).when(orientationListener).getProposedRotation(); in testDeferOrientationUpdate() 238 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_90)); in assertIsRotationLockEnforcedReturnsFalseForAllRotations()
|
/aosp_15_r20/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | OrientationTouchTransformerTest.java | 91 generateTouchRegionHeight(NORMAL_SCREEN_SIZE, Surface.ROTATION_90) + 1; in disabledMultipleRegions_shouldOverrideFirstRegion() 105 .createOrAddTouchRegion(createDisplayInfo(NORMAL_SCREEN_SIZE, Surface.ROTATION_90), in disabledMultipleRegions_shouldOverrideFirstRegion() 133 generateTouchRegionHeight(NORMAL_SCREEN_SIZE, Surface.ROTATION_90) + 1; in enableMultipleRegions_shouldOverrideFirstRegion() 136 .createOrAddTouchRegion(createDisplayInfo(NORMAL_SCREEN_SIZE, Surface.ROTATION_90), in enableMultipleRegions_shouldOverrideFirstRegion() 166 generateTouchRegionHeight(NORMAL_SCREEN_SIZE, Surface.ROTATION_90) + 1; in enableMultipleRegions_assistantTriggersInMostRecent() 170 .createOrAddTouchRegion(createDisplayInfo(NORMAL_SCREEN_SIZE, Surface.ROTATION_90), in enableMultipleRegions_assistantTriggersInMostRecent() 184 generateTouchRegionHeight(NORMAL_SCREEN_SIZE, Surface.ROTATION_90) + 1; in enableMultipleRegions_assistantTriggersInCurrentOrientationAfterDisable() 189 .createOrAddTouchRegion(createDisplayInfo(NORMAL_SCREEN_SIZE, Surface.ROTATION_90), in enableMultipleRegions_assistantTriggersInCurrentOrientationAfterDisable() 253 .createOrAddTouchRegion(createDisplayInfo(NORMAL_SCREEN_SIZE, Surface.ROTATION_90), in applyTransform_taskNotFrozen_90Rotate_inRegion() 255 float y = generateTouchRegionHeight(NORMAL_SCREEN_SIZE, Surface.ROTATION_90) + 1; in applyTransform_taskNotFrozen_90Rotate_inRegion() [all …]
|
/aosp_15_r20/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | RecentsOrientedStateTest.java | 20 import static android.view.Surface.ROTATION_90; 67 mR1.setRecentsRotation(ROTATION_90); in stateId_changesWithRecentsRotation() 71 mR2.setRecentsRotation(ROTATION_90); in stateId_changesWithRecentsRotation() 77 mR1.update(ROTATION_0, ROTATION_90); in stateId_changesWithDisplayRotation() 81 mR2.update(ROTATION_90, ROTATION_90); in stateId_changesWithDisplayRotation() 84 mR2.update(ROTATION_90, ROTATION_0); in stateId_changesWithDisplayRotation() 87 mR2.update(ROTATION_0, ROTATION_90); in stateId_changesWithDisplayRotation()
|
/aosp_15_r20/frameworks/base/core/java/android/util/ |
H A D | RotationUtils.java | 22 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()
|
/aosp_15_r20/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
H A D | TabletopModeControllerTest.java | 126 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()
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/camera/ |
H A D | CameraServiceProxyTest.java | 51 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()
|
/aosp_15_r20/frameworks/native/libs/input/tests/ |
H A D | TouchVideoFrame_test.cpp | 76 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()
|
/aosp_15_r20/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RecentsOrientedState.java | 23 import static android.view.Surface.ROTATION_90; 75 @IntDef({ROTATION_0, ROTATION_90, ROTATION_180, ROTATION_270}) 230 } else if (mTouchRotation == ROTATION_90) { in updateHandler() 458 return ROTATION_90; in getRotationForUserDegreesRotated() 474 return ROTATION_90; in getRotationForUserDegreesRotated() 482 return ROTATION_90; in getRotationForUserDegreesRotated() 485 case ROTATION_90: in getRotationForUserDegreesRotated() 515 case ROTATION_90: in postDisplayRotation() 538 case ROTATION_90: in preDisplayRotation() 579 if ((mRecentsActivityRotation == ROTATION_90 || mRecentsActivityRotation == ROTATION_270)) { in getLauncherDeviceProfile()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/shared/model/ |
H A D | DisplayRotation.kt | 8 ROTATION_90, 20 Surface.ROTATION_90 -> DisplayRotation.ROTATION_90 in isDefaultOrientation() 30 DisplayRotation.ROTATION_90 -> Surface.ROTATION_90 in DisplayRotation()
|
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | RotationUtilsTest.java | 25 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()
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/wm/utils/ |
H A D | CoordinateTransforms.java | 22 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()
|
/aosp_15_r20/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A D | CoordinateTransformsTest.java | 22 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()
|
H A D | InsetUtilsTest.java | 19 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()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
H A D | Utilities.java | 52 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW() 55 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW() 56 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW() 57 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_270) return true; //180d so CCW in isRotationAnimationCCW() 59 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW() 62 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_90) return true; //180d so CCW in isRotationAnimationCCW()
|
/aosp_15_r20/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/ |
H A D | OneHandedDisplayAreaOrganizerTest.java | 197 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_portrait_0_to_landscape_90() 221 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_portrait_180_to_landscape_90() 245 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_portrait_0() 258 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_portrait_180() 332 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_portrait_180_to_portrait_0() 345 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_landscape_90() 347 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_landscape_90_to_landscape_90() 358 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation_landscape_90_to_seascape_270() 386 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_90, in testRotation_seascape_270_to_landscape_90()
|
H A D | OneHandedControllerTest.java | 339 mMockDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_90); in testRotation90CanNotStartOneHanded() 381 Surface.ROTATION_90, null /* newDisplayAreaInfo */, handlerWCT); in testOneHandedEnabledRotation90ShouldHandleRotate() 384 eq(Surface.ROTATION_90), any(WindowContainerTransaction.class)); in testOneHandedEnabledRotation90ShouldHandleRotate() 394 Surface.ROTATION_90, null /* newDisplayAreaInfo */, handlerWCT); in testOneHandedDisabledRotation90ShouldNotHandleRotate() 397 eq(Surface.ROTATION_90), any(WindowContainerTransaction.class)); in testOneHandedDisabledRotation90ShouldNotHandleRotate() 407 Surface.ROTATION_90, null /* newDisplayAreaInfo */, handlerWCT); in testSwipeToNotificationEnabledRotation90ShouldNotHandleRotate() 410 eq(Surface.ROTATION_90), any(WindowContainerTransaction.class)); in testSwipeToNotificationEnabledRotation90ShouldNotHandleRotate() 420 Surface.ROTATION_90, null /* newDisplayAreaInfo */, handlerWCT); in testSwipeToNotificationDisabledRotation90ShouldHandleRotate() 423 eq(Surface.ROTATION_90), any(WindowContainerTransaction.class)); in testSwipeToNotificationDisabledRotation90ShouldHandleRotate()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/decor/ |
H A D | OverlayWindowTest.kt | 121 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()
|
/aosp_15_r20/out/soong/.intermediates/external/perfetto/perfetto_protos_perfetto_trace_android_winscope_extensions_zero_gen_headers/gen/external/perfetto/protos/perfetto/trace/android/view/ |
D | surface.pbzero.h | 23 ROTATION_90 = 1, enumerator 41 case ::perfetto::protos::pbzero::SurfaceProto_Rotation::ROTATION_90: in SurfaceProto_Rotation_Name() 71 static inline const Rotation ROTATION_90 = Rotation::ROTATION_90; variable
|
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/ |
H A D | PromptIconViewModel.kt | 508 DisplayRotation.ROTATION_90 -> 270f in <lambda>() 653 DisplayRotation.ROTATION_90 -> in <lambda>() 663 DisplayRotation.ROTATION_90 -> R.raw.biometricprompt_sfps_fingerprint_to_error_90 in <lambda>() 677 DisplayRotation.ROTATION_90 -> in <lambda>() 687 DisplayRotation.ROTATION_90 -> R.raw.biometricprompt_sfps_error_to_fingerprint_90 in <lambda>() 701 DisplayRotation.ROTATION_90 -> in <lambda>() 711 DisplayRotation.ROTATION_90 -> R.raw.biometricprompt_sfps_fingerprint_to_unlock_90 in <lambda>() 725 DisplayRotation.ROTATION_90 -> in <lambda>() 735 DisplayRotation.ROTATION_90 -> R.raw.biometricprompt_sfps_fingerprint_to_success_90 in <lambda>()
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/unfold/util/ |
H A D | NaturalRotationUnfoldProgressProviderTest.kt | 90 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()
|
/aosp_15_r20/platform_testing/libraries/flicker/utils/src/android/tools/ |
H A D | Rotation.kt | 21 ROTATION_90("ROTATION_90", PlatformConsts.ROTATION_90), 25 fun isRotated() = this == ROTATION_90 || this == ROTATION_270 in isRotated()
|
/aosp_15_r20/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ |
D | AbstractDeviceProfileTest.kt | 139 rotation = if (isVerticalBar) Surface.ROTATION_90 else Surface.ROTATION_0, in <lambda>() 159 rotation = if (isLandscape) Surface.ROTATION_0 else Surface.ROTATION_90, in <lambda>() 194 rotation = if (isLandscape) Surface.ROTATION_90 else Surface.ROTATION_0, in <lambda>() 202 rotation = if (isLandscape) Surface.ROTATION_0 else Surface.ROTATION_90, in <lambda>() 251 WindowBounds(Rect(0, 0, naturalY, naturalX), rotation90Insets, Surface.ROTATION_90), in <lambda>() 267 WindowBounds(Rect(0, 0, naturalY, naturalX), rotatedInsets, Surface.ROTATION_90), in <lambda>()
|
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/ |
H A D | DisplayDeviceTest.java | 22 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()
|