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

123

/frameworks/base/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java21 * Create a colorfilter that transforms colors through a 4x5 color matrix.
23 * @param matrix 4x5 matrix used to transform colors. It is copied into
24 * the filter, so changes made to the matrix after the filter
27 public ColorMatrixColorFilter(ColorMatrix matrix) { argument
28 final float[] colorMatrix = matrix.getArray();
34 * Create a colorfilter that transforms colors through a 4x5 color matrix.
37 * matrix. The first 20 entries of the array are copied into
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/core/java/android/view/
H A DGLES20RenderLayer.java121 void setTransform(Matrix matrix) { argument
H A DGLES20TextureLayer.java101 void setTransform(Matrix matrix) { argument
102 GLES20Canvas.nSetTextureLayerTransform(mLayer, matrix.native_instance);
H A DHardwareLayer.java208 * @param matrix The transform to apply to the layer.
210 abstract void setTransform(Matrix matrix); argument
H A DDisplayList.java306 * Set the static matrix on the display list. The specified matrix is combined with other
309 * @param matrix A transform matrix to apply to this display list
314 public abstract void setMatrix(Matrix matrix); argument
317 * Returns the static matrix set on this display list.
320 * matrix
330 * Copies this display list's static matrix into the specified matrix.
332 * @param matrix Th
340 getMatrix(Matrix matrix) argument
352 setAnimationMatrix(Matrix matrix) argument
[all...]
H A DSurface.java79 // A matrix to scale the matrix set by application. This is set to null for
460 * <li>Scales the matrix in setMatrix by the application scale, except if
461 * the matrix looks like obtained from getMatrix. This is a hack to handle
462 * the case that an application uses getMatrix to keep the original matrix,
463 * set matrix of its own, then set the original matrix back. There is no
469 // A temp matrix to remember what an application obtained via {@link getMatrix}
473 public void setMatrix(Matrix matrix) { argument
474 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) {
[all...]
/frameworks/base/libs/hwui/
H A DSkiaColorFilter.cpp34 // Color matrix filter
37 SkiaColorMatrixFilter::SkiaColorMatrixFilter(SkColorFilter* skFilter, float* matrix, float* vector): argument
38 SkiaColorFilter(skFilter, kColorMatrix, true), mMatrix(matrix), mVector(vector) {
H A DSkiaShader.h60 SkShader::TileMode tileY, SkMatrix* matrix, bool blend);
90 void setMatrix(SkMatrix* matrix) { argument
91 updateLocalMatrix(matrix);
95 void updateLocalMatrix(const SkMatrix* matrix) { argument
96 if (matrix) {
97 mat4 localMatrix(*matrix);
140 SkShader::TileMode tileY, SkMatrix* matrix, bool blend);
162 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend);
186 int count, SkShader* key, SkMatrix* matrix, bool blend);
196 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, boo
[all...]
H A DDisplayListRenderer.h89 virtual void setMatrix(SkMatrix* matrix);
90 virtual void concatMatrix(SkMatrix* matrix);
99 virtual status_t drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint);
271 inline SkMatrix* refMatrix(SkMatrix* matrix) { argument
272 if (matrix) {
273 // Copying the matrix is cheap and prevents against the user changing
274 // the original matrix before the operation that uses it
275 SkMatrix* copy = new SkMatrix(*matrix);
279 return matrix;
H A DSkiaShader.cpp76 SkShader::TileMode tileY, SkMatrix* matrix, bool blend):
79 setMatrix(matrix);
108 SkShader::TileMode tileY, SkMatrix* matrix, bool blend):
109 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) {
110 updateLocalMatrix(matrix);
174 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { argument
180 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY);
181 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
182 matrix->postScale(inv, inv);
187 SkMatrix* matrix, boo
75 SkiaShader(Type type, SkShader* key, SkShader::TileMode tileX, SkShader::TileMode tileY, SkMatrix* matrix, bool blend) argument
107 SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, SkShader::TileMode tileY, SkMatrix* matrix, bool blend) argument
185 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument
257 toCircularUnitMatrix(const float x, const float y, const float radius, SkMatrix* matrix) argument
264 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument
299 toSweepUnitMatrix(const float x, const float y, SkMatrix* matrix) argument
303 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument
317 SkiaSweepGradientShader(Type type, float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument
[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/jni/android/graphics/
H A DPathMeasure.cpp98 SkMatrix* matrix, int flags) {
99 return pair->fMeasure.getMatrix(SkFloatToScalar(dist), matrix, (SkPathMeasure::MatrixFlags)flags);
97 getMatrix(JNIEnv* env, jobject clazz, PathMeasurePair* pair, jfloat dist, SkMatrix* matrix, int flags) argument
/frameworks/base/services/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/services/input/
H A DSpriteController.cpp288 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/ex/carousel/test/src/com/android/carouseltest/
H A DTaskSwitcherActivity.java74 Matrix matrix; field in class:TaskSwitcherActivity.ActivityDescription
92 matrix = null;
186 Matrix matrix = new Matrix();
187 matrix.setRotate(90.0f, (float) thumbWidth / 2, (float) thumbHeight / 2);
188 info.matrix = matrix;
190 info.matrix = null;
259 Matrix matrix = new Matrix();
260 matrix.setRotate(90.0f, (float) thumbWidth / 2, (float) thumbHeight / 2);
261 desc.matrix
[all...]
/frameworks/native/include/private/gui/
H A DLayerState.h58 matrix.dsdx = matrix.dtdy = 1.0f;
59 matrix.dsdy = matrix.dtdx = 0.0f;
84 matrix22_t matrix; member in struct:android::layer_state_t
/frameworks/native/services/sensorservice/
H A Dmat.h183 // matrix*matrix
191 // matrix*vector
197 // vector*matrix
203 // matrix*scalar
208 // scalar*matrix
214 // streaming operator to set the columns of the matrix:
219 // column_builder<> stores the matrix and knows which column to set
222 mat& matrix; member in struct:android::mat::column_builder
223 column_builder(mat& matrix) argument
[all...]

Completed in 949 milliseconds

123