Home
last modified time | relevance | path

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

12

/cts/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java44 final int originalOrientation = activity.getResources().getConfiguration().orientation; in toggleOrientationSync()
53 Instrumentation instrumentation, final int orientation) { in changeOrientation() argument
54 activity.setRequestedOrientation(orientation); in changeOrientation()
/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.java84 private Activity startOrientationActivity(int orientation) { in startOrientationActivity() argument
86 intent.putExtra(OrientationActivity.EXTRA_ORIENTATION, orientation); in startOrientationActivity()
/cts/tests/tests/app/src/android/app/cts/
DApplyOverrideConfigurationTest.java50 final int originalOrientation = config.orientation; in testOverriddenConfigurationIsPassedIntoCallback()
63 assertTrue(newConfig.orientation != originalOrientation); in testOverriddenConfigurationIsPassedIntoCallback()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java389 c.orientation = angle; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
423 assertEquals(Math.tan(angle), Math.tan(c.orientation), 0.1); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
459 assertEquals(0f, coords.orientation); in testPointerCoordsDefaultConstructor()
472 coords.orientation = 9; in testPointerCoordsCopyConstructor()
484 assertEquals(9f, copy.orientation); in testPointerCoordsCopyConstructor()
498 coords.orientation = 9; in testPointerCoordsCopyFrom()
511 assertEquals(9f, copy.orientation); in testPointerCoordsCopyFrom()
DOrientationEventListenerTest.java61 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
DOrientationListenerTest.java103 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java14 package com.android.cts.verifier.camera.orientation;
437 private void setTestedConfiguration(int cameraId, int orientation) { in setTestedConfiguration() argument
439 + orientation in setTestedConfiguration()
557 Settings(int stageIndex, int cameraId, int orientation) { in Settings() argument
559 mOrientation = orientation; in Settings()
/cts/tests/tests/content/src/android/content/res/cts/
DConfigurationTest.java49 mConfig.orientation = Configuration.ORIENTATION_PORTRAIT; in makeConfiguration()
62 cfg1.orientation = 2; in testCompareTo()
63 cfg2.orientation = 3; in testCompareTo()
65 cfg1.orientation = 3; in testCompareTo()
66 cfg2.orientation = 2; in testCompareTo()
257 config.orientation = 1; in testDiff()
641 config.orientation = Configuration.ORIENTATION_PORTRAIT; in createConfig()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureStrokeTest.java115 assertEquals(LineGestureStrokeHelper.LINE_ANGLE, box.orientation); in testComputeOrientedBoundingBox()
/cts/tests/openglperf2/assets/vertex/
Dperspective28 // Transform the normal\'s orientation into eye space.
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DGradientDrawableTest.java92 Orientation orientation; in testSetOrientation() local
94 orientation = Orientation.BL_TR; in testSetOrientation()
95 gradientDrawable.setOrientation(orientation); in testSetOrientation()
97 orientation, gradientDrawable.getOrientation()); in testSetOrientation()
DClipDrawableTest.java338 public MockClipDrawable(Drawable drawable, int gravity, int orientation) { in MockClipDrawable() argument
339 super(drawable, gravity, orientation); in MockClipDrawable()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DNativeMediaActivity.java69 Log.w(TAG, "configuration changed " + newConfig.orientation); in onConfigurationChanged()
/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java113 public final int orientation; field in ExifInterfaceTest.ExpectedValue
156 orientation = typedArray.getInt(26, 0); in ExpectedValue()
319 assertIntTag(exifInterface, ExifInterface.TAG_ORIENTATION, expectedValue.orientation); in compareWithExpectedValue()
DDecodeAccuracyTestBase.java434 final int orientation = context.getResources().getConfiguration().orientation; in rotateOrientation()
435 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in rotateOrientation()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java164 config.orientation == Configuration.ORIENTATION_LANDSCAPE) || in updatePreviewDisplayRotation()
166 config.orientation == Configuration.ORIENTATION_PORTRAIT))) { in updatePreviewDisplayRotation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DPhotoCaptureActivity.java535 mJpegOrientation = (info.orientation + degrees) % 360; in calculateOrientations()
538 mJpegOrientation = (info.orientation - degrees + 360) % 360; in calculateOrientations()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java509 int endSpacing, float orientation, long duration) { in createPinch() argument
530 matrix.setRotate(orientation); in createPinch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java663 mVideoRotation = (info.orientation + degrees) % 360; in setUpCamera()
666 mVideoRotation = (info.orientation - degrees + 360) % 360; in setUpCamera()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java405 mPreviewRotation = (info.orientation + degrees) % 360; in setUpCamera()
408 mPreviewRotation = (info.orientation - degrees + 360) % 360; in setUpCamera()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java452 protected void changeOrientation(String orientation) in changeOrientation() argument
458 UiObject orientationOption = mUiDevice.findObject(new UiSelector().text(orientation)); in changeOrientation()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java1749 int orientation = info.orientation;
1752 assertTrue(orientation == 0 || orientation == 90 ||
1753 orientation == 180 || orientation == 270);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVRecordActivity.java506 mCameraInfo.orientation); in init()
/cts/tests/camera/src/android/hardware/camera2/cts/
DCameraTestUtils.java2232 public ExifTestData(Location location, int orientation, in ExifTestData() argument
2235 jpegOrientation = orientation; in ExifTestData()

12