Searched refs:matrix (Results 26 - 50 of 51) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DColorSpaceMatrix.java34 * @param matrix
36 public ColorSpaceMatrix(ColorSpaceMatrix matrix) { argument
37 System.arraycopy(matrix.mMatrix, 0, mMatrix, 0, matrix.mMatrix.length);
41 * get the matrix
43 * @return the internal matrix
50 * set matrix to identity
161 * set it to a saturation matrix
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DAvatarRequest.java146 final Matrix matrix = new Matrix();
149 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL);
151 canvas.drawBitmap(defaultPerson, matrix, paint);
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DImagePersistTask.java118 final Matrix matrix = new Matrix();
119 matrix.postTranslate(-offsetLeft, -offsetTop);
120 clippedBitmapCanvas.drawBitmap(bitmap, matrix, null /* paint */);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DThumbnailLoadTask.java143 final Matrix matrix = new Matrix();
144 matrix.postRotate(orientation);
146 originalBitmap.getHeight(), matrix, true);
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java146 float matrix[] = mMatrixValues;
147 Matrix.setIdentityM(matrix, 0);
150 Matrix.translateM(matrix, 0, 0, height, 0);
151 Matrix.scaleM(matrix, 0, 1, -1, 1);
260 public void multiplyMatrix(float matrix[], int offset) { argument
262 Matrix.multiplyMM(temp, 0, mMatrixValues, 0, matrix, offset);
290 // Reset the texture matrix. We will set our own texture coordinates
317 // Transforms two points by the given matrix m. The result
578 private static boolean isMatrixRotatedOrFlipped(float matrix[]) { argument
580 return Math.abs(matrix[MSKEW_
[all...]
H A DGLES20Canvas.java150 // Projection matrix
422 float[] matrix = mMatrices;
424 Matrix.multiplyMM(temp, MATRIX_SIZE, matrix, index, temp, 0);
425 System.arraycopy(temp, MATRIX_SIZE, matrix, index, MATRIX_SIZE);
429 public void multiplyMatrix(float[] matrix, int offset) { argument
433 Matrix.multiplyMM(temp, 0, currentMatrix, index, matrix, offset);
836 restore(); // restore matrix and alpha
841 save(); // save matrix and alpha and blending
/packages/apps/Gallery2/src/com/android/photos/views/
H A DTiledImageView.java245 public void positionFromMatrix(Matrix matrix) { argument
257 matrix.mapRect(mTempRectF);
258 matrix.getValues(mValues);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
H A DTiledImageView.java174 public void positionFromMatrix(Matrix matrix) { argument
183 matrix.mapRect(mTempRectF);
184 matrix.getValues(mValues);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSurfaceTextureScreenNail.java132 protected void updateTransformMatrix(float[] matrix) {} argument
/packages/apps/Camera2/src/com/android/camera/captureintent/
H A DCaptureIntentModuleUI.java157 * Update preview transform matrix.
159 * @param matrix The preview transform matrix.
161 public void updatePreviewTransform(Matrix matrix) { argument
163 mAppUI.updatePreviewTransform(matrix);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java576 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument
579 matrix.setScale(mirror ? -1 : 1, 1);
581 matrix.postRotate(displayOrientation);
584 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
585 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
H A DFocusManager.java126 Matrix matrix = new Matrix();
127 Util.prepareMatrix(matrix, mirror, displayOrientation,
129 // In face detection, the matrix converts the driver coordinates to UI
130 // coordinates. In tap focus, the inverted matrix converts the UI
132 matrix.invert(mMatrix);
/packages/apps/Calendar/src/com/android/calendar/event/
H A DAttendeesView.java122 ColorMatrix matrix = new ColorMatrix();
123 matrix.setSaturation(0);
124 mGrayscaleFilter = new ColorMatrixColorFilter(matrix);
/packages/apps/Camera/src/com/android/camera/
H A DFocusOverlayManager.java178 Matrix matrix = new Matrix();
179 Util.prepareMatrix(matrix, mMirror, mDisplayOrientation,
181 // In face detection, the matrix converts the driver coordinates to UI
182 // coordinates. In tap focus, the inverted matrix converts the UI
184 matrix.invert(mMatrix);
H A DUtil.java640 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument
643 matrix.setScale(mirror ? -1 : 1, 1);
645 matrix.postRotate(displayOrientation);
648 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
649 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoSource.java218 Matrix matrix = new Matrix();
219 matrix.setRotate(data.orientation,
224 matrix, true);
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java730 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument
733 matrix.setScale(mirror ? -1 : 1, 1);
735 matrix.postRotate(displayOrientation);
738 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f);
739 matrix.postTranslate(viewWidth / 2f, viewHeight / 2f);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java148 // Projection matrix
420 float[] matrix = mMatrices;
422 Matrix.multiplyMM(temp, MATRIX_SIZE, matrix, index, temp, 0);
423 System.arraycopy(temp, MATRIX_SIZE, matrix, index, MATRIX_SIZE);
427 public void multiplyMatrix(float[] matrix, int offset) { argument
431 Matrix.multiplyMM(temp, 0, currentMatrix, index, matrix, offset);
835 restore(); // restore matrix and alpha
840 save(); // save matrix and alpha and blending
/packages/apps/Browser/src/com/android/browser/
H A DTabBar.java398 // TODO: We should change the matrix/shader only when needed
399 final Matrix matrix = mSelected ? mActiveMatrix : mInactiveMatrix;
400 matrix.setTranslate(-left, 0.0f);
402 shader.setLocalMatrix(matrix);
/packages/apps/Settings/src/com/android/settings/
H A DHomeSettings.java318 float[] matrix = colorMatrix.getArray();
319 matrix[18] = 0.5f;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DFrameLayoutWithShadows.java243 Matrix matrix = ((ImageView) view).getImageMatrix();
249 matrix.mapRect(rectf);
/packages/apps/Music/src/com/android/music/
H A DMusicUtils.java1298 Matrix matrix = new Matrix();
1299 matrix.setTranslate(-bwidth/2, -bheight/2); // move bitmap center to origin
1300 matrix.postRotate(10);
1301 matrix.postScale(scale, scale);
1302 matrix.postTranslate(vwidth/2, vheight/2); // Move bitmap center to view center
1303 c.drawBitmap(bm, matrix, paint);
/packages/apps/Camera2/src/com/android/camera/app/
H A DCameraAppUI.java659 * This resets the preview to have no applied transform matrix.
672 * HardwareLayer transform matrix (set by TextureView#setTransform) after configuring the
687 * Updates the preview matrix without altering it.
689 * @param matrix
692 public void updatePreviewTransformFullscreen(Matrix matrix, float aspectRatio) { argument
693 mTextureViewHelper.updateTransformFullScreen(matrix, aspectRatio);
704 * This is to support modules that calculate their own transform matrix because
705 * they need to use a transform matrix to rotate the preview.
707 * @param matrix transform matrix t
709 updatePreviewTransform(Matrix matrix) argument
[all...]
/packages/apps/Gallery/src/com/android/camera/
H A DCropImage.java508 Matrix matrix = new Matrix();
509 matrix.setScale(mScale, mScale);
511 .getWidth(), mBitmap.getHeight(), matrix, true);
/packages/apps/Messaging/src/com/android/messaging/util/
H A DImageUtils.java136 final Matrix matrix = new Matrix();
139 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.CENTER);
141 shader.setLocalMatrix(matrix);

Completed in 2042 milliseconds

123