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

1234

/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 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/base/libs/hwui/font/
H A DFontUtil.h40 #define GET_METRICS(paint, glyph, matrix) paint->getGlyphMetrics(glyph, matrix)
53 #define GET_METRICS(paint, glyph, matrix) paint->getUnicharMetrics(glyph, matrix)
/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
134 * Computes the matrix corresponding to the current transformation
135 * and copies it to the supplied matrix object.
137 * @param matrix The matrix to copy the current transforms into
139 public void getMatrix(Matrix matrix) { argument
140 nativeGetMatrix(matrix.native_instance);
144 * Computes the matrix corresponding to the current transformation
147 * @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);
H A DPath.java530 * Add a copy of src to the path, transformed by matrix
534 public void addPath(Path src, Matrix matrix) { argument
536 native_addPath(mNativePath, src.mNativePath, matrix.native_instance);
579 * Transform the points in this path by matrix, and write the answer
582 * @param matrix The matrix to apply to the path
586 public void transform(Matrix matrix, Path dst) { argument
592 native_transform(mNativePath, matrix.native_instance, dstNative);
596 * Transform the points in this path by matrix.
598 * @param matrix Th
600 transform(Matrix matrix) argument
658 native_addPath(int nPath, int src, int matrix) argument
663 native_transform(int nPath, int matrix, int dst_path) argument
665 native_transform(int nPath, int matrix) argument
[all...]
/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/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/base/core/java/android/view/
H A DDisplayList.java293 * Set the static matrix on the display list. The specified matrix is combined with other
296 * @param matrix A transform matrix to apply to this display list
301 public abstract void setMatrix(Matrix matrix); argument
304 * Returns the static matrix set on this display list.
307 * matrix
317 * Copies this display list's static matrix into the specified matrix.
319 * @param matrix Th
327 getMatrix(Matrix matrix) argument
339 setAnimationMatrix(Matrix matrix) argument
[all...]
H A DGLES20TextureLayer.java96 void setTransform(Matrix matrix) { argument
97 GLES20Canvas.nSetTextureLayerTransform(mLayer, matrix.native_instance);
H A DGLES20DisplayList.java147 public void setMatrix(Matrix matrix) { argument
149 nSetStaticMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance);
154 public Matrix getMatrix(Matrix matrix) { argument
156 nGetMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance);
158 return matrix;
162 public void setAnimationMatrix(Matrix matrix) { argument
165 (matrix != null) ? matrix.native_instance : 0);
471 private static native void nGetMatrix(int displayList, int matrix); argument
H A DHardwareLayer.java200 * @param matrix The transform to apply to the layer.
202 abstract void setTransform(Matrix matrix); argument
H A DSurface.java78 // A matrix to scale the matrix set by application. This is set to null for
436 * <li>Scales the matrix in setMatrix by the application scale, except if
437 * the matrix looks like obtained from getMatrix. This is a hack to handle
438 * the case that an application uses getMatrix to keep the original matrix,
439 * set matrix of its own, then set the original matrix back. There is no
445 // A temp matrix to remember what an application obtained via {@link getMatrix}
449 public void setMatrix(Matrix matrix) { argument
450 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) {
[all...]
/frameworks/base/libs/hwui/
H A DSkiaShader.h58 SkShader::TileMode tileY, SkMatrix* matrix, bool blend);
89 void setMatrix(SkMatrix* matrix) { argument
90 updateLocalMatrix(matrix);
94 void updateLocalMatrix(const SkMatrix* matrix) { argument
95 if (matrix) {
96 mat4 localMatrix(*matrix);
141 SkShader::TileMode tileY, SkMatrix* matrix, bool blend);
163 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend);
187 int count, SkShader* key, SkMatrix* matrix, bool blend);
197 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, boo
[all...]
H A DSkiaShader.cpp73 SkShader::TileMode tileY, SkMatrix* matrix, bool blend):
75 setMatrix(matrix);
104 SkShader::TileMode tileY, SkMatrix* matrix, bool blend):
105 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) {
106 updateLocalMatrix(matrix);
170 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { argument
176 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY);
177 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
178 matrix->postScale(inv, inv);
183 SkMatrix* matrix, boo
72 SkiaShader(Type type, SkShader* key, SkShader::TileMode tileX, SkShader::TileMode tileY, SkMatrix* matrix, bool blend) argument
103 SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, SkShader::TileMode tileY, SkMatrix* matrix, bool blend) argument
181 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument
253 toCircularUnitMatrix(const float x, const float y, const float radius, SkMatrix* matrix) argument
260 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument
295 toSweepUnitMatrix(const float x, const float y, SkMatrix* matrix) argument
299 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument
313 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...]
H A DDisplayListRenderer.cpp207 void DisplayListRenderer::setMatrix(SkMatrix* matrix) { argument
208 matrix = refMatrix(matrix);
209 addStateOp(new (alloc()) SetMatrixOp(matrix));
210 OpenGLRenderer::setMatrix(matrix);
213 void DisplayListRenderer::concatMatrix(SkMatrix* matrix) { argument
214 matrix = refMatrix(matrix);
215 addStateOp(new (alloc()) ConcatMatrixOp(matrix));
216 OpenGLRenderer::concatMatrix(matrix);
264 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument
[all...]
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) {
/frameworks/base/core/jni/android/graphics/
H A DMatrix.cpp217 static jboolean postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) { argument
220 return matrix->postSkew(kx_, ky_);
223 static jboolean postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) { argument
224 return matrix->postConcat(*other);
227 static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) { argument
232 return matrix->setRectToRect(src_, dst_, stf);
235 static jboolean setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, argument
255 return matrix->setPolyToPoly(srcPt, dstPt, ptCount);
257 return matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst,
262 static jboolean invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatri argument
266 mapPoints(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray dst, int dstIndex, jfloatArray src, int srcIndex, int ptCount, bool isPts) argument
308 mapRect__RectFRectF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobjectArray dst, jobject src) argument
316 mapRadius(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat radius) argument
320 getValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument
338 setValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) 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/base/tools/layoutlib/bridge/src/android/graphics/
H A DMatrix_Delegate.java82 * Sets the content of the matrix with the content of another matrix.
84 public void set(Matrix_Delegate matrix) { argument
85 System.arraycopy(matrix.mValues, 0, mValues, 0, MATRIX_SIZE);
89 * Sets the content of the matrix with the content of another matrix represented as an array
97 * Resets the matrix to be the identity matrix.
104 * Returns whether or not the matrix is identity.
118 public static float[] makeValues(AffineTransform matrix) { argument
133 make(AffineTransform matrix) argument
773 getAffineTransform(float[] matrix) argument
881 postTransform(float[] matrix) argument
892 preTransform(float[] matrix) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_GLES20DisplayList.cpp78 jobject clazz, DisplayList* displayList, SkMatrix* matrix) {
79 displayList->setStaticMatrix(matrix);
83 jobject clazz, DisplayList* displayList, SkMatrix* matrix) {
84 displayList->setAnimationMatrix(matrix);
203 jobject clazz, DisplayList* displayList, SkMatrix* matrix) {
206 matrix->setConcat(SkMatrix::I(), *source);
208 matrix->setIdentity();
77 android_view_GLES20DisplayList_setStaticMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument
82 android_view_GLES20DisplayList_setAnimationMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument
202 android_view_GLES20DisplayList_getMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument
/frameworks/native/libs/gui/
H A DLayerState.cpp39 output.writeInplace(sizeof(layer_state_t::matrix22_t))) = matrix;
58 matrix = *reinterpret_cast<layer_state_t::matrix22_t const *>(

Completed in 734 milliseconds

1234