/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayRotationCompatPolicyTests.java | 140 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testOpenedCameraInSplitScreen_showToast() 201 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testOnScreenRotationAnimationFinished_notFullscreen_doNotShowToast() 227 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testOnScreenRotationAnimationFinished_showToast() 242 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testTreatmentNotEnabled_noForceRotationOrRefresh() 256 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testTreatmentDisabledViaDeviceConfig_noForceRotationOrRefresh() 265 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testTreatmentDisabledPerApp_noForceRotationOrRefresh() 276 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testMultiWindowMode_returnUnspecified_noForceRotationOrRefresh() 316 configureActivity(SCREEN_ORIENTATION_PORTRAIT); in testIgnoreOrientationRequestIsFalse_noForceRotationOrRefresh() 360 SCREEN_ORIENTATION_PORTRAIT); in testCameraReconnected_forceRotationAndRefresh() local 374 SCREEN_ORIENTATION_PORTRAIT); in testReconnectedToDifferentCamera_forceRotationAndRefresh() local [all …]
|
H A D | SizeCompatTests.java | 194 prepareUnresizable(mActivity, SCREEN_ORIENTATION_PORTRAIT); in testCleanLetterboxConfigListenerWhenTranslucentIsDestroyed() 199 .setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT) in testCleanLetterboxConfigListenerWhenTranslucentIsDestroyed() 220 prepareUnresizable(mActivity, SCREEN_ORIENTATION_PORTRAIT); in testHorizontalReachabilityEnabledForTranslucentActivities() 227 .setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT) in testHorizontalReachabilityEnabledForTranslucentActivities() 369 .setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT) in testApplyStrategyAgainWhenOpaqueIsDestroyed() 378 .setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT) in testApplyStrategyAgainWhenOpaqueIsDestroyed() 406 .setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT) in testResetOpaqueReferenceWhenOpaqueIsDestroyed() 2352 SCREEN_ORIENTATION_PORTRAIT, 2364 SCREEN_ORIENTATION_PORTRAIT, 2373 SCREEN_ORIENTATION_PORTRAIT, [all …]
|
H A D | DisplayRotationTests.java | 22 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 366 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_AutoRotationNotSupported() 381 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_ScreenNotOn() 396 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_NotAwake() 411 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_KeyguardNotDrawnCompletely() 426 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_WindowManagerNotDrawnCompletely() 441 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_FixedUserRotation() 505 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testReturnsSensorRotation_RotationThawed() 520 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testReverseRotation() 579 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testUpdatesRotationWhenSensorUpdates_RotationThawed() [all …]
|
H A D | DisplayAreaGroupTest.java | 20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 91 activity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testGetRequestedOrientationForDisplay() 96 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testGetRequestedOrientationForDisplay() 110 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testGetRequestedOrientationForDisplay()
|
H A D | LetterboxUiControllerTest.java | 37 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 670 mController.overrideOrientationIfNeeded(SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_mapInvokedOnRequest() 672 verify(mWm).mapOrientationRequest(SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_mapInvokedOnRequest() 680 /* candidate */ SCREEN_ORIENTATION_UNSPECIFIED), SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_portraitOverrideEnabled_returnsPortrait() local 694 /* candidate */ SCREEN_ORIENTATION_PORTRAIT), SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_nosensorOverride_orientationFixed_returnsUnchanged() local 701 /* candidate */ SCREEN_ORIENTATION_PORTRAIT), SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_reverseLandscapeOverride_orientationPortraitOrUndefined_returnsUnchanged() local 725 /* candidate */ SCREEN_ORIENTATION_NOSENSOR), SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_portraitAndIgnoreFixedOverrides_returnsPortrait() local 732 /* candidate */ SCREEN_ORIENTATION_PORTRAIT), SCREEN_ORIENTATION_NOSENSOR); in testOverrideOrientationIfNeeded_noSensorAndIgnoreFixedOverrides_returnsNosensor() 803 /* candidate */ SCREEN_ORIENTATION_PORTRAIT), SCREEN_ORIENTATION_USER); in testOverrideOrientationIfNeeded_userFullScreenOverrideOverSystem_returnsUser() 812 /* candidate */ SCREEN_ORIENTATION_PORTRAIT), SCREEN_ORIENTATION_PORTRAIT); in testOverrideOrientationIfNeeded_userFullScreenOverrideDisabled_returnsUnchanged() local [all …]
|
H A D | DualDisplayAreaGroupPolicyTest.java | 22 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 136 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 139 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 159 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_onlyRespectsFocusedTaskDisplayArea() 204 prepareLimitedBounds(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT, in testLaunchPortraitApp_fillsDisplayAreaGroup() 223 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT); in testLaunchPortraitApp_sizeCompatAfterRotation() 504 prepareLimitedBounds(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT, in testResizableFixedOrientationApp_fixedOrientationLetterboxing() 520 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testResizableFixedOrientationApp_fixedOrientationLetterboxing()
|
H A D | TaskTests.java | 31 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 399 final int orientation = SCREEN_ORIENTATION_PORTRAIT; in testHandlesOrientationChangeFromDescendant() 623 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testFullscreenBoundsForcedOrientation() 625 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getRootActivity().getOrientation()); in testFullscreenBoundsForcedOrientation() 694 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testReportsOrientationRequestInLetterboxForOrientation() 698 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getOrientation()); in testReportsOrientationRequestInLetterboxForOrientation() 728 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testIgnoresForcedOrientationWhenParentHandles() 730 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getRootActivity().getOrientation()); in testIgnoresForcedOrientationWhenParentHandles() 1471 secondActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testNotSpecifyOrientation_taskDisplayAreaNotFocused() 1489 assertEquals(SCREEN_ORIENTATION_PORTRAIT, secondTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
|
H A D | TaskStackChangedListenerTest.java | 194 assertEquals(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, params[1]); in testActivityRequestedOrientationChanged() 462 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onPostResume()
|
H A D | SurfaceControlTests.java | 156 : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testSurfaceChangedOnRotation()
|
H A D | TaskLaunchParamsModifierTests.java | 29 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 599 ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE; in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() 899 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testLaunchesPortraitSizeCompatOnFreeformLandscapeDisplayWithFreeformSizeCompat() 934 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testLaunchesPortraitUnresizableOnFreeformDisplayWithFreeformSizeCompat() 1399 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testRespectsAppRequestedOrientation_Portrait() 1404 assertEquals(SCREEN_ORIENTATION_PORTRAIT, orientationFromBounds(mResult.mBounds)); in testRespectsAppRequestedOrientation_Portrait() 1730 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testRotatesInPlaceInitialBoundsMismatchOrientation() 2005 : SCREEN_ORIENTATION_PORTRAIT; in orientationFromBounds()
|
H A D | ConfigurationContainerTests.java | 27 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 159 childOverrideConfig2.orientation = SCREEN_ORIENTATION_PORTRAIT; in testConfigurationChangePropagation()
|
H A D | WindowContainerTests.java | 22 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 663 visibleUnspecifiedRootChildChildFillsParent.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testGetOrientation_fillsParent() 664 assertEquals(SCREEN_ORIENTATION_PORTRAIT, in testGetOrientation_fillsParent() 671 assertEquals(SCREEN_ORIENTATION_PORTRAIT, visibleUnspecifiedRootChild.getOrientation()); in testGetOrientation_fillsParent() 672 assertEquals(SCREEN_ORIENTATION_PORTRAIT, root.getOrientation()); in testGetOrientation_fillsParent() 786 child.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testSetOrientation() 966 final int orientation = SCREEN_ORIENTATION_PORTRAIT; in testHandlesOrientationChangeFromDescendantProgation()
|
H A D | TaskDisplayAreaTests.java | 34 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 429 final int testOrientation = SCREEN_ORIENTATION_PORTRAIT; in testIsLastFocused() 464 final int testOrientation = SCREEN_ORIENTATION_PORTRAIT; in testCanSpecifyOrientation()
|
H A D | RootTaskTests.java | 30 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 139 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testClosingAppDifferentTaskOrientation() 142 assertEquals(SCREEN_ORIENTATION_PORTRAIT, parent.getOrientation()); in testClosingAppDifferentTaskOrientation() 153 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testMoveTaskToBackDifferentTaskOrientation() 156 assertEquals(SCREEN_ORIENTATION_PORTRAIT, parent.getOrientation()); in testMoveTaskToBackDifferentTaskOrientation()
|
H A D | DisplayContentTests.java | 28 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 928 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testOrientationDefinedByKeyguard() 932 SCREEN_ORIENTATION_PORTRAIT, dc.getOrientation()); in testOrientationDefinedByKeyguard() 1066 rootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testAllowsTopmostFullscreenOrientation() 1067 assertEquals(SCREEN_ORIENTATION_PORTRAIT, dc.getOrientation()); in testAllowsTopmostFullscreenOrientation() 1070 freeformRootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testAllowsTopmostFullscreenOrientation() 1831 recentsActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testRecentsNotRotatingWithFixedRotation() 1900 defaultDisplayRotation.updateOrientation(SCREEN_ORIENTATION_PORTRAIT, false); in testSecondaryInternalDisplayRotationFollowsDefaultDisplay() 2985 ? SCREEN_ORIENTATION_PORTRAIT in getRotatedOrientation()
|
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
H A D | ImeActivityAutoFocus.java | 19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 39 isChecked ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_UNSPECIFIED)); in onStart()
|
/aosp14/frameworks/base/core/java/android/content/pm/ |
H A D | ActivityInfo.java | 680 SCREEN_ORIENTATION_PORTRAIT, 721 public static final int SCREEN_ORIENTATION_PORTRAIT = 1; field in ActivityInfo 1657 return orientation == SCREEN_ORIENTATION_PORTRAIT in isFixedOrientationPortrait() 1671 return SCREEN_ORIENTATION_PORTRAIT; in reverseOrientation() 1672 case SCREEN_ORIENTATION_PORTRAIT: in reverseOrientation() 2010 case SCREEN_ORIENTATION_PORTRAIT: in screenOrientationToString()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | TaskLaunchParamsModifier.java | 27 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 722 case SCREEN_ORIENTATION_PORTRAIT: in resolveOrientation() 724 orientation = SCREEN_ORIENTATION_PORTRAIT; in resolveOrientation() 759 if (orientation != SCREEN_ORIENTATION_PORTRAIT in getTaskBounds() 806 return SCREEN_ORIENTATION_PORTRAIT; in convertOrientationToScreenOrientation() 828 orientation = bounds.isEmpty() ? SCREEN_ORIENTATION_PORTRAIT in resolveOrientation() 1040 : SCREEN_ORIENTATION_PORTRAIT;
|
H A D | DisplayRotationCompatPolicy.java | 26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 195 ? SCREEN_ORIENTATION_PORTRAIT in getOrientationInternal()
|
H A D | LetterboxUiController.java | 38 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 680 + screenOrientationToString(SCREEN_ORIENTATION_PORTRAIT) in overrideOrientationIfNeeded() 682 return SCREEN_ORIENTATION_PORTRAIT; in overrideOrientationIfNeeded() 712 + screenOrientationToString(SCREEN_ORIENTATION_PORTRAIT)); in overrideOrientationIfNeeded() 713 return SCREEN_ORIENTATION_PORTRAIT; in overrideOrientationIfNeeded()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | OrientationUtil.java | 37 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ViewAttachTest.java | 55 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testAttached()
|
/aosp14/frameworks/base/core/proto/android/content/ |
H A D | activityinfo.proto | 26 SCREEN_ORIENTATION_PORTRAIT = 1; enumerator
|
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
H A D | MainActivity.kt | 88 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | TextViewTest.java | 20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 275 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testPortraitDoesntSupportFullscreenIme()
|