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

123456

/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/rs/api/
H A Drs_matrix.spec28 a vector is done by postmultiplying the vector, e.g. <code>(matrix * vector)</code>,
31 To create a transformation matrix that performs two transformations at once,
33 argument. E.g. to create a transformation matrix that applies the
39 style simply stores the transformation matrix in the first argument. The latter
40 modifies a pre-existing transformation matrix so that the new transformation
41 happens first. E.g. if you call @rsMatrixTranslate() on a matrix that already
42 does a scaling, the resulting matrix when applied to a vector will first do the
60 Computes 6 frustum planes from the view projection matrix
187 Returns one element of a matrix.
196 summary: Inverts a matrix i
[all...]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistVisualizer.java38 final Matrix matrix; field in class:AssistVisualizer.TextEntry
47 TextEntry(AssistStructure.ViewNode node, int parentLeft, int parentTop, Matrix matrix) { argument
53 this.matrix = new Matrix(matrix);
97 Matrix matrix = new Matrix();
98 matrix.setTranslate(windowNode.getLeft(), windowNode.getTop());
99 mMatrixStack.add(matrix);
120 + " matrix=" + te.matrix.toShortString()
147 Matrix matrix;
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DDisplayAdjustmentUtils.java110 String matrix = Settings.Secure.getStringForUser(cr,
112 if (matrix != null) {
113 final float[] userMatrix = get4x4Matrix(matrix);
122 private static float[] get4x4Matrix(String matrix) { argument
123 String[] strValues = matrix.split(",");
138 private static float[] multiply(float[] matrix, float[] other) { argument
139 if (matrix == null) {
143 Matrix.multiplyMM(result, 0, matrix, 0, other, 0);
169 * Sets the surface flinger's color transformation as a 4x4 matrix. If the
170 * matrix i
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DTexture.cpp42 void Texture::setMatrix(float const* matrix) { argument
43 mTextureMatrix = mat4(matrix);
/frameworks/base/libs/hwui/
H A DDeferredLayerUpdater.h76 ANDROID_API void setTransform(const SkMatrix* matrix) { argument
78 mTransform = matrix ? new SkMatrix(*matrix) : nullptr;
H A DCanvasState.cpp165 void CanvasState::getMatrix(SkMatrix* matrix) const {
166 mSnapshot->transform->copyTo(*matrix);
185 void CanvasState::setMatrix(const SkMatrix& matrix) { argument
186 mSnapshot->transform->load(matrix);
189 void CanvasState::setMatrix(const Matrix4& matrix) { argument
190 *(mSnapshot->transform) = matrix;
193 void CanvasState::concatMatrix(const SkMatrix& matrix) { argument
194 mat4 transform(matrix);
198 void CanvasState::concatMatrix(const Matrix4& matrix) { argument
199 mSnapshot->transform->multiply(matrix);
[all...]
H A DMatrix.h195 * If the matrix is identity or translate and/or scale.
221 friend std::ostream& operator<<(std::ostream& os, const Matrix4& matrix) { argument
222 if (matrix.isSimple()) {
223 os << "offset " << matrix.getTranslateX() << "x" << matrix.getTranslateY();
224 if (!matrix.isPureTranslate()) {
225 os << ", scale " << matrix[kScaleX] << "x" << matrix[kScaleY]; local
228 os << "[" << matrix[0]; local
230 os << ", " << matrix[ local
[all...]
H A DGlop.h66 // offset the eventual drawing matrix by a tiny amount to
135 float matrix[16]; member in struct:android::uirenderer::Glop::Fill::Filter::Matrix
137 } matrix; member in union:android::uirenderer::Glop::Fill::Filter
/frameworks/native/include/private/gui/
H A DLayerState.h69 matrix.dsdx = matrix.dtdy = 1.0f;
70 matrix.dsdy = matrix.dtdx = 0.0f;
94 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.java60 public void setMatrix(Matrix matrix) { argument
61 mRenderNode.setAnimationMatrix(matrix);
86 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { argument
88 matrix.reset();
89 parent.transformMatrixToGlobal(matrix);
90 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY());
91 host.transformMatrixToLocal(matrix);
94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
112 if (matrix == null) {
113 matrix
[all...]
H A DHardwareLayer.java116 * @param matrix The transform to apply to the layer.
118 public void setTransform(Matrix matrix) { argument
119 nSetTransform(mFinalizer.get(), matrix.native_instance);
150 private static native void nSetTransform(long layerUpdater, long matrix); argument
/frameworks/base/core/java/android/transition/
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...]
H A DTransitionUtils.java89 Matrix matrix = new Matrix();
90 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY());
91 view.transformMatrixToGlobal(matrix);
92 sceneRoot.transformMatrixToLocal(matrix);
94 matrix.mapRect(bounds);
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
143 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
144 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
148 * @param matrix The matrix convertin
155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
/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/core/jni/android/graphics/
H A DMatrix.cpp185 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
186 matrix->postSkew(kx, ky);
190 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
192 matrix->postConcat(*other);
196 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
202 return matrix->setRectToRect(src_, dst_, stf) ? JNI_TRUE : JNI_FALSE;
208 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
220 result = matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst,
229 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
231 return matrix
238 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
257 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
266 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
272 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
285 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
[all...]
/frameworks/base/core/java/android/app/
H A DSharedElementCallback.java160 * @param viewToGlobalMatrix A matrix containing a transform from the view to the screen
183 Matrix matrix = imageView.getImageMatrix();
185 matrix.getValues(values);
232 Matrix matrix = new Matrix();
233 matrix.setValues(values);
234 imageView.setImageMatrix(matrix);

Completed in 974 milliseconds

123456