/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 39 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 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/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 | 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/base/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 60 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 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/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/support/transition/tests/src/android/support/transition/ |
H A D | ChangeImageTransformTest.java | 99 Matrix matrix = new Matrix(); 100 matrix.postTranslate(tx, ty); 101 return matrix; 113 Matrix matrix = new Matrix(); 114 matrix.postScale(scaleX, scaleY); 115 return matrix; 134 Matrix matrix = new Matrix(); 135 matrix.postScale(maxScale, maxScale); 136 matrix.postTranslate(tx, ty); 137 return matrix; 200 verifyMatrixMatches(Matrix expected, Matrix matrix) argument [all...] |
/frameworks/base/libs/hwui/tests/common/scenes/ |
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...] |
H A D | ListOfFadedTextAnimation.cpp | 50 SkMatrix matrix; variable 51 matrix.setScale(1, length); 52 matrix.postRotate(-90); 54 fadingPaint.setShader(s->makeWithLocalMatrix(matrix));
|
/frameworks/support/transition/api14/android/support/transition/ |
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 | 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
|
H A D | ImageViewUtilsImpl.java | 29 void animateTransform(ImageView view, Matrix matrix); argument
|
/frameworks/support/transition/api21/android/support/transition/ |
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 | ImageViewUtilsApi21.java | 42 public void animateTransform(ImageView view, Matrix matrix) { argument 46 sAnimateTransformMethod.invoke(view, matrix);
|
/frameworks/base/libs/hwui/tests/unit/ |
H A D | SkiaRenderPropertiesTests.cpp | 119 Matrix4 matrix; 120 matrix.loadTranslate(10, 10, 0); // left, top 121 matrix.scale(1.2f, 1.2f, 1); // static matrix 122 // ignore animation matrix, since static overrides it 125 matrix.translate(10, 20); 128 matrix.translate(50, 50); 129 matrix.scale(0.5f, 0.7f, 1); 130 matrix.translate(-50, -50); 132 EXPECT_MATRIX_APPROX_EQ(matrix, actua [all...] |
/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/rs/script_api/ |
H A D | rs_matrix.spec | 28 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 D | AssistVisualizer.java | 38 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 D | Shader.cpp | 65 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local 81 if (matrix) { 82 shader = baseShader->makeWithLocalMatrix(*matrix).release(); 96 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local 116 if (matrix) { 117 shader = baseShader->makeWithLocalMatrix(*matrix).release(); 129 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local 143 if (matrix) { 144 s = baseShader->makeWithLocalMatrix(*matrix).release(); 157 const SkMatrix* matrix local 191 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local 216 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local 246 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local 268 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local [all...] |
/frameworks/support/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/ |
H A D | ChangeImageTransformUsage.java | 70 case R.id.matrix: 72 final Matrix matrix = new Matrix(); 73 matrix.setRotate(45.f); 74 matrix.postTranslate(200, 10); 75 mPhoto.setImageMatrix(matrix); 85 findViewById(R.id.matrix).setOnClickListener(listener);
|
/frameworks/support/samples/SupportTransitionDemos/src/com/example/android/support/transition/widget/ |
H A D | ChangeImageTransformUsage.java | 70 case R.id.matrix: 72 final Matrix matrix = new Matrix(); 73 matrix.setRotate(45.f); 74 matrix.postTranslate(200, 10); 75 mPhoto.setImageMatrix(matrix); 85 findViewById(R.id.matrix).setOnClickListener(listener);
|
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | Texture.cpp | 42 void Texture::setMatrix(float const* matrix) { argument 43 mTextureMatrix = mat4(matrix);
|