Home
last modified time | relevance | path

Searched refs:setRequestedOrientation (Results 1 – 25 of 58) sorted by relevance

123

/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DOrientationManager.java76 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED); in lockOrientation()
78 mActivity.setRequestedOrientation(calculateCurrentScreenOrientation()); in lockOrientation()
88 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); in unlockOrientation()
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DOrientationUtil.java37 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
44 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DViewAttachTest.java55 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in testAttached()
57 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in testAttached()
/aosp12/packages/apps/Camera2/src/com/android/camera/app/
H A DOrientationManagerImpl.java156 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED); in lockOrientation()
158 mActivity.setRequestedOrientation(calculateCurrentScreenOrientation()); in lockOrientation()
169 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); in unlockOrientation()
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DUiUtils.java277 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in lockOrientation()
279 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in lockOrientation()
283 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT); in lockOrientation()
285 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE); in lockOrientation()
291 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); in unlockOrientation()
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/
H A DActivityBase.java45 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()
47 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onCreate()
/aosp12/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
H A DMainActivity.kt88 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
90 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/activities/
H A DSimImportActivityTest.java177 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in smokeRotateInEmptyState()
195 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in smokeRotateInNonEmptyState()
281 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in selectionsAreImportedAndDisabledOnSubsequentImports()
283 mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER); in selectionsAreImportedAndDisabledOnSubsequentImports()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
H A DFixedActivity.java32 setRequestedOrientation(ori); in onCreate()
H A DPipActivity.java124 setRequestedOrientation(Integer.parseInt(intent.getStringExtra(
273 setRequestedOrientation(ori); in handleIntentExtra()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/
H A DWifiDppQrCodeGeneratorFragmentTest.java82 mActivity.setRequestedOrientation( in rotateScreen_shouldNotCrash()
84 mActivity.setRequestedOrientation( in rotateScreen_shouldNotCrash()
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
H A DVrActivity.java116 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onPostExecute()
118 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onPostExecute()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskTests.java518 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testFullscreenBoundsForcedOrientation()
529 top.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation()
534 top.setRequestedOrientation(SCREEN_ORIENTATION_UNSPECIFIED); in testFullscreenBoundsForcedOrientation()
538 top.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testFullscreenBoundsForcedOrientation()
588 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testReportsOrientationRequestInLetterboxForOrientation()
621 root.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testIgnoresForcedOrientationWhenParentHandles()
1333 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientationByFloatingTask()
1359 firstActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1360 secondActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testNotSpecifyOrientation_taskDisplayAreaNotFocused()
1390 activity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testTaskOrientationOnDisplayWindowingModeChange()
H A DTaskStackChangedListenerTest.java358 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT); in testNotifyTaskRequestedOrientationChanged()
364 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); in testNotifyTaskRequestedOrientationChanged()
478 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in onPostResume()
H A DDisplayAreaGroupTest.java91 activity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testGetRequestedOrientationForDisplay()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DMainClearConfirm.java105 getActivity().setRequestedOrientation(mOldOrientation);
119 getActivity().setRequestedOrientation(
/aosp12/packages/apps/Gallery/src/com/android/camera/
H A DMovieView.java61 setRequestedOrientation(orientation); in onCreate()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DCameraManager.java1169 a.setRequestedOrientation( in lockOrientation()
1173 a.setRequestedOrientation( in lockOrientation()
1177 a.setRequestedOrientation( in lockOrientation()
1181 a.setRequestedOrientation( in lockOrientation()
1192 a.setRequestedOrientation(mSavedOrientation); in restoreRequestedOrientation()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
H A DTutorialFragment.java146 ((Activity) getContext()).setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER); in onCreate()
149 ((Activity) getContext()).setRequestedOrientation( in onCreate()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
H A DWallpaperSetter.java340 activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED); in saveAndLockScreenOrientationIfNeeded()
347 activity.setRequestedOrientation(orientation); in restoreScreenOrientationIfNeeded()
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/
H A DTextViewTest.java264 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_PORTRAIT); in testPortraitDoesntSupportFullscreenIme()
272 mActivity.setRequestedOrientation(SCREEN_ORIENTATION_LANDSCAPE); in testPortraitDoesntSupportFullscreenIme()
/aosp12/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
H A DMainActivity.java56 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR); in onCreate()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DUiThreadHelper.java107 ((Activity) message.obj).setRequestedOrientation(message.arg1); in handleMessage()
/aosp12/frameworks/base/core/java/android/app/
H A DActivityClient.java254 public void setRequestedOrientation(IBinder token, int requestedOrientation) { in setRequestedOrientation() method in ActivityClient
256 getActivityClientController().setRequestedOrientation(token, requestedOrientation); in setRequestedOrientation()
/aosp12/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
H A DMainActivity.java55 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); in onCreate()

123