/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 144 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 …]
|
D | SharedElementCallbackTest.java | 58 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/ |
D | MathsUtils.java | 149 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/ |
D | ResourceModifier.java | 67 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 …]
|
D | DisplayModifier.java | 334 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/graphics/src/android/graphics/cts/ |
D | MatrixTest.java | 90 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 …]
|
D | PathMeasureTest.java | 139 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()
|
D | ShaderTest.java | 94 Matrix matrix = new Matrix(); in testGetWithNullParam() local 95 matrix.setScale(10, 10); in testGetWithNullParam() 96 shader.setLocalMatrix(matrix); in testGetWithNullParam()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAnimationMatrixTest.java | 57 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()
|
/cts/tests/tests/location/src/android/location/cts/psedorange/ |
D | GpsMathOperations.java | 63 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/renderscript/src/android/renderscript/cts/refocus/ |
D | image_and_kernel.rsh | 20 // 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).
|
D | layered_filter_f32_helper.rsh | 70 // 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.
|
D | layered_filter_d1new_helper.rsh | 130 // 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/camera/src/android/hardware/camera2/cts/rs/ |
D | RawConverter.java | 730 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/openglperf2/jni/graphics/ |
D | TransformationNode.cpp | 16 TransformationNode::TransformationNode(Matrix* matrix) : in TransformationNode() argument 17 mMatrix(matrix) { in TransformationNode()
|
D | TransformationNode.h | 23 explicit TransformationNode(Matrix* matrix);
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 376 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/ |
D | RenderNodeTests.java | 176 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()
|
D | HardwareBitmapTests.java | 258 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/tests/tests/renderscript/src/android/renderscript/cts/ |
D | MatrixTest.rscript | 110 /* Load the matrix with the values of v, where the values are in row major. 273 // rsMatrixMultiply returns (matrix * vector) 531 // Build a scaling matrix 574 /* We are creating a matrix that scales first then does the remaining operation. 595 // Build a translating matrix 639 /* We are creating a matrix that translates first then does the remaining operation. 660 /* Create a matrix that will scale by (4, -2, 3) then translate by (2, 3, -1). 695 // Build a rotating matrix. 775 …ified.wordpress.com/2012/06/21/calculating-the-gluperspective-matrix-and-other-opengl-matrix-maths/ 791 …vanced-lessons/perspective-and-orthographic-projection-matrix/opengl-perspective-projection-matrix/ [all …]
|
D | reduce.rscript | 229 // finds min values (not their locations) from matrix input 231 // tests matrix input and matrix accumulator 254 // reduction does not support matrix result, so use array instead 262 // finds min and max values (not their locations) from matrix input 264 // tests matrix input and array of matrix accumulator (0 = min, 1 = max) 310 // reduction does not support matrix result, so use array instead
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | verify.rscript | 83 // Just test the upper matrix for certain BLAS routines 107 // Just test the upper matrix for certain BLAS routines 131 // Just test the upper matrix for certain BLAS routines 155 // Just test the upper matrix for certain BLAS routines
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodPresentMediaDialog.java | 163 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/ |
D | AccessibilityGestureDispatchTest.java | 614 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/ |
D | ImageViewTest.java | 366 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()
|