/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SizeCompatTests.java | 23 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 157 prepareUnresizable(mActivity, -1.f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testKeepBoundsWhenChangingFromFreeformToFullscreen() 225 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 264 prepareUnresizable(mActivity, -1f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testFixedScreenBoundsWhenDisplaySizeChanged() 401 prepareUnresizable(mActivity, -1.f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testMoveToDifferentOrientationDisplay() 454 prepareUnresizable(mActivity, 1.4f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testFixedOrientationRotateCutoutDisplay() 491 prepareUnresizable(mActivity, maxAspect, SCREEN_ORIENTATION_PORTRAIT); in testFixedAspectRatioOrientationChangeOrientation() 589 prepareUnresizable(mActivity, -1.f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testHandleActivitySizeCompatModeChanged() 622 prepareUnresizable(mActivity, -1.f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testHandleActivitySizeCompatModeChangedOnDifferentTask() 642 prepareUnresizable(secondActivity, -1.f /* maxAspect */, SCREEN_ORIENTATION_PORTRAIT); in testHandleActivitySizeCompatModeChangedOnDifferentTask() [all …]
|
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()
|
D | DisplayRotationTests.java | 20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 283 ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, Surface.ROTATION_0)); in testReturnsPortrait_UserRotationLockedPortrait_AppRequestsPortrait() 308 ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, Surface.ROTATION_90); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest() 333 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_AutoRotationNotSupported() 348 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_ScreenNotOn() 363 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_NotAwake() 378 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_KeyguardNotDrawnCompletely() 393 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_WindowManagerNotDrawnCompletely() 408 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testNotEnablesSensor_FixedUserRotation() 468 configureDisplayRotation(SCREEN_ORIENTATION_PORTRAIT, false, false); in testReturnsSensorRotation_RotationThawed() [all …]
|
D | DualDisplayAreaGroupPolicyTest.java | 20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 124 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 127 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 147 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testNotIgnoreOrientationRequest_onlyRespectsFocusedTaskDisplayArea() 168 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT); in testLaunchPortraitApp_fillsDisplayAreaGroup() 186 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT); in testLaunchPortraitApp_sizeCompatAfterRotation() 355 prepareLimitedBounds(mFirstActivity, SCREEN_ORIENTATION_PORTRAIT, in testResizableFixedOrientationApp_fixedOrientationLetterboxing() 371 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_PORTRAIT); in testResizableFixedOrientationApp_fixedOrientationLetterboxing()
|
D | TaskTests.java | 31 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 508 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testFullscreenBoundsForcedOrientation() 510 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getRootActivity().getOrientation()); in testFullscreenBoundsForcedOrientation() 578 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testReportsOrientationRequestInLetterboxForOrientation() 582 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getOrientation()); in testReportsOrientationRequestInLetterboxForOrientation() 611 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testIgnoresForcedOrientationWhenParentHandles() 613 assertEquals(SCREEN_ORIENTATION_PORTRAIT, task.getRootActivity().getOrientation()); in testIgnoresForcedOrientationWhenParentHandles() 1309 secondActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testNotSpecifyOrientation_taskDisplayAreaNotFocused() 1327 assertEquals(SCREEN_ORIENTATION_PORTRAIT, secondTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
|
D | TaskLaunchParamsModifierTests.java | 29 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 528 ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE; in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() 772 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testLaunchesPortraitSizeCompatOnFreeformLandscapeDisplayWithFreeformSizeCompat() 807 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testLaunchesPortraitUnresizableOnFreeformDisplayWithFreeformSizeCompat() 1270 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testRespectsAppRequestedOrientation_Portrait() 1275 assertEquals(SCREEN_ORIENTATION_PORTRAIT, orientationFromBounds(mResult.mBounds)); in testRespectsAppRequestedOrientation_Portrait() 1477 mActivity.info.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testRotatesInPlaceInitialBoundsMismatchOrientation() 1734 : SCREEN_ORIENTATION_PORTRAIT; in orientationFromBounds()
|
D | WindowContainerTests.java | 22 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 625 visibleUnspecifiedRootChildChildFillsParent.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testGetOrientation_fillsParent() 626 assertEquals(SCREEN_ORIENTATION_PORTRAIT, in testGetOrientation_fillsParent() 633 assertEquals(SCREEN_ORIENTATION_PORTRAIT, visibleUnspecifiedRootChild.getOrientation()); in testGetOrientation_fillsParent() 634 assertEquals(SCREEN_ORIENTATION_PORTRAIT, root.getOrientation()); in testGetOrientation_fillsParent() 643 child.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testSetOrientation()
|
D | TaskStackChangedListenerTest.java | 205 assertEquals(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT, params[1]); in testActivityRequestedOrientationChanged() 478 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onPostResume()
|
D | ConfigurationContainerTests.java | 26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 158 childOverrideConfig2.orientation = SCREEN_ORIENTATION_PORTRAIT; in testConfigurationChangePropagation()
|
D | RecentsAnimationControllerTest.java | 338 homeActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testRecentViewInFixedPortraitWhenTopAppInLandscape() 378 homeActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in prepareFixedRotationLaunchingAppWithRecentsAnim() 448 homeActivity.setOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testWallpaperHasFixedRotationApplied()
|
D | DisplayContentTests.java | 26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 812 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testOrientationDefinedByKeyguard() 816 SCREEN_ORIENTATION_PORTRAIT, dc.getOrientation()); in testOrientationDefinedByKeyguard() 975 rootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testAllowsTopmostFullscreenOrientation() 976 assertEquals(SCREEN_ORIENTATION_PORTRAIT, dc.getOrientation()); in testAllowsTopmostFullscreenOrientation() 979 freeformRootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testAllowsTopmostFullscreenOrientation() 1557 recentsActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testRecentsNotRotatingWithFixedRotation() 2313 ? SCREEN_ORIENTATION_PORTRAIT in getRotatedOrientation()
|
D | RootTaskTests.java | 31 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 143 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testClosingAppDifferentTaskOrientation() 146 assertEquals(SCREEN_ORIENTATION_PORTRAIT, parent.getOrientation()); in testClosingAppDifferentTaskOrientation() 157 activity2.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testMoveTaskToBackDifferentTaskOrientation() 160 assertEquals(SCREEN_ORIENTATION_PORTRAIT, parent.getOrientation()); in testMoveTaskToBackDifferentTaskOrientation()
|
D | DisplayAreaTest.java | 20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 508 activity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testSetIgnoreOrientationRequest_notCallSuperOnDescendantOrientationChanged()
|
D | ActivityRecordTests.java | 32 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 498 requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; in testSetRequestedOrientationUpdatesConfiguration() 546 isScreenPortrait ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE); in ignoreRequestedOrientationInFreeformWindows() 590 ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE); in ignoreRequestedOrientationForResizableInSplitWindows() 607 .setScreenOrientation(SCREEN_ORIENTATION_PORTRAIT) in respectRequestedOrientationForNonResizableInSplitWindows() 1877 : SCREEN_ORIENTATION_PORTRAIT; in setRotatedScreenOrientationSilently() 2418 activity.setOrientation(SCREEN_ORIENTATION_PORTRAIT); in testRespectTopFullscreenOrientation()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 579 SCREEN_ORIENTATION_PORTRAIT, 620 public static final int SCREEN_ORIENTATION_PORTRAIT = 1; field in ActivityInfo 1280 return orientation == SCREEN_ORIENTATION_PORTRAIT in isFixedOrientationPortrait() 1294 return SCREEN_ORIENTATION_PORTRAIT; in reverseOrientation() 1295 case SCREEN_ORIENTATION_PORTRAIT: in reverseOrientation() 1609 case SCREEN_ORIENTATION_PORTRAIT: in screenOrientationToString()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | OrientationUtil.java | 37 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewAttachTest.java | 55 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testAttached()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskLaunchParamsModifier.java | 27 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 665 case SCREEN_ORIENTATION_PORTRAIT: in resolveOrientation() 667 orientation = SCREEN_ORIENTATION_PORTRAIT; in resolveOrientation() 708 if (orientation != SCREEN_ORIENTATION_PORTRAIT in getTaskBounds() 751 return SCREEN_ORIENTATION_PORTRAIT; in convertOrientationToScreenOrientation() 773 orientation = bounds.isEmpty() ? SCREEN_ORIENTATION_PORTRAIT in resolveOrientation() 1073 : SCREEN_ORIENTATION_PORTRAIT;
|
D | DisplayRotation.java | 1229 && orientation != ActivityInfo.SCREEN_ORIENTATION_PORTRAIT in rotationForOrientation() 1248 case ActivityInfo.SCREEN_ORIENTATION_PORTRAIT: in rotationForOrientation()
|
/frameworks/base/core/proto/android/content/ |
D | activityinfo.proto | 26 SCREEN_ORIENTATION_PORTRAIT = 1; enumerator
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; 264 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testPortraitDoesntSupportFullscreenIme()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | MainActivity.kt | 88 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) in rotate90()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
D | VrActivity.java | 116 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onPostExecute()
|
/frameworks/base/core/api/ |
D | current.txt | 11881 field public static final int SCREEN_ORIENTATION_PORTRAIT = 1; // 0x1
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 8330 field public static final int SCREEN_ORIENTATION_PORTRAIT = 1; // 0x1
|