/cts/tests/input/src/android/input/cts/ |
D | MotionPredictorTest.kt | 52 orientation: Float = 0.0f, in getStylusMotionEvent() 55 eventTime, action, STYLUS_DEVICE_ID, x, y, tilt, orientation, in getStylusMotionEvent() 65 orientation: Float = 0.0f, in getTouchMotionEvent() 68 eventTime, action, TOUCH_DEVICE_ID, x, y, tilt, orientation, in getTouchMotionEvent() 79 orientation: Float, in getMotionEvent() 95 coords[i]!!.orientation = orientation in getMotionEvent() 217 val orientation = -Math.PI.toFloat() / 4 in testTiltOrientation() constant 221 getStylusMotionEvent(eventTime, ACTION_DOWN, x = 10f, y = 20f, tilt, orientation) in testTiltOrientation() 227 getStylusMotionEvent(eventTime, ACTION_MOVE, x = 10f, y = 20f, tilt, orientation) in testTiltOrientation() 232 getStylusMotionEvent(eventTime, ACTION_MOVE, x = 10f, y = 30f, tilt, orientation) in testTiltOrientation() [all …]
|
D | CaptureEventActivity.kt | 37 val orientation = intent.getIntExtra(EXTRA_FIXED_ORIENTATION, 0) in onCreate() constant 38 setRequestedOrientation(orientation) in onCreate()
|
D | MultiTouchTest.kt | 53 var orientation = 0 variable 68 .putExtra(CaptureEventActivity.EXTRA_FIXED_ORIENTATION, orientation) in setUp() 78 wmState.waitForActivityOrientation(activityName, orientation) in setUp()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/ |
D | WindowManagerJetpackTestBase.java | 252 TestActivity activity, int orientation) { 254 assertTrue(orientation == ORIENTATION_PORTRAIT || orientation == ORIENTATION_LANDSCAPE); 256 if (activity.getResources().getConfiguration().orientation == orientation) { 261 activity.setRequestedOrientation(orientation == ORIENTATION_PORTRAIT 265 () -> activity.getResources().getConfiguration().orientation == orientation); 291 TestActivity activity, int orientation) { 293 assertTrue(orientation == ORIENTATION_PORTRAIT || orientation == ORIENTATION_LANDSCAPE); 295 if (activity.getResources().getConfiguration().orientation == orientation) { 300 activity.setRequestedOrientation(orientation == ORIENTATION_PORTRAIT 306 assertEquals(orientation, activity.getResources().getConfiguration().orientation);
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_flip_mirror.py | 98 for orientation in _CHART_ORIENTATIONS: 99 if orientation == 'nominal': 101 elif orientation == 'flip': 103 elif orientation == 'mirror': 105 elif orientation == 'rotate': 110 logging.debug('%s correlation value: %d', orientation, opt_val) 115 for i, orientation in enumerate(_CHART_ORIENTATIONS):
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 86 private float orientation; field in MotionEventUtils.PointerCoordsBuilder 111 public PointerCoordsBuilder withOrientation(float orientation) { in withOrientation() argument 112 this.orientation = orientation; in withOrientation() 131 pointerCoords.orientation = orientation; in build() 174 that.getOrientation(), this.orientation, DELTA); in verifyMatches() 176 that.getAxisValue(MotionEvent.AXIS_ORIENTATION), this.orientation, DELTA); in verifyMatches() 229 that.getOrientation(pointerIndex), this.orientation, DELTA); in verifyMatches() 231 that.getAxisValue(MotionEvent.AXIS_ORIENTATION, pointerIndex), this.orientation, in verifyMatches() 286 that.getHistoricalOrientation(position), this.orientation, DELTA); in verifyMatchesHistorical() 289 this.orientation, DELTA); in verifyMatchesHistorical() [all …]
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | ConfigurationScreenLayoutTest.java | 81 for (int orientation : ORIENTATIONS) { in testScreenLayout() 82 Activity activity = startOrientationActivity(orientation); in testScreenLayout() 105 + orientation, expectedSize, actualSize); in testScreenLayout() 108 + orientation, expectedLong, actualLong); in testScreenLayout() 122 private Activity startOrientationActivity(int orientation) { in startOrientationActivity() argument 124 intent.putExtra(OrientationActivity.EXTRA_ORIENTATION, orientation); in startOrientationActivity()
|
D | OrientationActivity.java | 36 int orientation = getIntent().getIntExtra(EXTRA_ORIENTATION, -1); in onCreate() local 37 setRequestedOrientation(orientation); in onCreate()
|
/cts/tests/tests/content/src/android/content/res/cts/config/ |
D | OverrideConfigTest.kt | 72 val orientation = resources.configuration.orientation in setUpRotation() constant 73 val isPortraitByConfig = orientation == Configuration.ORIENTATION_PORTRAIT in setUpRotation() 121 if (it.configuration().orientation == Configuration.ORIENTATION_LANDSCAPE) { in applyOverrideConfigHandlesOrientation() 186 oldOrientation = oldConfig!!.orientation in <lambda>() 210 assertThat(newConfig.orientation).isNotEqualTo(oldOrientation) in <lambda>()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/ |
D | AppConfigurationTests.java | 300 initialFullscreenSizes.orientation != dockedSizes.orientation; in moveActivityFullSplitFull() 364 ORIENTATION_PORTRAIT, reportedSizes.orientation); in testFullscreenAppOrientationRequests() 374 ORIENTATION_LANDSCAPE, reportedSizes.orientation); in testFullscreenAppOrientationRequests() 383 ORIENTATION_PORTRAIT, reportedSizes.orientation); in testFullscreenAppOrientationRequests() 396 ORIENTATION_PORTRAIT, initialReportedSizes.orientation); in testTranslucentAppOrientationRequests() 497 ORIENTATION_LANDSCAPE, appConfigInfo.sizeInfo.orientation); in testRotatedInfoWithFixedRotationTransform() 499 ORIENTATION_LANDSCAPE, globalSizeInfo.orientation); in testRotatedInfoWithFixedRotationTransform() 635 int prevOrientation = reportedSizes.orientation; in testAppOrientationWhenRotating() 646 assertNotEquals(prevOrientation, reportedSizes.orientation); in testAppOrientationWhenRotating() 650 prevOrientation = reportedSizes.orientation; in testAppOrientationWhenRotating() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/TestOverlayRequestManageCredentials/src/android/security/cts/overlay/RequestManageCredentials/ |
D | PocActivity.java | 41 if (getResources().getConfiguration().orientation == ORIENTATION_LANDSCAPE) { in onCreate() 48 if (getResources().getConfiguration().orientation == mExpectedConfigOrientation) { in onCreate()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | DisplayMetricsSession.java | 49 public void changeAspectRatio(double aspectRatio, int orientation) { in changeAspectRatio() argument 54 if (orientation == ORIENTATION_LANDSCAPE) { in changeAspectRatio()
|
D | ProtoExtractors.java | 41 config.orientation = proto.orientation; in extract()
|
D | CommandSession.java | 207 public Bundle requestOrientation(int orientation) { 209 data.putInt(KEY_ORIENTATION, orientation); 854 final int orientation = getIntent().getIntExtra(KEY_ORIENTATION, Integer.MIN_VALUE); 855 if (orientation != Integer.MIN_VALUE) { 856 setRequestedOrientation(orientation); 1198 public int orientation; 1221 orientation = config.orientation; 1236 + " orientation=" + orientation + "}"; 1256 && orientation == that.orientation 1274 result = 31 * result + orientation; [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/display/ |
D | Display.kt | 67 fun setScreenOrientation(orientation: DisplayProperties.ScreenOrientation) { in display() 69 when (orientation) { in display()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/ |
D | VirtualInputEventCreator.java | 139 int toolType, float tilt, float orientation) { in createStylusTouchMotionEvent() argument 141 tilt, orientation); in createStylusTouchMotionEvent() 156 float pressure, int buttonState, float tilt, float orientation) { in createStylusEvent() argument 164 pointerCoords.setAxisValue(MotionEvent.AXIS_ORIENTATION, orientation); in createStylusEvent()
|
/cts/tests/tests/theme/src/android/theme/cts/ |
D | ThemeRebaseTest.java | 50 config.orientation = Configuration.ORIENTATION_PORTRAIT; in before() 79 newConfig.orientation = Configuration.ORIENTATION_LANDSCAPE; in testConfigChangeAndRebase()
|
/cts/tests/sensor/src/android/hardware/cts/accessories/ |
D | VirtualHeadTracker.java | 77 private static String orientationFloatToStr(float[] orientation) { in orientationFloatToStr() argument 79 for (float orient : orientation) { in orientationFloatToStr()
|
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/ |
D | EnsureUsingScreenOrientation.kt | 34 val orientation: DisplayProperties.ScreenOrientation, constant in com.android.bedstead.harrier.annotations.EnsureUsingScreenOrientation
|
/cts/libs/helpers/interfaces/src/com/android/cts/helpers/ |
D | ICtsPrintHelper.java | 78 void setPageOrientation(String orientation); in setPageOrientation() argument
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | DisplayCutoutTests.java | 134 public int orientation; field in DisplayCutoutTests 172 final int orientation = displaySize.getHeight() <= displaySize.getWidth() in setUpClass() local 174 sDisplayMetricsSession.changeAspectRatio(1.77 /* 16:9 */, orientation); in setUpClass() 370 runTest(cutoutMode, test, orientation); in runTest() 373 private void runTest(int cutoutMode, TestDef test, int orientation) { in runTest() argument 374 assumeTrue("Skipping test: orientation not supported", supportsOrientation(orientation)); in runTest() 376 cutoutMode, orientation); in runTest() 667 int orientation) { 670 .putExtra(EXTRA_ORIENTATION, orientation)); 678 private boolean supportsOrientation(int orientation) { [all …]
|
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/parameterized/ |
D | IncludeLandscapeOrientation.kt | 33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.LANDSCAPE)
|
D | IncludePortraitOrientation.kt | 33 @EnsureUsingScreenOrientation(orientation = DisplayProperties.ScreenOrientation.PORTRAIT)
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 14 package com.android.cts.verifier.camera.orientation; 306 mPictureRotation = (info.orientation + degrees) % 360; in startPreview() 309 mPictureRotation = (info.orientation - degrees + 360) % 360; in startPreview() 481 private void setTestedConfiguration(int cameraId, int orientation) { in setTestedConfiguration() argument 483 + orientation in setTestedConfiguration() 604 Settings(int stageIndex, int cameraId, int orientation) { in Settings() argument 606 mOrientation = orientation; in Settings()
|
/cts/tests/tests/hibernation/AutoRevokeRApp/src/android/hibernation/cts/autorevokerapp/ |
D | MainActivity.kt | 36 orientation = VERTICAL in onCreate()
|