Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
78 final int freeformWidthInDp = (orientation == SCREEN_ORIENTATION_LANDSCAPE) in getDefaultFreeformSize()
80 final int freeformHeightInDp = (orientation == SCREEN_ORIENTATION_LANDSCAPE) in getDefaultFreeformSize()
97 final int maxWidth = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? portraitHeight in getDefaultFreeformSize()
99 final int maxHeight = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? portraitWidth in getDefaultFreeformSize()
114 if (orientation == SCREEN_ORIENTATION_LANDSCAPE) { in getDefaultFreeformSize()
123 if (orientation == SCREEN_ORIENTATION_LANDSCAPE) { in getDefaultFreeformSize()
DTaskLaunchParamsModifier.java24 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
698 case SCREEN_ORIENTATION_LANDSCAPE: in resolveOrientation()
700 orientation = SCREEN_ORIENTATION_LANDSCAPE; in resolveOrientation()
743 && orientation != SCREEN_ORIENTATION_LANDSCAPE) { in getTaskBounds()
787 return SCREEN_ORIENTATION_LANDSCAPE; in convertOrientationToScreenOrientation()
1022 return bounds.width() > bounds.height() ? SCREEN_ORIENTATION_LANDSCAPE
DDisplayRotationCompatPolicy.java23 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
195 : SCREEN_ORIENTATION_LANDSCAPE; in getOrientationInternal()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
266 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
278 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape()
284 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, Surface.ROTATION_90)); in testReturnsLandscape_UserRotationLockedSeascape_AppRequestsLandscape()
291 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsSeascape_UserRotationLockedSeascape_AppRequestsSeascape()
304 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsPortrait_UserRotationLockedPortrait_AppRequestsPortrait()
317 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false /* isCar */, in testReturnsUpsideDown_UserRotationLockedUpsideDown_AppRequestsUpsideDown()
330 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest()
450 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, true, false); in testNotEnablesSensor_ForceDefaultRotation_Car()
463 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, true); in testNotEnablesSensor_ForceDefaultRotation_Tv()
[all …]
DDualDisplayAreaGroupPolicyTest.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
127 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest()
134 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_differentOrientationFromDisplay_reversesRequest()
145 prepareUnresizable(mSecondActivity, SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_onlyRespectsFocusedTaskDisplayArea()
150 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testNotIgnoreOrientationRequest_onlyRespectsFocusedTaskDisplayArea()
161 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testIgnoreOrientationRequest_displayDoesNotReceiveOrientationChange()
264 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testLaunchLandscapeApp_activityIsLetterboxForFixedOrientationInDisplayAreaGroup()
305 prepareUnresizable(mFirstActivity, SCREEN_ORIENTATION_LANDSCAPE); in testLaunchLandscapeApp_fixedOrientationLetterboxBecomesSizeCompatAfterRotation()
471 assertThat(mDisplay.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testResizableFixedOrientationApp_fixedOrientationLetterboxing()
479 prepareLimitedBounds(mSecondActivity, SCREEN_ORIENTATION_LANDSCAPE, in testResizableFixedOrientationApp_fixedOrientationLetterboxing()
DSizeCompatTests.java26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
322 prepareUnresizable(mActivity, SCREEN_ORIENTATION_LANDSCAPE); in testVerticalReachabilityEnabledForTranslucentActivities()
329 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testVerticalReachabilityEnabledForTranslucentActivities()
398 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testApplyStrategyToTranslucentActivities()
455 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testApplyStrategyToMultipleTranslucentActivities()
468 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testApplyStrategyToMultipleTranslucentActivities()
632 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
750 prepareUnresizable(mActivity, maxAspect, SCREEN_ORIENTATION_LANDSCAPE); in testLetterboxFullscreenBoundsAndNotImeAttachable()
779 prepareUnresizable(mActivity, SCREEN_ORIENTATION_LANDSCAPE); in testIsLetterboxed_activityShowsWallpaper_returnsFalse()
925 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFixedAspectRatioOrientationChangeOrientation()
[all …]
DDisplayRotationCompatPolicyTests.java22 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
374 SCREEN_ORIENTATION_LANDSCAPE); in testCameraDisconnected_revertRotationAndRefresh() local
421 /* expectedOrientation */ SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_portraitActivity_landscapeNaturalOrientation_returnLandscape()
427 /* activityOrientation */ SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation_landscapeActivity_portraitNaturalOrientation_returnLandscape()
429 /* expectedOrientation */ SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_landscapeActivity_portraitNaturalOrientation_returnLandscape()
435 /* activityOrientation */ SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation_landscapeActivity_landscapeNaturalOrientation_returnPortrait()
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;
555 top.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation()
564 top.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation()
1365 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientationByFloatingTask()
1367 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, parentContainer.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1368 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1374 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1391 firstActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1397 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, firstTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1403 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, firstTaskDisplayArea.getOrientation()); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
[all …]
DConfigurationContainerTests.java26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
83 rootParentConfig.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationInit()
153 childOverrideConfig1.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationChangePropagation()
316 childOverrideConfig1.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationConstraints()
DWindowContainerTests.java21 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
548 testGetOrientation_childSpecifiedConfig(false, SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation_childSpecified()
549 SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_childSpecified()
589 invisibleChild1VisibleAndSet.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
591 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisibleChild1VisibleAndSet.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
594 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisible.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
596 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
602 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
672 child.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetOrientation()
DActivityRecordTests.java41 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
582 requestedOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testSetRequestedOrientationUpdatesConfiguration()
639 isScreenPortrait ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE); in ignoreRequestedOrientationInFreeformWindows()
682 ? SCREEN_ORIENTATION_PORTRAIT : SCREEN_ORIENTATION_LANDSCAPE); in ignoreRequestedOrientationForResizableInSplitWindows()
2110 ? SCREEN_ORIENTATION_LANDSCAPE in setRotatedScreenOrientationSilently()
2304 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testSupportsFreeform()
2560 activity.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testLandscapeSeascapeRotationByApp()
2563 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp()
2620 activity.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation()
2624 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, activity.getOrientation()); in testGetOrientation()
[all …]
DDisplayAreaTest.java20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
458 win.mAttrs.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; in testGetOrientation()
465 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation()
484 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_notCallSuperOnDescendantOrientationChanged()
DTaskFragmentTest.java23 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
554 activity0.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
601 activity0.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
DWindowOrganizerTests.java28 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
607 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea()
622 assertThat(mDisplayContent.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea()
623 assertThat(taskDisplayArea.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea()
644 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_displayContent()
647 assertThat(mDisplayContent.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_displayContent()
664 assertThat(mDisplayContent.getLastOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_displayContent()
1442 .setScreenOrientation(SCREEN_ORIENTATION_LANDSCAPE) in testReparentNonResizableTaskToSplitScreen()
DDisplayContentTests.java26 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
910 window.mActivityRecord.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testOrientationDefinedByKeyguard()
917 SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testOrientationDefinedByKeyguard()
927 SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testOrientationDefinedByKeyguard()
945 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio()
1056 freeformRootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testAllowsTopmostFullscreenOrientation()
1060 rootTask.getTopNonFinishingActivity().setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testAllowsTopmostFullscreenOrientation()
1062 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testAllowsTopmostFullscreenOrientation()
1084 app.setOrientation(SCREEN_ORIENTATION_LANDSCAPE, app); in testNoSensorRevert()
1785 pinnedActivity.setOverrideOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFixedRotationWithPip()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DOrientationUtil.java44 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java634 SCREEN_ORIENTATION_LANDSCAPE,
671 public static final int SCREEN_ORIENTATION_LANDSCAPE = 0; field in ActivityInfo
1574 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape()
1606 case SCREEN_ORIENTATION_LANDSCAPE: in reverseOrientation()
1609 return SCREEN_ORIENTATION_LANDSCAPE; in reverseOrientation()
1935 case SCREEN_ORIENTATION_LANDSCAPE: in screenOrientationToString()
/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/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java55 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()
/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/base/tests/SurfaceViewBufferTests/src/com/android/test/
DMainActivity.kt90 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) in rotate90()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/kidsmode/
DKidsModeTaskOrganizer.java24 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
295 new int[]{SCREEN_ORIENTATION_LANDSCAPE, SCREEN_ORIENTATION_REVERSE_LANDSCAPE}, in enable()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
DVrActivity.java118 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onPostExecute()

12