/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | Transform3dActivity.java | 61 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/base/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 60 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/graphics/java/android/graphics/ |
H A D | ColorMatrixColorFilter.java | 21 * 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 D | Camera.java | 21 * 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 D | PathMeasure.java | 99 * 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 D | Path.java | 526 * Add a copy of src to the path, transformed by matrix 530 public void addPath(Path src, Matrix matrix) { argument 532 native_addPath(mNativePath, src.mNativePath, matrix.native_instance); 573 * Transform the points in this path by matrix, and write the answer 576 * @param matrix The matrix to apply to the path 580 public void transform(Matrix matrix, Path dst) { argument 585 native_transform(mNativePath, matrix.native_instance, dstNative); 589 * Transform the points in this path by matrix. 591 * @param matrix Th 593 transform(Matrix matrix) argument 650 native_addPath(int nPath, int src, int matrix) argument 655 native_transform(int nPath, int matrix, int dst_path) argument 657 native_transform(int nPath, int matrix) argument [all...] |
/frameworks/ex/photoviewer/sample/src/com/example/photoviewersample/ |
H A D | SampleProvider.java | 63 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 D | SampleProvider.java | 63 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 D | MatrixTransform.java | 35 public void setMatrix(Matrix4f matrix) { argument 36 mLocalMatrix = matrix;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | RecentsScrollViewPerformanceHelper.java | 89 Matrix matrix = new Matrix(); 90 // use use a height of 1, and then wack the matrix each time we 137 matrix.setScale(1, fadeHeight * topFadeStrength); 138 matrix.postTranslate(left, top); 139 fade.setLocalMatrix(matrix); 144 matrix.setScale(1, fadeHeight * bottomFadeStrength); 145 matrix.postRotate(180); 146 matrix.postTranslate(left, bottom); 147 fade.setLocalMatrix(matrix); 152 matrix [all...] |
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 59 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/base/libs/hwui/ |
H A D | SkiaShader.h | 58 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 D | SkiaShader.cpp | 73 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 D | SkiaColorFilter.cpp | 34 // Color matrix filter 37 SkiaColorMatrixFilter::SkiaColorMatrixFilter(SkColorFilter* skFilter, float* matrix, float* vector): argument 38 SkiaColorFilter(skFilter, kColorMatrix, true), mMatrix(matrix), mVector(vector) {
|
H A D | DisplayListRenderer.cpp | 409 SkMatrix* matrix = getMatrix(); local 410 ALOGD("%s%s %p", (char*) indent, OP_NAMES[op], matrix); 414 SkMatrix* matrix = getMatrix(); local 416 (char*) indent, OP_NAMES[op], matrix, matrix->get(0), matrix->get(1), 417 matrix->get(2), matrix->get(3), matrix->get(4), matrix 459 SkMatrix* matrix = getMatrix(); local 999 SkMatrix* matrix = getMatrix(); local 1005 SkMatrix* matrix = getMatrix(); local 1072 SkMatrix* matrix = getMatrix(); local 1538 setMatrix(SkMatrix* matrix) argument 1544 concatMatrix(SkMatrix* matrix) argument 1588 drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Matrix.cpp | 217 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/base/core/java/android/view/ |
H A D | DisplayList.java | 135 * 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 D | GLES20TextureLayer.java | 96 void setTransform(Matrix matrix) { argument 97 GLES20Canvas.nSetTextureLayerTransform(mLayer, matrix.native_instance);
|
H A D | GLES20DisplayList.java | 141 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);
|
H A D | HardwareLayer.java | 195 * @param matrix The transform to apply to the layer. 197 abstract void setTransform(Matrix matrix); argument
|
/frameworks/compile/libbcc/lib/Renderscript/runtime/ |
H A D | Android.mk | 30 matrix.ll \
|
/frameworks/ex/carousel/test/src/com/android/carouseltest/ |
H A D | TaskSwitcherActivity.java | 74 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 D | Matrix_Delegate.java | 82 * 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/ex/photoviewer/src/com/android/ex/photo/util/ |
H A D | ImageUtils.java | 160 final Matrix matrix = new Matrix(); 161 matrix.postRotate(orientation); 163 originalBitmap.getHeight(), matrix, true);
|
/frameworks/base/core/jni/ |
H A D | android_view_GLES20DisplayList.cpp | 54 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
|