Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java22 private final float[] mMatrix = new float[16]; field in ColorSpaceMatrix
37 System.arraycopy(matrix.mMatrix, 0, mMatrix, 0, matrix.mMatrix.length); in ColorSpaceMatrix()
46 return mMatrix; in getMatrix()
53 Arrays.fill(mMatrix, 0); in identity()
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()
71 temp[y4 + x] = mMatrix[y4 + 0] * a[x] in multiply()
72 + mMatrix[y4 + 1] * a[4 + x] in multiply()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
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 …]
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()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
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()
/packages/apps/Camera/src/com/android/camera/ui/
DRotateLayout.java39 private Matrix mMatrix = new Matrix(); field in RotateLayout
85 mMatrix.setTranslate(0, 0); in dispatchTouchEvent()
88 mMatrix.setTranslate(0, -h); in dispatchTouchEvent()
91 mMatrix.setTranslate(-w, -h); in dispatchTouchEvent()
94 mMatrix.setTranslate(-w, 0); in dispatchTouchEvent()
97 mMatrix.postRotate(mOrientation); in dispatchTouchEvent()
98 event = MotionEventHelper.transformEvent(event, mMatrix); in dispatchTouchEvent()
DFaceView.java52 private Matrix mMatrix = new Matrix(); field in FaceView
191 Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh); in onDraw()
198 mMatrix.postRotate(mOrientation); // postRotate is clockwise in onDraw()
207 mMatrix.mapRect(mRect); in onDraw()
/packages/apps/Launcher2/src/com/android/launcher2/
DWallpaperChooserDialogFragment.java320 Matrix mMatrix; field in WallpaperChooserDialogFragment.WallpaperDrawable
328 mMatrix = null; in setBitmap()
335 if (mMatrix == null) { in draw()
351 mMatrix = new Matrix(); in draw()
352 mMatrix.setScale(scale, scale); in draw()
353 mMatrix.postTranslate((int) dx, (int) dy); in draw()
356 canvas.drawBitmap(mBitmap, mMatrix, null); in draw()
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
DAbstractAvatarDrawable.java57 protected final Matrix mMatrix; field in AbstractAvatarDrawable
78 mMatrix = new Matrix(); in AbstractAvatarDrawable()
116 mMatrix.reset(); in drawBitmap()
122 mMatrix.postScale(scale, scale); in drawBitmap()
125 mMatrix.postTranslate(bounds.left, bounds.top); in drawBitmap()
127 shader.setLocalMatrix(mMatrix); in drawBitmap()
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java74 private Matrix mMatrix = new Matrix(); field in MultiToggleImageButton
251 mMatrix.reset(); in init()
253 mMatrix.setTranslate(0.0f, (Float) animation.getAnimatedValue()); in init()
255 mMatrix.setTranslate((Float) animation.getAnimatedValue(), 0.0f); in init()
258 setImageMatrix(mMatrix); in init()
DFocusOverlayManager.java91 private final Matrix mMatrix; field in FocusOverlayManager
176 mMatrix = new Matrix(); in FocusOverlayManager()
236 matrix.invert(mMatrix); in setMatrix()
622 mMatrix.mapRect(rectF); in calculateTapArea()
/packages/apps/Camera/src/com/android/camera/
DFocusOverlayManager.java79 private Matrix mMatrix; field in FocusOverlayManager
128 mMatrix = new Matrix(); in FocusOverlayManager()
138 mInitialized = (mMatrix != null); in setFocusRenderer()
184 matrix.invert(mMatrix); in setMatrix()
522 mMatrix.mapRect(rectF); in calculateTapArea()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DFaceView.java43 private Matrix mMatrix = new Matrix(); field in FaceView
124 Util.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, getWidth(), getHeight()); in onDraw()
129 mMatrix.postRotate(mOrientation); // postRotate is clockwise in onDraw()
135 mMatrix.mapRect(mRect); in onDraw()
/packages/apps/Camera2/src/com/android/camera/ui/
DFaceView.java48 private Matrix mMatrix = new Matrix(); field in FaceView
184 CameraUtil.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh); in onDraw()
188 mMatrix.postRotate(mOrientation); // postRotate is clockwise in onDraw()
199 mMatrix.mapRect(mRect); in onDraw()
DRotateLayout.java33 private Matrix mMatrix = new Matrix(); field in RotateLayout
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DTextDecoratorUi.java191 private final Matrix mMatrix = new Matrix(); field in TextDecoratorUi.IndicatorView
215 mMatrix.reset(); in onDraw()
216 mMatrix.postScale(mBounds.width(), mBounds.height()); in onDraw()
217 mPath.transform(mMatrix, mTmpPath); in onDraw()
/packages/apps/LegacyCamera/src/com/android/camera/
DFocusManager.java62 private Matrix mMatrix; field in FocusManager
104 mMatrix = new Matrix(); in FocusManager()
132 matrix.invert(mMatrix); in initialize()
455 mMatrix.mapRect(rectF); in calculateTapArea()
/packages/apps/Gallery/src/com/android/camera/
DCropImage.java570 hv.mMatrix.set(getImageMatrix()); in onLayout()
587 hv.mMatrix.set(getImageMatrix()); in zoomTo()
596 hv.mMatrix.set(getImageMatrix()); in zoomIn()
605 hv.mMatrix.set(getImageMatrix()); in zoomOut()
615 hv.mMatrix.postTranslate(deltaX, deltaY); in postTranslate()
DHighlightView.java358 mMatrix.mapRect(r); in computeLayout()
372 mMatrix = new Matrix(m); in setup()
399 Matrix mMatrix; field in HighlightView
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java777 System.arraycopy(mMatrixValues, 0, config.mMatrix, 0, 16); in save()
779 config.mMatrix[0] = Float.NEGATIVE_INFINITY; in save()
809 float mMatrix[] = new float[16]; field in GLES11Canvas.ConfigState
814 if (mMatrix[0] != Float.NEGATIVE_INFINITY) { in restore()
815 System.arraycopy(mMatrix, 0, canvas.mMatrixValues, 0, 16); in restore()
DGLCanvas.java64 public abstract void multiplyMatrix(float[] mMatrix, int offset); in multiplyMatrix() argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java95 private float mMatrix[] = new float[16];
131 GalleryUtils.setViewPointMatrix(mMatrix,
133 canvas.multiplyMatrix(mMatrix, 0);
DAlbumPage.java149 private final float mMatrix[] = new float[16];
168 GalleryUtils.setViewPointMatrix(mMatrix,
175 canvas.multiplyMatrix(mMatrix, 0);
DAlbumSetPage.java128 private final float mMatrix[] = new float[16];
151 GalleryUtils.setViewPointMatrix(mMatrix,
153 canvas.multiplyMatrix(mMatrix, 0);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLCanvas.java62 public abstract void multiplyMatrix(float[] mMatrix, int offset); in multiplyMatrix() argument