Home
last modified time | relevance | path

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

123

/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()
DDisplayRotationUtilTest.java26 import static android.view.Surface.ROTATION_90;
65 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_LEFT, ROTATION_90), in testGetBoundIndexFromRotation_rot90()
67 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_90), in testGetBoundIndexFromRotation_rot90()
69 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_90), in testGetBoundIndexFromRotation_rot90()
71 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_BOTTOM, ROTATION_90), in testGetBoundIndexFromRotation_rot90()
112 assertThat(util.getRotatedBounds(bounds, ROTATION_90, 200, 300), in testGetRotatedBounds_top_rot90()
144 assertThat(util.getRotatedBounds(bounds, ROTATION_90, 300, 200), in testGetRotatedBounds_left_rot90()
DCoordinateTransformsTest.java22 import static android.view.Surface.ROTATION_90;
72 transformPhysicalToLogicalCoordinates(ROTATION_90, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot90()
102 transformLogicalToPhysicalCoordinates(ROTATION_90, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot90()
134 transformLogicalToPhysicalCoordinates(ROTATION_90, W, H, mMatrix); in transformLogicalToPhysicalCoordinatesIsInverse_rot90()
135 transformPhysicalToLogicalCoordinates(ROTATION_90, W, H, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot90()
177 di.rotation = ROTATION_90; in transformBetweenRotations_displayInfo()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java22 import static android.view.Surface.ROTATION_90;
50 case ROTATION_90: in transformPhysicalToLogicalCoordinates()
80 case ROTATION_90: in transformLogicalToPhysicalCoordinates()
108 final boolean flipped = info.rotation == ROTATION_90 || info.rotation == ROTATION_270; in transformToRotation()
130 final boolean flipped = newRotation == ROTATION_90 || newRotation == ROTATION_270; in transformToRotation()
DDisplayRotationUtil.java23 import static android.view.Surface.ROTATION_90;
43 case ROTATION_90: in getRotationToBoundsOffset()
DInsetUtils.java45 case Surface.ROTATION_90: in rotateInsets()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java235 ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
247 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_CompatibleAppRequest()
259 ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, Surface.ROTATION_90); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest()
262 rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest()
425 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testReturnsSensorRotation_RotationThawed()
427 assertEquals(Surface.ROTATION_90, mTarget.rotationForOrientation( in testReturnsSensorRotation_RotationThawed()
446 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testUpdatesRotationWhenSensorUpdates_RotationThawed()
461 mOrientationSensorListener.onSensorChanged(createSensorEvent(Surface.ROTATION_90)); in testNotifiesChoiceWhenSensorUpdates_RotationLocked()
464 verify(mMockStatusBarManagerInternal).onProposedRotationChanged(Surface.ROTATION_90, true); in testNotifiesChoiceWhenSensorUpdates_RotationLocked()
482 rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed()
[all …]
DDisplayPolicyInsetsTests.java22 import static android.view.Surface.ROTATION_90;
63 final DisplayInfo di = displayInfoForRotation(ROTATION_90, false /* withCutout */); in landscape()
72 final DisplayInfo di = displayInfoForRotation(ROTATION_90, true /* withCutout */); in landscape_withCutout()
DDisplayPolicyTestsBase.java27 import static android.view.Surface.ROTATION_90;
114 final boolean flippedDimensions = rotation == ROTATION_90 || rotation == ROTATION_270; in displayInfoAndCutoutForRotation()
142 case ROTATION_90: in displayCutoutForRotation()
DDisplayPolicyLayoutTests.java25 import static android.view.Surface.ROTATION_90;
290 setRotation(ROTATION_90); in layoutWindowLw_withDisplayCutout_landscape()
328 setRotation(ROTATION_90); in layoutWindowLw_withDisplayCutout_fullscreen_landscape()
367 setRotation(ROTATION_90); in layoutWindowLw_withDisplayCutout_fullscreenInCutout_landscape()
DDisplayPolicyTests.java231 displayRotation, Surface.ROTATION_0, Surface.ROTATION_90)); in testShouldRotateSeamlessly()
237 displayRotation, Surface.ROTATION_0, Surface.ROTATION_90)); in testShouldRotateSeamlessly()
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DWindowUtils.java53 boolean displayIsRotated = (currentDisplayRotation == Surface.ROTATION_90 || in getDisplayBounds()
56 boolean requestedDisplayIsRotated = requestedRotation == Surface.ROTATION_90 || in getDisplayBounds()
73 boolean displayIsRotated = currentDisplayRotation == Surface.ROTATION_90 || in getAppPosition()
76 boolean requestedAppIsRotated = requestedRotation == Surface.ROTATION_90 || in getAppPosition()
124 if (requestedRotation == Surface.ROTATION_90) { in getNavigationBarPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java32 if (rot == Surface.ROTATION_90) { in getRotation()
45 if (rot == Surface.ROTATION_90) { in getExactRotation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DRotationButtonController.java354 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW()
357 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW()
358 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW()
359 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_270) return true; //180d so CCW in isRotationAnimationCCW()
361 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW()
364 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_90) return true; //180d so CCW in isRotationAnimationCCW()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPerimeterPathGuide.java22 import static android.view.Surface.ROTATION_90;
111 case ROTATION_90: in setRotation()
211 case ROTATION_90: in computeRegions()
225 if (mRotation == ROTATION_90 || mRotation == Surface.ROTATION_270) { in computeRegions()
299 case ROTATION_90: in getRotatedCorner()
/frameworks/base/services/core/java/com/android/server/wm/
DSeamlessRotator.java20 import static android.view.Surface.ROTATION_90;
52 final boolean flipped = info.rotation == ROTATION_90 || info.rotation == ROTATION_270; in SeamlessRotator()
DDisplayFrames.java21 import static android.view.Surface.ROTATION_90;
135 case ROTATION_90: in onBeginLayout()
DDisplayRotation.java179 return Surface.ROTATION_90; in readRotation()
197 mPortraitRotation = Surface.ROTATION_90; in configure()
201 mUpsideDownRotation = Surface.ROTATION_90; in configure()
208 mSeascapeRotation = Surface.ROTATION_90; in configure()
210 mLandscapeRotation = Surface.ROTATION_90; in configure()
DCircularDisplayMask.java110 case Surface.ROTATION_90: in drawIfNeeded()
/frameworks/base/core/proto/android/view/
Dsurface.proto24 ROTATION_90 = 1; enumerator
/frameworks/base/core/java/android/view/
DSurface.java154 ROTATION_90,
169 public static final int ROTATION_90 = 1; field in Surface
849 case Surface.ROTATION_90: { in rotationToString()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java99 case Surface.ROTATION_90: in publishRotation()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapSurfaceViewActivity.java106 case Surface.ROTATION_90: in setCameraDisplayOrientation()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java392 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayLocked()
434 } else if (orientation == Surface.ROTATION_90) { in configureDisplayLocked()
DDisplayDevice.java232 boolean isRotated = (mCurrentOrientation == Surface.ROTATION_90 in populateViewportLocked()

123