Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
230 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
242 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsUserRotation_UserRotationLocked_CompatibleAppRequest()
247 ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_CompatibleAppRequest()
254 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, false); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest()
373 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, true, false); in testNotEnablesSensor_ForceDefaultRotation_Car()
386 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, true); in testNotEnablesSensor_ForceDefaultRotation_Tv()
478 final int rotation = mTarget.rotationForOrientation(SCREEN_ORIENTATION_LANDSCAPE, in testReturnsCompatibleRotation_SensorEnabled_RotationThawed()
506 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, true, false); in testReturnsUserRotation_ForceDefaultRotation_Car()
515 configureDisplayRotation(SCREEN_ORIENTATION_LANDSCAPE, false, true); in testReturnsUserRotation_ForceDefaultRotation_Tv()
[all …]
DTaskStackTests.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
72 appWindowToken1.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testClosingAppDifferentStackOrientation()
82 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, stack.getOrientation()); in testClosingAppDifferentStackOrientation()
92 appWindowToken1.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testMoveTaskToBackDifferentStackOrientation()
102 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, stack.getOrientation()); in testMoveTaskToBackDifferentStackOrientation()
DAppWindowTokenTests.java23 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
166 mToken.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testLandscapeSeascapeRotationByApp()
170 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp()
267 mToken.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation()
271 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mToken.getOrientation()); in testGetOrientation()
279 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation()
330 mToken.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testSetOrientation()
331 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mToken.getOrientation()); in testSetOrientation()
344 mToken.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testReportOrientationChangeOnVisibilityChange()
363 mToken.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testReportOrientationChangeOnOpeningClosingAppChange()
DConfigurationContainerTests.java25 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
81 rootParentConfig.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationInit()
151 childOverrideConfig1.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationChangePropagation()
300 childOverrideConfig1.orientation = SCREEN_ORIENTATION_LANDSCAPE; in testConfigurationConstraints()
DDisplayContentTests.java19 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
527 window.mAppToken.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testOrientationDefinedByKeyguard()
534 SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testOrientationDefinedByKeyguard()
542 SCREEN_ORIENTATION_LANDSCAPE, dc.getOrientation()); in testOrientationDefinedByKeyguard()
560 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio()
657 final int newOrientation = dc.getLastOrientation() == SCREEN_ORIENTATION_LANDSCAPE in testOnDescendantOrientationRequestChanged()
659 : SCREEN_ORIENTATION_LANDSCAPE; in testOnDescendantOrientationRequestChanged()
683 final int newOrientation = dc.getLastOrientation() == SCREEN_ORIENTATION_LANDSCAPE in testOnDescendantOrientationRequestChanged_FrozenToUserRotation()
685 : SCREEN_ORIENTATION_LANDSCAPE; in testOnDescendantOrientationRequestChanged_FrozenToUserRotation()
DWindowContainerTests.java20 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
459 testGetOrientation_childSpecifiedConfig(false, SCREEN_ORIENTATION_LANDSCAPE, in testGetOrientation_childSpecified()
460 SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_childSpecified()
500 invisibleChild1VisibleAndSet.setOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
502 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisibleChild1VisibleAndSet.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
505 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, invisible.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
507 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
513 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, root.getOrientation()); in testGetOrientation_InvisibleParentUnsetVisibleChildren()
DTaskRecordTests.java24 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
292 setActivityRequestedOrientation(top, SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation()
301 setActivityRequestedOrientation(top, SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation()
DTaskLaunchParamsModifierTests.java25 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
849 mActivity.info.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testRespectsAppRequestedOrientation_Landscape()
854 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, orientationFromBounds(mResult.mBounds)); in testRespectsAppRequestedOrientation_Landscape()
1276 return bounds.width() > bounds.height() ? SCREEN_ORIENTATION_LANDSCAPE in orientationFromBounds()
DActivityRecordTests.java367 requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; in testSetRequestedOrientationUpdatesConfiguration()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskLaunchParamsModifier.java23 import static android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
458 case SCREEN_ORIENTATION_LANDSCAPE: in resolveOrientation()
460 orientation = SCREEN_ORIENTATION_LANDSCAPE; in resolveOrientation()
509 && orientation != SCREEN_ORIENTATION_LANDSCAPE) { in getTaskBounds()
547 return SCREEN_ORIENTATION_LANDSCAPE; in convertOrientationToScreenOrientation()
590 final int defaultWidth = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? portraitHeight in getDefaultFreeformSize()
592 final int defaultHeight = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? portraitWidth in getDefaultFreeformSize()
600 final int phoneWidth = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? phonePortraitHeight in getDefaultFreeformSize()
602 final int phoneHeight = (orientation == SCREEN_ORIENTATION_LANDSCAPE) ? phonePortraitWidth in getDefaultFreeformSize()
865 return bounds.width() > bounds.height() ? SCREEN_ORIENTATION_LANDSCAPE
DDisplayRotation.java652 case ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE: in rotationForOrientation()
/frameworks/base/core/tests/coretests/src/android/util/
DOrientationUtil.java44 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java528 SCREEN_ORIENTATION_LANDSCAPE,
565 public static final int SCREEN_ORIENTATION_LANDSCAPE = 0; field in ActivityInfo
1061 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape()
1267 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/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()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8327 field public static final int SCREEN_ORIENTATION_LANDSCAPE = 0; // 0x0
/frameworks/base/non-updatable-api/
Dcurrent.txt11033 field public static final int SCREEN_ORIENTATION_LANDSCAPE = 0; // 0x0
/frameworks/base/api/
Dcurrent.txt11033 field public static final int SCREEN_ORIENTATION_LANDSCAPE = 0; // 0x0
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt12806 Landroid/content/ActivityInfoProto;->SCREEN_ORIENTATION_LANDSCAPE:I