Searched defs:matrix (Results 1 - 25 of 115) sorted by relevance

12345

/frameworks/base/libs/hwui/tests/common/scenes/
H A DListOfFadedTextAnimation.cpp49 SkMatrix matrix; variable
50 matrix.setScale(1, length);
51 matrix.postRotate(-90);
53 fadingPaint.setShader(s->makeWithLocalMatrix(matrix));
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...]
/frameworks/support/transition/src/main/java/androidx/transition/
H A DGhostViewUtils.java26 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
28 return GhostViewApi21.addGhost(view, viewGroup, matrix);
H A DImageViewUtils.java53 * Sets the matrix to animate the content of the image view.
55 static void animateTransform(ImageView view, Matrix matrix) { argument
57 view.setImageMatrix(matrix);
62 sAnimateTransformMethod.invoke(view, matrix);
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 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 DGhostViewApi21.java42 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
47 (View) sAddGhostMethod.invoke(null, view, viewGroup, matrix));
H A DTransitionUtils.java51 Matrix matrix = new Matrix();
52 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY());
53 ViewUtils.transformMatrixToGlobal(view, matrix);
54 ViewUtils.transformMatrixToLocal(sceneRoot, matrix);
56 matrix.mapRect(bounds);
64 Bitmap bitmap = createViewBitmap(view, matrix, bounds, sceneRoot);
76 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
77 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
82 * @param matrix The matrix convertin
89 createViewBitmap(View view, Matrix matrix, RectF bounds, ViewGroup sceneRoot) 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 DSweepGradient.java114 private static native long nativeCreate1(long matrix, float x, float y, argument
116 private static native long nativeCreate2(long matrix, float x, float y, argument
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
H A DLinearGradient.java129 private native long nativeCreate1(long matrix, float x0, float y0, float x1, float y1, argument
131 private native long nativeCreate2(long matrix, float x0, float y0, float x1, float y1, argument
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/autofill/
H A DEditDistanceScorerTest.java114 public static String toString(float[][] matrix) { argument
116 for (int i = 0; i < matrix.length; i++) {
117 string.append(Arrays.toString(matrix[i])).append(" ");
/frameworks/opt/chips/src/com/android/ex/chips/
H A DCircularImageView.java25 private final Matrix matrix; field in class:CircularImageView
42 matrix = new Matrix();
100 matrix.reset();
103 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL);
105 shader.setLocalMatrix(matrix);
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java90 Matrix matrix = new Matrix();
91 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY());
92 view.transformMatrixToGlobal(matrix);
93 sceneRoot.transformMatrixToLocal(matrix);
95 matrix.mapRect(bounds);
103 Bitmap bitmap = createViewBitmap(view, matrix, bounds, sceneRoot);
146 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
147 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
151 * @param matrix The matrix convertin
160 createViewBitmap(View view, Matrix matrix, RectF bounds, ViewGroup sceneRoot) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_TextureLayer.cpp64 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
65 layer->setTransform(matrix);
/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.cpp43 // transform the matrix based on the layer
85 SkMatrix matrix = SkMatrix::Concat(layerTransform, textureMatrix); local
92 const bool nonIdentityMatrix = !matrix.isIdentity();
95 canvas->concat(matrix);
99 if (!matrix.invert(&matrixInv)) {
100 matrixInv = matrix;
111 // restore the original matrix
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DSyncRtSurfaceTransactionApplier.java78 t.setMatrix(params.surface, params.matrix, tmpFloat9);
93 * @param matrix Matrix to apply.
96 public SurfaceParams(SurfaceControlCompat surface, float alpha, Matrix matrix, argument
100 this.matrix = new Matrix(matrix);
107 final Matrix matrix; field in class:SyncRtSurfaceTransactionApplier.SurfaceParams
/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/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/native/services/surfaceflinger/RenderEngine/
H A DTexture.cpp40 void Texture::setMatrix(float const* matrix) { argument
41 mTextureMatrix = mat4(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/base/core/java/android/view/
H A DGhostView.java60 public void setMatrix(Matrix matrix) { argument
61 mRenderNode.setAnimationMatrix(matrix);
86 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { argument
88 matrix.reset();
89 parent.transformMatrixToGlobal(matrix);
90 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY());
91 host.transformMatrixToLocal(matrix);
94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
112 if (matrix == null) {
113 matrix
[all...]
H A DTextureLayer.java114 * @param matrix The transform to apply to the layer.
116 public void setTransform(Matrix matrix) { argument
117 nSetTransform(mFinalizer.get(), matrix.native_instance);
149 private static native void nSetTransform(long layerUpdater, long matrix); argument
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp95 SkMatrix matrix = *reinterpret_cast<SkMatrix*>(transformPtr); local
97 if (!matrix.asAffine(transformValues)) {
99 "transform matrix has perspective. Only affine matrices are allowed.");

Completed in 859 milliseconds

12345