Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DCamUtils.java127 float[][] matrix = SRGB_TO_XYZ; in yFromInt() local
128 float y = (r * matrix[1][0]) + (g * matrix[1][1]) + (b * matrix[1][2]); in yFromInt()
137 float[][] matrix = SRGB_TO_XYZ; in xyzFromInt() local
138 float x = (r * matrix[0][0]) + (g * matrix[0][1]) + (b * matrix[0][2]); in xyzFromInt()
139 float y = (r * matrix[1][0]) + (g * matrix[1][1]) + (b * matrix[1][2]); in xyzFromInt()
140 float z = (r * matrix[2][0]) + (g * matrix[2][1]) + (b * matrix[2][2]); in xyzFromInt()
DFrame.java128 float[][] matrix = CamUtils.XYZ_TO_CAM16RGB; in make() local
130 float rW = (xyz[0] * matrix[0][0]) + (xyz[1] * matrix[0][1]) + (xyz[2] * matrix[0][2]); in make()
131 float gW = (xyz[0] * matrix[1][0]) + (xyz[1] * matrix[1][1]) + (xyz[2] * matrix[1][2]); in make()
132 float bW = (xyz[0] * matrix[2][0]) + (xyz[1] * matrix[2][1]) + (xyz[2] * matrix[2][2]); in make()
DCam.java152 float[][] matrix = CamUtils.XYZ_TO_CAM16RGB; in fromIntInFrame() local
153 float rT = (xyz[0] * matrix[0][0]) + (xyz[1] * matrix[0][1]) + (xyz[2] * matrix[0][2]); in fromIntInFrame()
154 float gT = (xyz[0] * matrix[1][0]) + (xyz[1] * matrix[1][1]) + (xyz[2] * matrix[1][2]); in fromIntInFrame()
155 float bT = (xyz[0] * matrix[2][0]) + (xyz[1] * matrix[2][1]) + (xyz[2] * matrix[2][2]); in fromIntInFrame()
316 float[][] matrix = CamUtils.CAM16RGB_TO_XYZ; in viewed() local
317 float x = (rF * matrix[0][0]) + (gF * matrix[0][1]) + (bF * matrix[0][2]); in viewed()
318 float y = (rF * matrix[1][0]) + (gF * matrix[1][1]) + (bF * matrix[1][2]); in viewed()
319 float z = (rF * matrix[2][0]) + (gF * matrix[2][1]) + (bF * matrix[2][2]); in viewed()
/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.java318 ColorMatrix matrix = new ColorMatrix();
319 matrix.setSaturation(0.1f);
320 paint.setColorFilter(new ColorMatrixColorFilter(matrix));
326 ColorMatrix matrix = new ColorMatrix();
327 matrix.setSaturation(10.0f);
328 paint.setColorFilter(new ColorMatrixColorFilter(matrix));
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/
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/view/src/android/view/cts/
DViewAnimationMatrixTest.java68 Matrix matrix = new Matrix(); in testAnimationMatrixGetter() local
69 matrix.setTranslate(34, 65); in testAnimationMatrixGetter()
70 matrix.setRotate(45); in testAnimationMatrixGetter()
71 view.setAnimationMatrix(matrix); in testAnimationMatrixGetter()
73 assertEquals(matrix, view.getAnimationMatrix()); in testAnimationMatrixGetter()
111 Matrix matrix = new Matrix(); in moveToTopLeftCorner() local
112 matrix.setRotate(-view.getRotation(), lp.width / 2f, lp.height / 2f); in moveToTopLeftCorner()
113 matrix.postTranslate(-lp.leftMargin, 0); in moveToTopLeftCorner()
114 return matrix; in moveToTopLeftCorner()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrixTest.java277 Matrix matrix = new Matrix(); in testSet() local
278 matrix.set(mMatrix); in testSet()
281 matrix.getValues(mValues); in testSet()
288 Matrix matrix = new Matrix(); in testEquals() local
289 matrix.set(mMatrix); in testEquals()
292 assertTrue(mMatrix.equals(matrix)); in testEquals()
429 Matrix matrix = new Matrix(); in testPreConcat() local
430 matrix.setValues(values); in testPreConcat()
431 assertTrue(mMatrix.preConcat(matrix)); in testPreConcat()
484 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()
/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).
/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/PhotoPicker/src/android/photopicker/cts/
DPickerProviderMediaGenerator.java231 final MatrixCursor matrix; in getCursor() local
233 matrix = new MatrixCursor(DELETED_MEDIA_PROJECTION); in getCursor()
235 matrix = new MatrixCursor(MEDIA_PROJECTION); in getCursor()
241 matrix.addRow(media.toArray(isDeleted)); in getCursor()
244 return matrix; in getCursor()
249 final MatrixCursor matrix = new MatrixCursor(ALBUM_PROJECTION); in getCursor() local
254 matrix.addRow(res); in getCursor()
257 return matrix; in getCursor()
/cts/apps/CameraITS/tests/scene9/
Dtest_jpeg_quality.py168 matrix = np.array(jpeg[start:start + dqt_size])
170 chromas.append(np.mean(matrix))
173 logging.debug(' chroma:%s', matrix.reshape(h, h))
175 lumas.append(np.mean(matrix))
178 logging.debug(' luma:%s', matrix.reshape(h, h))
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRuntimeShaderTests.kt290 val matrix = Matrix() in <lambda>() constant
291 matrix.postScale(0.49f, 0.49f) in <lambda>()
292 bitmapShader.setLocalMatrix(matrix) in <lambda>()
388 val matrix = Matrix() in <lambda>() constant
389 matrix.setTranslate(100f, 0f) in <lambda>()
390 bitmapShader.setLocalMatrix(matrix) in <lambda>()
397 matrix.setTranslate(-100f, 0f) in <lambda>()
398 composeShader.setLocalMatrix(matrix) in <lambda>()
DHardwareBitmapTests.java252 Matrix matrix = new Matrix(); in testCreateSubsetBitmap() local
253 matrix.setRotate(90); in testCreateSubsetBitmap()
266 Matrix matrix = new Matrix(); in testCreateTransformedBitmap() local
267 matrix.setRotate(90); in testCreateTransformedBitmap()
268 Bitmap transformed = Bitmap.createBitmap(hardwareBitmap, 7, 7, 30, 30, matrix, false); in testCreateTransformedBitmap()
DGradientTests.java289 Matrix matrix = new Matrix(); in testMatrixTransformation() local
290 matrix.postTranslate(radius, radius); in testMatrixTransformation()
291 gradient.setLocalMatrix(matrix); in testMatrixTransformation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java756 Matrix matrix = new Matrix(); in configurePreviewTextureTransform() local
791 matrix.setScale(scale.x, scale.y, viewRect.centerX(), viewRect.centerY()); in configurePreviewTextureTransform()
793 matrix.postRotate(360 - displayRotation, viewRect.centerX(), viewRect.centerY()); in configurePreviewTextureTransform()
796 mPreviewView.setTransform(matrix); in configurePreviewTextureTransform()
812 Matrix matrix = new Matrix(); in configureImageViewTransform() local
840 matrix.setScale(scale.x, scale.y, 0, 0); in configureImageViewTransform()
842 matrix.postRotate(rotation, 0, 0); in configureImageViewTransform()
846 matrix.mapRect(imageRect, imageRect); in configureImageViewTransform()
847 matrix.postTranslate(-imageRect.left, -imageRect.top); in configureImageViewTransform()
848 matrix.postTranslate(viewRect.width() / 2 - imageRect.width() / 2, in configureImageViewTransform()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DRawConverter.java1267 private static void map(float[] matrix, float[] input, /*out*/float[] output) { in map() argument
1268 output[0] = input[0] * matrix[0] + input[1] * matrix[1] + input[2] * matrix[2]; in map()
1269 output[1] = input[0] * matrix[3] + input[1] * matrix[4] + input[2] * matrix[5]; in map()
1270 output[2] = input[0] * matrix[6] + input[1] * matrix[7] + input[2] * matrix[8]; in map()
1360 private static void scale(float factor, /*inout*/float[] matrix) { in scale() argument
1362 matrix[i] *= factor; in scale()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dverify.rscript83 // 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/
DByodPresentMediaDialog.java163 Matrix matrix = new Matrix(); in onCreateDialog() local
164 matrix.postRotate(orientationInDegree); in onCreateDialog()
166 scaled.getHeight(), matrix, true); in onCreateDialog()

12