Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java144 Matrix matrix = new Matrix(); in centerMatrix() local
145 matrix.postTranslate(tx, ty); in centerMatrix()
146 return matrix; in centerMatrix()
158 Matrix matrix = new Matrix(); in fitXYMatrix() local
159 matrix.postScale(scaleX, scaleY); in fitXYMatrix()
160 return matrix; in fitXYMatrix()
179 Matrix matrix = new Matrix(); in centerCropMatrix() local
180 matrix.postScale(maxScale, maxScale); in centerCropMatrix()
181 matrix.postTranslate(tx, ty); in centerCropMatrix()
182 return matrix; in centerCropMatrix()
[all …]
DSharedElementCallbackTest.java58 Matrix matrix = new Matrix(); in testSnapshot() local
60 Parcelable snapshot = cb.onCaptureSharedElementSnapshot(originalView, matrix, screenBounds); in testSnapshot()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DMathsUtils.java149 float[] matrix = new float[16]; in quaternionMatrixOpenGL() local
167 matrix[0] = 1f - 2f * (y2 + z2); in quaternionMatrixOpenGL()
168 matrix[4] = 2f * (xy - wz); in quaternionMatrixOpenGL()
169 matrix[8] = 2f * (xz + wy); in quaternionMatrixOpenGL()
170 matrix[12] = 0f; in quaternionMatrixOpenGL()
172 matrix[1] = 2f * (xy + wz); in quaternionMatrixOpenGL()
173 matrix[5] = 1f - 2f * (x2 + z2); in quaternionMatrixOpenGL()
174 matrix[9] = 2f * (yz - wx); in quaternionMatrixOpenGL()
175 matrix[13] = 0f; in quaternionMatrixOpenGL()
177 matrix[2] = 2f * (xz - wy); in quaternionMatrixOpenGL()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DResourceModifier.java67 Matrix matrix = new Matrix(); in ResourceModifier() local
68 matrix.setTranslate(texWidth / 2.0f, texHeight / 2.0f); in ResourceModifier()
69 matrix.postRotate(45, 0, 0); in ResourceModifier()
70 translatedShader.setLocalMatrix(matrix); in ResourceModifier()
74 matrix = new Matrix(); in ResourceModifier()
75 matrix.setScale(0.5f, 0.5f); in ResourceModifier()
76 scaledShader.setLocalMatrix(matrix); in ResourceModifier()
80 matrix = new Matrix(); in ResourceModifier()
81 matrix.setScale(drawHeight, 1.0f); in ResourceModifier()
82 matrix.postRotate(-90.0f); in ResourceModifier()
[all …]
DDisplayModifier.java334 ColorMatrix matrix = new ColorMatrix();
335 matrix.setSaturation(0.1f);
336 paint.setColorFilter(new ColorMatrixColorFilter(matrix));
342 ColorMatrix matrix = new ColorMatrix();
343 matrix.setSaturation(10.0f);
344 paint.setColorFilter(new ColorMatrixColorFilter(matrix));
/cts/tests/tests/view/src/android/view/cts/
DViewAnimationMatrixTest.java57 Matrix matrix = new Matrix(); in testAnimationMatrixGetter() local
58 matrix.setTranslate(34, 65); in testAnimationMatrixGetter()
59 matrix.setRotate(45); in testAnimationMatrixGetter()
60 view.setAnimationMatrix(matrix); in testAnimationMatrixGetter()
62 assertEquals(matrix, view.getAnimationMatrix()); in testAnimationMatrixGetter()
100 Matrix matrix = new Matrix(); in moveToTopLeftCorner() local
101 matrix.setRotate(-view.getRotation(), lp.width / 2f, lp.height / 2f); in moveToTopLeftCorner()
102 matrix.postTranslate(-lp.leftMargin, 0); in moveToTopLeftCorner()
103 return matrix; in moveToTopLeftCorner()
DMotionEventTest.java674 Matrix matrix = new Matrix(); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() local
675 matrix.setRotate(ROTATION); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
676 event.transform(matrix); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
/cts/tests/tests/location/src/android/location/cts/psedorange/
DGpsMathOperations.java63 public static double[] matrixByColVectMultiplication(double[][] matrix, double[] vector) in matrixByColVectMultiplication() argument
65 double result[] = new double[matrix.length]; in matrixByColVectMultiplication()
66 int matrixLength = matrix.length; in matrixByColVectMultiplication()
68 if (vectorLength != matrix[0].length) { in matrixByColVectMultiplication()
74 result[i] += matrix[i][j] * vector[j]; in matrixByColVectMultiplication()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrixTest.java90 Matrix matrix = new Matrix(); in testSet() local
91 matrix.set(mMatrix); in testSet()
94 matrix.getValues(mValues); in testSet()
101 Matrix matrix = new Matrix(); in testEquals() local
102 matrix.set(mMatrix); in testEquals()
105 assertTrue(mMatrix.equals(matrix)); in testEquals()
242 Matrix matrix = new Matrix(); in testPreConcat() local
243 matrix.setValues(values); in testPreConcat()
244 assertTrue(mMatrix.preConcat(matrix)); in testPreConcat()
297 Matrix matrix = new Matrix(); in testPostConcat() local
[all …]
DPathMeasureTest.java139 Matrix matrix = new Matrix(); in testGetMatrix() local
140 assertFalse(mPathMeasure.getMatrix(1f, matrix, PathMeasure.POSITION_MATRIX_FLAG)); in testGetMatrix()
141 matrix.setScale(1f, 2f); in testGetMatrix()
144 assertTrue(mPathMeasure.getMatrix(0f, matrix, PathMeasure.TANGENT_MATRIX_FLAG)); in testGetMatrix()
DShaderTest.java94 Matrix matrix = new Matrix(); in testGetWithNullParam() local
95 matrix.setScale(10, 10); in testGetWithNullParam()
96 shader.setLocalMatrix(matrix); in testGetWithNullParam()
DPathTest.java309 Matrix matrix = new Matrix(); in testAddPath3() local
310 path.addPath(src, matrix); in testAddPath3()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dimage_and_kernel.rsh20 // Auxiliary information that is needed to extract a kernel matrix from a buffer
23 // The starting position of a kernel matrix in a buffer of a stack of kernel
27 // The matrix is of size (2*radius_y+1)-by-(2*radius_x+1).
Dlayered_filter_f32_helper.rsh70 // Extracts kernel matrix from kernel stack using kernel_info.
122 // Extracts kernel matrix from kernel stack using kernel_info.
158 // Extracts kernel matrix from kernel stack using kernel_info.
Dlayered_filter_d1new_helper.rsh130 // Extracts kernel matrix from kernel stack using kernel_info.
185 // Extracts kernel matrix from kernel stack using kernel_info.
218 // Extracts kernel matrix from kernel stack using kernel_info.
/cts/tests/openglperf2/jni/graphics/
DTransformationNode.cpp16 TransformationNode::TransformationNode(Matrix* matrix) : in TransformationNode() argument
17 mMatrix(matrix) { in TransformationNode()
DTransformationNode.h23 explicit TransformationNode(Matrix* matrix);
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DRawConverter.java730 private static void map(float[] matrix, float[] input, /*out*/float[] output) { in map() argument
731 output[0] = input[0] * matrix[0] + input[1] * matrix[1] + input[2] * matrix[2]; in map()
732 output[1] = input[0] * matrix[3] + input[1] * matrix[4] + input[2] * matrix[5]; in map()
733 output[2] = input[0] * matrix[6] + input[1] * matrix[7] + input[2] * matrix[8]; in map()
823 private static void scale(float factor, /*inout*/float[] matrix) { in scale() argument
825 matrix[i] *= factor; in scale()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DCursorAnchorInfoTest.java376 final Matrix matrix = new Matrix(); in testMatrixIsCopied() local
379 matrix.set(matrix1); in testMatrixIsCopied()
380 builder.setMatrix(matrix); in testMatrixIsCopied()
381 matrix.postRotate(90.0f); in testMatrixIsCopied()
385 matrix.set(matrix2); in testMatrixIsCopied()
386 builder.setMatrix(matrix); in testMatrixIsCopied()
391 matrix.set(matrix3); in testMatrixIsCopied()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRenderNodeTests.java176 ColorMatrix matrix = new ColorMatrix(); in testUseCompositingLayer() local
178 matrix.setRGB2YUV(); in testUseCompositingLayer()
185 matrix.postConcat(tmp); in testUseCompositingLayer()
187 matrix.postConcat(tmp); in testUseCompositingLayer()
188 paint.setColorFilter(new ColorMatrixColorFilter(matrix)); in testUseCompositingLayer()
DHardwareBitmapTests.java258 Matrix matrix = new Matrix(); in testCreateSubsetBitmap() local
259 matrix.setRotate(90); in testCreateSubsetBitmap()
272 Matrix matrix = new Matrix(); in testCreateTransformedBitmap() local
273 matrix.setRotate(90); in testCreateTransformedBitmap()
274 Bitmap transformed = Bitmap.createBitmap(hardwareBitmap, 7, 7, 30, 30, matrix, false); in testCreateTransformedBitmap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java163 Matrix matrix = new Matrix(); in onCreateDialog() local
164 matrix.postRotate(orientationInDegree); in onCreateDialog()
166 scaled.getHeight(), matrix, true); in onCreateDialog()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java614 Matrix matrix = new Matrix(); in pinchWithinView() local
615 matrix.setRotate(orientation); in pinchWithinView()
616 matrix.postTranslate(offsetCenter.x, offsetCenter.y); in pinchWithinView()
617 matrix.mapPoints(startPoint1); in pinchWithinView()
618 matrix.mapPoints(endPoint1); in pinchWithinView()
619 matrix.mapPoints(startPoint2); in pinchWithinView()
620 matrix.mapPoints(endPoint2); in pinchWithinView()
/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java366 final Matrix matrix = new Matrix(); in testAccessImageMatrix() local
367 mImageViewRegular.setImageMatrix(matrix); in testAccessImageMatrix()
368 assertEquals(matrix, mImageViewRegular.getImageMatrix()); in testAccessImageMatrix()
762 Matrix matrix = new Matrix(); in testAnimateTransform() local
763 mImageViewRegular.animateTransform(matrix); in testAnimateTransform()
766 assertEquals(matrix, mImageViewRegular.getImageMatrix()); in testAnimateTransform()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2MultiViewTestCase.java223 TransformUpdater(TextureView view, Matrix matrix) { in updatePreviewDisplayRotation() argument
225 mTransformMatrix = matrix; in updatePreviewDisplayRotation()

12