Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 62) sorted by relevance

123

/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DWindowManagerJetpackTestBase.java121 TestActivity activity, int orientation) {
123 assertTrue(orientation == ORIENTATION_PORTRAIT || orientation == ORIENTATION_LANDSCAPE);
125 if (activity.getResources().getConfiguration().orientation == orientation) {
130 activity.setRequestedOrientation(orientation == ORIENTATION_PORTRAIT
135 assertEquals(orientation, activity.getResources().getConfiguration().orientation);
139 TestActivity activity, int orientation) {
141 assertTrue(orientation == ORIENTATION_PORTRAIT || orientation == ORIENTATION_LANDSCAPE);
143 if (activity.getResources().getConfiguration().orientation == orientation) {
148 activity.setRequestedOrientation(orientation == ORIENTATION_PORTRAIT
154 assertEquals(orientation, activity.getResources().getConfiguration().orientation);
/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java86 private float orientation; field in MotionEventUtils.PointerCoordsBuilder
110 public PointerCoordsBuilder withOrientation(float orientation) { in withOrientation() argument
111 this.orientation = orientation; in withOrientation()
125 pointerCoords.orientation = orientation; in build()
167 that.getOrientation(), this.orientation, DELTA); in verifyMatches()
169 that.getAxisValue(MotionEvent.AXIS_ORIENTATION), this.orientation, DELTA); in verifyMatches()
219 that.getOrientation(pointerIndex), this.orientation, DELTA); in verifyMatches()
221 that.getAxisValue(MotionEvent.AXIS_ORIENTATION, pointerIndex), this.orientation, in verifyMatches()
272 that.getHistoricalOrientation(position), this.orientation, DELTA); in verifyMatchesHistorical()
275 this.orientation, DELTA); in verifyMatchesHistorical()
[all …]
DAttachedSurfaceControlTest.java68 int orientation = activity.getResources().getConfiguration().orientation; in onBufferTransformHintChanged() local
69 Log.d(TAG, "onBufferTransformHintChanged: orientation actual=" + orientation in onBufferTransformHintChanged()
71 Assert.assertEquals("Failed to switch orientation hint=" + hint, orientation, in onBufferTransformHintChanged()
138 int currentOrientation = activity.getResources().getConfiguration().orientation; in getRequestedOrientation()
163 if (activity.getResources().getConfiguration().orientation in testOnBufferTransformHintChangesFromLandToSea()
DOrientationEventListenerTest.java81 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
/cts/apps/CameraITS/tests/scene3/
Dtest_flip_mirror.py101 for orientation in CHART_ORIENTATIONS:
102 if orientation == 'flip':
104 elif orientation == 'mirror':
106 elif orientation == 'rotate':
111 cv2.imwrite('%s_%s.jpg' % (os.path.join(log_path, NAME), orientation),
113 logging.debug('%s correlation value: %d', orientation, opt_val)
/cts/tests/tests/dpi/src/android/dpi/cts/
DOrientationActivity.java36 int orientation = getIntent().getIntExtra(EXTRA_ORIENTATION, -1); in onCreate() local
37 setRequestedOrientation(orientation); in onCreate()
DConfigurationScreenLayoutTest.java110 private Activity startOrientationActivity(int orientation) { in startOrientationActivity() argument
112 intent.putExtra(OrientationActivity.EXTRA_ORIENTATION, orientation); in startOrientationActivity()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DProtoExtractors.java41 config.orientation = proto.orientation; in extract()
DCommandSession.java204 public Bundle requestOrientation(int orientation) {
206 data.putInt(KEY_ORIENTATION, orientation);
795 final int orientation = getIntent().getIntExtra(KEY_ORIENTATION, Integer.MIN_VALUE);
796 if (orientation != Integer.MIN_VALUE) {
797 setRequestedOrientation(orientation);
1139 public int orientation;
1162 orientation = config.orientation;
1177 + " orientation=" + orientation + "}";
1197 && orientation == that.orientation
1215 result = 31 * result + orientation;
[all …]
DWindowManagerStateHelper.java216 public void waitForLastOrientation(int orientation) { in waitForLastOrientation() argument
217 waitForWithAmState(state -> state.getLastOrientation() == orientation, in waitForLastOrientation()
218 "LastOrientation: " + orientation); in waitForLastOrientation()
231 public void waitForActivityOrientation(ComponentName activityName, int orientation) { in waitForActivityOrientation() argument
237 return task.mFullConfiguration.orientation == orientation; in waitForActivityOrientation()
238 }, "orientation of " + getActivityName(activityName) + " to be " + orientation); in waitForActivityOrientation()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAppConfigurationTests.java336 ORIENTATION_PORTRAIT, reportedSizes.orientation); in testFullscreenAppOrientationRequests()
345 ORIENTATION_LANDSCAPE, reportedSizes.orientation); in testFullscreenAppOrientationRequests()
354 ORIENTATION_PORTRAIT, reportedSizes.orientation); in testFullscreenAppOrientationRequests()
366 ORIENTATION_PORTRAIT, initialReportedSizes.orientation); in testTranslucentAppOrientationRequests()
434 final int initialOrientation = initialReportedSizes.orientation; in testAppOrientationRequestConfigClears()
454 launchingPortrait ? 1 : 2, rotatedReportedSizes.orientation); in testAppOrientationRequestConfigClears()
463 initialOrientation, finalReportedSizes.orientation); in testAppOrientationRequestConfigClears()
507 ORIENTATION_LANDSCAPE, appConfigInfo.sizeInfo.orientation); in testRotatedInfoWithFixedRotationTransform()
509 ORIENTATION_LANDSCAPE, globalSizeInfo.orientation); in testRotatedInfoWithFixedRotationTransform()
642 int prevOrientation = reportedSizes.orientation; in testAppOrientationWhenRotating()
[all …]
DDisplayCutoutTests.java113 public int orientation; field in DisplayCutoutTests
260 runTest(cutoutMode, test, orientation); in runTest()
263 private void runTest(int cutoutMode, TestDef test, int orientation) { in runTest() argument
264 assumeTrue("Skipping test: orientation not supported", supportsOrientation(orientation)); in runTest()
266 cutoutMode, orientation); in runTest()
525 int orientation) {
528 .putExtra(EXTRA_ORIENTATION, orientation));
541 private boolean supportsOrientation(int orientation) {
543 switch(orientation) {
DRoundedCornerTests.java82 public int orientation; field in RoundedCornerTests
101 new Intent().putExtra(EXTRA_ORIENTATION, orientation)); in testRoundedCorner_fullscreen()
121 new Intent().putExtra(EXTRA_ORIENTATION, orientation)); in testRoundedCorner_excludeRoundedCorners()
DPrivacyIndicatorBoundsTests.java78 public int orientation; field in PrivacyIndicatorBoundsTests
96 new Intent().putExtra(EXTRA_ORIENTATION, orientation)); in testStaticBoundsAreNotNull()
DKeyguardTests.java376 final int origDisplayOrientation = display.mFullConfiguration.orientation; in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
377 final int orientation = origDisplayOrientation == Configuration.ORIENTATION_LANDSCAPE in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() local
380 showWhenLockedActivitySession.requestOrientation(orientation); in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
383 orientation == SCREEN_ORIENTATION_LANDSCAPE in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
391 if (display.mFullConfiguration.orientation != origDisplayOrientation) { in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
/cts/tests/tests/app/src/android/app/cts/
DApplyOverrideConfigurationTest.java58 final int originalOrientation = config.orientation; in testOverriddenConfigurationIsPassedIntoCallback()
71 assertTrue(newConfig.orientation != originalOrientation); in testOverriddenConfigurationIsPassedIntoCallback()
/cts/tests/tests/theme/src/android/theme/cts/
DThemeRebaseTest.java50 config.orientation = Configuration.ORIENTATION_PORTRAIT; in before()
79 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testConfigChangeAndRebase()
/cts/libs/helpers/interfaces/src/com/android/cts/helpers/
DICtsPrintHelper.java78 void setPageOrientation(String orientation); in setPageOrientation() argument
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraUtils.java110 Integer orientation = ch.get(CameraCharacteristics.SENSOR_ORIENTATION); in matchParametersToCharacteristics() local
111 if (orientation.intValue() != info.orientation) { in matchParametersToCharacteristics()
/cts/tests/tests/os/AutoRevokeSApp/src/android/os/cts/autorevokesapp/
DMainActivity.kt36 orientation = VERTICAL in onCreate()
/cts/tests/tests/os/AutoRevokeRApp/src/android/os/cts/autorevokerapp/
DMainActivity.kt36 orientation = VERTICAL in onCreate()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java161 int orientation = mActivity.getResources().getConfiguration().orientation; in rotate() local
194 if (mActivity.getResources().getConfiguration().orientation == orientation) { in rotate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java14 package com.android.cts.verifier.camera.orientation;
449 private void setTestedConfiguration(int cameraId, int orientation) { in setTestedConfiguration() argument
451 + orientation in setTestedConfiguration()
573 Settings(int stageIndex, int cameraId, int orientation) { in Settings() argument
575 mOrientation = orientation; in Settings()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java50 mConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in makeConfiguration()
78 cfg1.orientation = 2; in testCompareTo()
79 cfg2.orientation = 3; in testCompareTo()
81 cfg1.orientation = 3; in testCompareTo()
82 cfg2.orientation = 2; in testCompareTo()
273 config.orientation = 1; in testDiff()
378 assertEquals(Configuration.ORIENTATION_UNDEFINED, config.orientation); in testSetToDefaults()
406 assertEquals(Configuration.ORIENTATION_UNDEFINED, config.orientation); in testUnset()
755 config.orientation = Configuration.ORIENTATION_PORTRAIT; in createConfig()
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanPreTransformCtsActivity.java62 if (getResources().getConfiguration().orientation in setActivityOrientation()

123