/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | DisplayRotationUtilTest.java | 23 import static android.view.Surface.ROTATION_0; 53 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_LEFT, ROTATION_0), in testGetBoundIndexFromRotation_rot0() 55 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_TOP, ROTATION_0), in testGetBoundIndexFromRotation_rot0() 57 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_RIGHT, ROTATION_0), in testGetBoundIndexFromRotation_rot0() 59 assertThat(getBoundIndexFromRotation(BOUNDS_POSITION_BOTTOM, ROTATION_0), in testGetBoundIndexFromRotation_rot0() 104 assertThat(util.getRotatedBounds(bounds, ROTATION_0, 200, 300), in testGetRotatedBounds_top_rot0() 136 assertThat(util.getRotatedBounds(bounds, ROTATION_0, 300, 200), in testGetRotatedBounds_left_rot0()
|
D | CoordinateTransformsTest.java | 19 import static android.view.Surface.ROTATION_0; 66 transformPhysicalToLogicalCoordinates(ROTATION_0, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot0() 96 transformLogicalToPhysicalCoordinates(ROTATION_0, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot0() 126 transformLogicalToPhysicalCoordinates(ROTATION_0, W, H, mMatrix); in transformLogicalToPhysicalCoordinatesIsInverse_rot0() 127 transformPhysicalToLogicalCoordinates(ROTATION_0, W, H, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot0()
|
D | InsetUtilsTest.java | 20 import static android.view.Surface.ROTATION_0; 53 assertEquals("rot0", original, rotateCopy(original, ROTATION_0)); in rotate()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | DisplayRotationUtil.java | 20 import static android.view.Surface.ROTATION_0; 41 case ROTATION_0: in getRotationToBoundsOffset() 78 if (rotation == ROTATION_0) { in getRotatedBounds()
|
D | CoordinateTransforms.java | 19 import static android.view.Surface.ROTATION_0; 47 case ROTATION_0: in transformPhysicalToLogicalCoordinates() 77 case ROTATION_0: in transformLogicalToPhysicalCoordinates()
|
D | InsetUtils.java | 43 case Surface.ROTATION_0: in rotateInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | RotationButtonController.java | 275 if (windowRotation == Surface.ROTATION_0 || windowRotation == Surface.ROTATION_180) { in onRotationProposal() 354 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW() 355 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW() 356 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW() 357 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW() 360 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW() 363 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_0) return false; in isRotationAnimationCCW()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | OutputConfiguration.java | 101 public static final int ROTATION_0 = 0; field in OutputConfiguration 146 this(SURFACE_GROUP_ID_NONE, surface, ROTATION_0); in OutputConfiguration() 205 this(surfaceGroupId, surface, ROTATION_0); in OutputConfiguration() 255 checkArgumentInRange(rotation, ROTATION_0, ROTATION_270, "Rotation constant"); in OutputConfiguration() 314 mRotation = ROTATION_0; in OutputConfiguration() 547 checkArgumentInRange(rotation, ROTATION_0, ROTATION_270, "Rotation constant"); in OutputConfiguration()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | RotationHelper.java | 46 private static int sDeviceRotation = Surface.ROTATION_0; // R/W synchronized on sRotationLock 96 case Surface.ROTATION_0: in publishRotation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 53 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getWidth() 73 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getHeight()
|
D | PerimeterPathGuide.java | 19 import static android.view.Surface.ROTATION_0; 83 private int mRotation = ROTATION_0; 110 case ROTATION_0: in setRotation()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyInsetsTests.java | 19 import static android.view.Surface.ROTATION_0; 45 final DisplayInfo di = displayInfoForRotation(ROTATION_0, false /* withCutout */); in portrait() 54 final DisplayInfo di = displayInfoForRotation(ROTATION_0, true /* withCutout */); in portrait_withCutout()
|
D | DisplayRotationTests.java | 428 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsSensorRotation_RotationThawed() 479 Surface.ROTATION_0); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed() 497 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsUserRotation_SensorEnabled_RotationLocked() 508 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation(SCREEN_ORIENTATION_PORTRAIT, in testReturnsUserRotation_ForceDefaultRotation_Car() 517 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation(SCREEN_ORIENTATION_PORTRAIT, in testReturnsUserRotation_ForceDefaultRotation_Tv() 532 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsLidOpenRotation_LidOpen() 584 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsUserRotation_NonDefaultDisplay() 767 case Surface.ROTATION_0: in convertRotationToDegrees()
|
D | DisplayPolicyTestsBase.java | 24 import static android.view.Surface.ROTATION_0; 139 case ROTATION_0: in displayCutoutForRotation()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotation.java | 96 private int mUserRotation = Surface.ROTATION_0; 177 return Surface.ROTATION_0; in readRotation() 194 mLandscapeRotation = Surface.ROTATION_0; in configure() 204 mPortraitRotation = Surface.ROTATION_0; in configure() 278 if (userRotation < Surface.ROTATION_0 || userRotation > Surface.ROTATION_270) { in restoreSettings() 281 userRotation = Surface.ROTATION_0; in restoreSettings() 701 return Surface.ROTATION_0; in rotationForOrientation() 856 Settings.System.USER_ROTATION, Surface.ROTATION_0, in updateSettings()
|
D | DisplayWindowSettings.java | 103 private int mUserRotation = Surface.ROTATION_0; 145 && mUserRotation == Surface.ROTATION_0 in isEmpty() 542 Surface.ROTATION_0); in readDisplay() 618 if (entry.mUserRotation != Surface.ROTATION_0) { in writeSettings()
|
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/ |
D | WindowUtils.java | 93 if (requestedRotation == Surface.ROTATION_0 || requestedRotation == Surface.ROTATION_180) { in getStatusBarPosition() 113 if (requestedRotation == Surface.ROTATION_0 || requestedRotation == Surface.ROTATION_180) { in getNavigationBarPosition()
|
D | AutomationUtils.java | 21 import static android.view.Surface.ROTATION_0; 100 navBarVisibleBounds = WindowUtils.getNavigationBarPosition(ROTATION_0); in openQuickstep()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 279 mBaseDisplayInfo.rotation = Surface.ROTATION_0; in updateLocked() 379 int orientation = Surface.ROTATION_0; in configureDisplayLocked() 432 if (orientation == Surface.ROTATION_0) { in configureDisplayLocked()
|
/frameworks/base/core/proto/android/view/ |
D | surface.proto | 23 ROTATION_0 = 0; enumerator
|
/frameworks/base/core/java/android/view/ |
D | Surface.java | 153 ROTATION_0, 164 public static final int ROTATION_0 = 0; field in Surface 846 case Surface.ROTATION_0: { in rotationToString()
|
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ |
D | CommonTransitions.java | 64 case Surface.ROTATION_0: in setRotation() 153 .runAfterAll(() -> setRotation(device, Surface.ROTATION_0)) in changeAppRotation() 174 .runAfterAll(() -> setRotation(device, Surface.ROTATION_0)) in changeAppRotation()
|
D | DebugTest.java | 62 CommonTransitions.changeAppRotation(testApp, uiDevice, Surface.ROTATION_0, in changeOrientationFromNaturalToLeft()
|
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | CameraView.java | 170 int jpegRotation = Surface.ROTATION_0; in takePicture() 173 jpegRotation = Surface.ROTATION_0; in takePicture()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | CameraView.java | 171 int jpegRotation = Surface.ROTATION_0; in takePicture() 174 jpegRotation = Surface.ROTATION_0; in takePicture()
|