/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 86 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 …]
|
D | OrientationEventListenerTest.java | 81 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
|
D | OrientationListenerTest.java | 104 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
|
D | MotionEventTest.java | 650 c.orientation = angle; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 687 assertEquals(Math.tan(angle), Math.tan(c.orientation), 0.1); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 727 assertEquals(0f, coords.orientation, 0.0f); in testPointerCoordsDefaultConstructor() 741 coords.orientation = 9; in testPointerCoordsCopyConstructor() 753 assertEquals(9f, copy.orientation, 0.0f); in testPointerCoordsCopyConstructor() 768 coords.orientation = 9; in testPointerCoordsCopyFrom() 781 assertEquals(9f, copy.orientation, 0.0f); in testPointerCoordsCopyFrom()
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_flip_mirror.py | 90 for orientation in CHART_ORIENTATIONS: 91 if orientation == 'flip': 93 elif orientation == 'mirror': 95 elif orientation == 'rotate': 100 cv2.imwrite('%s_%s.jpg' % (NAME, orientation), comp_chart) 101 print ' %s correlation value: %d' % (orientation, opt_val)
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AppConfigurationTests.java | 332 1 /* portrait */, reportedSizes.orientation); in testFullscreenAppOrientationRequests() 339 2 /* landscape */, reportedSizes.orientation); in testFullscreenAppOrientationRequests() 346 1 /* portrait */, reportedSizes.orientation); in testFullscreenAppOrientationRequests() 358 1 /* portrait */, initialReportedSizes.orientation); in testNonfullscreenAppOrientationRequests() 422 final int initialOrientation = initialReportedSizes.orientation; in testAppOrientationRequestConfigClears() 442 launchingPortrait ? 1 : 2, rotatedReportedSizes.orientation); in testAppOrientationRequestConfigClears() 451 initialOrientation, finalReportedSizes.orientation); in testAppOrientationRequestConfigClears() 588 int prevOrientation = reportedSizes.orientation; in testAppOrientationWhenRotating() 599 assertNotEquals(prevOrientation, reportedSizes.orientation); in testAppOrientationWhenRotating() 603 prevOrientation = reportedSizes.orientation; in testAppOrientationWhenRotating() [all …]
|
D | KeyguardTests.java | 368 final int origDisplayOrientation = display.mFullConfiguration.orientation; in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() 369 final int orientation = origDisplayOrientation == Configuration.ORIENTATION_LANDSCAPE in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() local 372 showWhenLockedActivitySession.requestOrientation(orientation); in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() 375 orientation == SCREEN_ORIENTATION_LANDSCAPE in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation() 383 if (display.mFullConfiguration.orientation != origDisplayOrientation) { in testNoTransientConfigurationWhenShowWhenLockedRequestsOrientation()
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | OrientationActivity.java | 36 int orientation = getIntent().getIntExtra(EXTRA_ORIENTATION, -1); in onCreate() local 37 setRequestedOrientation(orientation); in onCreate()
|
D | ConfigurationScreenLayoutTest.java | 110 private Activity startOrientationActivity(int orientation) { in startOrientationActivity() argument 112 intent.putExtra(OrientationActivity.EXTRA_ORIENTATION, orientation); in startOrientationActivity()
|
/cts/tests/tests/keystore/src/android/server/am/ |
D | ProtoExtractors.java | 41 config.orientation = proto.orientation; in extract()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ProtoExtractors.java | 41 config.orientation = proto.orientation; in extract()
|
D | CommandSession.java | 197 public Bundle requestOrientation(int orientation) { 199 data.putInt(KEY_ORIENTATION, orientation); 717 final int orientation = getIntent().getIntExtra(KEY_ORIENTATION, Integer.MIN_VALUE); 718 if (orientation != Integer.MIN_VALUE) { 719 setRequestedOrientation(orientation); 1034 public int orientation; 1053 orientation = config.orientation; 1062 + " orientation=" + orientation + "}"; 1082 && orientation == that.orientation; 1100 dest.writeInt(orientation); [all …]
|
D | ActivityAndWindowManagersState.java | 287 void waitForLastOrientation(int orientation) { in waitForLastOrientation() argument 288 waitForWithWmState(state -> state.getLastOrientation() == orientation, in waitForLastOrientation() 289 "***Waiting for LastOrientation: " + orientation); in waitForLastOrientation() 295 void waitForActivityOrientation(ComponentName activityName, int orientation) { in waitForActivityOrientation() argument 301 return task.mFullConfiguration.orientation == orientation; in waitForActivityOrientation() 302 }, "***Waiting for Activity orientation: " + orientation); in waitForActivityOrientation()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ApplyOverrideConfigurationTest.java | 58 final int originalOrientation = config.orientation; in testOverriddenConfigurationIsPassedIntoCallback() 71 assertTrue(newConfig.orientation != originalOrientation); in testOverriddenConfigurationIsPassedIntoCallback()
|
/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/tests/view/src/android/view/animation/cts/ |
D | AnimatorInflaterTest.java | 161 int orientation = mActivity.getResources().getConfiguration().orientation; in rotate() local 194 if (mActivity.getResources().getConfiguration().orientation == orientation) { in rotate()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigurationTest.java | 50 mConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in makeConfiguration() 70 cfg1.orientation = 2; in testCompareTo() 71 cfg2.orientation = 3; in testCompareTo() 73 cfg1.orientation = 3; in testCompareTo() 74 cfg2.orientation = 2; in testCompareTo() 265 config.orientation = 1; in testDiff() 355 assertEquals(Configuration.ORIENTATION_UNDEFINED, config.orientation); in testSetToDefaults() 382 assertEquals(Configuration.ORIENTATION_UNDEFINED, config.orientation); in testUnset() 730 config.orientation = Configuration.ORIENTATION_PORTRAIT; in createConfig()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/ |
D | CameraOrientationActivity.java | 14 package com.android.cts.verifier.camera.orientation; 437 private void setTestedConfiguration(int cameraId, int orientation) { in setTestedConfiguration() argument 439 + orientation in setTestedConfiguration() 561 Settings(int stageIndex, int cameraId, int orientation) { in Settings() argument 563 mOrientation = orientation; in Settings()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | OrientationTestUtils.java | 58 final int originalOrientation = activity.getResources().getConfiguration().orientation; in getOrientations()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanPreTransformCtsActivity.java | 61 if (getResources().getConfiguration().orientation in setActivityOrientation()
|
/cts/tests/tests/gesture/src/android/gesture/cts/ |
D | GestureStrokeTest.java | 115 assertEquals(LineGestureStrokeHelper.LINE_ANGLE, box.orientation); in testComputeOrientedBoundingBox()
|
/cts/tests/openglperf2/assets/vertex/ |
D | perspective | 28 // Transform the normal\'s orientation into eye space.
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | NativeMediaActivity.java | 69 Log.w(TAG, "configuration changed " + newConfig.orientation); in onConfigurationChanged()
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | TestUtils.java | 158 return mInstrumentation.getTargetContext().getResources().getConfiguration().orientation in isLandscape()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | GradientDrawableTest.java | 124 Orientation orientation; in testSetOrientation() local 126 orientation = Orientation.BL_TR; in testSetOrientation() 127 gradientDrawable.setOrientation(orientation); in testSetOrientation() 129 orientation, gradientDrawable.getOrientation()); in testSetOrientation()
|