Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 55) sorted by relevance

123

/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/PoseProvider/
DPoseData.java70 public PoseData(float[] translation, float[] rotation, long timestamp){ in PoseData() argument
72 mRotation[0] = rotation[0]; in PoseData()
73 mRotation[1] = rotation[1]; in PoseData()
74 mRotation[2] = rotation[2]; in PoseData()
75 mRotation[3] = rotation[3]; in PoseData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/
DComplexMovementPath.java191 float[] rotation = new float[3]; in calculateRingRotation() local
192 rotation[X] = location2[X] - location1[X]; in calculateRingRotation()
193 rotation[Y] = location2[Y] - location1[Y]; in calculateRingRotation()
194 rotation[Z] = location2[Z] - location1[Z]; in calculateRingRotation()
195 return rotation; in calculateRingRotation()
229 private ArrayList<float[]> calculateRectangleHitbox(float[] centre, float[] rotation) { in calculateRectangleHitbox() argument
231 float magnitude = (float) Math.sqrt(Math.pow(rotation[X], 2) + in calculateRectangleHitbox()
232 Math.pow(rotation[Z], 2)); in calculateRectangleHitbox()
236 float[] rotationInverse = {0 - rotation[X], 0 - rotation[Y]}; in calculateRectangleHitbox()
237 float[] rotationNinety = {rotation[Y], 0 - rotation[X]}; in calculateRectangleHitbox()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFreezeRotationRule.java33 public FreezeRotationRule(int rotation) { in FreezeRotationRule() argument
34 mRotation = rotation; in FreezeRotationRule()
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/
DPdfRendererTransformTest.java83 for (int rotation : rotations) { in getParameters()
89 if (rotation != 0 || translateX != 0 || translateY != 0 || scaleX != 0 in getParameters()
91 if (rotation != 0) { in getParameters()
92 transformation.postRotate(rotation); in getParameters()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/PathUtilityClasses/
DRing.java44 float[] rotation, ArrayList<float[]> rectangleHitBox) { in Ring() argument
48 mRotation = rotation; in Ring()
/cts/apps/CameraITS/utils/
Dcamera_properties_utils.py870 rotation = np.array(props['android.lens.poseRotation'])
876 logging.debug('rotation: %s', str(rotation))
877 rotation_len = len(rotation)
880 x = rotation[0]
881 y = rotation[1]
882 z = rotation[2]
883 w = rotation[3]
Dopencv_processing_utils.py245 rotation=None): argument
272 self.locate(cam, props, log_path, rotation)
282 def _calc_scale_factors(self, cam, props, fmt, log_path, rotation): argument
306 if rotation is not None:
307 logging.debug('Rotating template by %d degrees', rotation)
308 template = numpy.rot90(template, k=rotation / 90)
320 if rotation == 90 or rotation == 270:
333 def locate(self, cam, props, log_path, rotation): argument
354 rotation)
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DDockConfigChangeTests.java131 int rotation = rotationDegreesToConst(mContext.getResources().getInteger( in rotateToDockRotation() local
134 if (rotation == -1) { in rotateToDockRotation()
139 rotationSession.set(rotation); in rotateToDockRotation()
DConfigChangeTests.java235 for (int rotation = 0; rotation < 4; rotation += rotationStep) { in testRotation()
237 rotationSession.set(rotation); in testRotation()
DConfigurationCallbacksTest.java144 int rotation = rotationSession.get(); in testDisplayRotate() local
146 rotation = (rotation + 1) % 4; in testDisplayRotate()
148 rotationSession.set(rotation); in testDisplayRotate()
149 waitAndAssertRotationInCallbacks(rotation); in testDisplayRotate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DAppConfigurationTests.java219 for (final int rotation : rotations) { in rotateAndCheckSizes()
221 rotationSession.set(rotation); in rotateAndCheckSizes()
493 currentRotation, onCreateConfigInfo.rotation); in testRotatedInfoWithFixedRotationTransform()
495 currentRotation, appConfigInfo.rotation); in testRotatedInfoWithFixedRotationTransform()
638 for (final int rotation : rotations) { in testAppOrientationWhenRotating()
640 rotationSession.set(rotation); in testAppOrientationWhenRotating()
717 for (final int rotation : rotations) { in assertDisplayContextDoesntChangeOrientationWhenRotating()
718 rotationSession.set(rotation); in assertDisplayContextDoesntChangeOrientationWhenRotating()
768 for (final int rotation : rotations) { in testFixedOrientationWhenRotating()
770 rotationSession.set(rotation, false /* waitDeviceRotation */); in testFixedOrientationWhenRotating()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/Renderable/
DRingRenderable.java51 public RingRenderable(float[] position, float[] rotation, float[] upVector) { in RingRenderable() argument
65 rotation[X], rotation[Y], rotation[Z], in RingRenderable()
/cts/tests/camera/src/android/hardware/camera2/cts/
DHeifWriterTest.java253 int width, int height, int rotation, int quality, in TestConfig() argument
260 mRotation = rotation; in TestConfig()
291 Builder setRotation(int rotation) { in setRotation() argument
292 mRotation = rotation; in setRotation()
336 String filename, int width, int height, int rotation, boolean useGrid, int numImages) in verifyResult() argument
353 assertEquals("Wrong rotation", rotation, in verifyResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/TestPhase/
DRobustnessTest.java180 RotationData rotation = ((RobustnessPath) mTestPath).handleRotation( in getRotationData() local
182 if (rotation == null) { in getRotationData()
198 return rotation; in getRotationData()
/cts/tests/tests/telecom/src/android/telecom/cts/
DMockVideoProvider.java74 public void onSetDeviceOrientation(int rotation) { in onSetDeviceOrientation() argument
75 mDeviceOrientation = rotation; in onSetDeviceOrientation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java556 int rotation = (360 + mCameraSensorOrientation - displayRotation) % 360; in onImageAvailable() local
558 rotation = (mCameraSensorOrientation + displayRotation) % 360; in onImageAvailable()
561 m.postRotate(rotation); in onImageAvailable()
736 int rotation = getWindowManager().getDefaultDisplay().getRotation(); in getDisplayRotation() local
738 switch (rotation) { in getDisplayRotation()
807 int rotation = (360 + mCameraSensorOrientation - displayRotation) % 360; in configureImageViewTransform() local
809 rotation = (mCameraSensorOrientation + displayRotation) % 360; in configureImageViewTransform()
818 if (rotation % 180 == 0) { in configureImageViewTransform()
841 if (rotation % 360 != 0) { in configureImageViewTransform()
842 matrix.postRotate(rotation, 0, 0); in configureImageViewTransform()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVCameraPreview.java72 public void init(Camera camera, float aspectRatio, int rotation) { in init() argument
75 mCameraRotation = rotation; in init()
DMotionIndicatorView.java156 public void setDeviceRotation(int rotation) { in setDeviceRotation() argument
157 mIsDeviceRotated = (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270); in setDeviceRotation()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsPolicyTest.java136 final int rotation = activity.getDisplay().getRotation(); in testForcedConsumedTopInsets() local
142 rotationSession.set(rotation == ROTATION_0 || rotation == ROTATION_180 in testForcedConsumedTopInsets()
146 rotationSession.set(rotation); in testForcedConsumedTopInsets()
DRoundedCornerTests.java127 int rotation = getRotation(activity, orientation); in verifyRoundedCorners() local
129 if (rotation != ROTATION_0) { in verifyRoundedCorners()
136 rotationSession.set(rotation); in verifyRoundedCorners()
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/
DAndroid.bp34 // library and is used to verify end to end updates with key rotation.
90 // key targeting SDK version 33 for rotation with an updated version number.
113 // signing key as v2 and targeting SDK version 33 for rotation. This app
/cts/tests/tests/security/
DAndroid.bp214 lineage: ":permission-test-cert-with-rotation-history",
251 name: "permission-test-cert-with-rotation-history",
253 "test-cert-with-1-2-4-in-rotation-history",
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DSplitAttributesCalculatorTest.java238 final int rotation = (initialRotation + i) % 4; in testSplitAttributesCalculatorInvocation_screenRotation() local
239 rotationSession.set(rotation); in testSplitAttributesCalculatorInvocation_screenRotation()
242 + " rotation:" + rotation); in testSplitAttributesCalculatorInvocation_screenRotation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java456 int rotation = getWindowManager().getDefaultDisplay().getRotation(); in setUpCamera() local
458 switch (rotation) { in setUpCamera()
651 int rotation = mPreviewRotation; in onPostExecute() local
653 rotation = (360 - rotation) % 360; // de-compensate the mirror in onPostExecute()
656 if (rotation != 0 && rotation != 180) { in onPostExecute()
661 transform.postRotate(rotation); in onPostExecute()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DWindowManagerTests.java54 final IntConsumer listener = rotation -> latch.countDown(); in testProposedRotationListener()

123