/frameworks/base/libs/hwui/tests/common/scenes/ |
H A D | ListOfFadedTextAnimation.cpp | 50 SkMatrix matrix; variable 51 matrix.setScale(1, length); 52 matrix.postRotate(-90); 54 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 B " 54 float matrix[20] = { 0 }; local 57 matrix[SkColorMatrix::kR_Scale] = 1.1f; 58 matrix[SkColorMatrix::kG_Scale] = 1.1f; 59 matrix[SkColorMatrix::kB_Scale] = 1.1f; 60 matrix[SkColorMatrix::kA_Scale] = 0.5f; 62 matrix[SkColorMatrix::kR_Trans] = 5.0f; 63 matrix[SkColorMatrix::kG_Trans] = 5.0f; 64 matrix[SkColorMatrix::kB_Trans] = 5.0f; 65 matrix[SkColorMatri [all...] |
/frameworks/support/transition/api14/android/support/transition/ |
H A D | ImageViewUtilsApi14.java | 41 public void animateTransform(ImageView view, Matrix matrix) { argument 42 view.setImageMatrix(matrix);
|
H A D | ViewUtilsApi14.java | 77 public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) { argument 81 transformMatrixToGlobal(vp, matrix); 82 matrix.preTranslate(-vp.getScrollX(), -vp.getScrollY()); 84 matrix.preTranslate(view.getLeft(), view.getTop()); 87 matrix.preConcat(vm); 92 public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) { argument 96 transformMatrixToLocal(vp, matrix); 97 matrix.postTranslate(vp.getScrollX(), vp.getScrollY()); 99 matrix.postTranslate(view.getLeft(), view.getTop()); 104 matrix 110 setAnimationMatrix(@onNull View view, Matrix matrix) argument [all...] |
/frameworks/support/transition/base/android/support/transition/ |
H A D | ImageViewUtilsImpl.java | 29 void animateTransform(ImageView view, Matrix matrix); argument
|
H A D | GhostViewImpl.java | 29 GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix); argument
|
H A D | ViewUtilsImpl.java | 39 void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix); argument 41 void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix); argument 43 void setAnimationMatrix(@NonNull View view, Matrix matrix); argument
|
/frameworks/support/transition/src/android/support/transition/ |
H A D | GhostViewUtils.java | 36 static GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument 37 return CREATOR.addGhost(view, viewGroup, matrix);
|
H A D | ImageViewUtils.java | 45 * Sets the matrix to animate the content of the image view. 47 static void animateTransform(ImageView view, Matrix matrix) { argument 48 IMPL.animateTransform(view, matrix);
|
H A D | TransitionUtils.java | 43 Matrix matrix = new Matrix(); 44 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); 45 ViewUtils.transformMatrixToGlobal(view, matrix); 46 ViewUtils.transformMatrixToLocal(sceneRoot, matrix); 48 matrix.mapRect(bounds); 56 Bitmap bitmap = createViewBitmap(view, matrix, bounds); 68 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local 69 * coordinates. <code>matrix</code> will be modified during the bitmap creation. 74 * @param matrix The matrix convertin 81 createViewBitmap(View view, Matrix matrix, RectF bounds) 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
|
/frameworks/support/transition/api21/android/support/transition/ |
H A D | ImageViewUtilsApi21.java | 42 public void animateTransform(ImageView view, Matrix matrix) { argument 46 sAnimateTransformMethod.invoke(view, matrix);
|
H A D | ViewUtilsApi21.java | 41 public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) { argument 45 sTransformMatrixToGlobalMethod.invoke(view, matrix); 55 public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) { argument 59 sTransformMatrixToLocalMethod.invoke(view, matrix); 69 public void setAnimationMatrix(@NonNull View view, Matrix matrix) { argument 73 sSetAnimationMatrixMethod.invoke(view, matrix);
|
H A D | GhostViewApi21.java | 44 public GhostViewImpl addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument 49 (View) sAddGhostMethod.invoke(null, view, viewGroup, matrix));
|
/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 | 89 Matrix matrix = new Matrix(); 90 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); 91 view.transformMatrixToGlobal(matrix); 92 sceneRoot.transformMatrixToLocal(matrix); 94 matrix.mapRect(bounds); 102 Bitmap bitmap = createViewBitmap(view, matrix, bounds); 143 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local 144 * coordinates. <code>matrix</code> will be modified during the bitmap creation. 148 * @param matrix The matrix convertin 155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_view_HardwareLayer.cpp | 64 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local 65 layer->setTransform(matrix);
|
/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 | 42 void Texture::setMatrix(float const* matrix) { argument 43 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 | HardwareLayer.java | 116 * @param matrix The transform to apply to the layer. 118 public void setTransform(Matrix matrix) { argument 119 nSetTransform(mFinalizer.get(), matrix.native_instance); 150 private static native void nSetTransform(long layerUpdater, long matrix); argument
|