Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 54) 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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFreezeRotationRule.java40 public FreezeRotationRule(int rotation) { in FreezeRotationRule() argument
41 mRotation = rotation; in FreezeRotationRule()
/cts/apps/CameraITS/utils/
Dcamera_properties_utils.py887 rotation = np.array(props['android.lens.poseRotation'])
893 logging.debug('rotation: %s', str(rotation))
894 rotation_len = len(rotation)
897 x = rotation[0]
898 y = rotation[1]
899 z = rotation[2]
900 w = rotation[3]
Dsensor_fusion_utils.py552 rotation = -math.atan2(tform[0, 1], tform[0, 0])
554 rotation = math.atan2(tform[0, 1], tform[0, 0])
565 return rotation
639 rotation = derive_rotation(
642 if rotation is None:
644 rotations.append(rotation)
691 rotation = derive_rotation(
694 if rotation is None:
696 rotations.append(rotation)
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DDockConfigChangeTests.java139 int rotation = rotationDegreesToConst(mContext.getResources().getInteger( in rotateToDockRotation() local
142 if (rotation == -1) { in rotateToDockRotation()
147 rotationSession.set(rotation); in rotateToDockRotation()
DConfigurationCallbacksTest.java136 int rotation = rotationSession.get(); in testDisplayRotate() local
138 rotation = (rotation + 1) % 4; in testDisplayRotate()
140 rotationSession.set(rotation); in testDisplayRotate()
141 waitAndAssertRotationInCallbacks(rotation); in testDisplayRotate()
DConfigChangeTests.java235 for (int rotation = 0; rotation < 4; rotation += rotationStep) { in testRotation()
237 rotationSession.set(rotation); in testRotation()
/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/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingPolicyTests.java127 for (final int rotation : rotations) { in testIgnoreOrientationRequestForActivityEmbeddingSplits()
132 rotationSession.set(rotation); in testIgnoreOrientationRequestForActivityEmbeddingSplits()
/cts/tests/tests/telecom/src/android/telecom/cts/
DMockVideoProvider.java74 public void onSetDeviceOrientation(int rotation) { in onSetDeviceOrientation() argument
75 mDeviceOrientation = rotation; in onSetDeviceOrientation()
/cts/tests/framework/base/windowmanager/src/android/server/wm/display/
DAppConfigurationTests.java227 for (final int rotation : rotations) { in rotateAndCheckSizes()
229 rotationSession.set(rotation); in rotateAndCheckSizes()
528 currentRotation, onCreateConfigInfo.rotation); in testRotatedInfoWithFixedRotationTransform()
530 currentRotation, appConfigInfo.rotation); in testRotatedInfoWithFixedRotationTransform()
655 for (final int rotation : rotations) { in testAppOrientationWhenRotating()
657 rotationSession.set(rotation); in testAppOrientationWhenRotating()
865 for (final int rotation : rotations) { in testFixedOrientationWhenRotating()
867 rotationSession.set(rotation, false /* waitDeviceRotation */); in testFixedOrientationWhenRotating()
954 private void requestOrientationInSplitScreen(RotationSession rotationSession, int rotation, in requestOrientationInSplitScreen() argument
974 rotationSession.set(rotation); in requestOrientationInSplitScreen()
[all …]
/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/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()
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/ServiceTest/
DAndroid.bp19 // after a key rotation and provides a companion package that can be used for
90 // lineage as v2 and v3 of the CtsSignatureQueryService test app with rotation

123