Home
last modified time | relevance | path

Searched refs:ROTATION_180 (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/shared/model/
DDisplayRotation.kt9 ROTATION_180,
14 this == DisplayRotation.ROTATION_0 || this == DisplayRotation.ROTATION_180 in isDefaultOrientation()
21 Surface.ROTATION_180 -> DisplayRotation.ROTATION_180 in isDefaultOrientation()
31 DisplayRotation.ROTATION_180 -> Surface.ROTATION_180 in DisplayRotation()
/frameworks/base/core/tests/coretests/src/android/util/
DRotationUtilsTest.java23 import static android.view.Surface.ROTATION_180;
59 rotateBounds(testResult, testParent, ROTATION_180); in testRotateBounds()
78 rotatePoint(testResult, ROTATION_180, parentW, parentH); in testRotatePoint()
98 rotatePointF(testResult, ROTATION_180, parentW, parentH); in testRotatePointF()
116 assertEquals(ROTATION_180, in testReverseRotationDirectionAroundZAxis()
117 RotationUtils.reverseRotationDirectionAroundZAxis(ROTATION_180)); in testReverseRotationDirectionAroundZAxis()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCoordinateTransformsTest.java20 import static android.view.Surface.ROTATION_180;
81 transformPhysicalToLogicalCoordinates(ROTATION_180, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot180()
111 transformLogicalToPhysicalCoordinates(ROTATION_180, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot180()
143 transformLogicalToPhysicalCoordinates(ROTATION_180, W, H, mMatrix); in transformLogicalToPhysicalCoordinatesIsInverse_rot180()
144 transformPhysicalToLogicalCoordinates(ROTATION_180, W, H, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot180()
160 transformToRotation(ROTATION_180, ROTATION_270, H, W, mMatrix); in transformBetweenRotations_rot180_rot270()
168 transformToRotation(ROTATION_180, ROTATION_270, W, H, mMatrix); in transformBetweenRotations_rot90_rot0()
181 transformToRotation(ROTATION_180, ROTATION_270, di, mMatrix); in transformBetweenRotations_displayInfo()
184 transformToRotation(ROTATION_180, ROTATION_270, H, W, mMatrix2); in transformBetweenRotations_displayInfo()
207 computeRotationMatrix(ROTATION_180, W, H, mMatrix); in rotate_180_bottomRight()
DInsetUtilsTest.java21 import static android.view.Surface.ROTATION_180;
58 final Rect rot180 = rotateCopy(original, ROTATION_180); in rotate()
/frameworks/base/core/java/android/util/
DRotationUtils.java20 import static android.view.Surface.ROTATION_180;
61 case ROTATION_180: in rotateInsets()
113 case ROTATION_180: in rotateBounds()
164 case ROTATION_180: in rotateSurface()
188 case ROTATION_180: in rotatePoint()
211 case ROTATION_180: in rotatePointF()
238 case ROTATION_180: in transformPhysicalToLogicalCoordinates()
/frameworks/native/libs/input/tests/
DTouchVideoFrame_test.cpp116 frame.rotate(ui::ROTATION_180); in TEST()
123 frame.rotate(ui::ROTATION_180); in TEST()
130 frame.rotate(ui::ROTATION_180); in TEST()
137 frame.rotate(ui::ROTATION_180); in TEST()
144 frame.rotate(ui::ROTATION_180); in TEST()
145 frame.rotate(ui::ROTATION_180); in TEST()
152 frame.rotate(ui::ROTATION_180); in TEST()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/area/
DWindowAreaComponentImplTests.java60 Surface.ROTATION_180, Surface.ROTATION_180, 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()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java52 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW()
55 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW()
57 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW()
58 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW()
59 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_270) return false; in isRotationAnimationCCW()
62 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_180) return true; in isRotationAnimationCCW()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java197 freezeRotation(Surface.ROTATION_180); in testLocksUserRotation_LockRotation_DefaultDisplay()
200 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testLocksUserRotation_LockRotation_DefaultDisplay()
204 assertEquals(Surface.ROTATION_180, Settings.System.getInt(mMockResolver, in testLocksUserRotation_LockRotation_DefaultDisplay()
212 freezeRotation(Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
215 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
218 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
349 freezeRotation(Surface.ROTATION_180); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
351 assertEquals(Surface.ROTATION_180, mTarget.rotationForOrientation( in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
362 freezeRotation(Surface.ROTATION_180); in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape()
375 freezeRotation(Surface.ROTATION_180); in testReturnsSeascape_UserRotationLockedSeascape_AppRequestsSeascape()
[all …]
DDisplayRotationImmersiveAppCompatPolicyTests.java97 when(mockDisplayRotation.isAnyPortrait(Surface.ROTATION_180)).thenReturn(true); in createDisplayRotationMock()
101 when(mockDisplayRotation.isLandscapeOrSeascape(Surface.ROTATION_180)).thenReturn(false); in createDisplayRotationMock()
125 assertTrue(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in testIsRotationLockEnforced_landscapeActivity_lockedWhenRotatingToPortrait()
140 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in testIsRotationLockEnforced_portraitActivity_lockedWhenRotatingToLandscape()
218 assertFalse(mPolicy.isRotationLockEnforced(Surface.ROTATION_180)); in assertIsRotationLockEnforcedReturnsFalseForAllRotations()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/util/
DExtensionHelperTest.java52 Surface.ROTATION_180,
59 getMockDisplayInfo(Surface.ROTATION_180),
85 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getMockDisplayInfo()
109 case Surface.ROTATION_180: in getExpectedFeatureRectAfterRotation()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java20 import static android.view.Surface.ROTATION_180;
52 case ROTATION_180: in transformPhysicalToLogicalCoordinates()
82 case ROTATION_180: in transformLogicalToPhysicalCoordinates()
148 case Surface.ROTATION_180: in computeRotationMatrix()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowOrientationListenerTest.java99 callback1.onSuccess(Surface.ROTATION_180); in testOnSensorChanged_callbackNotTheLatest_IgnoreResult()
111 mFakeRotationResolverInternal.callbackWithSuccessResult(Surface.ROTATION_180); in testOnSensorChanged_normalCase1()
113 assertThat(mFinalizedRotation).isEqualTo(Surface.ROTATION_180); in testOnSensorChanged_normalCase1()
138 mHandler, /* defaultRotation */ Surface.ROTATION_180); in testOnSensorChanged_screenLocked_doNotCallRotationResolverReturnDefaultRotation()
145 assertThat(mFinalizedRotation).isEqualTo(Surface.ROTATION_180); in testOnSensorChanged_screenLocked_doNotCallRotationResolverReturnDefaultRotation()
/frameworks/native/include/ui/
DRotation.h35 constexpr auto ROTATION_180 = Rotation::Rotation180; variable
66 case ROTATION_180: in toCString()
/frameworks/native/libs/ui/include/ui/
DRotation.h35 constexpr auto ROTATION_180 = Rotation::Rotation180; variable
66 case ROTATION_180: in toCString()
/frameworks/native/libs/ui/include_vndk/ui/
DRotation.h35 constexpr auto ROTATION_180 = Rotation::Rotation180; variable
66 case ROTATION_180: in toCString()
/frameworks/native/services/surfaceflinger/tests/unittests/
DActiveDisplayRotationFlagsTest.cpp77 ui::ROTATION_180; in TEST_F()
93 ui::ROTATION_180; in TEST_F()
108 ui::ROTATION_180; in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java55 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getWidth()
75 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getHeight()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysUICutoutProviderTest.kt165 rotation = Surface.ROTATION_180, in cutoutInfo_withRotation_doesNotMutateOriginalBounds()
195 rotation = Surface.ROTATION_180, in cutoutInfo_rotation180_returnsRotatedProtectionBounds()
236 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in setUpProviderWithCameraProtection()
242 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) in setUpProviderWithCameraProtection()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
DFloatingRotationButtonPositionCalculator.kt62 Surface.ROTATION_180 -> Gravity.TOP or Gravity.RIGHT in resolveGravity()
70 Surface.ROTATION_180 -> Gravity.TOP or Gravity.LEFT
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizerTest.java215 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_180); in testRotation_portrait_180_to_landscape_90()
228 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_180); in testRotation_portrait_180_to_seascape_270()
256 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_180, in testRotation_landscape_90_to_portrait_180()
282 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_180, in testRotation_seascape_270_to_portrait_180()
304 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_180, in testRotation_portrait_0_to_portrait_180()
315 mDisplayLayout.rotateTo(mContext.getResources(), Surface.ROTATION_180); in testRotation_portrait_180_to_portrait_180()
317 mSpiedDisplayAreaOrganizer.onRotateDisplay(mContext, Surface.ROTATION_180, in testRotation_portrait_180_to_portrait_180()
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/interaction/
DGyro2dController.kt93 Surface.ROTATION_180,
244 Surface.ROTATION_180 -> -event.values[0] in updateGyroRotation()
251 Surface.ROTATION_180 -> -event.values[1] in updateGyroRotation()
/frameworks/hardware/interfaces/automotive/display/aidl/aidl_api/android.frameworks.automotive.display/current/android/frameworks/automotive/display/
DRotation.aidl39 ROTATION_180 = 2, enumConstant
/frameworks/hardware/interfaces/automotive/display/aidl/android/frameworks/automotive/display/
DRotation.aidl32 ROTATION_180 = 2, enumConstant
/frameworks/hardware/interfaces/automotive/display/aidl/aidl_api/android.frameworks.automotive.display/2/android/frameworks/automotive/display/
DRotation.aidl39 ROTATION_180 = 2, enumConstant

123456