Home
last modified time | relevance | path

Searched refs:SCREEN_ORIENTATION_LANDSCAPE (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java19 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 …]
DDualDisplayAreaGroupPolicyTest.java19 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()
DSizeCompatTests.java22 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 …]
DDisplayAreaGroupTest.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
103 assertThat(mDisplayAreaGroup.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testGetRequestedOrientationForDisplay()
DTaskTests.java30 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 …]
DDisplayAreaTest.java19 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()
DConfigurationContainerTests.java25 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()
DWindowContainerTests.java21 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()
DActivityRecordTests.java31 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 …]
DWindowOrganizerTests.java30 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()
DTaskDisplayAreaTests.java34 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()
DTaskLaunchParamsModifierTests.java27 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()
DDisplayContentTests.java25 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()
DRootTaskTests.java30 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()
DWallpaperControllerTests.java148 dc.getDisplayRotation().updateOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, true); in testWallpaperSizeWithFixedTransform()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskLaunchParamsModifier.java24 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/
DActivityInfo.java578 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/
DOrientationUtil.java44 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
/frameworks/base/core/tests/coretests/src/android/view/
DViewAttachTest.java57 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in testAttached()
/frameworks/base/core/proto/android/content/
Dactivityinfo.proto25 SCREEN_ORIENTATION_LANDSCAPE = 0; enumerator
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java19 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/
DMainActivity.java55 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()
/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
DMainActivity.kt90 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) in rotate90()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
DVrActivity.java118 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onPostExecute()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java53 setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()

12