/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...] |
H A D | AssetsAtlasActivity.java | 53 final Matrix matrix = new Matrix(); 54 matrix.setScale(0.5f, 0.5f); 61 canvas.drawBitmap(mBitmap, matrix, null);
|
H A D | Alpha8BitmapActivity.java | 81 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 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/libs/hwui/font/ |
H A D | FontUtil.h | 43 #define GET_METRICS(paint, glyph, matrix) paint->getGlyphMetrics(glyph, matrix) 56 #define GET_METRICS(paint, glyph, matrix) paint->getUnicharMetrics(glyph, matrix)
|
/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 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 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);
|
/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/native/include/private/gui/ |
H A D | LayerState.h | 58 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/surfaceflinger/RenderEngine/ |
H A D | Texture.cpp | 42 void Texture::setMatrix(float const* matrix) { argument 43 mTextureMatrix = mat4(matrix);
|
H A D | Texture.h | 42 void setMatrix(float const* matrix);
|
/frameworks/base/core/java/android/view/ |
H A D | DisplayList.java | 306 * 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 D | GLES20TextureLayer.java | 101 void setTransform(Matrix matrix) { argument 102 GLES20Canvas.nSetTextureLayerTransform(mLayer, matrix.native_instance);
|
H A D | GLES20DisplayList.java | 150 public void setMatrix(Matrix matrix) { argument 152 nSetStaticMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance); 157 public Matrix getMatrix(Matrix matrix) { argument 159 nGetMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance); 161 return matrix; 165 public void setAnimationMatrix(Matrix matrix) { argument 168 (matrix != null) ? matrix.native_instance : 0); 474 private static native void nGetMatrix(int displayList, int matrix); argument
|
/frameworks/base/libs/hwui/ |
H A D | SkiaShader.h | 60 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 D | SkiaShader.cpp | 76 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...] |
H A D | DisplayListRenderer.cpp | 212 void DisplayListRenderer::setMatrix(SkMatrix* matrix) { argument 213 matrix = refMatrix(matrix); 214 addStateOp(new (alloc()) SetMatrixOp(matrix)); 215 OpenGLRenderer::setMatrix(matrix); 218 void DisplayListRenderer::concatMatrix(SkMatrix* matrix) { argument 219 matrix = refMatrix(matrix); 220 addStateOp(new (alloc()) ConcatMatrixOp(matrix)); 221 OpenGLRenderer::concatMatrix(matrix); 269 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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ImageShader.java | 434 public void setSourceTransform(float[] matrix) { argument 435 if (matrix.length != 16) { 436 throw new IllegalArgumentException("Expected 4x4 matrix for source transform!"); 439 matrix[12], 440 matrix[13], 442 matrix[0] + matrix[12], 443 matrix[1] + matrix[13], 445 matrix[ 485 setTargetTransform(float[] matrix) argument [all...] |
/frameworks/native/libs/input/ |
H A D | Input.cpp | 422 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) { argument 424 float newX = matrix[0] * x + matrix[1] * y + matrix[2]; 425 float newY = matrix[3] * x + matrix[4] * y + matrix[5]; 426 float newZ = matrix[6] * x + matrix[7] * y + matrix[ 434 transformAngle(const float matrix[9], float angleRadians, float originX, float originY) argument 454 transform(const float matrix[9]) argument [all...] |
/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/native/include/ui/ |
H A D | TMatHelpers.h | 49 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/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...] |