Searched refs:matrix (Results 1 - 25 of 195) sorted by relevance

12345678

/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/
H A DShader.kt26 val matrix = Matrix()
27 getLocalMatrix(matrix)
28 block(matrix)
29 setLocalMatrix(matrix)
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java39 final Matrix matrix = new Matrix();
42 matrix.setRotate(-orientation);
45 matrix.mapRect(fullRectF);
46 matrix.mapRect(partialRectF);
48 matrix.reset();
49 matrix.setTranslate(-fullRectF.left, -fullRectF.top);
50 matrix.mapRect(fullRectF);
51 matrix.mapRect(partialRectF);
61 final Matrix matrix = new Matrix();
62 matrix
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java61 final Matrix matrix = mMatrix;
63 rotate(centerX, centerY, camera, matrix, 32.0f);
64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix);
66 rotate(centerX, centerY, camera, matrix, 12.0f);
67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix);
69 rotate(centerX, centerY, camera, matrix, 52.0f);
70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix);
72 rotate(centerX, centerY, camera, matrix, 122.0f);
73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix);
78 Matrix matrix) {
77 drawBitmap(Canvas canvas, float centerX, float centerY, float offset, Matrix matrix) argument
86 rotate(float centerX, float centerY, Camera camera, Matrix matrix, float angle) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java23 * A color filter that transforms colors through a 4x5 color matrix. This filter
32 * Create a color filter that transforms colors through a 4x5 color matrix.
34 * @param matrix 4x5 matrix used to transform colors. It is copied into
35 * the filter, so changes made to the matrix after the filter
38 public ColorMatrixColorFilter(@NonNull ColorMatrix matrix) { argument
39 mMatrix.set(matrix);
43 * Create a color filter that transforms colors through a 4x5 color matrix.
46 * matrix. The first 20 entries of the array are copied into
66 * Copies the provided color matrix t
79 setColorMatrix(@ullable ColorMatrix matrix) argument
[all...]
H A DCamera.java21 * generate a matrix that can be applied, for instance, on a
136 * Computes the matrix corresponding to the current transformation
137 * and copies it to the supplied matrix object.
139 * @param matrix The matrix to copy the current transforms into
141 public void getMatrix(Matrix matrix) { argument
142 nativeGetMatrix(matrix.native_instance);
146 * Computes the matrix corresponding to the current transformation
149 * @param canvas The Canvas to set the transform matrix onto
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java60 Matrix matrix = new Matrix();
61 matrix.setRotate(orientation);
62 matrix.postTranslate(centerX, centerY);
63 matrix.mapPoints(point);
68 matrix.mapPoints(point);
73 matrix.mapPoints(point);
78 matrix.mapPoints(point);
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dmatrix_helpers.h15 Eigen::Matrix4f matrix; local
17 matrix << m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30,
20 return mat4(matrix);
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
H A DShaderTest.kt30 val matrix = Matrix()
36 // Now read matrix from Shader
37 shader.getLocalMatrix(matrix)
38 matrix.getValues(values)
H A DCanvasTest.kt33 canvas.matrix.getValues(values)
42 canvas.matrix.getValues(values)
55 matrix.getValues(values) // will work for a software canvas
69 matrix.getValues(values) // will work for a software canvas
85 matrix.getValues(values) // will work for a software canvas
101 matrix.getValues(values) // will work for a software canvas
111 val originMatrix = canvas.matrix
121 assertEquals(inputMatrix, matrix)
124 assertEquals(originMatrix, canvas.matrix)
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/
H A DSampleProvider.java63 MatrixCursor matrix = new MatrixCursor(projection);
72 addRow(matrix, PHOTO_INDIVIDUAL_1);
73 addRow(matrix, PHOTO_INDIVIDUAL_2);
74 addRow(matrix, PHOTO_INDIVIDUAL_3);
75 addRow(matrix, PHOTO_INDIVIDUAL_4);
80 addRow(matrix, PHOTO_INDIVIDUAL_1);
83 addRow(matrix, PHOTO_INDIVIDUAL_2);
86 addRow(matrix, PHOTO_INDIVIDUAL_3);
89 addRow(matrix, PHOTO_INDIVIDUAL_4);
97 return matrix;
104 addRow(MatrixCursor matrix, int match_id) argument
[all...]
/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DChangeImageTransformTest.java100 Matrix matrix = new Matrix();
101 matrix.postTranslate(tx, ty);
102 return matrix;
114 Matrix matrix = new Matrix();
115 matrix.postScale(scaleX, scaleY);
116 return matrix;
135 Matrix matrix = new Matrix();
136 matrix.postScale(maxScale, maxScale);
137 matrix.postTranslate(tx, ty);
138 return matrix;
201 verifyMatrixMatches(Matrix expected, Matrix matrix) argument
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DSimpleColorMatrixAnimation.cpp26 "A color matrix shader benchmark for the simple scale/translate case, which has R, G, and "
56 float matrix[20] = {0}; local
59 matrix[SkColorMatrix::kR_Scale] = 1.1f;
60 matrix[SkColorMatrix::kG_Scale] = 1.1f;
61 matrix[SkColorMatrix::kB_Scale] = 1.1f;
62 matrix[SkColorMatrix::kA_Scale] = 0.5f;
64 matrix[SkColorMatrix::kR_Trans] = 5.0f;
65 matrix[SkColorMatrix::kG_Trans] = 5.0f;
66 matrix[SkColorMatrix::kB_Trans] = 5.0f;
67 matrix[SkColorMatri
[all...]
H A DListOfFadedTextAnimation.cpp49 SkMatrix matrix; variable
50 matrix.setScale(1, length);
51 matrix.postRotate(-90);
53 fadingPaint.setShader(s->makeWithLocalMatrix(matrix));
/frameworks/support/transition/src/main/java/androidx/transition/
H A DViewUtilsBase.java61 public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) { argument
65 transformMatrixToGlobal(vp, matrix);
66 matrix.preTranslate(-vp.getScrollX(), -vp.getScrollY());
68 matrix.preTranslate(view.getLeft(), view.getTop());
71 matrix.preConcat(vm);
75 public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) { argument
79 transformMatrixToLocal(vp, matrix);
80 matrix.postTranslate(vp.getScrollX(), vp.getScrollY());
82 matrix.postTranslate(view.getLeft(), view.getTop());
87 matrix
92 setAnimationMatrix(@onNull View view, Matrix matrix) argument
[all...]
H A DViewUtilsApi21.java42 public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) { argument
46 sTransformMatrixToGlobalMethod.invoke(view, matrix);
56 public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) { argument
60 sTransformMatrixToLocalMethod.invoke(view, matrix);
70 public void setAnimationMatrix(@NonNull View view, Matrix matrix) { argument
74 sSetAnimationMatrixMethod.invoke(view, matrix);
H A DGhostViewUtils.java26 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
28 return GhostViewApi21.addGhost(view, viewGroup, matrix);
/frameworks/base/libs/hwui/tests/unit/
H A DSkiaRenderPropertiesTests.cpp127 Matrix4 matrix;
128 matrix.loadTranslate(10, 10, 0); // left, top
129 matrix.scale(1.2f, 1.2f, 1); // static matrix
130 // ignore animation matrix, since static overrides it
133 matrix.translate(10, 20);
136 matrix.translate(50, 50);
137 matrix.scale(0.5f, 0.7f, 1);
138 matrix.translate(-50, -50);
140 EXPECT_MATRIX_APPROX_EQ(matrix, actua
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DDescription.cpp62 void Description::setInputTransformMatrix(const mat3& matrix) { argument
63 mInputTransformMatrix = matrix;
66 void Description::setOutputTransformMatrix(const mat4& matrix) { argument
67 mOutputTransformMatrix = matrix;
H A DTexture.cpp40 void Texture::setMatrix(float const* matrix) { argument
41 mTextureMatrix = mat4(matrix);
/frameworks/rs/script_api/
H A Drs_matrix.spec28 a vector is done by postmultiplying the vector, e.g. <code>(matrix * vector)</code>,
31 To create a transformation matrix that performs two transformations at once,
33 argument. E.g. to create a transformation matrix that applies the
39 style simply stores the transformation matrix in the first argument. The latter
40 modifies a pre-existing transformation matrix so that the new transformation
41 happens first. E.g. if you call @rsMatrixTranslate() on a matrix that already
42 does a scaling, the resulting matrix when applied to a vector will first do the
60 Computes 6 frustum planes from the view projection matrix
187 Returns one element of a matrix.
196 summary: Inverts a matrix i
[all...]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java38 final Matrix matrix; field in class:AssistVisualizer.TextEntry
47 TextEntry(AssistStructure.ViewNode node, int parentLeft, int parentTop, Matrix matrix) { argument
53 this.matrix = new Matrix(matrix);
97 Matrix matrix = new Matrix();
98 matrix.setTranslate(windowNode.getLeft(), windowNode.getTop());
99 mMatrixStack.add(matrix);
120 + " matrix=" + te.matrix.toShortString()
147 Matrix matrix;
[all...]
/frameworks/base/core/jni/android/graphics/
H A DShader.cpp66 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
82 if (matrix) {
83 shader = shader->makeWithLocalMatrix(*matrix);
98 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
118 if (matrix) {
119 shader = baseShader->makeWithLocalMatrix(*matrix).release();
131 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
145 if (matrix) {
146 s = baseShader->makeWithLocalMatrix(*matrix).release();
159 const SkMatrix* matrix local
193 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
218 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
248 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
270 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
[all...]
/frameworks/support/frameworks/support/samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/widget/
H A DChangeImageTransformUsage.java71 case R.id.matrix:
73 final Matrix matrix = new Matrix();
74 matrix.setRotate(45.f);
75 matrix.postTranslate(200, 10);
76 mPhoto.setImageMatrix(matrix);
86 findViewById(R.id.matrix).setOnClickListener(listener);
/frameworks/support/samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/widget/
H A DChangeImageTransformUsage.java71 case R.id.matrix:
73 final Matrix matrix = new Matrix();
74 matrix.setRotate(45.f);
75 matrix.postTranslate(200, 10);
76 mPhoto.setImageMatrix(matrix);
86 findViewById(R.id.matrix).setOnClickListener(listener);
/frameworks/base/libs/hwui/
H A DRenderProperties.cpp90 // Force recalculation of the matrix, since other's dirty bit may be clear
98 SkMatrix* matrix) {
99 if (matrix) {
100 output << indent << "(" << label << " " << matrix << ": "; local
102 output << "[" << matrix->get(0) << " " << matrix->get(1) << " " << matrix->get(2) << "]";
103 output << " [" << matrix->get(3) << " " << matrix->get(4) << " " << matrix
97 dumpMatrix(std::ostream& output, std::string& indent, const char* label, SkMatrix* matrix) argument
[all...]

Completed in 580 milliseconds

12345678