/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
ScriptIntrinsicColorMatrix.java | 31 private final Matrix4f mMatrix = new Matrix4f(); 65 fp.addMatrix(mMatrix); 76 mMatrix.load(m); 87 mMatrix.load(m); 97 mMatrix.loadIdentity(); 98 mMatrix.set(0, 0, 0.299f); 99 mMatrix.set(1, 0, 0.587f); 100 mMatrix.set(2, 0, 0.114f); 101 mMatrix.set(0, 1, 0.299f); 102 mMatrix.set(1, 1, 0.587f) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ColorSpaceMatrix.java | 22 private final float[] mMatrix = new float[16]; 37 System.arraycopy(matrix.mMatrix, 0, mMatrix, 0, matrix.mMatrix.length); 46 return mMatrix; 53 Arrays.fill(mMatrix, 0); 54 mMatrix[0] = mMatrix[5] = mMatrix[10] = mMatrix[15] = 1 [all...] |
/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...] |
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
TransformationNode.cpp | 17 mMatrix(matrix) { 21 delete mMatrix; 29 model.multiply(*mMatrix, mSavedModelMatrix);
|
TransformationNode.h | 32 Matrix* mMatrix;
|
/frameworks/base/graphics/java/android/renderscript/ |
ScriptIntrinsicColorMatrix.java | 43 private final Matrix4f mMatrix = new Matrix4f(); 85 fp.addMatrix(mMatrix); 96 mMatrix.load(m); 107 mMatrix.load(m); 160 mMatrix.loadIdentity(); 161 mMatrix.set(0, 0, 0.299f); 162 mMatrix.set(1, 0, 0.587f); 163 mMatrix.set(2, 0, 0.114f); 164 mMatrix.set(0, 1, 0.299f); 165 mMatrix.set(1, 1, 0.587f) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Camera.java | 25 private Matrix mMatrix; 153 if (mMatrix == null) mMatrix = new Matrix(); 154 getMatrix(mMatrix); 155 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...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
EdgeView.java | 44 private float[] mMatrix = new float[4 * 16]; 71 Matrix.setIdentityM(mMatrix, TOP_M); 72 Matrix.setIdentityM(mMatrix, LEFT_M); 73 Matrix.setIdentityM(mMatrix, BOTTOM_M); 74 Matrix.setIdentityM(mMatrix, RIGHT_M); 76 Matrix.rotateM(mMatrix, LEFT_M, 90, 0, 0, 1); 77 Matrix.scaleM(mMatrix, LEFT_M, 1, -1, 1); 79 Matrix.translateM(mMatrix, BOTTOM_M, 0, h, 0); 80 Matrix.scaleM(mMatrix, BOTTOM_M, 1, -1, 1); 82 Matrix.translateM(mMatrix, RIGHT_M, w, 0, 0) [all...] |
Paper.java | 34 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;
|
/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/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
GroupTest.java | 26 private ScriptIntrinsicColorMatrix mMatrix; 45 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 57 mMatrix.setColorMatrix(m); 67 b.addKernel(mMatrix.getKernelID()); 68 b.addConnection(connect, mConvolve.getKernelID(), mMatrix.getKernelID()); 78 mGroup.setOutput(mMatrix.getKernelID(), mOutPixelsAllocation); 82 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
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...] |
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);
|
/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...] |
/frameworks/native/services/surfaceflinger/ |
Transform.cpp | 37 : mMatrix(other.mMatrix), mType(other.mType) { 67 const mat33& A(mMatrix); 68 const mat33& B(rhs.mMatrix); 69 mat33& D(r.mMatrix); 87 return mMatrix[i]; 95 return mMatrix[2][0]; 99 return mMatrix[2][1]; 105 vec3& v(mMatrix[i]); 113 mMatrix[2][0] = tx [all...] |
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
UsageIO.java | 32 private ScriptIntrinsicColorMatrix mMatrix; 41 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 47 mMatrix.setColorMatrix(m); 62 mMatrix.forEach(mScratchPixelsAllocation2, mOutPixelsAllocation);
|
GroupTest.java | 33 private ScriptIntrinsicColorMatrix mMatrix; 52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 64 mMatrix.setColorMatrix(m); 74 b.addKernel(mMatrix.getKernelID()); 75 b.addConnection(connect, mConvolve.getKernelID(), mMatrix.getKernelID()); 85 mGroup.setOutput(mMatrix.getKernelID(), mOutPixelsAllocation); 89 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation);
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
GroupTest.java | 33 private ScriptIntrinsicColorMatrix mMatrix; 52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); 64 mMatrix.setColorMatrix(m); 74 b.addKernel(mMatrix.getKernelID()); 75 b.addConnection(connect, mConvolve.getKernelID(), mMatrix.getKernelID()); 85 mGroup.setOutput(mMatrix.getKernelID(), mOutPixelsAllocation); 89 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation);
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
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);
|
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);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
RotateLayout.java | 39 private Matrix mMatrix = new Matrix(); 85 mMatrix.setTranslate(0, 0); 88 mMatrix.setTranslate(0, -h); 91 mMatrix.setTranslate(-w, -h); 94 mMatrix.setTranslate(-w, 0); 97 mMatrix.postRotate(mOrientation); 98 event = MotionEventHelper.transformEvent(event, mMatrix);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
MatrixFit.java | 26 private double[][] mMatrix; 44 return mMatrix; 54 mMatrix = new double[mDimension +1][mDimension + mDimension +1]; 107 mMatrix[i][j] = Q[i][j]; 110 mMatrix[i][mDimension + 1 + j] = c[i][j]; 113 if (!gaussianElimination(mMatrix)) { 126 res[j] += point[i] * mMatrix[i][j+ mDimension +1]; 128 res[j] += mMatrix[mDimension][j+ mDimension +1]; 137 str += "x" + i + " * " + mMatrix[i][j+mDimension+1] + " + "; 139 str += mMatrix[mDimension][j+mDimension+1] [all...] |