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

1234

/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/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.cpp65 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
66 layer->setTransform(matrix);
/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/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.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/libs/hwui/
H A DDeferredLayerUpdater.h76 ANDROID_API void setTransform(const SkMatrix* matrix) { argument
78 mTransform = matrix ? new SkMatrix(*matrix) : nullptr;
H A DDamageAccumulator.cpp121 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { argument
124 if (CC_LIKELY(!matrix->isPerspective())) {
125 matrix->mapRect(temp);
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/base/libs/hwui/tests/unit/
H A DVectorDrawableTests.cpp388 SkMatrix matrix; local
389 matrix.set9(matrixAndScale.buffer);
390 float actualMatrixScale = VectorDrawable::Path::getMatrixScale(matrix);
/frameworks/base/services/core/java/com/android/server/wm/
H A DBlackFrame.java75 void setMatrix(Matrix matrix) { argument
77 mTmpMatrix.postConcat(matrix);
87 + mTmpFloats[Matrix.MTRANS_Y] + ") matrix=["
185 public void setMatrix(Matrix matrix) { argument
188 mBlackSurfaces[i].setMatrix(matrix);
/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/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/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A DMatrix.java24 * Generic matrix code
78 public Matrix(Matrix matrix) { argument
79 this(Arrays.copyOf(matrix.m, matrix.m.length));
H A DQuaternion.java133 void matrix() { method in class:Quaternion
/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/core/jni/android/graphics/pdf/
H A DPdfRenderer.cpp211 CFX_Matrix matrix; local
213 pPage->GetDisplayMatrix(matrix, destLeft, destTop, destRight - destLeft,
218 matrix.Set(1, 0, 0, -1, 0, pPage->GetPageHeight());
222 matrix.Concat(transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY],
232 pageContext->AppendObjectList(pPage, &matrix);
275 "transform matrix has perspective. Only affine matrices are allowed.");
/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()) {

Completed in 653 milliseconds

1234