Home
last modified time | relevance | path

Searched refs:Matrix (Results 1 – 25 of 204) sorted by relevance

123456789

/frameworks/base/core/java/android/transition/
DChangeImageTransform.java22 import android.graphics.Matrix;
53 private static TypeEvaluator<Matrix> NULL_MATRIX_EVALUATOR = new TypeEvaluator<Matrix>() {
55 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) {
60 private static Property<ImageView, Matrix> ANIMATED_TRANSFORM_PROPERTY
61 = new Property<ImageView, Matrix>(Matrix.class, "animatedTransform") {
63 public void set(ImageView object, Matrix value) {
68 public Matrix get(ImageView object) {
98 Matrix matrix; in captureValues()
103 matrix = new Matrix(matrix); in captureValues()
110 matrix = new Matrix(); in captureValues()
[all …]
DChangeTransform.java25 import android.graphics.Matrix;
97 private Matrix mTempMatrix = new Matrix();
194 Matrix matrix = view.getMatrix(); in captureValues()
198 matrix = new Matrix(matrix); in captureValues()
202 Matrix parentMatrix = new Matrix(); in captureValues()
238 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_INTERMEDIATE_MATRIX); in createAnimator()
243 Matrix startParentMatrix = (Matrix) in createAnimator()
267 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_MATRIX); in createTransformAnimator()
268 Matrix endMatrix = (Matrix) endValues.values.get(PROPNAME_MATRIX); in createTransformAnimator()
271 startMatrix = Matrix.IDENTITY_MATRIX; in createTransformAnimator()
[all …]
DTransitionUtils.java24 import android.graphics.Matrix;
89 Matrix matrix = new Matrix(); in copyViewImage()
155 public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) { in createViewBitmap()
173 public static class MatrixEvaluator implements TypeEvaluator<Matrix> {
179 Matrix mTempMatrix = new Matrix();
182 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { in evaluate()
/frameworks/support/transition/src/android/support/transition/
DChangeImageTransform.java23 import android.graphics.Matrix;
53 private static final TypeEvaluator<Matrix> NULL_MATRIX_EVALUATOR = new TypeEvaluator<Matrix>() {
55 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) {
60 private static final Property<ImageView, Matrix> ANIMATED_TRANSFORM_PROPERTY =
61 new Property<ImageView, Matrix>(Matrix.class, "animatedTransform") {
63 public void set(ImageView view, Matrix matrix) {
68 public Matrix get(ImageView object) {
139 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_MATRIX); in createAnimator()
140 Matrix endMatrix = (Matrix) endValues.values.get(PROPNAME_MATRIX); in createAnimator()
180 private ObjectAnimator createMatrixAnimator(final ImageView imageView, Matrix startMatrix, in createMatrixAnimator()
[all …]
DChangeTransform.java25 import android.graphics.Matrix;
103 private Matrix mTempMatrix = new Matrix();
199 Matrix matrix = view.getMatrix(); in captureValues()
203 matrix = new Matrix(matrix); in captureValues()
207 Matrix parentMatrix = new Matrix(); in captureValues()
249 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_INTERMEDIATE_MATRIX); in createAnimator()
254 Matrix startParentMatrix = (Matrix) in createAnimator()
281 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_MATRIX); in createTransformAnimator()
282 Matrix endMatrix = (Matrix) endValues.values.get(PROPNAME_MATRIX); in createTransformAnimator()
312 Path path = getPathMotion().getPath(startMatrixValues[Matrix.MTRANS_X], in createTransformAnimator()
[all …]
DTransitionUtils.java24 import android.graphics.Matrix;
43 Matrix matrix = new Matrix(); in copyViewImage()
81 private static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) { in createViewBitmap()
111 static class MatrixEvaluator implements TypeEvaluator<Matrix> {
117 final Matrix mTempMatrix = new Matrix();
120 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { in evaluate()
DMatrixUtils.java19 import android.graphics.Matrix;
24 static final Matrix IDENTITY_MATRIX = new Matrix() {
31 public void set(Matrix src) {
86 public boolean setConcat(Matrix a, Matrix b) {
134 public boolean preConcat(Matrix other) {
182 public boolean postConcat(Matrix other) {
/frameworks/support/transition/tests/src/android/support/transition/
DChangeImageTransformTest.java29 import android.graphics.Matrix;
47 private Matrix mStartMatrix;
48 private Matrix mEndMatrix;
90 private Matrix centerMatrix() { in centerMatrix()
99 Matrix matrix = new Matrix(); in centerMatrix()
104 private Matrix fitXYMatrix() { in fitXYMatrix()
113 Matrix matrix = new Matrix(); in fitXYMatrix()
118 private Matrix centerCropMatrix() { in centerCropMatrix()
134 Matrix matrix = new Matrix(); in centerCropMatrix()
140 private Matrix fitCenterMatrix() { in fitCenterMatrix()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DBlackFrame.java28 import android.graphics.Matrix;
75 void setMatrix(Matrix matrix) { in setMatrix()
79 surface.setPosition(mTmpFloats[Matrix.MTRANS_X], in setMatrix()
80 mTmpFloats[Matrix.MTRANS_Y]); in setMatrix()
82 mTmpFloats[Matrix.MSCALE_X], mTmpFloats[Matrix.MSKEW_Y], in setMatrix()
83 mTmpFloats[Matrix.MSKEW_X], mTmpFloats[Matrix.MSCALE_Y]); in setMatrix()
86 + mTmpFloats[Matrix.MTRANS_X] + "," in setMatrix()
87 + mTmpFloats[Matrix.MTRANS_Y] + ") matrix=[" in setMatrix()
88 + mTmpFloats[Matrix.MSCALE_X] + "," in setMatrix()
89 + mTmpFloats[Matrix.MSCALE_Y] + "][" in setMatrix()
[all …]
/frameworks/support/transition/api14/android/support/transition/
DViewUtilsApi14.java19 import android.graphics.Matrix;
77 public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) { in transformMatrixToGlobal()
85 final Matrix vm = view.getMatrix(); in transformMatrixToGlobal()
92 public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) { in transformMatrixToLocal()
100 final Matrix vm = view.getMatrix(); in transformMatrixToLocal()
102 final Matrix inverted = new Matrix(); in transformMatrixToLocal()
110 public void setAnimationMatrix(@NonNull View view, Matrix matrix) { in setAnimationMatrix()
125 final float sin = values[Matrix.MSKEW_Y]; in setAnimationMatrix()
127 * (values[Matrix.MSCALE_X] < 0 ? -1 : 1); in setAnimationMatrix()
129 final float scaleX = values[Matrix.MSCALE_X] / cos; in setAnimationMatrix()
[all …]
/frameworks/base/tools/layoutlib/bridge/tests/src/android/graphics/
DMatrix_DelegateTest.java27 Matrix m1 = new Matrix(); in testIdentity()
36 Matrix m1 = new Matrix(); in testCopyConstructor()
37 Matrix m2 = new Matrix(m1); in testCopyConstructor()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraDeviceInfo.java19 import android.graphics.Matrix;
157 public Matrix getPreviewTransform(int currentDisplayOrientation, RectF surfaceDimensions) { in getPreviewTransform()
181 public Matrix getPreviewTransform(int currentDisplayOrientation, RectF surfaceDimensions, in getPreviewTransform()
185 return new Matrix(); in getPreviewTransform()
188 Matrix transform = new Matrix(); in getPreviewTransform()
189 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL); in getPreviewTransform()
/frameworks/support/transition/api21/android/support/transition/
DViewUtilsApi21.java19 import android.graphics.Matrix;
41 public void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix) { in transformMatrixToGlobal()
55 public void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix) { in transformMatrixToLocal()
69 public void setAnimationMatrix(@NonNull View view, Matrix matrix) { in setAnimationMatrix()
86 "transformMatrixToGlobal", Matrix.class); in fetchTransformMatrixToGlobalMethod()
99 "transformMatrixToLocal", Matrix.class); in fetchTransformMatrixToLocalMethod()
112 "setAnimationMatrix", Matrix.class); in fetchSetAnimationMatrix()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAdvancedGradientsActivity.java22 import android.graphics.Matrix;
43 private final Matrix mMatrix;
44 private final Matrix mMatrix2;
45 private final Matrix mMatrix3;
54 mMatrix = new Matrix(); in GradientsView()
58 mMatrix2 = new Matrix(); in GradientsView()
62 mMatrix3 = new Matrix(); in GradientsView()
DMoreShadersActivity.java30 import android.graphics.Matrix;
60 private final Matrix mMtx1;
73 Matrix m2 = new Matrix(); in ShadersView()
79 Matrix m3 = new Matrix(); in ShadersView()
85 Matrix m4 = new Matrix(); in ShadersView()
94 mMtx1 = new Matrix(); in ShadersView()
DTransform3dActivity.java25 import android.graphics.Matrix;
41 private Matrix mMatrix;
48 mMatrix = new Matrix(); in Transform3dView()
61 final Matrix matrix = mMatrix; in onDraw()
78 Matrix matrix) { in drawBitmap()
87 Matrix matrix, float angle) { in rotate()
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DCursorAnchorInfoTest.java19 import android.graphics.Matrix;
90 Matrix TRANSFORM_MATRIX = new Matrix(Matrix.IDENTITY_MATRIX); in testBuilder()
194 assertEquals(Matrix.IDENTITY_MATRIX, uninitializedInfo.getMatrix()); in testBuilder()
204 final Matrix MATRIX1 = new Matrix(); in testEquality()
206 final Matrix MATRIX2 = new Matrix(); in testEquality()
208 final Matrix NAN_MATRIX = new Matrix(); in testEquality()
362 final Matrix MATRIX1 = new Matrix(); in testMatrixIsCopied()
364 final Matrix MATRIX2 = new Matrix(); in testMatrixIsCopied()
366 final Matrix MATRIX3 = new Matrix(); in testMatrixIsCopied()
368 final Matrix matrix = new Matrix(); in testMatrixIsCopied()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DMatrix.java28 public class Matrix { class
73 public Matrix() { in Matrix() method in Matrix
78 public Matrix(Matrix matrix) { in Matrix() method in Matrix
82 protected Matrix(double[] m) { in Matrix() method in Matrix
200 public Matrix invers() { in invers()
331 Matrix ret = new Matrix(out); in invers()
344 Matrix mult(Matrix b) { in mult()
345 return new Matrix(multiply(this.m, b.m)); in mult()
348 Matrix premult(Matrix b) { in premult()
349 return new Matrix(multiply(b.m, this.m)); in premult()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/util/
DRectUtils.java19 import android.graphics.Matrix;
39 final Matrix matrix = new Matrix(); in rotateRectForOrientation()
61 final Matrix matrix = new Matrix(); in rotateRect()
/frameworks/base/graphics/java/android/graphics/
DMatrix.java29 public class Matrix { class
42 public final static Matrix IDENTITY_MATRIX = new Matrix() {
48 public void set(Matrix src) {
103 public boolean setConcat(Matrix a, Matrix b) {
151 public boolean preConcat(Matrix other) {
199 public boolean postConcat(Matrix other) {
228 Matrix.class.getClassLoader(), nGetNativeFinalizer(), NATIVE_ALLOCATION_SIZE);
239 public Matrix() { in Matrix() method in Matrix
249 public Matrix(Matrix src) { in Matrix() method in Matrix
283 public void set(Matrix src) { in set()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java25 import android.graphics.Matrix;
93 Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasSquare()
109 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasTall()
126 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasWide()
143 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasMaxSize()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java21 import android.graphics.Matrix;
45 private Matrix mTempMatrix;
169 public Parcelable onCaptureSharedElementSnapshot(View sharedElement, Matrix viewToGlobalMatrix, in onCaptureSharedElementSnapshot()
183 Matrix matrix = imageView.getImageMatrix(); in onCaptureSharedElementSnapshot()
193 mTempMatrix = new Matrix(viewToGlobalMatrix); in onCaptureSharedElementSnapshot()
232 Matrix matrix = new Matrix(); in onCreateSnapshotView()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DAssistVisualizer.java23 import android.graphics.Matrix;
38 final Matrix matrix;
47 TextEntry(AssistStructure.ViewNode node, int parentLeft, int parentTop, Matrix matrix) { in TextEntry()
53 this.matrix = new Matrix(matrix); in TextEntry()
68 final ArrayList<Matrix> mMatrixStack = new ArrayList<>();
97 Matrix matrix = new Matrix(); in setAssistStructure()
145 Matrix parentMatrix = mMatrixStack.get(matrixStackIndex);
147 Matrix matrix;
152 matrix = new Matrix(parentMatrix);
158 Matrix transform = root.getTransformation();
/frameworks/support/transition/base/android/support/transition/
DViewUtilsImpl.java19 import android.graphics.Matrix;
39 void transformMatrixToGlobal(@NonNull View view, @NonNull Matrix matrix); in transformMatrixToGlobal()
41 void transformMatrixToLocal(@NonNull View view, @NonNull Matrix matrix); in transformMatrixToLocal()
43 void setAnimationMatrix(@NonNull View view, Matrix matrix); in setAnimationMatrix()
/frameworks/support/design/src/android/support/design/widget/
DViewGroupUtils.java19 import android.graphics.Matrix;
27 private static final ThreadLocal<Matrix> sMatrix = new ThreadLocal<>();
40 Matrix m = sMatrix.get(); in offsetDescendantRect()
42 m = new Matrix(); in offsetDescendantRect()
73 private static void offsetDescendantMatrix(ViewParent target, View view, Matrix m) { in offsetDescendantMatrix()

123456789