Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java152 int[][] matrix = new int [m][n]; in createFullMatrix() local
155 Arrays.fill(matrix[i], EMPTY); in createFullMatrix()
157 return matrix; in createFullMatrix()
171 int[][] matrix = createFullMatrix(m, n); in createSparseMatrix() local
181 matrix[invert ? (m - cx - 1) : cx][cy] = i; in createSparseMatrix()
184 printMatrix(matrix); in createSparseMatrix()
186 return matrix; in createSparseMatrix()
215 int[][] matrix = createFullMatrix(m, n); in createSparseMatrixWithHotseat() local
220 matrix[allappsiconRank][j] = ALL_APPS_COLUMN; in createSparseMatrixWithHotseat()
224 matrix[j][allappsiconRank] = ALL_APPS_COLUMN; in createSparseMatrixWithHotseat()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java188 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) { in updateTransformFullScreen() argument
194 mPreview.setTransform(matrix); in updateTransformFullScreen()
200 public void updateTransform(Matrix matrix) {
202 matrix.mapRect(previewRect);
220 matrix.postConcat(addtionalTransform);
221 mPreview.setTransform(matrix);
222 updatePreviewArea(matrix);
229 private void updatePreviewArea(Matrix matrix) {
231 matrix.mapRect(mPreviewArea);
337 Matrix matrix = new Matrix();
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java114 int[][] matrix = FocusLogic.createSparseMatrix(cellLayout); in onKey() local
116 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in onKey()
134 ^ newParent.invertLayoutHorizontally()) ? 0 : matrix.length - 1, in onKey()
149 child = newParent.getChildAt(matrix.length - 1, matrix[0].length - 1); in onKey()
238 int[][] matrix = null; in handleHotseatButtonKeyEvent() local
242 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent()
247 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent()
256 matrix = FocusLogic.createSparseMatrix(hotseatLayout); in handleHotseatButtonKeyEvent()
261 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleHotseatButtonKeyEvent()
359 int[][] matrix; in handleIconKeyEvent() local
[all …]
/packages/apps/Camera2/tests/src/com/android/camera/unittest/
DCameraUnitTest.java29 Matrix matrix = new Matrix(); in testPrepareMatrix() local
33 CameraUtil.prepareMatrix(matrix, false, 0, 800, 480); in testPrepareMatrix()
36 matrix.mapPoints(points); in testPrepareMatrix()
39 CameraUtil.prepareMatrix(matrix, false, 90, 800, 480); in testPrepareMatrix()
42 matrix.mapPoints(points); in testPrepareMatrix()
45 CameraUtil.prepareMatrix(matrix, false, 180, 800, 480); in testPrepareMatrix()
48 matrix.mapPoints(points); in testPrepareMatrix()
51 CameraUtil.prepareMatrix(matrix, true, 180, 800, 480); in testPrepareMatrix()
54 matrix.mapPoints(points); in testPrepareMatrix()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DWindowLocationUtil.java47 Matrix matrix = view.getMatrix(); in getLocationsInWindow() local
48 if (matrix != null && !matrix.isIdentity()) { in getLocationsInWindow()
49 matrix.mapPoints(points); in getLocationsInWindow()
74 matrix = view.getMatrix(); in getLocationsInWindow()
75 if (matrix != null && !matrix.isIdentity()) { in getLocationsInWindow()
76 matrix.mapPoints(points); in getLocationsInWindow()
116 Matrix matrix = view.getImageMatrix(); in getImageLocationsInWindow() local
122 matrix.mapRect(unclippedBitmapRect); in getImageLocationsInWindow()
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java77 Matrix matrix = new Matrix(); in testPrepareMatrix() local
81 Util.prepareMatrix(matrix, false, 0, 800, 480); in testPrepareMatrix()
84 matrix.mapPoints(points); in testPrepareMatrix()
87 Util.prepareMatrix(matrix, false, 90, 800, 480); in testPrepareMatrix()
90 matrix.mapPoints(points); in testPrepareMatrix()
93 Util.prepareMatrix(matrix, false, 180, 800, 480); in testPrepareMatrix()
96 matrix.mapPoints(points); in testPrepareMatrix()
99 Util.prepareMatrix(matrix, true, 180, 800, 480); in testPrepareMatrix()
102 matrix.mapPoints(points); in testPrepareMatrix()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java244 protected float getValue(Matrix matrix, int whichValue) { in getValue() argument
245 matrix.getValues(mMatrixValues); in getValue()
250 protected float getScale(Matrix matrix) { in getScale() argument
251 return getValue(matrix, Matrix.MSCALE_X); in getScale()
259 private void getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) { in getProperBaseMatrix() argument
265 matrix.reset(); in getProperBaseMatrix()
273 matrix.postConcat(bitmap.getRotateMatrix()); in getProperBaseMatrix()
274 matrix.postScale(scale, scale); in getProperBaseMatrix()
276 matrix.postTranslate( in getProperBaseMatrix()
DRotateBitmap.java55 Matrix matrix = new Matrix(); in getRotateMatrix() local
62 matrix.preTranslate(-cx, -cy); in getRotateMatrix()
63 matrix.postRotate(mRotation); in getRotateMatrix()
64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix()
66 return matrix; in getRotateMatrix()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java206 Matrix matrix = new Matrix(); in orientBitmap() local
219 matrix.setRotate(90, w / 2f, h / 2f); in orientBitmap()
222 matrix.setRotate(180, w / 2f, h / 2f); in orientBitmap()
225 matrix.setRotate(270, w / 2f, h / 2f); in orientBitmap()
228 matrix.preScale(-1, 1); in orientBitmap()
231 matrix.preScale(1, -1); in orientBitmap()
234 matrix.setRotate(90, w / 2f, h / 2f); in orientBitmap()
235 matrix.preScale(1, -1); in orientBitmap()
238 matrix.setRotate(270, w / 2f, h / 2f); in orientBitmap()
239 matrix.preScale(1, -1); in orientBitmap()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java301 float matrix[], float x, float y, float z) { in setViewPointMatrix() argument
307 Arrays.fill(matrix, 0, 16, 0); in setViewPointMatrix()
308 matrix[0] = matrix[5] = matrix[15] = -z; in setViewPointMatrix()
309 matrix[8] = x; in setViewPointMatrix()
310 matrix[9] = y; in setViewPointMatrix()
311 matrix[10] = matrix[11] = 1; in setViewPointMatrix()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java164 Matrix matrix = new Matrix(); in setMatrix() local
165 prepareMatrix(matrix, mMirror, mDisplayOrientation, in setMatrix()
170 matrix.invert(mMatrix); in setMatrix()
560 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, in prepareMatrix() argument
563 matrix.setScale(mirror ? -1 : 1, 1); in prepareMatrix()
565 matrix.postRotate(displayOrientation); in prepareMatrix()
568 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
569 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java153 Matrix matrix = new Matrix(); in setMatrix() local
154 prepareMatrix(matrix, mMirror, mPreviewWidth, mPreviewHeight); in setMatrix()
158 matrix.invert(mMatrix); in setMatrix()
467 private void prepareMatrix(Matrix matrix, boolean mirror, int viewWidth, int viewHeight) { in prepareMatrix() argument
469 matrix.setScale(mirror ? -1 : 1, 1); in prepareMatrix()
472 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
473 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES11Canvas.java144 float matrix[] = mMatrixValues; in setSize() local
145 Matrix.setIdentityM(matrix, 0); in setSize()
148 Matrix.translateM(matrix, 0, 0, height, 0); in setSize()
149 Matrix.scaleM(matrix, 0, 1, -1, 1); in setSize()
258 public void multiplyMatrix(float matrix[], int offset) { in multiplyMatrix() argument
260 Matrix.multiplyMM(temp, 0, mMatrixValues, 0, matrix, offset); in multiplyMatrix()
576 private static boolean isMatrixRotatedOrFlipped(float matrix[]) { in isMatrixRotatedOrFlipped() argument
578 return Math.abs(matrix[MSKEW_X]) > eps in isMatrixRotatedOrFlipped()
579 || Math.abs(matrix[MSKEW_Y]) > eps in isMatrixRotatedOrFlipped()
580 || matrix[MSCALE_X] < -eps in isMatrixRotatedOrFlipped()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java221 Matrix matrix = new Matrix(); in renderToBitmap() local
223 matrix.setScale((float) mZoomFactor, (float) mZoomFactor); in renderToBitmap()
225 matrix.postTranslate(0, 0 - startRow); in renderToBitmap()
228 mPage.render(bitmap, null, matrix, PdfRenderer.Page.RENDER_MODE_FOR_PRINT); in renderToBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java144 private void printMatrix(String name, double[][] matrix) { in printMatrix() argument
146 for (int i = 0; i < matrix.length; i++) { in printMatrix()
148 for (int j = 0; j < matrix[0].length; j++) { in printMatrix()
149 str += "" + matrix[i][j] + " "; in printMatrix()
/packages/apps/Gallery2/jni/filters/
Dhue.c19 …NCF(ImageFilterHue, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloatArray matrix) in JNIFUNCF() argument
26 jfloat* mat = (*env)->GetFloatArrayElements(env, matrix,0); in JNIFUNCF()
43 (*env)->ReleaseFloatArrayElements(env, matrix, mat, 0); in JNIFUNCF()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMatrixUtilsTests.java58 final float[][] matrix =
64 tempMatrix[i][j] = matrix[i][j];
74 MatrixUtils.multiply(matrix, inverse, retval);
/packages/apps/Messaging/src/com/android/messaging/ui/
DOrientedBitmapDrawable.java88 final Matrix matrix = new Matrix(); in draw() local
89 matrix.setRotate(mOrientationParams.rotation, mCenterX, mCenterY); in draw()
91 matrix.mapRect(rotatedRect); in draw()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DCompositeImageRequest.java87 final Matrix matrix = new Matrix(); in loadMediaInternal() local
88 matrix.setRectToRect(smallCircleRect, avatarDestOnGroup, in loadMediaInternal()
90 mCanvas.drawBitmap(smallCircleBitmap, matrix, mPaint); in loadMediaInternal()
DAvatarRequest.java146 final Matrix matrix = new Matrix(); in renderDefaultAvatar() local
149 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL); in renderDefaultAvatar()
151 canvas.drawBitmap(defaultPerson, matrix, paint); in renderDefaultAvatar()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DImagePersistTask.java118 final Matrix matrix = new Matrix(); in doInBackgroundTimed() local
119 matrix.postTranslate(-offsetLeft, -offsetTop); in doInBackgroundTimed()
120 clippedBitmapCanvas.drawBitmap(bitmap, matrix, null /* paint */); in doInBackgroundTimed()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DColorSpaceMatrix.java36 public ColorSpaceMatrix(ColorSpaceMatrix matrix) { in ColorSpaceMatrix() argument
37 System.arraycopy(matrix.mMatrix, 0, mMatrix, 0, matrix.mMatrix.length); in ColorSpaceMatrix()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DImagePersistTask.java130 final Matrix matrix = new Matrix(); in writeClippedBitmap() local
131 matrix.postTranslate(-offsetLeft, -offsetTop); in writeClippedBitmap()
132 clippedBitmapCanvas.drawBitmap(bitmap, matrix, null /* paint */); in writeClippedBitmap()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java576 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, in prepareMatrix() argument
579 matrix.setScale(mirror ? -1 : 1, 1); in prepareMatrix()
581 matrix.postRotate(displayOrientation); in prepareMatrix()
584 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
585 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f); in prepareMatrix()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DThumbnailLoadTask.java143 final Matrix matrix = new Matrix(); in loadBitmap() local
144 matrix.postRotate(orientation); in loadBitmap()
146 originalBitmap.getHeight(), matrix, true); in loadBitmap()

123