/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
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()
|
D | DisplayRotationUtilTest.java | 26 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()
|
D | CoordinateTransformsTest.java | 22 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/ |
D | CoordinateTransforms.java | 22 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()
|
D | DisplayRotationUtil.java | 23 import static android.view.Surface.ROTATION_90; 43 case ROTATION_90: in getRotationToBoundsOffset()
|
D | InsetUtils.java | 45 case Surface.ROTATION_90: in rotateInsets()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 235 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 …]
|
D | DisplayPolicyInsetsTests.java | 22 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()
|
D | DisplayPolicyTestsBase.java | 27 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()
|
D | DisplayPolicyLayoutTests.java | 25 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()
|
D | DisplayPolicyTests.java | 231 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/ |
D | WindowUtils.java | 53 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/ |
D | RotationUtils.java | 32 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/ |
D | RotationButtonController.java | 354 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/ |
D | PerimeterPathGuide.java | 22 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/ |
D | SeamlessRotator.java | 20 import static android.view.Surface.ROTATION_90; 52 final boolean flipped = info.rotation == ROTATION_90 || info.rotation == ROTATION_270; in SeamlessRotator()
|
D | DisplayFrames.java | 21 import static android.view.Surface.ROTATION_90; 135 case ROTATION_90: in onBeginLayout()
|
D | DisplayRotation.java | 179 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()
|
D | CircularDisplayMask.java | 110 case Surface.ROTATION_90: in drawIfNeeded()
|
/frameworks/base/core/proto/android/view/ |
D | surface.proto | 24 ROTATION_90 = 1; enumerator
|
/frameworks/base/core/java/android/view/ |
D | Surface.java | 154 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/ |
D | RotationHelper.java | 99 case Surface.ROTATION_90: in publishRotation()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GetBitmapSurfaceViewActivity.java | 106 case Surface.ROTATION_90: in setCameraDisplayOrientation()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 392 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayLocked() 434 } else if (orientation == Surface.ROTATION_90) { in configureDisplayLocked()
|
D | DisplayDevice.java | 232 boolean isRotated = (mCurrentOrientation == Surface.ROTATION_90 in populateViewportLocked()
|