Home
last modified time | relevance | path

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

1234567

/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/native/include/ui/
DRotation.h26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable
50 return ROTATION_0 - rotation;
55 case ROTATION_0: in toCString()
DTransform.h142 case ROTATION_0: in toRotationFlags()
158 return ROTATION_0; in toRotation()
166 return ROTATION_0; in toRotation()
/frameworks/native/libs/ui/include_vndk/ui/
DRotation.h26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable
50 return ROTATION_0 - rotation;
55 case ROTATION_0: in toCString()
DTransform.h142 case ROTATION_0: in toRotationFlags()
158 return ROTATION_0; in toRotation()
166 return ROTATION_0; in toRotation()
/frameworks/native/libs/ui/include/ui/
DRotation.h26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable
50 return ROTATION_0 - rotation;
55 case ROTATION_0: in toCString()
DTransform.h142 case ROTATION_0: in toRotationFlags()
158 return ROTATION_0; in toRotation()
166 return ROTATION_0; in toRotation()
/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/base/core/java/android/util/
DRotationUtils.java19 import static android.view.Surface.ROTATION_0;
46 case ROTATION_0: in rotateInsets()
100 case ROTATION_0: in rotateBounds()
140 case ROTATION_0: in transformPhysicalToLogicalCoordinates()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipAnimationControllerTest.java20 import static android.view.Surface.ROTATION_0;
92 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in getAnimator_withBounds_returnBoundsAnimator()
106 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in getAnimator_whenSameTypeRunning_updateExistingAnimator()
112 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in getAnimator_whenSameTypeRunning_updateExistingAnimator()
172 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in pipTransitionAnimator_updateEndValue()
186 TRANSITION_DIRECTION_TO_PIP, 0, ROTATION_0); in pipTransitionAnimator_setPipAnimationCallback()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvPipTestBase.kt23 import android.view.Surface.ROTATION_0
33 abstract class TvPipTestBase : PipTestBase(rotationToString(ROTATION_0), ROTATION_0) {
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/ime/
DCloseImeWindowToHomeTest.kt122 Surface.ROTATION_0) in imeWindowBecomesInvisible()
135 testSpec.navBarLayerRotatesAndScales(testSpec.config.startRotation, Surface.ROTATION_0) in imeWindowBecomesInvisible()
140 testSpec.statusBarLayerRotatesScales(testSpec.config.startRotation, Surface.ROTATION_0) in imeWindowBecomesInvisible()
159 supportedRotations = listOf(Surface.ROTATION_0), in getParams()
DCloseImeAutoOpenWindowToHomeTest.kt112 Surface.ROTATION_0) in imeWindowBecomesInvisible()
125 testSpec.navBarLayerRotatesAndScales(testSpec.config.startRotation, Surface.ROTATION_0) in imeWindowBecomesInvisible()
131 testSpec.statusBarLayerRotatesScales(testSpec.config.startRotation, Surface.ROTATION_0) in statusBarLayerRotatesScales()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayLayoutTest.java20 import static android.view.Surface.ROTATION_0;
54 DisplayInfo info = createDisplayInfo(1000, 1500, 0, ROTATION_0); in testInsets()
65 info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testInsets()
80 DisplayInfo info = createDisplayInfo(1000, 1500, 60, ROTATION_0); in testRotate()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java20 import static android.view.Surface.ROTATION_0;
107 mDisplayInfo.rotation = ROTATION_0; in setupTests()
150 assertThat(display.getRotation()).isEqualTo(ROTATION_0); in testGetRotation_defaultDisplayAdjustments_rotationNotAdjusted()
167 assertThat(display.getRotation()).isEqualTo(ROTATION_0); in testGetRotation_displayAdjustmentsWithoutOverride_rotationNotAdjusted()
180 assertThat(display.getRotation()).isEqualTo(ROTATION_0); in testGetRotation_resourcesWithoutOverride_rotationNotAdjusted()
241 setFixedRotationAdjustments(mApplicationContext.getResources(), ROTATION_0); in testGetRealSize_resourcesPortraitWithFixedRotation_notRotatedLogicalSize() local
267 setOverrideFixedRotationAdjustments(mApplicationContext.getResources(), ROTATION_0); in testGetRealSize_resourcesWithPortraitOverrideRotation_rotatedLogicalSize() local
387 setFixedRotationAdjustments(mApplicationContext.getResources(), ROTATION_0); in testGetRealMetrics_resourcesPortraitWithFixedRotation_notRotatedLogicalSize() local
413 setOverrideFixedRotationAdjustments(mApplicationContext.getResources(), ROTATION_0); in testGetRealMetrics_resourcesWithPortraitOverrideRotation_rotatedLogicalSize() local
508 displayInfo.rotation = ROTATION_0; in setDisplayInfoPortrait()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/
DPipTransition.kt104 setRotation(Surface.ROTATION_0) in <lambda>()
182 testSpec.navBarLayerRotatesAndScales(testSpec.config.startRotation, Surface.ROTATION_0) in <lambda>()
187 testSpec.statusBarLayerRotatesScales(testSpec.config.startRotation, Surface.ROTATION_0) in <lambda>()
192 testSpec.noUncoveredRegions(testSpec.config.startRotation, Surface.ROTATION_0) in <lambda>()
DPipCloseTransition.kt41 this.setRotation(Surface.ROTATION_0) in <lambda>()
75 .getConfigNonRotationTests(supportedRotations = listOf(Surface.ROTATION_0), in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DRotationButtonController.java315 if (windowRotation == Surface.ROTATION_0 || windowRotation == Surface.ROTATION_180) { in onRotationProposal()
436 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW()
437 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW()
438 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW()
439 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW()
442 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW()
445 if (from == Surface.ROTATION_270 && to == Surface.ROTATION_0) return false; in isRotationAnimationCCW()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/close/
DCloseAppTransition.kt94 testSpec.navBarLayerRotatesAndScales(testSpec.config.startRotation, Surface.ROTATION_0) in navBarLayerRotatesAndScales()
100 testSpec.statusBarLayerRotatesScales(testSpec.config.startRotation, Surface.ROTATION_0) in statusBarLayerRotatesScales()
122 testSpec.noUncoveredRegions(testSpec.config.startRotation, Surface.ROTATION_0) in noUncoveredRegions()
/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 …]
/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/tests/FlickerTests/src/com/android/server/wm/flicker/launch/
DOpenAppTransition.kt87 testSpec.navBarLayerRotatesAndScales(Surface.ROTATION_0, testSpec.config.endRotation) in navBarLayerRotatesAndScales()
105 testSpec.statusBarLayerRotatesScales(Surface.ROTATION_0, testSpec.config.endRotation) in statusBarLayerRotatesScales()
128 testSpec.noUncoveredRegions(Surface.ROTATION_0, testSpec.config.endRotation) in noUncoveredRegions()

1234567