/cts/tests/tests/graphics/src/android/graphics/cts/ |
MatrixTest.java | 29 private Matrix mMatrix; 35 mMatrix = new Matrix(); 58 new Matrix(mMatrix); 67 assertTrue(mMatrix.isIdentity()); 68 mMatrix.setScale(0f, 0f); 69 assertFalse(mMatrix.isIdentity()); 78 assertTrue(mMatrix.rectStaysRect()); 79 mMatrix.postRotate(80); 80 assertFalse(mMatrix.rectStaysRect()); 90 mMatrix.getValues(mValues) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PolyToPoly.java | 38 private Matrix mMatrix = new Matrix(); 43 mMatrix.setPolyToPoly(src, 0, dst, 0, src.length >> 1); 44 canvas.concat(mMatrix);
|
Sweep.java | 36 private Matrix mMatrix = new Matrix(); 61 mMatrix.setRotate(mRotate, x, y); 62 mShader.setLocalMatrix(mMatrix);
|
ScaleToFit.java | 36 private final Matrix mMatrix = new Matrix(); 85 mMatrix.setRectToRect(mSrcR, mDstR, stf); 86 canvas.concat(mMatrix);
|
Vertices.java | 40 private final Matrix mMatrix = new Matrix(); 73 mMatrix.setScale(0.8f, 0.8f); 74 mMatrix.preTranslate(20, 20); 75 mMatrix.invert(mInverse); 81 canvas.concat(mMatrix);
|
BitmapMesh.java | 44 private final Matrix mMatrix = new Matrix(); 73 mMatrix.setTranslate(10, 10); 74 mMatrix.invert(mInverse); 80 canvas.concat(mMatrix);
|
/frameworks/base/core/java/android/view/animation/ |
Transformation.java | 46 protected Matrix mMatrix; 63 if (mMatrix == null) { 64 mMatrix = new Matrix(); 66 mMatrix.reset(); 100 mMatrix.set(t.getMatrix()); 111 mMatrix.preConcat(t.getMatrix()); 119 return mMatrix; 159 sb.append(" matrix="); mMatrix.toShortString(sb); 170 mMatrix.printShortString(pw);
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
TransformTestActivity.java | 69 private Matrix mMatrix; 105 mMatrix.reset(); 106 mMatrix.postTranslate(-sizeX, -sizeY); 107 mMatrix.postScale(mScale, mScale); 108 mMatrix.postTranslate(mPosX, mPosY); 127 mMatrix = new Matrix(); 139 mMatrix.reset(); 140 mMatrix.postTranslate(-sizeX, -sizeY); 141 mMatrix.postScale(mScale, mScale); 142 mMatrix.postTranslate(mPosX, mPosY) [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
AdvancedGradientsActivity.java | 43 private final Matrix mMatrix; 54 mMatrix = new Matrix(); 55 mMatrix.setRotate(-45, 0.0f, 0.0f); 56 mMatrix.postTranslate(100.0f, 100.0f); 82 mSweepGradient.setLocalMatrix(mMatrix); 100 mRadialGradient.setLocalMatrix(mMatrix);
|
Bitmaps3dActivity.java | 46 private Matrix mMatrix; 54 mMatrix = new Matrix(); 55 mMatrix.setScale(2.0f, 2.0f); 56 mMatrix.preTranslate(0.0f, -10.0f); 68 canvas.concat(mMatrix);
|
GradientsActivity.java | 197 private final Matrix mMatrix; 209 mMatrix = new Matrix(); 228 mMatrix.setScale(1, mDrawWidth); 229 mMatrix.postRotate(90); 230 mMatrix.postTranslate(right, top); 231 mGradient.setLocalMatrix(mMatrix); 237 mMatrix.setScale(1, mDrawHeight); 238 mMatrix.postTranslate(left, top); 239 mGradient.setLocalMatrix(mMatrix); 247 mMatrix.setScale(1, mDrawHeight) [all...] |
TextureViewActivity.java | 44 private Matrix mMatrix = new Matrix();
|
Transform3dActivity.java | 41 private Matrix mMatrix; 48 mMatrix = new Matrix(); 61 final Matrix matrix = mMatrix;
|
/frameworks/base/services/surfaceflinger/ |
Transform.h | 120 mat33 mMatrix;
|
/frameworks/base/libs/hwui/ |
SkiaColorFilter.h | 91 float* mMatrix;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
EdgeView.java | 40 private float[] mMatrix = new float[4 * 16]; 67 Matrix.setIdentityM(mMatrix, TOP_M); 68 Matrix.setIdentityM(mMatrix, LEFT_M); 69 Matrix.setIdentityM(mMatrix, BOTTOM_M); 70 Matrix.setIdentityM(mMatrix, RIGHT_M); 72 Matrix.rotateM(mMatrix, LEFT_M, 90, 0, 0, 1); 73 Matrix.scaleM(mMatrix, LEFT_M, 1, -1, 1); 75 Matrix.translateM(mMatrix, BOTTOM_M, 0, h, 0); 76 Matrix.scaleM(mMatrix, BOTTOM_M, 1, -1, 1); 78 Matrix.translateM(mMatrix, RIGHT_M, w, 0, 0) [all...] |
Paper.java | 38 private float[] mMatrix = new float[16]; 89 Matrix.setIdentityM(mMatrix, 0); 90 Matrix.translateM(mMatrix, 0, mMatrix, 0, base.x, base.y, base.z); 91 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); 92 Matrix.translateM(mMatrix, 0, mMatrix, 0, 94 return mMatrix;
|
/packages/apps/Settings/src/com/android/settings/widget/ |
PieChartView.java | 51 private Matrix mMatrix = new Matrix(); 130 mMatrix.reset(); 131 mMatrix.postScale(0.665f, 0.95f, centerX, centerY); 132 mMatrix.postRotate(-40, centerX, centerY); 222 canvas.concat(mMatrix);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
MatrixStack.java | 37 mMatrix = new float[maxDepth * MATRIX_SIZE]; 44 Matrix.frustumM(mMatrix, mTop, left, right, bottom, top, near, far); 55 Matrix.setIdentityM(mMatrix, mTop); 59 System.arraycopy(m, offset, mMatrix, mTop, MATRIX_SIZE); 63 m.get(mMatrix, mTop, MATRIX_SIZE); 68 mMatrix[mTop + i] = fixedToFloat(m[offset + i]); 74 mMatrix[mTop + i] = fixedToFloat(m.get()); 79 System.arraycopy(mMatrix, mTop, mTemp, 0, MATRIX_SIZE); 80 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset); 104 Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far) [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
FaceView.java | 43 private Matrix mMatrix = new Matrix(); 124 Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, getWidth(), getHeight()); 129 mMatrix.postRotate(mOrientation); // postRotate is clockwise 135 mMatrix.mapRect(mRect);
|
/frameworks/base/core/java/android/view/ |
TextureView.java | 113 private final Matrix mMatrix = new Matrix(); 413 mMatrix.set(transform); 434 transform.set(mMatrix); 441 mLayer.setTransform(mMatrix);
|
/packages/apps/Gallery/src/com/android/camera/ |
HighlightView.java | 33 // image, another is screen. computeLayout() uses mMatrix to map from image 358 mMatrix.mapRect(r); 372 mMatrix = new Matrix(m); 399 Matrix mMatrix;
|
CropImage.java | 570 hv.mMatrix.set(getImageMatrix()); 587 hv.mMatrix.set(getImageMatrix()); 596 hv.mMatrix.set(getImageMatrix()); 605 hv.mMatrix.set(getImageMatrix()); 615 hv.mMatrix.postTranslate(deltaX, deltaY);
|
/frameworks/base/core/java/android/widget/ |
ImageView.java | 62 private Matrix mMatrix; 164 mMatrix = new Matrix(); 510 return mMatrix; 520 if (matrix == null && !mMatrix.isIdentity() || 521 matrix != null && !mMatrix.equals(matrix)) { 522 mMatrix.set(matrix); 812 if (mMatrix.isIdentity()) { 815 mDrawMatrix = mMatrix; 822 mDrawMatrix = mMatrix; 826 mDrawMatrix = mMatrix; [all...] |
/packages/apps/Camera/src/com/android/camera/ |
FocusManager.java | 62 private Matrix mMatrix; 104 mMatrix = new Matrix(); 132 matrix.invert(mMatrix); 455 mMatrix.mapRect(rectF);
|