/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/native/include/private/gui/ |
H A D | LayerState.h | 42 matrix.dsdx = matrix.dtdy = 1.0f; 43 matrix.dsdy = matrix.dtdx = 0.0f; 68 matrix22_t matrix; member in struct:android::layer_state_t
|
/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 | 96 Matrix matrix = new Matrix(); 97 // use use a height of 1, and then wack the matrix each time we 144 matrix.setScale(1, fadeHeight * topFadeStrength); 145 matrix.postTranslate(left, top); 146 fade.setLocalMatrix(matrix); 151 matrix.setScale(1, fadeHeight * bottomFadeStrength); 152 matrix.postRotate(180); 153 matrix.postTranslate(left, bottom); 154 fade.setLocalMatrix(matrix); 159 matrix [all...] |
/frameworks/base/libs/hwui/ |
H A D | SkiaShader.cpp | 57 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): 59 setMatrix(matrix); 88 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): 89 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) { 90 updateLocalMatrix(matrix); 166 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { argument 172 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); 173 matrix->postTranslate(-pts[0].fX, -pts[0].fY); 174 matrix->postScale(inv, inv); 179 SkMatrix* matrix, boo 56 SkiaShader(Type type, SkShader* key, SkShader::TileMode tileX, SkShader::TileMode tileY, SkMatrix* matrix, bool blend) argument 87 SkiaBitmapShader(SkBitmap* bitmap, SkShader* key, SkShader::TileMode tileX, SkShader::TileMode tileY, SkMatrix* matrix, bool blend) argument 177 SkiaLinearGradientShader(float* bounds, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 245 toCircularUnitMatrix(const float x, const float y, const float radius, SkMatrix* matrix) argument 252 SkiaCircularGradientShader(float x, float y, float radius, uint32_t* colors, float* positions, int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend) argument 285 toSweepUnitMatrix(const float x, const float y, SkMatrix* matrix) argument 289 SkiaSweepGradientShader(float x, float y, uint32_t* colors, float* positions, int count, SkShader* key, SkMatrix* matrix, bool blend) argument 301 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 | SkiaShader.h | 58 SkShader::TileMode tileY, SkMatrix* matrix, bool blend); 93 void setMatrix(SkMatrix* matrix) { argument 94 updateLocalMatrix(matrix); 98 void updateLocalMatrix(const SkMatrix* matrix) { argument 99 if (matrix) { 100 mat4 localMatrix(*matrix); 145 SkShader::TileMode tileY, SkMatrix* matrix, bool blend); 175 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend); 199 int count, SkShader* key, SkMatrix* matrix, bool blend); 210 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, boo [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 | 382 SkMatrix* matrix = getMatrix(); local 383 ALOGD("%s%s %p", (char*) indent, OP_NAMES[op], matrix); 387 SkMatrix* matrix = getMatrix(); local 389 (char*) indent, OP_NAMES[op], matrix, matrix->get(0), matrix->get(1), 390 matrix->get(2), matrix->get(3), matrix->get(4), matrix 432 SkMatrix* matrix = getMatrix(); local 960 SkMatrix* matrix = getMatrix(); local 966 SkMatrix* matrix = getMatrix(); local 1023 SkMatrix* matrix = getMatrix(); local 1466 setMatrix(SkMatrix* matrix) argument 1472 concatMatrix(SkMatrix* matrix) argument 1515 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 | 130 public void setStaticMatrix(Matrix matrix) { argument 132 nSetStaticMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance); 137 public void setAnimationMatrix(Matrix matrix) { argument 140 (matrix != null) ? matrix.native_instance : 0);
|
H A D | HardwareLayer.java | 183 * @param matrix The transform to apply to the layer. 185 abstract void setTransform(Matrix matrix); argument
|
H A D | Surface.java | 241 // A matrix to scale the matrix set by application. This is set to null for 342 * <li>Scales the matrix in setMatrix by the application scale, except if 343 * the matrix looks like obtained from getMatrix. This is a hack to handle 344 * the case that an application uses getMatrix to keep the original matrix, 345 * set matrix of its own, then set the original matrix back. There is no 351 // A temp matrix to remember what an application obtained via {@link getMatrix} 373 public void setMatrix(Matrix matrix) { argument 374 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) { [all...] |
/frameworks/compile/libbcc/lib/ScriptCRT/ |
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/base/core/jni/ |
H A D | android_view_GLES20DisplayList.cpp | 49 jobject clazz, DisplayList* displayList, SkMatrix* matrix) { 50 displayList->setStaticMatrix(matrix); 54 jobject clazz, DisplayList* displayList, SkMatrix* matrix) { 55 displayList->setAnimationMatrix(matrix); 48 android_view_GLES20DisplayList_setStaticMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument 53 android_view_GLES20DisplayList_setAnimationMatrix(JNIEnv* env, jobject clazz, DisplayList* displayList, SkMatrix* matrix) argument
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | BlackFrame.java | 61 void setMatrix(Matrix matrix) { argument 63 mTmpMatrix.postConcat(matrix); 73 + mTmpFloats[Matrix.MTRANS_Y] + ") matrix=[" 161 public void setMatrix(Matrix matrix) { argument 164 mBlackSurfaces[i].setMatrix(matrix);
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
H A D | CarouselView.java | 216 * Set the matrix for a given item. 218 * @param matrix the requested matrix; null to just use the default 220 public void setMatrixForItem(int n, float[] matrix) { argument 221 mController.setMatrixForItem(n, matrix); 453 * Sets the matrix used to transform card geometries. By default, this 454 * is the identity matrix, but you can specify a different matrix if you 457 * @param matrix array of 9 or 16 floats representing a 3x3 or 4x4 matrix, 460 setDefaultCardMatrix(float[] matrix) argument [all...] |