Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java151 int[][] matrix = new int [m][n]; in createFullMatrix() local
154 Arrays.fill(matrix[i], EMPTY); in createFullMatrix()
156 return matrix; in createFullMatrix()
170 int[][] matrix = createFullMatrix(m, n); in createSparseMatrix() local
182 matrix[x][cy] = i; in createSparseMatrix()
186 printMatrix(matrix); in createSparseMatrix()
188 return matrix; in createSparseMatrix()
213 int[][] matrix = createFullMatrix(m, n); in createSparseMatrixWithHotseat() local
222 matrix[cx][cy] = i; in createSparseMatrixWithHotseat()
230 matrix[cx][iconLayout.getCountY()] = iconParent.getChildCount() + i; 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/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/Launcher3/src/com/android/launcher3/
DFocusHelper.java117 int[][] matrix = FocusLogic.createSparseMatrix(cellLayout); in onKey() local
119 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in onKey()
137 ^ newParent.invertLayoutHorizontally()) ? 0 : matrix.length - 1, in onKey()
152 child = newParent.getChildAt(matrix.length - 1, matrix[0].length - 1); in onKey()
241 int[][] matrix = null; in handleHotseatButtonKeyEvent() local
245 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent()
250 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent()
259 matrix = FocusLogic.createSparseMatrix(hotseatLayout); in handleHotseatButtonKeyEvent()
264 int newIconIndex = FocusLogic.handleKeyEvent(keyCode, matrix, iconIndex, pageIndex, in handleHotseatButtonKeyEvent()
348 int[][] matrix; in handleIconKeyEvent() local
[all …]
/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/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DFocusOverlayManager.java70 private Matrix matrix; field in FocusOverlayManager
114 matrix = new Matrix(); in FocusOverlayManager()
120 initialized = (matrix != null); in setFocusRenderer()
154 Matrix matrix = new Matrix(); in setMatrix() local
155 prepareMatrix(matrix, mirror, previewWidth, previewHeight); in setMatrix()
159 matrix.invert(this.matrix); in setMatrix()
425 matrix.mapRect(rectF); in calculateTapArea()
461 private void prepareMatrix(Matrix matrix, boolean mirror, int viewWidth, int viewHeight) { in prepareMatrix() argument
463 matrix.setScale(mirror ? -1 : 1, 1); in prepareMatrix()
466 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); in prepareMatrix()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/
DImageToPdfTask.java128 Matrix matrix = new Matrix(); in drawDirect() local
130 matrix.postRotate(90, mBitmap.getWidth() / 2, mBitmap.getHeight() / 2); in drawDirect()
132 matrix.postScale(scale, scale); in drawDirect()
133 matrix.postTranslate(offsetX, offsetY); in drawDirect()
135 page.getCanvas().drawBitmap(mBitmap, matrix, new Paint(Paint.FILTER_BITMAP_FLAG)); in drawDirect()
150 Matrix matrix = new Matrix(); in drawOptimized() local
151 matrix.postScale(scale, scale); in drawOptimized()
153 matrix.postRotate(90, targetWidth / 2, targetHeight / 2); in drawOptimized()
155 bitmapCanvas.setMatrix(matrix); in drawOptimized()
/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/Dialer/java/com/android/dialer/callcomposer/util/
DBitmapResizer.java43 Matrix matrix = new Matrix(); in resizeForEnrichedCalling() local
44 matrix.postRotate(rotation); in resizeForEnrichedCalling()
51 return Bitmap.createBitmap(image, 0, 0, width, height, matrix, true); in resizeForEnrichedCalling()
69 matrix.postScale(ratio, ratio); in resizeForEnrichedCalling()
70 return Bitmap.createBitmap(image, 0, 0, width, height, matrix, true); in resizeForEnrichedCalling()
/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/WallpaperPicker2/src/com/android/wallpaper/widget/
DWallpaperThumbnailView.java54 final Matrix matrix = getImageMatrix(); in recomputeImageMatrix() local
69 matrix.setScale(scale, scale); in recomputeImageMatrix()
74 matrix.postTranslate(0, dy); in recomputeImageMatrix()
80 matrix.postTranslate(dx, 0); in recomputeImageMatrix()
83 setImageMatrix(matrix); in recomputeImageMatrix()
/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/Car/libs/car-apps-common/src/com/android/car/apps/common/
DCropAlignedImageView.java91 Matrix matrix = new Matrix(); in setMatrix() local
92 matrix.setTranslate(-originalImageWidth / 2f, -originalImageHeight / 2f); in setMatrix()
93 matrix.postScale(usedScaleFactor * mAdditionalScale, in setMatrix()
107 matrix.postTranslate(dx, mFrameHeight / 2f); in setMatrix()
108 setImageMatrix(matrix); in setMatrix()
/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/Launcher3/quickstep/src/com/android/launcher3/
DQuickstepAppTransitionManagerImpl.java436 Matrix matrix = new Matrix(); in getOpeningWindowAnimators() local
570 matrix.setScale(scale, scale); in getOpeningWindowAnimators()
571 matrix.postTranslate(transX0, transY0); in getOpeningWindowAnimators()
575 matrix.mapRect(currentBounds, targetBounds); in getOpeningWindowAnimators()
584 matrix.setTranslate(target.position.x, target.position.y); in getOpeningWindowAnimators()
590 params[i] = new SurfaceParams(target.leash, alpha, matrix, targetCrop, in getOpeningWindowAnimators()
660 Matrix matrix = new Matrix();
679 matrix.setScale(mScale.value, mScale.value,
682 matrix.postTranslate(0, mDy.value);
683 matrix.postTranslate(target.position.x, target.position.y);
[all …]
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/
DLinkViewerActivity.java86 ByteMatrix matrix = qrCode.getMatrix(); in qrToBitmap() local
87 int width = matrix.getWidth(); in qrToBitmap()
88 int height = matrix.getHeight(); in qrToBitmap()
92 colors[y * width + x] = (matrix.get(x, y) != 0) in qrToBitmap()
/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/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/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java231 Matrix matrix = new Matrix(); in renderToBitmap() local
233 matrix.setScale((float) mZoomFactor, (float) mZoomFactor); in renderToBitmap()
235 matrix.postTranslate(0, 0 - startRow); in renderToBitmap()
238 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMatrixUtilsTests.java59 final float[][] matrix = in testInverse() local
65 tempMatrix[i][j] = matrix[i][j]; in testInverse()
75 MatrixUtils.multiply(matrix, inverse, retval); in testInverse()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DChangeImageTransformWithScaledParent.java62 Matrix matrix = (Matrix) values.get(PROPNAME_MATRIX); in applyParentScale() local
63 if (matrix != null in applyParentScale()
77 matrix.postScale( in applyParentScale()
/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()

123