Home
last modified time | relevance | path

Searched refs:ROTATION_0 (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DDebugTest.java54 CommonTransitions.openAppCold(testApp, uiDevice, Surface.ROTATION_0) in openAppCold()
63 CommonTransitions.openAppWarm(testApp, uiDevice, Surface.ROTATION_0) in openAppWarm()
72 CommonTransitions.changeAppRotation(testApp, uiDevice, Surface.ROTATION_0, in changeOrientationFromNaturalToLeft()
117 CommonTransitions.resizeSplitScreen(testApp, bottomApp, uiDevice, Surface.ROTATION_0, in resizeSplitScreen()
130 CommonTransitions.editTextSetFocus(testApp, uiDevice, Surface.ROTATION_0) in editTextSetFocus()
141 CommonTransitions.editTextLoseFocusToHome(testApp, uiDevice, Surface.ROTATION_0) in editTextLoseFocusToHome()
152 CommonTransitions.editTextLoseFocusToHome(testApp, uiDevice, Surface.ROTATION_0) in editTextLoseFocusToApp()
DCommonTransitions.java65 case Surface.ROTATION_0: in setRotation()
137 .runAfterAll(() -> setRotation(device, Surface.ROTATION_0)) in openAppCold()
153 .runAfterAll(() -> setRotation(device, Surface.ROTATION_0)) in changeAppRotation()
175 .runAfterAll(() -> setRotation(device, Surface.ROTATION_0)) in changeAppRotation()
DNonRotationTestBase.java46 {Surface.ROTATION_0, Surface.ROTATION_90}; in getParams()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DDisplayRotationUtilTest.java23 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()
DCoordinateTransformsTest.java19 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()
DInsetUtilsTest.java20 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/
DDisplayRotationUtil.java20 import static android.view.Surface.ROTATION_0;
41 case ROTATION_0: in getRotationToBoundsOffset()
78 if (rotation == ROTATION_0) { in getRotatedBounds()
DCoordinateTransforms.java19 import static android.view.Surface.ROTATION_0;
47 case ROTATION_0: in transformPhysicalToLogicalCoordinates()
77 case ROTATION_0: in transformLogicalToPhysicalCoordinates()
/frameworks/native/libs/ui/include/ui/
DRotation.h26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable
46 case ROTATION_0: in toCString()
DDisplayState.h34 Rotation orientation = ROTATION_0;
/frameworks/native/libs/ui/include_vndk/ui/
DRotation.h26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable
46 case ROTATION_0: in toCString()
DDisplayState.h34 Rotation orientation = ROTATION_0;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DRotationButtonController.java282 if (windowRotation == Surface.ROTATION_0 || windowRotation == Surface.ROTATION_180) { in onRotationProposal()
374 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW()
375 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW()
376 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW()
377 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW()
380 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW()
383 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_0) return false; in isRotationAnimationCCW()
/frameworks/base/core/java/android/hardware/camera2/params/
DOutputConfiguration.java101 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/core/java/android/util/
DRotationUtils.java19 import static android.view.Surface.ROTATION_0;
43 case ROTATION_0: in rotateInsets()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wm/
DDisplayLayoutTest.java20 import static android.view.Surface.ROTATION_0;
49 DisplayInfo info = createDisplayInfo(1000, 1500, 0, ROTATION_0); in testInsets()
60 info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testInsets()
87 DisplayInfo info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testRotate()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java256 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation( in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape()
283 ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, Surface.ROTATION_0)); in testReturnsPortrait_UserRotationLockedPortrait_AppRequestsPortrait()
296 ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT, Surface.ROTATION_0)); in testReturnsUpsideDown_UserRotationLockedUpsideDown_AppRequestsUpsideDown()
477 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsSensorRotation_RotationThawed()
528 Surface.ROTATION_0); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed()
546 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsUserRotation_SensorEnabled_RotationLocked()
557 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation(SCREEN_ORIENTATION_PORTRAIT, in testReturnsUserRotation_ForceDefaultRotation_Car()
566 assertEquals(Surface.ROTATION_0, mTarget.rotationForOrientation(SCREEN_ORIENTATION_PORTRAIT, in testReturnsUserRotation_ForceDefaultRotation_Tv()
581 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsLidOpenRotation_LidOpen()
633 SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_0)); in testReturnsUserRotation_NonDefaultDisplay()
[all …]
DDisplayPolicyInsetsTests.java19 import static android.view.Surface.ROTATION_0;
47 final DisplayInfo di = displayInfoForRotation(ROTATION_0, false /* withCutout */); in portrait()
56 final DisplayInfo di = displayInfoForRotation(ROTATION_0, true /* withCutout */); in portrait_withCutout()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java46 private static int sDeviceRotation = Surface.ROTATION_0; // R/W synchronized on sRotationLock
97 case Surface.ROTATION_0: in publishRotation()
/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.java19 import static android.view.Surface.ROTATION_0;
83 private int mRotation = ROTATION_0;
110 case ROTATION_0: in setRotation()
/frameworks/native/services/surfaceflinger/
DDisplayDevice.h175 ui::Rotation mOrientation = ui::ROTATION_0;
206 ui::Rotation orientation = ui::ROTATION_0;
230 ui::Rotation physicalOrientation{ui::ROTATION_0};
319 case ui::ROTATION_0: in applyDeviceOrientation()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/sidecar/
DSidecarHelper.java20 import static android.view.Surface.ROTATION_0;
61 case ROTATION_0: in rotateBounds()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotation.java180 private int mUserRotation = Surface.ROTATION_0;
262 return Surface.ROTATION_0; in readRotation()
288 mLandscapeRotation = Surface.ROTATION_0; in configure()
298 mPortraitRotation = Surface.ROTATION_0; in configure()
772 if (userRotation < Surface.ROTATION_0 || userRotation > Surface.ROTATION_270) { in restoreSettings()
775 userRotation = Surface.ROTATION_0; in restoreSettings()
1245 return Surface.ROTATION_0; in rotationForOrientation()
1400 Settings.System.USER_ROTATION, Surface.ROTATION_0, in updateSettings()
/frameworks/base/core/proto/android/view/
Dsurface.proto23 ROTATION_0 = 0; enumerator

1234