Home
last modified time | relevance | path

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

1234

/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DColorSpaceMatrix.java37 System.arraycopy(matrix.mMatrix, 0, mMatrix, 0, matrix.mMatrix.length); in ColorSpaceMatrix()
54 mMatrix[0] = mMatrix[5] = mMatrix[10] = mMatrix[15] = 1; in identity()
58 mMatrix[0] = mMatrix[1] = mMatrix[2] = 0.3086f; in convertToLuminance()
59 mMatrix[4] = mMatrix[5] = mMatrix[6] = 0.6094f; in convertToLuminance()
60 mMatrix[8] = mMatrix[9] = mMatrix[10] = 0.0820f; in convertToLuminance()
186 return r * mMatrix[0] + g * mMatrix[4] + b * mMatrix[8] + mMatrix[12]; in getRed()
198 return r * mMatrix[1] + g * mMatrix[5] + b * mMatrix[9] + mMatrix[13]; in getGreen()
210 return r * mMatrix[2] + g * mMatrix[6] + b * mMatrix[10] + mMatrix[14]; in getBlue()
214 return r * mMatrix[0] + g * mMatrix[4] + b * mMatrix[8] + mMatrix[12]; in getRedf()
218 return r * mMatrix[1] + g * mMatrix[5] + b * mMatrix[9] + mMatrix[13]; in getGreenf()
[all …]
/aosp12/frameworks/base/rs/java/android/renderscript/
H A DScriptIntrinsicColorMatrix.java88 fp.addMatrix(mMatrix); in setMatrix()
99 mMatrix.load(m); in setColorMatrix()
110 mMatrix.load(m); in setColorMatrix()
163 mMatrix.loadIdentity(); in setGreyscale()
182 mMatrix.loadIdentity(); in setYUVtoRGB()
183 mMatrix.set(0, 0, 1.f); in setYUVtoRGB()
184 mMatrix.set(1, 0, 0.f); in setYUVtoRGB()
186 mMatrix.set(0, 1, 1.f); in setYUVtoRGB()
189 mMatrix.set(0, 2, 1.f); in setYUVtoRGB()
191 mMatrix.set(2, 2, 0.f); in setYUVtoRGB()
[all …]
/aosp12/frameworks/rs/support/java/src/androidx/renderscript/
H A DScriptIntrinsicColorMatrix.java75 fp.addMatrix(mMatrix);
86 mMatrix.load(m);
97 mMatrix.load(m);
150 mMatrix.loadIdentity();
169 mMatrix.loadIdentity();
170 mMatrix.set(0, 0, 1.f);
171 mMatrix.set(1, 0, 0.f);
173 mMatrix.set(0, 1, 1.f);
176 mMatrix.set(0, 2, 1.f);
178 mMatrix.set(2, 2, 0.f);
[all …]
/aosp12/frameworks/native/libs/ui/
H A 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 ==()
104 mMatrix = other.mMatrix; in operator =()
110 return mMatrix[i]; in operator []()
167 mat33& M(mMatrix); in set()
379 result.mMatrix[2][0] = -result.mMatrix[2][0]; in inverse()
[all …]
/aosp12/system/media/audio_utils/include/audio_utils/
H A DChannelMix.h96 mMatrix[index][0] = 1.f; in setInputChannelMask()
97 mMatrix[index][1] = 0.f; in setInputChannelMask()
104 mMatrix[index][1] = 0.f; in setInputChannelMask()
109 mMatrix[index][0] = 0.f; in setInputChannelMask()
110 mMatrix[index][1] = 1.f; in setInputChannelMask()
116 mMatrix[index][0] = 0.f; in setInputChannelMask()
122 mMatrix[index][0] = mMatrix[index][1] = MINUS_3_DB_IN_FLOAT; in setInputChannelMask()
126 mMatrix[index][1] = 0.f; in setInputChannelMask()
141 mMatrix[index][0] = mMatrix[index][1] = COEF_36; in setInputChannelMask()
144 mMatrix[index][0] = mMatrix[index][1] = COEF_35; in setInputChannelMask()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DCoordinateTransformsTest.java52 private final Matrix mMatrix = new Matrix(); field in CoordinateTransformsTest
60 mMatrix.setTranslate(0xdeadbeef, 0xdeadbeef); in setUp()
67 assertThat(mMatrix, is(Matrix.IDENTITY_MATRIX)); in transformPhysicalToLogicalCoordinates_rot0()
97 assertThat(mMatrix, is(Matrix.IDENTITY_MATRIX)); in transformLogicalToPhysicalCoordinates_rot0()
129 assertMatricesAreInverses(mMatrix, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot0()
137 assertMatricesAreInverses(mMatrix, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot90()
145 assertMatricesAreInverses(mMatrix, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot180()
153 assertMatricesAreInverses(mMatrix, mMatrix2); in transformLogicalToPhysicalCoordinatesIsInverse_rot270()
180 transformToRotation(ROTATION_180, ROTATION_270, di, mMatrix); in transformBetweenRotations_displayInfo()
185 assertEquals(mMatrix2, mMatrix); in transformBetweenRotations_displayInfo()
[all …]
H A DRotationAnimationUtilsTest.java44 private Matrix mMatrix; field in RotationAnimationUtilsTest
48 mMatrix = new Matrix(); in setup()
96 POINT_WIDTH, POINT_HEIGHT, mMatrix); in rotate_0_bottomRight()
105 POINT_WIDTH, POINT_HEIGHT, mMatrix); in rotate_90_bottomRight()
114 POINT_WIDTH, POINT_HEIGHT, mMatrix); in rotate_180_bottomRight()
123 POINT_WIDTH, POINT_HEIGHT, mMatrix); in rotate_270_bottomRight()
131 mMatrix.mapPoints(fs); in checkMappedPoints()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/display/color/
H A DAppSaturationControllerTest.java52 private float[] mMatrix; field in AppSaturationControllerTest
62 mMatrix = new float[9]; in setUp()
80 AppSaturationController.computeGrayscaleTransformMatrix(.3f, mMatrix); in addColorTransformController_appliesExistingSaturation()
97 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_resetToDefault()
103 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_resetToDefault()
124 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_updateLevel()
130 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_updateLevel()
146 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_multipleCallers_appliesStrongest()
152 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_multipleCallers_appliesStrongest()
168 .applyAppSaturation(eq(mMatrix), eq(TRANSLATION_VECTOR)); in setSaturationLevel_multipleCallers_removingOneDoesNotAffectTheOther()
[all …]
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A 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()
236 mMatrix.setScale(1, mDrawHeight); in onDraw()
237 mMatrix.postTranslate(left, top); in onDraw()
248 mMatrix.postRotate(180); in onDraw()
257 mMatrix.setScale(1, mDrawWidth); in onDraw()
258 mMatrix.postRotate(-90); in onDraw()
269 mMatrix.setScale(1, mDrawWidth); in onDraw()
[all …]
H A 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()
H A 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()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DEdgeView.java44 private float[] mMatrix = new float[4 * 16]; field in EdgeView
71 Matrix.setIdentityM(mMatrix, TOP_M); in onLayout()
72 Matrix.setIdentityM(mMatrix, LEFT_M); in onLayout()
73 Matrix.setIdentityM(mMatrix, BOTTOM_M); in onLayout()
74 Matrix.setIdentityM(mMatrix, RIGHT_M); in onLayout()
76 Matrix.rotateM(mMatrix, LEFT_M, 90, 0, 0, 1); in onLayout()
77 Matrix.scaleM(mMatrix, LEFT_M, 1, -1, 1); in onLayout()
79 Matrix.translateM(mMatrix, BOTTOM_M, 0, h, 0); in onLayout()
80 Matrix.scaleM(mMatrix, BOTTOM_M, 1, -1, 1); in onLayout()
82 Matrix.translateM(mMatrix, RIGHT_M, w, 0, 0); in onLayout()
[all …]
H A DPaper.java34 private float[] mMatrix = new float[16]; field in Paper
83 Matrix.setIdentityM(mMatrix, 0); in getTransform()
84 Matrix.translateM(mMatrix, 0, mMatrix, 0, rect.centerX(), rect.centerY(), 0); in getTransform()
85 Matrix.rotateM(mMatrix, 0, degrees, 0, 1, 0); in getTransform()
86 Matrix.translateM(mMatrix, 0, mMatrix, 0, -rect.width() / 2, -rect.height() / 2, 0); in getTransform()
87 return mMatrix; in getTransform()
/aosp12/frameworks/base/graphics/java/android/graphics/
H A 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()
86 mMatrix.reset(); in setColorMatrix()
88 mMatrix.set(matrix); in setColorMatrix()
116 mMatrix.reset(); in setColorMatrixArray()
121 mMatrix.set(array); in setColorMatrixArray()
127 return nativeColorMatrixFilter(mMatrix.getArray()); in createNativeInstance()
/aosp12/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java69 private Matrix mMatrix; field in TransformTestActivity.TransformView
105 mMatrix.reset(); 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()
168 mMatrix.reset(); in onTouchEvent()
[all …]
/aosp12/frameworks/base/tests/GamePerformance/src/android/gameperformance/
H A 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;
/aosp12/frameworks/base/core/java/android/view/animation/
H A DTransformation.java49 protected Matrix mMatrix; field in Transformation
69 if (mMatrix == null) { in clear()
70 mMatrix = new Matrix(); in clear()
72 mMatrix.reset(); in clear()
108 mMatrix.set(t.getMatrix()); in set()
125 mMatrix.preConcat(t.getMatrix()); in compose()
144 mMatrix.postConcat(t.getMatrix()); in postCompose()
161 return mMatrix; in getMatrix()
234 sb.append(" matrix="); sb.append(mMatrix.toShortString()); in toShortString()
246 mMatrix.dump(pw); in printShortString()
/aosp12/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
H A 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()
/aosp12/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
H A 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()
/aosp12/frameworks/base/services/core/java/com/android/server/display/color/
H A 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()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DMatrixFit.java26 private double[][] mMatrix; field in MatrixFit
44 return mMatrix; in getMatrix()
54 mMatrix = new double[mDimension +1][mDimension + mDimension +1]; in fit()
107 mMatrix[i][j] = Q[i][j]; in fit()
110 mMatrix[i][mDimension + 1 + j] = c[i][j]; in fit()
113 if (!gaussianElimination(mMatrix)) { in fit()
126 res[j] += point[i] * mMatrix[i][j+ mDimension +1]; in apply()
128 res[j] += mMatrix[mDimension][j+ mDimension +1]; in apply()
137 str += "x" + i + " * " + mMatrix[i][j+mDimension+1] + " + "; in printEquation()
139 str += mMatrix[mDimension][j+mDimension+1]; in printEquation()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
H A DTaskViewSimulator.java78 private final Matrix mMatrix = new Matrix(); field in TaskViewSimulator
265 mMatrixTmp.set(mMatrix); in getCurrentRect()
280 return mMatrix; in getCurrentMatrix()
331 mMatrix.set(mPositionHelper.getMatrix()); in apply()
332 mMatrix.postTranslate(insets.left, insets.top); in apply()
333 mMatrix.postScale(scale, scale); in apply()
336 mMatrix.postTranslate(mTaskRect.left, mTaskRect.top); in apply()
337 mOrientationState.getOrientationHandler().setPrimary(mMatrix, MATRIX_POST_TRANSLATE, in apply()
342 mMatrix, MATRIX_POST_TRANSLATE, recentsViewScroll.value); in apply()
350 applyWindowToHomeRotation(mMatrix); in apply()
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
H A 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()
/aosp12/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
H A 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()
/aosp12/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
H A DTaskFragmentAnimationAdapter.java41 final float[] mMatrix = new float[9]; field in TaskFragmentAnimationAdapter
79 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
137 mTransformation.getMatrix().getValues(mMatrix); in onAnimationUpdateInner()
139 final float scaleX = mMatrix[MSCALE_X]; in onAnimationUpdateInner()
149 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
169 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()
187 t.setMatrix(mLeash, mTransformation.getMatrix(), mMatrix); in onAnimationUpdateInner()

1234