Home
last modified time | relevance | path

Searched refs:mMatrix (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicColorMatrix.java41 private final Matrix4f mMatrix = new Matrix4f(); field in ScriptIntrinsicColorMatrix
83 fp.addMatrix(mMatrix); in setMatrix()
94 mMatrix.load(m); in setColorMatrix()
105 mMatrix.load(m); in setColorMatrix()
158 mMatrix.loadIdentity(); in setGreyscale()
159 mMatrix.set(0, 0, 0.299f); in setGreyscale()
160 mMatrix.set(1, 0, 0.587f); in setGreyscale()
161 mMatrix.set(2, 0, 0.114f); in setGreyscale()
162 mMatrix.set(0, 1, 0.299f); in setGreyscale()
163 mMatrix.set(1, 1, 0.587f); in setGreyscale()
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptIntrinsicColorMatrix.java31 private final Matrix4f mMatrix = new Matrix4f(); field in ScriptIntrinsicColorMatrix
70 fp.addMatrix(mMatrix);
81 mMatrix.load(m);
92 mMatrix.load(m);
145 mMatrix.loadIdentity();
146 mMatrix.set(0, 0, 0.299f);
147 mMatrix.set(1, 0, 0.587f);
148 mMatrix.set(2, 0, 0.114f);
149 mMatrix.set(0, 1, 0.299f);
150 mMatrix.set(1, 1, 0.587f);
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorMatrixColorFilter.java26 private final ColorMatrix mMatrix = new ColorMatrix(); field in ColorMatrixColorFilter
36 mMatrix.set(matrix); in ColorMatrixColorFilter()
51 mMatrix.set(array); in ColorMatrixColorFilter()
65 return mMatrix; in getColorMatrix()
83 mMatrix.reset(); in setColorMatrix()
84 } else if (matrix != mMatrix) { in setColorMatrix()
85 mMatrix.set(matrix); in setColorMatrix()
110 mMatrix.reset(); in setColorMatrix()
116 mMatrix.set(array); in setColorMatrix()
122 final float[] colorMatrix = mMatrix.getArray(); in update()
DCamera.java25 private Matrix mMatrix; field in Camera
153 if (mMatrix == null) mMatrix = new Matrix(); in applyToCanvas()
154 getMatrix(mMatrix); in applyToCanvas()
155 canvas.concat(mMatrix); in applyToCanvas()
/frameworks/native/services/surfaceflinger/
DTransform.cpp37 : mMatrix(other.mMatrix), mType(other.mType) { in Transform()
67 const mat33& A(mMatrix); in operator *()
68 const mat33& B(rhs.mMatrix); in operator *()
69 mat33& D(r.mMatrix); in operator *()
87 return mMatrix[i]; in operator []()
95 return mMatrix[2][0]; in tx()
99 return mMatrix[2][1]; in ty()
105 vec3& v(mMatrix[i]); in reset()
113 mMatrix[2][0] = tx; in set()
114 mMatrix[2][1] = ty; in set()
[all …]
DTransform.h106 mat33 mMatrix; variable
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGradientsActivity.java197 private final Matrix mMatrix; field in GradientsActivity.ShadersView
209 mMatrix = new Matrix(); in ShadersView()
226 mMatrix.setScale(1, mDrawWidth); in onDraw()
227 mMatrix.postRotate(90); in onDraw()
228 mMatrix.postTranslate(right, top); in onDraw()
229 mGradient.setLocalMatrix(mMatrix); in onDraw()
236 mMatrix.setScale(1, mDrawHeight); in onDraw()
237 mMatrix.postTranslate(left, top); in onDraw()
238 mGradient.setLocalMatrix(mMatrix); in onDraw()
247 mMatrix.setScale(1, mDrawHeight); in onDraw()
[all …]
DAdvancedGradientsActivity.java43 private final Matrix mMatrix; field in AdvancedGradientsActivity.GradientsView
54 mMatrix = new Matrix(); in GradientsView()
55 mMatrix.setRotate(-45, 0.0f, 0.0f); in GradientsView()
56 mMatrix.postTranslate(100.0f, 100.0f); in GradientsView()
82 mSweepGradient.setLocalMatrix(mMatrix); in onDraw()
100 mRadialGradient.setLocalMatrix(mMatrix); in onDraw()
DBitmaps3dActivity.java46 private Matrix mMatrix; field in Bitmaps3dActivity.BitmapsView
54 mMatrix = new Matrix(); in BitmapsView()
55 mMatrix.setScale(2.0f, 2.0f); in BitmapsView()
56 mMatrix.preTranslate(0.0f, -10.0f); in BitmapsView()
68 canvas.concat(mMatrix); in onDraw()
DTransform3dActivity.java41 private Matrix mMatrix; field in Transform3dActivity.Transform3dView
48 mMatrix = new Matrix(); in Transform3dView()
61 final Matrix matrix = mMatrix; in onDraw()
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
DTransformTestActivity.java69 private Matrix mMatrix; field in TransformTestActivity.TransformView
105 mMatrix.reset(); in onScale()
106 mMatrix.postTranslate(-sizeX, -sizeY); in onScale()
107 mMatrix.postScale(mScale, mScale); in onScale()
108 mMatrix.postTranslate(mPosX, mPosY); in onScale()
127 mMatrix = new Matrix(); in TransformView()
139 mMatrix.reset(); in setDrawable()
140 mMatrix.postTranslate(-sizeX, -sizeY); in setDrawable()
141 mMatrix.postScale(mScale, mScale); in setDrawable()
142 mMatrix.postTranslate(mPosX, mPosY); in setDrawable()
[all …]
/frameworks/base/core/java/android/view/animation/
DTransformation.java48 protected Matrix mMatrix; field in Transformation
68 if (mMatrix == null) { in clear()
69 mMatrix = new Matrix(); in clear()
71 mMatrix.reset(); in clear()
107 mMatrix.set(t.getMatrix()); in set()
124 mMatrix.preConcat(t.getMatrix()); in compose()
143 mMatrix.postConcat(t.getMatrix()); in postCompose()
160 return mMatrix; in getMatrix()
233 sb.append(" matrix="); mMatrix.toShortString(sb); in toShortString()
244 mMatrix.printShortString(pw); in printShortString()
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DGroupTest.java26 private ScriptIntrinsicColorMatrix mMatrix; field in GroupTest
45 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in createTest()
57 mMatrix.setColorMatrix(m); in createTest()
67 b.addKernel(mMatrix.getKernelID()); in createTest()
68 b.addConnection(connect, mConvolve.getKernelID(), mMatrix.getKernelID()); in createTest()
80 mMatrix.setColorMatrix(m); in animateBars()
86 mGroup.setOutput(mMatrix.getKernelID(), mOutPixelsAllocation); in runTest()
90 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation); in runTest()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DGroupTest.java33 private ScriptIntrinsicColorMatrix mMatrix; field in GroupTest
52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in createTest()
64 mMatrix.setColorMatrix(m); in createTest()
74 b.addKernel(mMatrix.getKernelID()); in createTest()
75 b.addConnection(connect, mConvolve.getKernelID(), mMatrix.getKernelID()); in createTest()
87 mMatrix.setColorMatrix(m); in animateBars()
93 mGroup.setOutput(mMatrix.getKernelID(), mOutPixelsAllocation); in runTest()
97 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation); in runTest()
/frameworks/base/core/java/android/view/inputmethod/
DCursorAnchorInfo.java103 private final Matrix mMatrix; field in CursorAnchorInfo
134 mMatrix = new Matrix(); in CursorAnchorInfo()
135 mMatrix.setValues(source.createFloatArray()); in CursorAnchorInfo()
157 mMatrix.getValues(matrixArray); in writeToParcel()
175 hash += Objects.hashCode(mMatrix); in hashCode()
222 if (!Objects.equals(mMatrix, that.mMatrix)) { in equals()
239 + " mMatrix=" + Objects.toString(mMatrix) in toString()
257 private final Matrix mMatrix = new Matrix(Matrix.IDENTITY_MATRIX); field in CursorAnchorInfo.Builder
352 mMatrix.set(matrix != null ? matrix : Matrix.IDENTITY_MATRIX); in setMatrix()
394 mMatrix.set(Matrix.IDENTITY_MATRIX); in reset()
[all …]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DGroupTest.java33 private ScriptIntrinsicColorMatrix mMatrix; field in GroupTest
52 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in createTest()
64 mMatrix.setColorMatrix(m); in createTest()
74 b.addKernel(mMatrix.getKernelID()); in createTest()
75 b.addConnection(connect, mConvolve.getKernelID(), mMatrix.getKernelID()); in createTest()
85 mGroup.setOutput(mMatrix.getKernelID(), mOutPixelsAllocation); in runTest()
89 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation); in runTest()
DUsageIO.java32 private ScriptIntrinsicColorMatrix mMatrix; field in UsageIO
41 mMatrix = ScriptIntrinsicColorMatrix.create(mRS, Element.U8_4(mRS)); in createTest()
47 mMatrix.setColorMatrix(m); in createTest()
62 mMatrix.forEach(mScratchPixelsAllocation2, mOutPixelsAllocation); in runTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DViewInvertHelper.java37 private final ColorMatrix mMatrix = new ColorMatrix(); field in ViewInvertHelper
94 mMatrix.set(invert); in updateInvertPaint()
96 mMatrix.preConcat(mGrayscaleMatrix); in updateInvertPaint()
97 mDarkPaint.setColorFilter(new ColorMatrixColorFilter(mMatrix)); in updateInvertPaint()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java103 private Matrix mMatrix = new Matrix(); field in PhotoView
440 mMatrix.getValues(mValues); in interceptMoveLeft()
442 mMatrix.mapRect(mTranslateRect); in interceptMoveLeft()
473 mMatrix.getValues(mValues); in interceptMoveRight()
475 mMatrix.mapRect(mTranslateRect); in interceptMoveRight()
681 mMatrix.set(mOriginalMatrix); in resetTransformations()
852 if (fits || mMatrix.isIdentity()) { in configureBounds()
856 mDrawMatrix = mMatrix; in configureBounds()
875 mMatrix.reset(); in generateMatrix()
890 mMatrix.setRectToRect(mTempSrc, scaledDestination, Matrix.ScaleToFit.CENTER); in generateMatrix()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DCircularBitmapDrawable.java43 private final Matrix mMatrix = new Matrix(); field in CircularBitmapDrawable
140 mMatrix.reset(); in onDrawCircularBitmap()
144 mMatrix.postScale(scale, scale); in onDrawCircularBitmap()
146 mMatrix.postTranslate(dst.left, dst.top); in onDrawCircularBitmap()
147 shader.setLocalMatrix(mMatrix); in onDrawCircularBitmap()
/frameworks/base/libs/hwui/
DDisplayListOp.h197 if (!state.mMatrix.isSimple()) return false; in isOpaqueOverBounds()
472 : mMatrix(matrix) {} in SetMatrixOp()
475 renderer.setMatrix(mMatrix); in applyState()
479 if (mMatrix.isIdentity()) { in output()
482 OP_LOG("SetMatrix " SK_MATRIX_STRING, SK_MATRIX_ARGS(&mMatrix)); in output()
489 const SkMatrix mMatrix;
495 : mMatrix(matrix) {} in SetLocalMatrixOp()
498 renderer.setLocalMatrix(mMatrix); in applyState()
502 OP_LOG("SetLocalMatrix " SK_MATRIX_STRING, SK_MATRIX_ARGS(&mMatrix)); in output()
508 const SkMatrix mMatrix;
[all …]
/frameworks/base/core/java/android/widget/
DImageView.java78 private Matrix mMatrix; field in ImageView
210 mMatrix = new Matrix(); in initImageView()
759 if (matrix == null && !mMatrix.isIdentity() || in setImageMatrix()
760 matrix != null && !mMatrix.equals(matrix)) { in setImageMatrix()
761 mMatrix.set(matrix); in setImageMatrix()
1120 if (mMatrix.isIdentity()) { in configureBounds()
1123 mDrawMatrix = mMatrix; in configureBounds()
1130 mDrawMatrix = mMatrix; in configureBounds()
1134 mDrawMatrix = mMatrix; in configureBounds()
1150 mDrawMatrix = mMatrix; in configureBounds()
[all …]
/frameworks/base/core/java/android/view/
DTextureView.java114 private final Matrix mMatrix = new Matrix(); field in TextureView
465 mMatrix.set(transform); in setTransform()
486 transform.set(mMatrix); in getTransform()
493 mLayer.setTransform(mMatrix); in applyTransformMatrix()
/frameworks/base/core/java/android/transition/
DChangeTransform.java504 private final Matrix mMatrix = new Matrix(); field in ChangeTransform.PathAnimatorMatrix
532 mMatrix.setValues(mValues); in setAnimationMatrix()
533 mView.setAnimationMatrix(mMatrix); in setAnimationMatrix()
537 return mMatrix; in getMatrix()
/frameworks/base/core/java/android/app/assist/
DAssistStructure.java524 Matrix mMatrix; field in AssistStructure.ViewNode
603 mMatrix = new Matrix(); in ViewNode()
605 mMatrix.setValues(reader.mTmpMatrix); in ViewNode()
647 if (mMatrix != null) { in writeSelfToParcel()
698 mMatrix.getValues(tmpMatrix); in writeSelfToParcel()
803 return mMatrix; in getTransformation()
1085 mNode.mMatrix = null; in setTransformation()
1087 mNode.mMatrix = new Matrix(matrix); in setTransformation()

12