/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 239 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsUserRotation_UserRotationLocked_NoAppRequest() 251 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape() 257 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, Surface.ROTATION_90)); in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape() 264 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsSeascape_UserRotationLockedSeascape_AppRequestsSeascape() 277 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsPortrait_UserRotationLockedPortrait_AppRequestsPortrait() 290 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsUpsideDown_UserRotationLockedUpsideDown_AppRequestsUpsideDown() 303 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest() 422 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, true, false); in testNotEnablesSensor_ForceDefaultRotation_Car() 435 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, true); in testNotEnablesSensor_ForceDefaultRotation_Tv() [all …]
|
D | DualDisplayAreaGroupPolicyTest.java | 19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 122 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 129 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest() 140 prepareUnresizable(mSecondActivity, SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_onlyRespectsFocusedTaskDisplayArea() 145 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_onlyRespectsFocusedTaskDisplayArea() 156 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testIgnoreOrientationRequest_displayDoesNotReceiveOrientationChange() 219 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testLaunchLandscapeApp_activityIsLetterboxForFixedOrientationInDisplayAreaGroup() 240 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testLaunchLandscapeApp_fixedOrientationLetterboxBecomesSizeCompatAfterRotation() 359 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testResizableFixedOrientationApp_fixedOrientationLetterboxing() 367 prepareLimitedBounds(mSecondActivity, SCREEN_ORIENTATION_LANDSCAPE, in testResizableFixedOrientationApp_fixedOrientationLetterboxing()
|
D | SizeCompatTests.java | 22 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 214 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 329 prepareUnresizable(mActivity, maxAspect, SCREEN_ORIENTATION_LANDSCAPE); in testLetterboxFullscreenBoundsAndNotImeAttachable() 358 prepareUnresizable(mActivity, SCREEN_ORIENTATION_LANDSCAPE); in testIsLetterboxed_activityShowsWallpaper_returnsFalse() 503 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFixedAspectRatioOrientationChangeOrientation() 793 prepareUnresizable(activity, /* maxAspect=*/ 1.5f, SCREEN_ORIENTATION_LANDSCAPE); in testNeverSandboxDisplayApis_configEnabled_sandboxingNotApplied() 813 prepareUnresizable(activity, /* maxAspect=*/ 1.5f, SCREEN_ORIENTATION_LANDSCAPE); in testNeverSandboxDisplayApis_configDisabled_sandboxingApplied() 834 prepareUnresizable(activity, /* maxAspect=*/ 1.5f, SCREEN_ORIENTATION_LANDSCAPE); in testNeverConstrainDisplayApisDeviceConfig_allPackagesFlagTrue_sandboxNotApplied() 857 prepareUnresizable(activity, /* maxAspect=*/ 1.5f, SCREEN_ORIENTATION_LANDSCAPE); in testNeverConstrainDisplayApisDeviceConfig_packageInRange_sandboxingNotApplied() 878 prepareUnresizable(activity, /* maxAspect=*/ 1.5f, SCREEN_ORIENTATION_LANDSCAPE); in testNeverConstrainDisplayApisDeviceConfig_packageOutsideRange_sandboxingApplied() [all …]
|
D | DisplayAreaGroupTest.java | 19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 103 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testGetRequestedOrientationForDisplay()
|
D | TaskTests.java | 30 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 519 top.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation() 528 top.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation() 1282 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientationByFloatingTask() 1284 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, parentContainer.getOrientation()); in testNotSpecifyOrientationByFloatingTask() 1285 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask() 1291 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask() 1308 firstActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientation_taskDisplayAreaNotFocused() 1314 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, firstTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused() 1320 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, firstTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused() [all …]
|
D | DisplayAreaTest.java | 19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 454 win.mAttrs.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; in testGetOrientation() 461 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation() 481 win.mAttrs.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; in testSetIgnoreOrientationRequest() 486 assertEquals(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, area.getOrientation()); in testSetIgnoreOrientationRequest() 502 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_notCallSuperOnDescendantOrientationChanged()
|
D | ConfigurationContainerTests.java | 25 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 82 rootParentConfig.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationInit() 152 childOverrideConfig1.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationChangePropagation() 301 childOverrideConfig1.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationConstraints()
|
D | WindowContainerTests.java | 21 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 524 testGetOrientation_childSpecifiedConfig(false, SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation_childSpecified() 525 SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_childSpecified() 565 invisibleChild1VisibleAndSet.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_InvisibleParentUnsetVisibleChildren() 567 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisibleChild1VisibleAndSet.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren() 570 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisible.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren() 572 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren() 578 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren() 648 child.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetOrientation()
|
D | ActivityRecordTests.java | 31 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 495 requestedOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testSetRequestedOrientationUpdatesConfiguration() 546 isScreenPortrait ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE); in ignoreRequestedOrientationInFreeformWindows() 590 ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE); in ignoreRequestedOrientationForResizableInSplitWindows() 1876 ? SCREEN_ORIENTATION_LANDSCAPE in setRotatedScreenOrientationSilently() 2072 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testSupportsSplitScreenWindowingMode() 2105 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testSupportsFreeform() 2268 activity.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testLandscapeSeascapeRotationByApp() 2272 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp() 2331 activity.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation() [all …]
|
D | WindowOrganizerTests.java | 30 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 434 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea() 449 assertThat(mDisplayContent.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea() 450 assertThat(taskDisplayArea.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea() 471 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_displayContent() 474 assertThat(mDisplayContent.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_displayContent() 491 assertThat(mDisplayContent.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_displayContent() 1188 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testReparentNonResizableTaskToSplitScreen()
|
D | TaskDisplayAreaTests.java | 34 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 488 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testIgnoreOrientationRequest() 490 assertThat(taskDisplayArea.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testIgnoreOrientationRequest()
|
D | TaskLaunchParamsModifierTests.java | 27 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 528 ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE; in testRecalculateFreeformInitialBoundsWithOverrideDisplayArea_unresizableApp() 791 mActivity.info.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testLaunchesLandscapeSizeCompatOnFreeformLandscapeDisplayWithFreeformSizeCompat() 1253 mActivity.info.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testRespectsAppRequestedOrientation_Landscape() 1258 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, orientationFromBounds(mResult.mBounds)); in testRespectsAppRequestedOrientation_Landscape() 1733 return bounds.width() > bounds.height() ? SCREEN_ORIENTATION_LANDSCAPE in orientationFromBounds()
|
D | DisplayContentTests.java | 25 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 803 window.mActivityRecord.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testOrientationDefinedByKeyguard() 810 SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testOrientationDefinedByKeyguard() 820 SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testOrientationDefinedByKeyguard() 838 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio() 974 freeformRootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testAllowsTopmostFullscreenOrientation() 978 rootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testAllowsTopmostFullscreenOrientation() 980 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testAllowsTopmostFullscreenOrientation() 2314 : SCREEN_ORIENTATION_LANDSCAPE; in getRotatedOrientation()
|
D | RootTaskTests.java | 30 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 140 activity1.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testClosingAppDifferentTaskOrientation() 148 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, parent.getOrientation()); in testClosingAppDifferentTaskOrientation() 154 activity1.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testMoveTaskToBackDifferentTaskOrientation()
|
D | WallpaperControllerTests.java | 148 dc.getDisplayRotation().updateOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, true); in testWallpaperSizeWithFixedTransform()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskLaunchParamsModifier.java | 24 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 658 case SCREEN_ORIENTATION_LANDSCAPE: in resolveOrientation() 660 orientation = SCREEN_ORIENTATION_LANDSCAPE; in resolveOrientation() 709 && orientation != SCREEN_ORIENTATION_LANDSCAPE) { in getTaskBounds() 749 return SCREEN_ORIENTATION_LANDSCAPE; in convertOrientationToScreenOrientation() 796 final int defaultWidth = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? portraitHeight in getDefaultFreeformSize() 798 final int defaultHeight = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? portraitWidth in getDefaultFreeformSize() 806 final int phoneWidth = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? phonePortraitHeight in getDefaultFreeformSize() 808 final int phoneHeight = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? phonePortraitWidth in getDefaultFreeformSize() 1072 return bounds.width() > bounds.height() ? SCREEN_ORIENTATION_LANDSCAPE
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 578 SCREEN_ORIENTATION_LANDSCAPE, 615 public static final int SCREEN_ORIENTATION_LANDSCAPE = 0; field in ActivityInfo 1261 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape() 1293 case SCREEN_ORIENTATION_LANDSCAPE: in reverseOrientation() 1296 return SCREEN_ORIENTATION_LANDSCAPE; in reverseOrientation() 1607 case SCREEN_ORIENTATION_LANDSCAPE: in screenOrientationToString()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | OrientationUtil.java | 44 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewAttachTest.java | 57 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in testAttached()
|
/frameworks/base/core/proto/android/content/ |
D | activityinfo.proto | 25 SCREEN_ORIENTATION_LANDSCAPE = 0; enumerator
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; 272 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testPortraitDoesntSupportFullscreenIme()
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | MainActivity.java | 55 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()
|
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
D | MainActivity.kt | 90 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) in rotate90()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/ |
D | VrActivity.java | 118 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onPostExecute()
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
D | GL2CameraEye.java | 53 setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()
|