/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/native/include/ui/ |
D | Rotation.h | 26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable 50 return ROTATION_0 - rotation; 55 case ROTATION_0: in toCString()
|
D | Transform.h | 142 case ROTATION_0: in toRotationFlags() 158 return ROTATION_0; in toRotation() 166 return ROTATION_0; in toRotation()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rotation.h | 26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable 50 return ROTATION_0 - rotation; 55 case ROTATION_0: in toCString()
|
D | Transform.h | 142 case ROTATION_0: in toRotationFlags() 158 return ROTATION_0; in toRotation() 166 return ROTATION_0; in toRotation()
|
/frameworks/native/libs/ui/include/ui/ |
D | Rotation.h | 26 constexpr auto ROTATION_0 = Rotation::Rotation0; variable 50 return ROTATION_0 - rotation; 55 case ROTATION_0: in toCString()
|
D | Transform.h | 142 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/ |
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()
|
/frameworks/base/core/java/android/util/ |
D | RotationUtils.java | 19 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/ |
D | PipAnimationControllerTest.java | 20 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/ |
D | TvPipTestBase.kt | 23 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/ |
D | CloseImeWindowToHomeTest.kt | 122 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()
|
D | CloseImeAutoOpenWindowToHomeTest.kt | 112 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/ |
D | DisplayLayoutTest.java | 20 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/ |
D | DisplayTest.java | 20 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/ |
D | PipTransition.kt | 104 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>()
|
D | PipCloseTransition.kt | 41 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/ |
D | RotationButtonController.java | 315 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/ |
D | CloseAppTransition.kt | 94 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/ |
D | DisplayRotationTests.java | 256 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/ |
D | RotationHelper.java | 46 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/ |
D | OpenAppTransition.kt | 87 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()
|