Searched defs:matrix (Results 1 - 25 of 69) sorted by relevance

123

/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
H A DPathMeasure.java99 * corresponding matrix. Returns false if there is no path, or a zero-length
100 * path was specified, in which case matrix is unchanged.
103 * @param matrix Allocated by the caller, this is set to the transformation
105 * @param flags Specified what aspects should be returned in the matrix.
107 public boolean getMatrix(float distance, Matrix matrix, int flags) { argument
108 return native_getMatrix(native_instance, distance, matrix.native_instance, flags);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DMatrixTransform.java35 public void setMatrix(Matrix4f matrix) { argument
36 mLocalMatrix = matrix;
/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/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/transition/
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/core/jni/
H A Dandroid_view_HardwareLayer.cpp67 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
68 layer->setTransform(matrix);
/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...]
/frameworks/native/include/ui/
H A DTMatHelpers.h49 namespace matrix { namespace in namespace:android
131 // for now we only handle square matrix transpose
173 }; // namespace matrix
207 // matrix * matrix, result is a matrix of the same type than the lhs matrix
210 return matrix::multiply<BASE<T> >(lhs, rhs);
216 * TMatSquareFunctions implements functions on a matrix of type BASE<T>.
239 friend BASE<T> PURE inverse(const BASE<T>& m) { return matrix
[all...]
/frameworks/native/services/surfaceflinger/RenderEngine/
H A DTexture.cpp42 void Texture::setMatrix(float const* matrix) { argument
43 mTextureMatrix = mat4(matrix);
/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/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/libs/hwui/
H A DDeferredLayerUpdater.h70 ANDROID_API void setTransform(const SkMatrix* matrix) { argument
72 mTransform = matrix ? new SkMatrix(*matrix) : 0;
H A DDamageAccumulator.cpp121 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { argument
124 matrix->mapRect(temp);
H A DSnapshot.h59 Matrix4 matrix; member in class:android::uirenderer::RoundRectClipState
138 * transformed by the inverse transform matrix.
227 * This is a reference to a matrix owned by this snapshot or another
296 * Contains the current orthographic, projection matrix.
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...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java69 void setMatrix(Matrix matrix) { argument
71 mTmpMatrix.postConcat(matrix);
81 + mTmpFloats[Matrix.MTRANS_Y] + ") matrix=["
181 public void setMatrix(Matrix matrix) { argument
184 mBlackSurfaces[i].setMatrix(matrix);
/frameworks/native/libs/input/tests/
H A DInputEvent_test.cpp521 static void setRotationMatrix(float matrix[9], float angle) { argument
524 matrix[0] = cos;
525 matrix[1] = -sin;
526 matrix[2] = 0;
527 matrix[3] = sin;
528 matrix[4] = cos;
529 matrix[5] = 0;
530 matrix[6] = 0;
531 matrix[7] = 0;
532 matrix[
577 float matrix[9]; local
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPathMeasure.cpp115 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
116 bool result = pair->fMeasure.getMatrix(dist, matrix, (SkPathMeasure::MatrixFlags)flags);
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfEditor.java109 * Sets a transformation and clip for a given page. The transformation matrix if
268 private void throwIfNotNullAndNotAfine(Matrix matrix) { argument
269 if (matrix != null && !matrix.isAffine()) {
/frameworks/base/libs/input/
H A DSpriteController.cpp287 ALOGE("Error %d setting sprite surface transformation matrix.", status);
464 const SpriteTransformationMatrix& matrix) {
467 if (mLocked.state.transformationMatrix != matrix) {
468 mLocked.state.transformationMatrix = matrix;
463 setTransformationMatrix( const SpriteTransformationMatrix& matrix) argument
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java119 * The transform is applied by multiplying each point (x, y, 1) by the matrix.
122 * @param matrix the transformation matrix
123 * @return the Quad representing the source rectangle transformed by the matrix
125 public static Quad fromTransformedRect(RectF rect, Matrix matrix) { argument
126 return Quad.fromRect(rect).transformed(matrix);
130 * Returns the transformation matrix to transform the source Quad to the target Quad.
134 * @return the transformation matrix to map source to target.
197 * Transform the quad with the given transformation matrix.
199 * The transform is applied by multiplying each point (x, y, 1) by the matrix
204 transformed(Matrix matrix) argument
[all...]
/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

Completed in 1158 milliseconds

123