Home
last modified time | relevance | path

Searched refs:SCREEN_ORIENTATION_PORTRAIT (Results 1 – 25 of 33) sorted by relevance

12

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDisplayRotationCompatPolicyTests.java140 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 DSizeCompatTests.java194 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 DDisplayRotationTests.java22 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 DDisplayAreaGroupTest.java20 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 DLetterboxUiControllerTest.java37 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 DDualDisplayAreaGroupPolicyTest.java22 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 DTaskTests.java31 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 DTaskStackChangedListenerTest.java194 assertEquals(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, params[1]); in testActivityRequestedOrientationChanged()
462 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onPostResume()
H A DSurfaceControlTests.java156 : ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testSurfaceChangedOnRotation()
H A DTaskLaunchParamsModifierTests.java29 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 DConfigurationContainerTests.java27 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
159 childOverrideConfig2.orientation = SCREEN_ORIENTATION_PORTRAIT; in testConfigurationChangePropagation()
H A DWindowContainerTests.java22 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 DTaskDisplayAreaTests.java34 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 DRootTaskTests.java30 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 DDisplayContentTests.java28 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 DImeActivityAutoFocus.java19 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 DActivityInfo.java680 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 DTaskLaunchParamsModifier.java27 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 DDisplayRotationCompatPolicy.java26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
195 ? SCREEN_ORIENTATION_PORTRAIT in getOrientationInternal()
H A DLetterboxUiController.java38 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 DOrientationUtil.java37 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DViewAttachTest.java55 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testAttached()
/aosp14/frameworks/base/core/proto/android/content/
H A Dactivityinfo.proto26 SCREEN_ORIENTATION_PORTRAIT = 1; enumerator
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
H A DMainActivity.kt88 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewTest.java20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
275 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testPortraitDoesntSupportFullscreenIme()

12