Home
last modified time | relevance | path

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

123

/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicColorMatrix.java46 private final Matrix4f mMatrix = new Matrix4f(); field in ScriptIntrinsicColorMatrix
88 fp.addMatrix(mMatrix); in setMatrix()
99 mMatrix.load(m); in setColorMatrix()
110 mMatrix.load(m); in setColorMatrix()
163 mMatrix.loadIdentity(); in setGreyscale()
164 mMatrix.set(0, 0, 0.299f); in setGreyscale()
165 mMatrix.set(1, 0, 0.587f); in setGreyscale()
166 mMatrix.set(2, 0, 0.114f); in setGreyscale()
167 mMatrix.set(0, 1, 0.299f); in setGreyscale()
168 mMatrix.set(1, 1, 0.587f); in setGreyscale()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicColorMatrix.java36 private final Matrix4f mMatrix = new Matrix4f(); field in ScriptIntrinsicColorMatrix
75 fp.addMatrix(mMatrix);
86 mMatrix.load(m);
97 mMatrix.load(m);
150 mMatrix.loadIdentity();
151 mMatrix.set(0, 0, 0.299f);
152 mMatrix.set(1, 0, 0.587f);
153 mMatrix.set(2, 0, 0.114f);
154 mMatrix.set(0, 1, 0.299f);
155 mMatrix.set(1, 1, 0.587f);
[all …]
/frameworks/native/libs/ui/
DTransform.cpp35 : mMatrix(other.mMatrix), mType(other.mType) { in Transform()
55 return mMatrix[0][0] == other.mMatrix[0][0] && mMatrix[0][1] == other.mMatrix[0][1] && in operator ==()
56 mMatrix[0][2] == other.mMatrix[0][2] && mMatrix[1][0] == other.mMatrix[1][0] && in operator ==()
57 mMatrix[1][1] == other.mMatrix[1][1] && mMatrix[1][2] == other.mMatrix[1][2] && in operator ==()
58 mMatrix[2][0] == other.mMatrix[2][0] && mMatrix[2][1] == other.mMatrix[2][1] && in operator ==()
59 mMatrix[2][2] == other.mMatrix[2][2]; in operator ==()
71 const mat33& A(mMatrix); in operator *()
72 const mat33& B(rhs.mMatrix); in operator *()
73 mat33& D(r.mMatrix); in operator *()
92 const mat33& M(mMatrix); in operator *()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCoordinateTransformsTest.java53 private final Matrix mMatrix = new Matrix(); field in CoordinateTransformsTest
61 mMatrix.setTranslate(0xdeadbeef, 0xdeadbeef); in setUp()
67 transformPhysicalToLogicalCoordinates(ROTATION_0, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot0()
68 assertThat(mMatrix, is(Matrix.IDENTITY_MATRIX)); in transformPhysicalToLogicalCoordinates_rot0()
73 transformPhysicalToLogicalCoordinates(ROTATION_90, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot90()
81 transformPhysicalToLogicalCoordinates(ROTATION_180, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot180()
89 transformPhysicalToLogicalCoordinates(ROTATION_270, W, H, mMatrix); in transformPhysicalToLogicalCoordinates_rot270()
97 transformLogicalToPhysicalCoordinates(ROTATION_0, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot0()
98 assertThat(mMatrix, is(Matrix.IDENTITY_MATRIX)); in transformLogicalToPhysicalCoordinates_rot0()
103 transformLogicalToPhysicalCoordinates(ROTATION_90, W, H, mMatrix); in transformLogicalToPhysicalCoordinates_rot90()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
DAppSaturationControllerTest.java52 private float[] mMatrix; field in AppSaturationControllerTest
62 mMatrix = new float[9]; in setUp()
80 AppSaturationController.computeGrayscaleTransformMatrix(.3f, mMatrix); in addColorTransformController_appliesExistingSaturation()
81 verify(mColorTransformController).applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in addColorTransformController_appliesExistingSaturation()
95 AppSaturationController.computeGrayscaleTransformMatrix(.3f, mMatrix); in setSaturationLevel_resetToDefault()
97 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_resetToDefault()
101 AppSaturationController.computeGrayscaleTransformMatrix(1.0f, mMatrix); in setSaturationLevel_resetToDefault()
103 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_resetToDefault()
117 AppSaturationController.computeGrayscaleTransformMatrix(.3f, mMatrix); in setSaturationLevel_updateLevel()
118 verify(mColorTransformController).applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_updateLevel()
[all …]
/frameworks/base/graphics/java/android/graphics/
DColorMatrixColorFilter.java32 private final ColorMatrix mMatrix = new ColorMatrix(); field in ColorMatrixColorFilter
42 mMatrix.set(matrix); in ColorMatrixColorFilter()
56 mMatrix.set(array); in ColorMatrixColorFilter()
65 colorMatrix.set(mMatrix); in getColorMatrix()
85 mMatrix.reset(); in setColorMatrix()
87 mMatrix.set(matrix); in setColorMatrix()
89 nativeSetColorMatrix(getNativeInstance(), mMatrix.getArray()); in setColorMatrix()
115 mMatrix.reset(); in setColorMatrixArray()
120 mMatrix.set(array); in setColorMatrixArray()
122 nativeSetColorMatrix(getNativeInstance(), mMatrix.getArray()); in setColorMatrixArray()
[all …]
/frameworks/base/tests/graphics/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/tests/GamePerformance/src/android/gameperformance/
DRenderPatchAnimation.java41 private float[] mMatrix; field in RenderPatchAnimation
51 mMatrix = new float[16]; in RenderPatchAnimation()
95 Matrix.setIdentityM(mMatrix, 0);
96 mMatrix[12] = mPosX;
97 mMatrix[13] = mPosY;
98 Matrix.multiplyMM(mMatrix, 0, vpMatrix, 0, mMatrix, 0);
99 return mMatrix;
/frameworks/rs/tests/java_api/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/base/core/java/android/view/animation/
DTransformation.java50 protected Matrix mMatrix; field in Transformation
72 if (mMatrix == null) { in clear()
73 mMatrix = new Matrix(); in clear()
75 mMatrix.reset(); in clear()
112 mMatrix.set(t.getMatrix()); in set()
129 mMatrix.preConcat(t.getMatrix()); in compose()
149 mMatrix.postConcat(t.getMatrix()); in postCompose()
166 return mMatrix; in getMatrix()
263 sb.append(" matrix="); sb.append(mMatrix.toShortString()); in toShortString()
275 mMatrix.dump(pw); in printShortString()
/frameworks/rs/tests/java_api/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/services/core/java/com/android/server/display/color/
DReduceBrightColorsTintController.java36 private final float[] mMatrix = new float[16]; field in ReduceBrightColorsTintController
53 return isActivated() ? Arrays.copyOf(mMatrix, mMatrix.length) in getMatrix()
68 Matrix.setIdentityM(mMatrix, 0); in setMatrix()
72 mMatrix[0] = componentValue; in setMatrix()
73 mMatrix[5] = componentValue; in setMatrix()
74 mMatrix[10] = componentValue; in setMatrix()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DPathSpecCornerPathRenderer.java42 private final Matrix mMatrix = new Matrix(); field in PathSpecCornerPathRenderer
115 mMatrix.reset(); in getCornerPath()
118 mMatrix.preScale(cornerRadius / mPathScale, cornerRadius / mPathScale); in getCornerPath()
119 mMatrix.postRotate(rotateDegrees); in getCornerPath()
120 mMatrix.postTranslate(translateX, translateY); in getCornerPath()
121 mPath.transform(mMatrix); in getCornerPath()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
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()
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()
80 c = b.addKernel(mMatrix.getKernelID(), in createTest()
95 mMatrix.forEach(mScratchPixelsAllocation1, mOutPixelsAllocation); in runTest()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DPreviewPositionHelper.java36 private final Matrix mMatrix = new Matrix(); field in PreviewPositionHelper
42 return mMatrix; in getMatrix()
174 mMatrix.setTranslate( in updateThumbnailMatrix()
181 mMatrix.postScale(thumbnailScale, thumbnailScale); in updateThumbnailMatrix()
204 mMatrix.setRotate(90 * deltaRotate); in setThumbnailRotation()
217 mMatrix.postTranslate(translateX, translateY); in setThumbnailRotation()
/frameworks/base/libs/hwui/
DColorFilter.h100 ColorMatrixColorFilter(std::vector<float>&& matrix) : mMatrix(std::move(matrix)) {} in ColorMatrixColorFilter()
103 mMatrix = std::move(matrix); in setMatrix()
109 return SkColorFilters::Matrix(mMatrix.data()); in createInstance()
113 std::vector<float> mMatrix;
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskFragmentAnimationAdapter.java68 final float[] mMatrix = new float[9]; field in TaskFragmentAnimationAdapter
139 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
144 final int positionX = Math.round(mMatrix[MTRANS_X]); in onAnimationUpdateInner()
145 final int positionY = Math.round(mMatrix[MTRANS_Y]); in onAnimationUpdateInner()
188 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
206 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/
DActivityEmbeddingAnimationAdapter.java68 final float[] mMatrix = new float[9]; field in ActivityEmbeddingAnimationAdapter
150 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
155 final int positionX = Math.round(mMatrix[MTRANS_X]); in onAnimationUpdateInner()
156 final int positionY = Math.round(mMatrix[MTRANS_Y]); in onAnimationUpdateInner()
204 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
231 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java105 private Matrix mMatrix = new Matrix(); field in PhotoView
411 mMatrix.getValues(mValues); in interceptMoveLeft()
413 mMatrix.mapRect(mTranslateRect); in interceptMoveLeft()
444 mMatrix.getValues(mValues); in interceptMoveRight()
446 mMatrix.mapRect(mTranslateRect); in interceptMoveRight()
652 mMatrix.set(mOriginalMatrix); in resetTransformations()
823 if (fits || mMatrix.isIdentity()) { in configureBounds()
827 mDrawMatrix = mMatrix; in configureBounds()
846 mMatrix.reset(); in generateMatrix()
861 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()

123