Searched defs:matrix (Results 1 - 25 of 53) 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
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);
/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.java109 void setTransform(Matrix matrix) { argument
H A DGLES20TextureLayer.java96 void setTransform(Matrix matrix) { argument
97 GLES20Canvas.nSetTextureLayerTransform(mLayer, matrix.native_instance);
H A DHardwareLayer.java195 * @param matrix The transform to apply to the layer.
197 abstract void setTransform(Matrix matrix); argument
H A DDisplayList.java135 * Set the static matrix on the DisplayList. This matrix exists if a custom ViewGroup
139 * This matrix will be concatenated with any other matrices in the DisplayList to position
142 * @param matrix The matrix
144 public abstract void setStaticMatrix(Matrix matrix); argument
147 * Set the Animation matrix on the DisplayList. This matrix exists if an Animation is
149 * the Animation finishes, the matrix should be cleared by sending <code>null</code>
150 * for the matrix paramete
154 setAnimationMatrix(Matrix matrix) argument
[all...]
H A DGLES20DisplayList.java141 public void setStaticMatrix(Matrix matrix) { argument
143 nSetStaticMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance);
148 public void setAnimationMatrix(Matrix matrix) { argument
151 (matrix != null) ? matrix.native_instance : 0);
/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.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...]
/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/ex/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/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/libs/androidfw/tests/
H A DInputEvent_test.cpp564 SkMatrix matrix; local
565 matrix.setRotate(ROTATION);
566 event.transform(&matrix);
/frameworks/base/services/java/com/android/server/wm/
H A DBlackFrame.java62 void setMatrix(Matrix matrix) { argument
64 mTmpMatrix.postConcat(matrix);
74 + mTmpFloats[Matrix.MTRANS_Y] + ") matrix=["
162 public void setMatrix(Matrix matrix) { argument
165 mBlackSurfaces[i].setMatrix(matrix);
/frameworks/base/core/jni/
H A Dandroid_view_GLES20DisplayList.cpp54 jobject clazz, DisplayList* displayList, SkMatrix* matrix) {
55 displayList->setStaticMatrix(matrix);
59 jobject clazz, DisplayList* displayList, SkMatrix* matrix) {
60 displayList->setAnimationMatrix(matrix);
53 android_view_GLES20DisplayList_setStaticMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument
58 android_view_GLES20DisplayList_setAnimationMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument
/frameworks/base/services/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/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.h59 matrix.dsdx = matrix.dtdy = 1.0f;
60 matrix.dsdy = matrix.dtdx = 0.0f;
85 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...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java287 AffineTransform matrix = mLayers.get(0).getGraphics().getTransform();
291 mapRect(matrix, rect2, layerBounds);
641 // didn't save the matrix? set the current matrix on the previous snapshot
783 private void mapRect(AffineTransform matrix, RectF dst, RectF src) { argument
793 matrix.transform(corners, 0, corners, 0, 4);
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A DCarouselViewHelper.java46 public TextureParameters() { matrix = new Matrix4f(); }
47 public TextureParameters(Matrix4f _matrix) { matrix = _matrix; }
48 public Matrix4f matrix; field in class:CarouselViewHelper.TextureParameters
118 params.matrix.getArray()).sendToTarget();

Completed in 3004 milliseconds

123