Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/java/android/transition/
DChangeImageTransform.java24 import android.graphics.Matrix;
55 private static TypeEvaluator<Matrix> NULL_MATRIX_EVALUATOR = new TypeEvaluator<Matrix>() {
57 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) {
62 private static Property<ImageView, Matrix> ANIMATED_TRANSFORM_PROPERTY
63 = new Property<ImageView, Matrix>(Matrix.class, "animatedTransform") {
65 public void set(ImageView object, Matrix value) {
70 public Matrix get(ImageView object) {
100 Matrix matrix; in captureValues()
107 matrix = new Matrix(); in captureValues()
110 matrix = new Matrix(imageView.getImageMatrix()); in captureValues()
[all …]
DChangeTransform.java27 import android.graphics.Matrix;
99 private Matrix mTempMatrix = new Matrix();
196 Matrix matrix = view.getMatrix(); in captureValues()
200 matrix = new Matrix(matrix); in captureValues()
204 Matrix parentMatrix = new Matrix(); in captureValues()
242 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_INTERMEDIATE_MATRIX); in createAnimator()
247 Matrix startParentMatrix = (Matrix) in createAnimator()
271 Matrix startMatrix = (Matrix) startValues.values.get(PROPNAME_MATRIX); in createTransformAnimator()
272 Matrix endMatrix = (Matrix) endValues.values.get(PROPNAME_MATRIX); in createTransformAnimator()
275 startMatrix = Matrix.IDENTITY_MATRIX; in createTransformAnimator()
[all …]
DTransitionUtils.java24 import android.graphics.Matrix;
90 Matrix matrix = new Matrix(); in copyViewImage()
160 public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds, in createViewBitmap()
197 public static class MatrixEvaluator implements TypeEvaluator<Matrix> {
203 Matrix mTempMatrix = new Matrix();
206 public Matrix evaluate(float fraction, Matrix startValue, Matrix endValue) { in evaluate()
/frameworks/base/apct-tests/perftests/core/src/android/opengl/perftests/
DMatrixPerfTest.java19 import android.opengl.Matrix;
51 Matrix.multiplyMM(array, 32, array, 16, array, 0); in testMultiplyMM()
64 Matrix.multiplyMM(array, 16, array, 16, array, 0); in testMultiplyMMLeftOverlapResult()
77 Matrix.multiplyMM(array, 0, array, 16, array, 0); in testMultiplyMMRightOverlapResult()
90 Matrix.multiplyMM(array, 0, array, 0, array, 0); in testMultiplyMMAllOverlap()
103 Matrix.multiplyMM(bigArray, 1024, array, 16, array, 0); in testMultiplyMMOutputBigArray()
116 Matrix.multiplyMM(bigArray, 1024, bigArray, 16, bigArray, 0); in testMultiplyMMAllBigArray()
129 Matrix.multiplyMV(array, 20, array, 4, array, 0); in testMultiplyMV()
142 Matrix.multiplyMV(array, 4, array, 4, array, 0); in testMultiplyMVLeftOverlapResult()
155 Matrix.multiplyMV(array, 0, array, 16, array, 0); in testMultiplyMVRightOverlapResult()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityWindowsPopulator.java26 import android.graphics.Matrix;
77 private final SparseArray<Matrix> mMagnificationSpecInverseMatrix = new SparseArray<>();
88 private final Map<IBinder, Matrix> mWindowsTransformMatrixMap = new HashMap<>();
92 private final Matrix mTempMatrix1 = new Matrix();
93 private final Matrix mTempMatrix2 = new Matrix();
115 final Matrix inverseMatrix = new Matrix(); in populateVisibleWindowsOnScreenLocked()
116 final Matrix displayMatrix = new Matrix(); in populateVisibleWindowsOnScreenLocked()
173 final HashMap<IBinder, Matrix> windowsTransformMatrixMap = in onWindowInfosChangedInternal()
199 private HashMap<IBinder, Matrix> getWindowsTransformMatrix(List<InputWindowHandle> windows) { in getWindowsTransformMatrix()
201 final HashMap<IBinder, Matrix> windowsTransformMatrixMap = new HashMap<>(); in getWindowsTransformMatrix()
[all …]
DSeamlessRotator.java22 import android.graphics.Matrix;
40 private final Matrix mTransform = new Matrix();
64 final Matrix tmp = new Matrix(); in SeamlessRotator()
120 t.setMatrix(sc, Matrix.IDENTITY_MATRIX, mFloat9); in setIdentityMatrix()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DCursorAnchorInfoTest.java21 import android.graphics.Matrix;
34 final Matrix originalMatrix = new Matrix(); in testCreateForAdditionalParentMatrix()
43 final Matrix additionalParentMatrix = new Matrix(); in testCreateForAdditionalParentMatrix()
46 final Matrix newMatrix = new Matrix(originalMatrix); in testCreateForAdditionalParentMatrix()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DCoordinateTransforms.java25 import android.graphics.Matrix;
43 @Dimension int physicalWidth, @Dimension int physicalHeight, Matrix out) { in transformPhysicalToLogicalCoordinates()
73 @Dimension int physicalWidth, @Dimension int physicalHeight, Matrix out) { in transformLogicalToPhysicalCoordinates()
105 @Rotation int newRotation, DisplayInfo info, Matrix out) { in transformToRotation()
110 final Matrix tmp = new Matrix(); in transformToRotation()
127 @Rotation int newRotation, int newWidth, int newHeight, Matrix out) { in transformToRotation()
132 final Matrix tmp = new Matrix(); in transformToRotation()
139 public static void computeRotationMatrix(int rotationDelta, int w, int h, Matrix outMatrix) { in computeRotationMatrix()
/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/base/core/tests/coretests/src/android/view/
DViewGroupGetChildLocalHitRegionTest.java22 import android.graphics.Matrix;
116 Matrix actualMatrix = new Matrix(); in testGetChildLocalHitRegion_topViewIsNotBlockedByBottomView()
123 Matrix expectMatrix = new Matrix(); in testGetChildLocalHitRegion_topViewIsNotBlockedByBottomView()
175 Matrix actualMatrix = new Matrix(); in assertGetChildLocalHitRegion()
182 Matrix expectMatrix = new Matrix(); in assertGetChildLocalHitRegion()
216 Matrix actualMatrix = new Matrix(); in assertGetChildLocalHitRegion()
223 Matrix expectMatrix = new Matrix(); in assertGetChildLocalHitRegion()
261 .getChildLocalHitRegion(viewBottom, actualRegion, new Matrix(), isHover); in assertGetChildLocalHitRegionEmpty()
/frameworks/base/tests/graphics/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()
DShadersActivity.java27 import android.graphics.Matrix;
55 private Matrix mMtx1;
56 private Matrix mMtx2;
57 private Matrix mMtx3;
73 mMtx1 = new Matrix(); in ShadersView()
80 mMtx2 = new Matrix(); in ShadersView()
86 mMtx3 = new Matrix(); in ShadersView()
/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 …]
DTransform.java32 Matrix[][] mAllMat = new Matrix[3][3];
44 Matrix m = new Matrix(); in updateAllMatrix()
49 mAllMat[SCREEN_SPACE][WORLD_SPACE] = new Matrix(mViewMatrix); in updateAllMatrix()
51 m = new Matrix(); in updateAllMatrix()
73 public Matrix getMatrix(char from, char to) { in getMatrix()
172 Matrix m = t.getMatrix(SCREEN_SPACE, VOLUME_SPACE); in main()
/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/libs/systemui/weathereffects/graphics/src/main/java/com/google/android/wallpaper/weathereffects/graphics/utils/
DMatrixUtils.kt19 import android.graphics.Matrix
25 fun centerCropMatrix(surfaceSize: SizeF, imageSize: SizeF): Matrix { in centerCropMatrix()
30 return Matrix(Matrix.IDENTITY_MATRIX).apply { in centerCropMatrix()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java25 import android.graphics.Matrix;
88 Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasSquare()
104 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasTall()
121 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasWide()
138 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasMaxSize()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCoordinateTransformsTest.java32 import android.graphics.Matrix;
53 private final Matrix mMatrix = new Matrix();
54 private final Matrix mMatrix2 = new Matrix();
68 assertThat(mMatrix, is(Matrix.IDENTITY_MATRIX)); in transformPhysicalToLogicalCoordinates_rot0()
98 assertThat(mMatrix, is(Matrix.IDENTITY_MATRIX)); in transformLogicalToPhysicalCoordinates_rot0()
227 private void assertMatricesAreInverses(Matrix matrix, Matrix matrix2) { in assertMatricesAreInverses()
228 final Matrix concat = new Matrix(); in assertMatricesAreInverses()
/frameworks/base/graphics/java/android/graphics/
DMatrix.java34 public class Matrix { class
51 public final static Matrix IDENTITY_MATRIX = new Matrix() {
57 public void set(Matrix src) {
112 public boolean setConcat(Matrix a, Matrix b) {
160 public boolean preConcat(Matrix other) {
208 public boolean postConcat(Matrix other) {
235 Matrix.class.getClassLoader(), ExtraNatives.nGetNativeFinalizer());
243 public Matrix() { in Matrix() method in Matrix
253 public Matrix(Matrix src) { in Matrix() method in Matrix
287 public void set(Matrix src) { in set()
[all …]
/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/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DBasicGLRenderer.java9 import android.opengl.Matrix;
50 Matrix.setLookAtM(mViewMatrix, 0, in onDrawFrame()
54 Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0); in onDrawFrame()
58 Matrix.setRotateM(mRotationMatrix, 0, mAngle, 0, 0, 1.0f); in onDrawFrame()
59 Matrix.multiplyMM(scratch, 0, mMVPMatrix, 0, mRotationMatrix, 0); in onDrawFrame()
67 Matrix.frustumM(mProjectionMatrix, 0, -ratio / 10, ratio / 10, -.1f, .1f, .1f, 200); in onSurfaceChanged()
/frameworks/base/opengl/java/android/opengl/
DGLU.java77 Matrix.setLookAtM(scratch, 0, eyeX, eyeY, eyeZ, centerX, centerY, centerZ, in gluLookAt()
155 Matrix.multiplyMM(scratch, M_OFFSET, project, projectOffset, in gluProject()
163 Matrix.multiplyMV(scratch, V2_OFFSET, in gluProject()
221 Matrix.multiplyMM(scratch, PM_OFFSET, project, projectOffset, in gluUnProject()
224 if (!Matrix.invertM(scratch, INVPM_OFFSET, scratch, PM_OFFSET)) { in gluUnProject()
237 Matrix.multiplyMV(obj, objOffset, scratch, INVPM_OFFSET, in gluUnProject()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java22 import android.graphics.Matrix;
48 private Matrix mTempMatrix;
175 public Parcelable onCaptureSharedElementSnapshot(View sharedElement, Matrix viewToGlobalMatrix, in onCaptureSharedElementSnapshot()
198 Matrix matrix = imageView.getImageMatrix(); in onCaptureSharedElementSnapshot()
208 mTempMatrix = new Matrix(viewToGlobalMatrix); in onCaptureSharedElementSnapshot()
257 Matrix matrix = new Matrix(); in onCreateSnapshotView()

1234567891011