Searched refs:matrix (Results 1 - 25 of 110) sorted by relevance

12345

/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java39 final Matrix matrix = new Matrix();
42 matrix.setRotate(-orientation);
45 matrix.mapRect(fullRectF);
46 matrix.mapRect(partialRectF);
48 matrix.reset();
49 matrix.setTranslate(-fullRectF.left, -fullRectF.top);
50 matrix.mapRect(fullRectF);
51 matrix.mapRect(partialRectF);
61 final Matrix matrix = new Matrix();
62 matrix
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java20 * A color filter that transforms colors through a 4x5 color matrix. This filter
29 * Create a color filter that transforms colors through a 4x5 color matrix.
31 * @param matrix 4x5 matrix used to transform colors. It is copied into
32 * the filter, so changes made to the matrix after the filter
35 public ColorMatrixColorFilter(ColorMatrix matrix) { argument
36 mMatrix.set(matrix);
41 * Create a color filter that transforms colors through a 4x5 color matrix.
44 * matrix. The first 20 entries of the array are copied into
57 * value is never null. Modifying the returned matrix doe
81 setColorMatrix(ColorMatrix matrix) argument
[all...]
H A DCamera.java21 * generate a matrix that can be applied, for instance, on a
136 * Computes the matrix corresponding to the current transformation
137 * and copies it to the supplied matrix object.
139 * @param matrix The matrix to copy the current transforms into
141 public void getMatrix(Matrix matrix) { argument
142 nativeGetMatrix(matrix.native_instance);
146 * Computes the matrix corresponding to the current transformation
149 * @param canvas The Canvas to set the transform matrix onto
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java61 final Matrix matrix = mMatrix;
63 rotate(centerX, centerY, camera, matrix, 32.0f);
64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix);
66 rotate(centerX, centerY, camera, matrix, 12.0f);
67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix);
69 rotate(centerX, centerY, camera, matrix, 52.0f);
70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix);
72 rotate(centerX, centerY, camera, matrix, 122.0f);
73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix);
78 Matrix matrix) {
77 drawBitmap(Canvas canvas, float centerX, float centerY, float offset, Matrix matrix) argument
86 rotate(float centerX, float centerY, Camera camera, Matrix matrix, float angle) argument
[all...]
H A DAssetsAtlasActivity.java53 final Matrix matrix = new Matrix();
54 matrix.setScale(0.5f, 0.5f);
61 canvas.drawBitmap(mBitmap, matrix, null);
H A DAlpha8BitmapActivity.java81 Matrix matrix = new Matrix();
82 matrix.setScale(2.0f, 2.0f);
83 matrix.postTranslate(0.0f, mBitmap1.getHeight());
84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint);
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java60 Matrix matrix = new Matrix();
61 matrix.setRotate(orientation);
62 matrix.postTranslate(centerX, centerY);
63 matrix.mapPoints(point);
68 matrix.mapPoints(point);
73 matrix.mapPoints(point);
78 matrix.mapPoints(point);
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/
H A DSampleProvider.java63 MatrixCursor matrix = new MatrixCursor(projection);
72 addRow(matrix, PHOTO_INDIVIDUAL_1);
73 addRow(matrix, PHOTO_INDIVIDUAL_2);
74 addRow(matrix, PHOTO_INDIVIDUAL_3);
75 addRow(matrix, PHOTO_INDIVIDUAL_4);
80 addRow(matrix, PHOTO_INDIVIDUAL_1);
83 addRow(matrix, PHOTO_INDIVIDUAL_2);
86 addRow(matrix, PHOTO_INDIVIDUAL_3);
89 addRow(matrix, PHOTO_INDIVIDUAL_4);
97 return matrix;
104 addRow(MatrixCursor matrix, int match_id) argument
[all...]
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DMatrixTransform.java35 public void setMatrix(Matrix4f matrix) { argument
36 mLocalMatrix = matrix;
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java87 Matrix matrix = new Matrix();
88 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY());
89 view.transformMatrixToGlobal(matrix);
90 sceneRoot.transformMatrixToLocal(matrix);
92 matrix.mapRect(bounds);
100 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
112 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
113 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
117 * @param matrix The matrix convertin
124 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
H A DChangeImageTransform.java34 * This Transition captures an ImageView's matrix before and after the
45 private static final String PROPNAME_MATRIX = "android:changeImageTransform:matrix";
98 Matrix matrix;
101 matrix = imageView.getImageMatrix();
102 if (!matrix.isIdentity()) {
103 matrix = new Matrix(matrix);
110 matrix = new Matrix();
111 matrix.setScale(scaleX, scaleY);
113 matrix
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DTexture.cpp42 void Texture::setMatrix(float const* matrix) { argument
43 mTextureMatrix = mat4(matrix);
H A DTexture.h42 void setMatrix(float const* matrix);
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.h70 ANDROID_API void setTransform(const SkMatrix* matrix) { argument
72 mTransform = matrix ? new SkMatrix(*matrix) : 0;
H A DStatefulBaseRenderer.cpp112 void StatefulBaseRenderer::getMatrix(SkMatrix* matrix) const {
113 mSnapshot->transform->copyTo(*matrix);
132 void StatefulBaseRenderer::setMatrix(const SkMatrix& matrix) { argument
133 mSnapshot->transform->load(matrix);
136 void StatefulBaseRenderer::setMatrix(const Matrix4& matrix) { argument
137 mSnapshot->transform->load(matrix);
140 void StatefulBaseRenderer::concatMatrix(const SkMatrix& matrix) { argument
141 mat4 transform(matrix);
145 void StatefulBaseRenderer::concatMatrix(const Matrix4& matrix) { argument
146 mSnapshot->transform->multiply(matrix);
[all...]
H A DStatefulBaseRenderer.h31 * Manages the Snapshot stack, implementing matrix, save/restore, and clipping methods in the
51 * Initialize the first snapshot, computing the projection matrix, and stores the dimensions of
78 virtual void setMatrix(const SkMatrix& matrix);
79 void setMatrix(const Matrix4& matrix); // internal only convenience method
80 virtual void concatMatrix(const SkMatrix& matrix);
81 void concatMatrix(const Matrix4& matrix); // internal only convenience method
/frameworks/native/include/private/gui/
H A DLayerState.h63 matrix.dsdx = matrix.dtdy = 1.0f;
64 matrix.dsdy = matrix.dtdx = 0.0f;
89 matrix22_t matrix; member in struct:android::layer_state_t
/frameworks/opt/chips/src/com/android/ex/chips/
H A DCircularImageView.java25 private final Matrix matrix; field in class:CircularImageView
42 matrix = new Matrix();
100 matrix.reset();
103 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL);
105 shader.setLocalMatrix(matrix);
/frameworks/base/core/java/android/view/
H A DGhostView.java61 public void setMatrix(Matrix matrix) { argument
62 mRenderNode.setAnimationMatrix(matrix);
92 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { argument
94 matrix.reset();
95 parent.transformMatrixToGlobal(matrix);
96 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY());
97 host.transformMatrixToLocal(matrix);
100 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
118 if (matrix == null) {
119 matrix
[all...]
H A DHardwareLayer.java115 * @param matrix The transform to apply to the layer.
117 public void setTransform(Matrix matrix) { argument
118 nSetTransform(mFinalizer.get(), matrix.native_instance);
149 private static native void nSetTransform(long layerUpdater, long matrix); argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DImageShader.java434 public void setSourceTransform(float[] matrix) { argument
435 if (matrix.length != 16) {
436 throw new IllegalArgumentException("Expected 4x4 matrix for source transform!");
439 matrix[12],
440 matrix[13],
442 matrix[0] + matrix[12],
443 matrix[1] + matrix[13],
445 matrix[
485 setTargetTransform(float[] matrix) argument
[all...]
/frameworks/base/services/core/java/com/android/server/input/
H A DPersistentDataStore.java466 float[] matrix = TouchCalibration.IDENTITY.getAffineTransform();
472 for (int i = 0; i < matrix.length && i < CALIBRATION_NAME.length; i++) {
474 matrix[i] = Float.parseFloat(value);
483 mTouchCalibration[r] = new TouchCalibration(matrix[0],
484 matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
487 mTouchCalibration[r] = new TouchCalibration(matrix[
[all...]
/frameworks/base/core/jni/android/graphics/
H A DMatrix.cpp188 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
189 matrix->postSkew(kx, ky);
193 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
195 matrix->postConcat(*other);
199 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
205 return matrix->setRectToRect(src_, dst_, stf) ? JNI_TRUE : JNI_FALSE;
211 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
223 result = matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst,
232 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
234 return matrix
241 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
260 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
269 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
275 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
288 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DDisplayAdjustmentUtils.java107 private static float[] multiply(float[] matrix, float[] other) { argument
108 if (matrix == null) {
112 Matrix.multiplyMM(result, 0, matrix, 0, other, 0);
138 * Sets the surface flinger's color transformation as a 4x4 matrix. If the
139 * matrix is null, color transformations are disabled.
141 * @param m the float array that holds the transformation matrix, or null to
/frameworks/native/libs/input/
H A DInput.cpp353 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) { argument
355 float newX = matrix[0] * x + matrix[1] * y + matrix[2];
356 float newY = matrix[3] * x + matrix[4] * y + matrix[5];
357 float newZ = matrix[6] * x + matrix[7] * y + matrix[
365 transformAngle(const float matrix[9], float angleRadians, float originX, float originY) argument
385 transform(const float matrix[9]) argument
[all...]

Completed in 778 milliseconds

12345