/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 native_instance = nativeColorMatrixFilter(matrix.getArray()); 32 * Create a colorfilter that transforms colors through a 4x5 color matrix. 35 * matrix. The first 20 entries of the array are copied into
|
H A D | Camera.java | 34 public void getMatrix(Matrix matrix) { argument 35 nativeGetMatrix(matrix.native_instance);
|
H A D | PathMeasure.java | 98 * corresponding matrix. Returns false if there is no path, or a zero-length 99 * path was specified, in which case matrix is unchanged. 102 * @param matrix Allocated by the caller, this is set to the transformation 104 * @param flags Specified what aspects should be returned in the matrix. 106 public boolean getMatrix(float distance, Matrix matrix, int flags) { argument 107 return native_getMatrix(native_instance, distance, matrix.native_instance, flags);
|
H A D | Path.java | 464 * Add a copy of src to the path, transformed by matrix 468 public void addPath(Path src, Matrix matrix) { argument 469 native_addPath(mNativePath, src.mNativePath, matrix.native_instance); 509 * Transform the points in this path by matrix, and write the answer 512 * @param matrix The matrix to apply to the path 516 public void transform(Matrix matrix, Path dst) { argument 521 native_transform(mNativePath, matrix.native_instance, dstNative); 525 * Transform the points in this path by matrix. 527 * @param matrix Th 529 transform(Matrix matrix) argument 586 native_addPath(int nPath, int src, int matrix) argument 591 native_transform(int nPath, int matrix, int dst_path) argument 593 native_transform(int nPath, int matrix) argument [all...] |
H A D | Canvas.java | 232 /** restore the current matrix when restore() is called */ 246 * Saves the current matrix and clip onto a private stack. Subsequent 257 * Based on saveFlags, can save the current matrix and clip onto a private 276 * deleted and the previous matrix/clip state is restored. 308 * deleted and the previous matrix/clip state is restored. 333 * modifications to the matrix/clip state since the last save call. It is 339 * Returns the number of matrix/clip states on the Canvas' private stack. 360 * Preconcat the current matrix with the specified translation 368 * Preconcat the current matrix with the specified scale. 376 * Preconcat the current matrix wit 422 concat(Matrix matrix) argument 433 setMatrix(Matrix matrix) argument 1114 drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) argument 1484 native_getCTM(int canvas, int matrix) argument [all...] |
/frameworks/base/include/private/surfaceflinger/ |
H A D | LayerState.h | 41 matrix.dsdx = matrix.dtdy = 1.0f; 42 matrix.dsdy = matrix.dtdx = 0.0f; 66 matrix22_t matrix; member in struct:android::layer_state_t
|
/frameworks/base/core/jni/android/graphics/ |
H A D | PathMeasure.cpp | 98 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
|
H A D | Shader.cpp | 49 static bool Shader_getLocalMatrix(JNIEnv* env, jobject, const SkShader* shader, SkMatrix* matrix) argument 51 return shader ? shader->getLocalMatrix(matrix) : false; 54 static void Shader_setLocalMatrix(JNIEnv* env, jobject, SkShader* shader, const SkMatrix* matrix) argument 57 if (NULL == matrix) { 61 shader->setLocalMatrix(*matrix);
|
H A D | Matrix.cpp | 218 static jboolean postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) { argument 221 return matrix->postSkew(kx_, ky_); 224 static jboolean postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) { argument 225 return matrix->postConcat(*other); 228 static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) { argument 233 return matrix->setRectToRect(src_, dst_, stf); 236 static jboolean setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, argument 256 return matrix->setPolyToPoly(srcPt, dstPt, ptCount); 258 return matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst, 263 static jboolean invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatri argument 267 mapPoints(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray dst, int dstIndex, jfloatArray src, int srcIndex, int ptCount, bool isPts) argument 309 mapRect__RectFRectF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobjectArray dst, jobject src) argument 317 mapRadius(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat radius) argument 321 getValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument 339 setValues(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloatArray values) argument [all...] |
H A D | Path.cpp | 227 static void addPath__PathMatrix(JNIEnv* env, jobject clazz, SkPath* obj, SkPath* src, SkMatrix* matrix) { argument 228 obj->addPath(*src, *matrix); 249 static void transform__MatrixPath(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix, SkPath* dst) { argument 250 obj->transform(*matrix, dst); 253 static void transform__Matrix(JNIEnv* env, jobject clazz, SkPath* obj, SkMatrix* matrix) { argument 254 obj->transform(*matrix);
|
H A D | Canvas.cpp | 221 const SkMatrix* matrix) { 222 canvas->concat(*matrix); 226 const SkMatrix* matrix) { 227 if (NULL == matrix) { 230 canvas->setMatrix(*matrix); 569 const SkBitmap* bitmap, const SkMatrix* matrix, 571 canvas->drawBitmapMatrix(*bitmap, *matrix, paint); 863 SkMatrix* matrix) { 864 *matrix = canvas->getTotalMatrix(); 220 concat(JNIEnv* env, jobject, SkCanvas* canvas, const SkMatrix* matrix) argument 225 setMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkMatrix* matrix) argument 568 drawBitmapMatrix(JNIEnv* env, jobject, SkCanvas* canvas, const SkBitmap* bitmap, const SkMatrix* matrix, const SkPaint* paint) argument 862 getCTM(JNIEnv* env, jobject, SkCanvas* canvas, SkMatrix* matrix) argument
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaMetadataRetriever.cpp | 154 jobject matrix = NULL; local 156 LOGD("Create a rotation matrix: %d degrees", videoFrame->mRotationAngle); 170 matrix = 172 if (matrix == NULL) { 177 LOGV("Rotate the matrix: %d degrees", videoFrame->mRotationAngle); 185 env->CallVoidMethod(matrix, setRotateMethod, 1.0 * videoFrame->mRotationAngle); 209 LOGV("Return a new bitmap constructed with the rotation matrix"); 217 matrix, // transform matrix
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 281 AffineTransform matrix = mLayers.get(0).getGraphics().getTransform(); 285 mapRect(matrix, rect2, layerBounds); 636 // didn't save the matrix? set the current matrix on the previous snapshot 721 // shader could have a local matrix that's not valid (for instance 0 scaling). 786 private void mapRect(AffineTransform matrix, RectF dst, RectF src) { argument 796 matrix.transform(corners, 0, corners, 0, 4);
|
/frameworks/base/core/java/android/view/ |
H A D | Surface.java | 156 // A matrix to scale the matrix set by application. This is set to null for 228 * <li> Scales the matrix in setMatrix by the application scale, except if the matrix looks 230 * uses getMatrix to keep the original matrix, set matrix of its own, then set the original 231 * matrix back. There is no perfect solution that works for all cases, and there are a lot of 236 // A temp matrix to remember what an application obtained via {@link getMatrix} 252 public void setMatrix(Matrix matrix) { argument 253 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) { [all...] |
H A D | View.java | 6990 final Matrix matrix = scrollabilityCache.matrix; 6995 matrix.setScale(1, fadeHeight * topFadeStrength); 6996 matrix.postTranslate(left, top); 6997 fade.setLocalMatrix(matrix); 7002 matrix.setScale(1, fadeHeight * bottomFadeStrength); 7003 matrix.postRotate(180); 7004 matrix.postTranslate(left, bottom); 7005 fade.setLocalMatrix(matrix); 7010 matrix 9504 public final Matrix matrix; field in class:View.ScrollabilityCache [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 151 //need inflate syntax/reader for matrix 374 * Scale using the image matrix when drawing. The image matrix can be set using 376 * <code>android:scaleType="matrix"</code>. 462 /** Return the view's optional matrix. This is applied to the 463 view's drawable when it is drawn. If there is not matrix, 465 Do not change this matrix in place. If you want a different matrix 472 public void setImageMatrix(Matrix matrix) { argument 474 if (matrix ! [all...] |
/frameworks/base/libs/surfaceflinger_client/ |
H A D | SurfaceComposerClient.cpp | 527 layer_state_t::matrix22_t matrix; local 528 matrix.dsdx = dsdx; 529 matrix.dtdx = dtdx; 530 matrix.dsdy = dsdy; 531 matrix.dtdy = dtdy; 532 s->matrix = matrix;
|
/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...] |
H A D | Path_Delegate.java | 414 /*package*/ static void native_addPath(int nPath, int src, int matrix) { argument 415 Matrix_Delegate matrixDelegate = Matrix_Delegate.getDelegate(matrix); 453 /*package*/ static void native_transform(int nPath, int matrix, argument 460 Matrix_Delegate matrixDelegate = Matrix_Delegate.getDelegate(matrix); 472 /*package*/ static void native_transform(int nPath, int matrix) { argument 473 native_transform(nPath, matrix, 0); 788 * Transform the points in this path by matrix, and write the answer 791 * @param matrix The matrix to apply to the path 795 public void transform(Matrix_Delegate matrix, Path_Delegat argument [all...] |
H A D | Canvas_Delegate.java | 181 // get its current matrix 187 // combine them so that the given matrix is applied after. 190 // give it to the graphics2D as a new matrix replacing all previous transform 440 // get its current matrix 442 // get the AffineTransform of the given matrix 445 // combine them so that the given matrix is applied after. 448 // give it to the graphics2D as a new matrix replacing all previous transform 468 // get the AffineTransform of the given matrix 471 // give it to the graphics2D as a new matrix replacing all previous transform 569 /*package*/ static void native_getCTM(int canvas, int matrix) { argument [all...] |
/frameworks/base/services/surfaceflinger/ |
H A D | LayerBase.cpp | 158 bool LayerBase::setMatrix(const layer_state_t::matrix22_t& matrix) { argument 161 matrix.dsdx, matrix.dsdy, matrix.dtdx, matrix.dtdy); 219 // we may use linear filtering, if the matrix scales us
|
/frameworks/base/include/private/opengles/ |
H A D | gl_context.h | 420 matrixx_t matrix; member in struct:android::gl::transform_t 477 matrixf_t matrix; member in struct:android::gl::vp_transform_t
|