/packages/apps/Camera2/tests/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 29 Matrix matrix = new Matrix(); 33 CameraUtil.prepareMatrix(matrix, false, 0, 800, 480); 36 matrix.mapPoints(points); 39 CameraUtil.prepareMatrix(matrix, false, 90, 800, 480); 42 matrix.mapPoints(points); 45 CameraUtil.prepareMatrix(matrix, false, 180, 800, 480); 48 matrix.mapPoints(points); 51 CameraUtil.prepareMatrix(matrix, true, 180, 800, 480); 54 matrix.mapPoints(points);
|
/packages/apps/Camera2/tests_camera/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 29 Matrix matrix = new Matrix(); 33 CameraUtil.prepareMatrix(matrix, false, 0, 800, 480); 36 matrix.mapPoints(points); 39 CameraUtil.prepareMatrix(matrix, false, 90, 800, 480); 42 matrix.mapPoints(points); 45 CameraUtil.prepareMatrix(matrix, false, 180, 800, 480); 48 matrix.mapPoints(points); 51 CameraUtil.prepareMatrix(matrix, true, 180, 800, 480); 54 matrix.mapPoints(points);
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | FocusLogic.java | 38 * <li> full matrix of cells that are 1x1 39 * <li> sparse matrix of cells that are 1x1 141 * Returns a matrix of size (m x n) that has been initialized with {@link #EMPTY}. 143 * @param m number of columns in the matrix 144 * @param n number of rows in the matrix 146 // TODO: get rid of dynamic matrix creation. 148 int[][] matrix = new int [m][n]; 151 Arrays.fill(matrix[i], EMPTY); 153 return matrix; 157 * Returns a matrix o 293 handleDpadHorizontal(int iconIdx, int cntX, int cntY, int[][] matrix, int increment) argument 353 handleDpadVertical(int iconIndex, int cntX, int cntY, int [][] matrix, int increment) argument 435 inspectMatrix(int x, int y, int cntX, int cntY, int[][] matrix) argument 471 printMatrix(int[][] matrix) argument [all...] |
/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
H A D | CameraUnitTest.java | 73 Matrix matrix = new Matrix(); 77 Util.prepareMatrix(matrix, false, 0, 800, 480); 80 matrix.mapPoints(points); 83 Util.prepareMatrix(matrix, false, 90, 800, 480); 86 matrix.mapPoints(points); 89 Util.prepareMatrix(matrix, false, 180, 800, 480); 92 matrix.mapPoints(points); 95 Util.prepareMatrix(matrix, true, 180, 800, 480); 98 matrix.mapPoints(points);
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
H A D | CameraTest.java | 77 Matrix matrix = new Matrix(); 81 Util.prepareMatrix(matrix, false, 0, 800, 480); 84 matrix.mapPoints(points); 87 Util.prepareMatrix(matrix, false, 90, 800, 480); 90 matrix.mapPoints(points); 93 Util.prepareMatrix(matrix, false, 180, 800, 480); 96 matrix.mapPoints(points); 99 Util.prepareMatrix(matrix, true, 180, 800, 480); 102 matrix.mapPoints(points);
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | RotateBitmap.java | 54 // By default this is an identity matrix. 55 Matrix matrix = new Matrix(); 62 matrix.preTranslate(-cx, -cy); 63 matrix.postRotate(mRotation); 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); 66 return matrix;
|
H A D | ImageViewTouchBase.java | 39 // This matrix is recomputed when we go from the thumbnail image to 46 // This matrix remains the same when we go from the thumbnail image 50 // This is the final matrix which is computed as the concatentation 51 // of the base matrix and the supplementary matrix. 54 // Temporary buffer used for getting the values out of a matrix. 146 // This function changes bitmap, reset base matrix according to the size 147 // of the bitmap, and optionally reset the supplementary matrix. 244 protected float getValue(Matrix matrix, int whichValue) { argument 245 matrix 250 getScale(Matrix matrix) argument 259 getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) argument [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
H A D | WindowLocationUtil.java | 47 Matrix matrix = view.getMatrix(); 48 if (matrix != null && !matrix.isIdentity()) { 49 matrix.mapPoints(points); 74 matrix = view.getMatrix(); 75 if (matrix != null && !matrix.isIdentity()) { 76 matrix.mapPoints(points); 116 Matrix matrix = view.getImageMatrix(); 122 matrix [all...] |
/packages/apps/Gallery2/jni/filters/ |
H A D | hue.c | 19 void JNIFUNCF(ImageFilterHue, nativeApplyFilter, jobject bitmap, jint width, jint height, jfloatArray matrix) argument 26 jfloat* mat = (*env)->GetFloatArrayElements(env, matrix,0); 43 (*env)->ReleaseFloatArrayElements(env, matrix, mat, 0);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
H A D | MatrixUtilsTests.java | 58 final float[][] matrix = 64 tempMatrix[i][j] = matrix[i][j]; 74 MatrixUtils.multiply(matrix, inverse, retval);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ProfileAndContactsLoader.java | 91 MatrixCursor matrix = new MatrixCursor(mProjection); 97 matrix.addRow(row); 99 return matrix;
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | TextureViewHelper.java | 92 * transform matrix will be automatically adjusted based on the preview 123 * Transforms the preview with the identity matrix, ensuring there is no 182 * This takes a matrix to apply to the texture view and uses the screen 185 * @param matrix the matrix to apply 188 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) { argument 194 mPreview.setTransform(matrix); 200 public void updateTransform(Matrix matrix) { argument 202 matrix.mapRect(previewRect); 220 matrix 229 updatePreviewArea(Matrix matrix) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | CompositeImageRequest.java | 87 final Matrix matrix = new Matrix(); 88 matrix.setRectToRect(smallCircleRect, avatarDestOnGroup, 90 mCanvas.drawBitmap(smallCircleBitmap, matrix, mPaint);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | OrientedBitmapDrawable.java | 88 final Matrix matrix = new Matrix(); 89 matrix.setRotate(mOrientationParams.rotation, mCenterX, mCenterY); 91 matrix.mapRect(rotatedRect);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | FocusHelper.java | 97 int[][] matrix = FocusLogic.createSparseMatrix(cellLayout); 100 countY, matrix, iconIndex, pageIndex, pageCount, isLayoutRtl); 220 int[][] matrix = null; 224 matrix = FocusLogic.createSparseMatrix(iconLayout, hotseatLayout, 233 matrix = FocusLogic.createSparseMatrix(iconLayout, hotseatLayout, 245 // matrix extended with hotseat. 246 matrix = FocusLogic.createSparseMatrix(hotseatLayout); 254 countY, matrix, iconIndex, pageIndex, pageCount, Utilities.isRtl(v.getResources())); 312 int[][] matrix; 315 // to take a user to the hotseat. For other dpad navigation, do not use the matrix extende [all...] |
H A D | FastBitmapDrawable.java | 218 private static void setBrightnessMatrix(ColorMatrix matrix, int brightness) { argument 221 matrix.setScale(scale, scale, scale, 1); 222 float[] array = matrix.getArray(); 224 // Add the amount to RGB components of the matrix, as per the above formula.
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | GalleryUtils.java | 301 float matrix[], float x, float y, float z) { 302 // The matrix is 307 Arrays.fill(matrix, 0, 16, 0); 308 matrix[0] = matrix[5] = matrix[15] = -z; 309 matrix[8] = x; 310 matrix[9] = y; 311 matrix[10] = matrix[1 300 setViewPointMatrix( float matrix[], float x, float y, float z) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | AppController.java | 217 * matrix of the preview TextureView. It does not modify the matrix before 220 * @param matrix transform matrix to be set on preview TextureView 223 public void updatePreviewTransformFullscreen(Matrix matrix, float aspectRatio); argument 234 * matrix of the preview TextureView. It is encouraged to use 236 * module needs to rotate the surface texture using transform matrix. 238 * @param matrix transform matrix to be set on preview TextureView 240 public void updatePreviewTransform(Matrix matrix); argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
H A D | FocusOverlayManager.java | 164 Matrix matrix = new Matrix(); 165 prepareMatrix(matrix, mMirror, mDisplayOrientation, 167 // In face detection, the matrix converts the driver coordinates to UI 168 // coordinates. In tap focus, the inverted matrix converts the UI 170 matrix.invert(mMatrix); 560 public static void prepareMatrix(Matrix matrix, boolean mirror, int displayOrientation, argument 563 matrix.setScale(mirror ? -1 : 1, 1); 565 matrix.postRotate(displayOrientation); 568 matrix.postScale(viewWidth / 2000f, viewHeight / 2000f); 569 matrix [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
H A D | ImageLoader.java | 206 Matrix matrix = new Matrix(); 219 matrix.setRotate(90, w / 2f, h / 2f); 222 matrix.setRotate(180, w / 2f, h / 2f); 225 matrix.setRotate(270, w / 2f, h / 2f); 228 matrix.preScale(-1, 1); 231 matrix.preScale(1, -1); 234 matrix.setRotate(90, w / 2f, h / 2f); 235 matrix.preScale(1, -1); 238 matrix.setRotate(270, w / 2f, h / 2f); 239 matrix [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | ImageFilterHue.java | 47 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float []matrix); argument
|
H A D | ImageFilterRedEye.java | 50 native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, short[] matrix); argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | MatrixFit.java | 22 // Simple implementation of a matrix fit in N dimensions. 75 // Make an empty (dim) x (dim + 1) matrix and fill it 89 // Make an empty (dim+1) x (dim+1) matrix and fill it 144 private void printMatrix(String name, double[][] matrix) { argument 146 for (int i = 0; i < matrix.length; i++) { 148 for (int j = 0; j < matrix[0].length; j++) { 149 str += "" + matrix[i][j] + " "; 156 * Transforms the given matrix into a row echelon matrix
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | CameraScreenNail.java | 306 protected void updateTransformMatrix(float[] matrix) { argument 307 super.updateTransformMatrix(matrix); 308 Matrix.translateM(matrix, 0, .5f, .5f, 0); 309 Matrix.scaleM(matrix, 0, mScaleX, mScaleY, 1f); 310 Matrix.translateM(matrix, 0, -.5f, -.5f, 0);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
H A D | YuvImageBackendImageSaver.java | 148 Matrix matrix = new Matrix(); 149 matrix.postRotate(mImageRotation.getDegrees()); 152 bitmapIntermediate.getHeight(), matrix, true);
|