/cts/tests/tests/graphics/src/android/graphics/cts/ |
MatrixTest.java | 24 private Matrix mMatrix; 30 mMatrix = new Matrix(); 36 new Matrix(mMatrix); 40 assertTrue(mMatrix.isIdentity()); 41 mMatrix.setScale(0f, 0f); 42 assertFalse(mMatrix.isIdentity()); 46 assertTrue(mMatrix.rectStaysRect()); 47 mMatrix.postRotate(80); 48 assertFalse(mMatrix.rectStaysRect()); 53 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()); 121 mMatrix.postConcat(t.getMatrix()); 129 return mMatrix; 169 sb.append(" matrix="); mMatrix.toShortString(sb); 180 mMatrix.printShortString(pw) [all...] |
/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/native/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 | 41 private float[] mMatrix = new float[4 * 16]; 68 Matrix.setIdentityM(mMatrix, TOP_M); 69 Matrix.setIdentityM(mMatrix, LEFT_M); 70 Matrix.setIdentityM(mMatrix, BOTTOM_M); 71 Matrix.setIdentityM(mMatrix, RIGHT_M); 73 Matrix.rotateM(mMatrix, LEFT_M, 90, 0, 0, 1); 74 Matrix.scaleM(mMatrix, LEFT_M, 1, -1, 1); 76 Matrix.translateM(mMatrix, BOTTOM_M, 0, h, 0); 77 Matrix.scaleM(mMatrix, BOTTOM_M, 1, -1, 1); 79 Matrix.translateM(mMatrix, RIGHT_M, w, 0, 0) [all...] |
Paper.java | 33 private float[] mMatrix = new float[16]; 83 Matrix.setIdentityM(mMatrix, 0); 84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0); 85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); 86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0); 87 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(); 127 Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, getWidth(), getHeight()); 132 mMatrix.postRotate(mOrientation); // postRotate is clockwise 138 mMatrix.mapRect(mRect);
|
/packages/apps/LegacyCamera/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 | 114 private final Matrix mMatrix = new Matrix(); 455 mMatrix.set(transform); 476 transform.set(mMatrix); 483 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);
|
/packages/apps/Camera/src/com/android/camera/ |
FocusManager.java | 80 private Matrix mMatrix; 137 mMatrix = new Matrix(); 192 matrix.invert(mMatrix); 509 mMatrix.mapRect(rectF);
|