Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCoordinateTransformsTest.java20 import static android.view.Surface.ROTATION_180;
80 transformPhysicalToLogicalCoordinates(ROTATION_180, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot180()
110 transformLogicalToPhysicalCoordinates(ROTATION_180, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot180()
142 transformLogicalToPhysicalCoordinates(ROTATION_180, W, H, mMatrix); in transformLogicalToPhysicalCoordinatesIsInverse_rot180()
143 transformPhysicalToLogicalCoordinates(ROTATION_180, W, H, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot180()
159 transformToRotation(ROTATION_180, ROTATION_270, H, W, mMatrix); in transformBetweenRotations_rot180_rot270()
167 transformToRotation(ROTATION_180, ROTATION_270, W, H, mMatrix); in transformBetweenRotations_rot90_rot0()
180 transformToRotation(ROTATION_180, ROTATION_270, di, mMatrix); in transformBetweenRotations_displayInfo()
183 transformToRotation(ROTATION_180, ROTATION_270, H, W, mMatrix2); in transformBetweenRotations_displayInfo()
DDisplayRotationUtilTest.java24 import static android.view.Surface.ROTATION_180;
77 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_LEFT, ROTATION_180), in testGetBoundIndexFromRotation_rot180()
79 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_180), in testGetBoundIndexFromRotation_rot180()
81 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_180), in testGetBoundIndexFromRotation_rot180()
83 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_BOTTOM, ROTATION_180), in testGetBoundIndexFromRotation_rot180()
120 assertThat(util.getRotatedBounds(bounds, ROTATION_180, 200, 300), in testGetRotatedBounds_top_rot180()
152 assertThat(util.getRotatedBounds(bounds, ROTATION_180, 300, 200), in testGetRotatedBounds_left_rot180()
DInsetUtilsTest.java21 import static android.view.Surface.ROTATION_180;
58 final Rect rot180 = rotateCopy(original, ROTATION_180); in rotate()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java153 freezeRotation(Surface.ROTATION_180); in testLocksUserRotation_LockRotation_DefaultDisplay()
156 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testLocksUserRotation_LockRotation_DefaultDisplay()
160 assertEquals(Surface.ROTATION_180, Settings.System.getInt(mMockResolver, in testLocksUserRotation_LockRotation_DefaultDisplay()
168 freezeRotation(Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
171 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
174 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
232 freezeRotation(Surface.ROTATION_180); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
234 assertEquals(Surface.ROTATION_180, mTarget.rotationForOrientation( in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
244 freezeRotation(Surface.ROTATION_180); in testReturnsUserRotation_UserRotationLocked_CompatibleAppRequest()
246 assertEquals(Surface.ROTATION_180, mTarget.rotationForOrientation( in testReturnsUserRotation_UserRotationLocked_CompatibleAppRequest()
[all …]
DDisplayPolicyInsetsTests.java20 import static android.view.Surface.ROTATION_180;
99 final DisplayInfo di = displayInfoForRotation(ROTATION_180, false /* withCutout */); in upsideDown()
108 final DisplayInfo di = displayInfoForRotation(ROTATION_180, true /* withCutout */); in upsideDown_withCutout()
DDisplayPolicyTestsBase.java25 import static android.view.Surface.ROTATION_180;
145 case ROTATION_180: in displayCutoutForRotation()
DWindowConfigurationTests.java142 winConfig2.setRotation(Surface.ROTATION_180); in testConfigurationCompareTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DRotationButtonController.java275 if (windowRotation == Surface.ROTATION_0 || windowRotation == Surface.ROTATION_180) { in onRotationProposal()
355 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW()
358 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW()
360 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW()
361 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW()
362 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_270) return false; in isRotationAnimationCCW()
365 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_180) return true; in isRotationAnimationCCW()
DFloatingRotationButton.java94 case Surface.ROTATION_180: in show()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java20 import static android.view.Surface.ROTATION_180;
54 case ROTATION_180: in transformPhysicalToLogicalCoordinates()
84 case ROTATION_180: in transformLogicalToPhysicalCoordinates()
DDisplayRotationUtil.java21 import static android.view.Surface.ROTATION_180;
45 case ROTATION_180: in getRotationToBoundsOffset()
DInsetUtils.java48 case Surface.ROTATION_180: in rotateInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java53 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getWidth()
73 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getHeight()
DPerimeterPathGuide.java20 import static android.view.Surface.ROTATION_180;
112 case ROTATION_180: in setRotation()
214 case ROTATION_180: in computeRegions()
305 case ROTATION_180: in getRotatedCorner()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java49 } else if (rot == Surface.ROTATION_180) { in getExactRotation()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java19 import static android.view.Surface.ROTATION_180;
141 case ROTATION_180: in onBeginLayout()
DDisplayRotation.java181 return Surface.ROTATION_180; in readRotation()
195 mSeascapeRotation = Surface.ROTATION_180; in configure()
205 mUpsideDownRotation = Surface.ROTATION_180; in configure()
623 if (sensorRotation != Surface.ROTATION_180 in rotationForOrientation()
DCircularDisplayMask.java114 case Surface.ROTATION_180: in drawIfNeeded()
/frameworks/base/core/proto/android/view/
Dsurface.proto25 ROTATION_180 = 2; enumerator
/frameworks/base/core/java/android/view/
DSurface.java157 ROTATION_180,
176 public static final int ROTATION_180 = 2; field in Surface
871 case Surface.ROTATION_180: { in rotationToString()
DDisplayInfo.java564 return rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180 ? in getNaturalWidth()
569 return rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180 ? in getNaturalHeight()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java102 case Surface.ROTATION_180: in publishRotation()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapSurfaceViewActivity.java109 case Surface.ROTATION_180: in setCameraDisplayOrientation()
DTextureViewActivity.java135 case Surface.ROTATION_180: in getCameraOrientation()
/frameworks/base/services/core/java/com/android/server/input/
DPersistentDataStore.java540 case Surface.ROTATION_180: return "180"; in surfaceRotationToString()
554 return Surface.ROTATION_180; in stringToSurfaceRotation()

12