/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ListOfFadedTextAnimation.cpp | 49 SkMatrix matrix; variable 50 matrix.setScale(1, length); 51 matrix.postRotate(-90); 53 fadingPaint.setShader(s->makeWithLocalMatrix(matrix));
|
H A D | SimpleColorMatrixAnimation.cpp | 26 "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 D | GhostViewUtils.java | 26 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument 28 return GhostViewApi21.addGhost(view, viewGroup, matrix);
|
H A D | ImageViewUtils.java | 53 * 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 D | ViewUtilsApi21.java | 42 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 D | ViewUtilsBase.java | 61 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 D | GhostViewApi21.java | 42 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument 47 (View) sAddGhostMethod.invoke(null, view, viewGroup, matrix));
|
H A D | TransitionUtils.java | 51 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 D | ColorMatrixColorFilter.java | 23 * 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 D | SweepGradient.java | 114 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 D | Camera.java | 21 * 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 D | LinearGradient.java | 129 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 D | EditDistanceScorerTest.java | 114 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 D | CircularImageView.java | 25 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 D | TransitionUtils.java | 90 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 D | android_view_TextureLayer.cpp | 64 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local 65 layer->setTransform(matrix);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | LayerDrawable.cpp | 43 // 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 D | SyncRtSurfaceTransactionApplier.java | 78 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 D | Transform3dActivity.java | 61 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 D | matrix_helpers.h | 15 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 D | Texture.cpp | 40 void Texture::setMatrix(float const* matrix) { argument 41 mTextureMatrix = mat4(matrix);
|
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/ |
H A D | SampleProvider.java | 63 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 D | GhostView.java | 60 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 D | TextureLayer.java | 114 * @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 D | PdfRenderer.cpp | 95 SkMatrix matrix = *reinterpret_cast<SkMatrix*>(transformPtr); local 97 if (!matrix.asAffine(transformValues)) { 99 "transform matrix has perspective. Only affine matrices are allowed.");
|