Searched defs:matrix (Results 1 - 25 of 114) sorted by path

12345

/frameworks/base/core/java/android/app/
H A DActivityTransitionCoordinator.java572 Matrix matrix = new Matrix();
574 parent.transformMatrixToLocal(matrix);
575 matrix.postTranslate(parent.getScrollX(), parent.getScrollY());
577 mSharedElementParentMatrices.add(matrix);
581 private void getSharedElementParentMatrix(View view, Matrix matrix) { argument
585 matrix.reset();
590 parent.transformMatrixToLocal(matrix);
591 matrix.postTranslate(parent.getScrollX(), parent.getScrollY());
597 matrix.set(parentMatrix);
822 float[] matrix
[all...]
/frameworks/base/core/java/android/app/assist/
H A DAssistStructure.java1473 public void setTransformation(Matrix matrix) { argument
1474 if (matrix == null) {
1477 mNode.mMatrix = new Matrix(matrix);
1973 Matrix matrix = node.getTransformation();
1974 if (matrix != null) {
1975 Log.i(TAG, prefix + " Transformation: " + matrix);
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java89 Matrix matrix = new Matrix();
90 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY());
91 view.transformMatrixToGlobal(matrix);
92 sceneRoot.transformMatrixToLocal(matrix);
94 matrix.mapRect(bounds);
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
143 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
144 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
148 * @param matrix The matrix convertin
155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument
[all...]
/frameworks/base/core/java/android/view/
H A DGhostView.java60 public void setMatrix(Matrix matrix) { argument
61 mRenderNode.setAnimationMatrix(matrix);
86 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { argument
88 matrix.reset();
89 parent.transformMatrixToGlobal(matrix);
90 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY());
91 host.transformMatrixToLocal(matrix);
94 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { argument
112 if (matrix == null) {
113 matrix
[all...]
H A DHardwareLayer.java116 * @param matrix The transform to apply to the layer.
118 public void setTransform(Matrix matrix) { argument
119 nSetTransform(mFinalizer.get(), matrix.native_instance);
150 private static native void nSetTransform(long layerUpdater, long matrix); argument
H A DMotionEvent.java1564 private static native void nativeTransform(long nativePtr, long matrix); argument
2963 * Applies a transformation matrix to all of the points in the event.
2965 * @param matrix The transformation matrix to apply.
2967 public final void transform(Matrix matrix) { argument
2968 if (matrix == null) {
2969 throw new IllegalArgumentException("matrix must not be null");
2972 nativeTransform(mNativePtr, matrix.native_instance);
H A DRecordingCanvas.java85 public final void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, argument
87 nDrawBitmapMatrix(mNativeCanvasWrapper, bitmap, matrix.ni(),
H A DRenderNode.java378 * Set the static matrix on the display list. The specified matrix is combined with other
381 * @param matrix A transform matrix to apply to this display list
383 public boolean setStaticMatrix(Matrix matrix) { argument
384 return nSetStaticMatrix(mNativeRenderNode, matrix.native_instance);
388 * Set the Animation matrix on the display list. This matrix exists if an Animation is
390 * the Animation finishes, the matrix should be cleared by sending <code>null</code>
391 * for the matrix paramete
395 setAnimationMatrix(Matrix matrix) argument
[all...]
H A DSurface.java110 // A matrix to scale the matrix set by application. This is set to null for
674 * <li>Scales the matrix in setMatrix by the application scale, except if
675 * the matrix looks like obtained from getMatrix. This is a hack to handle
676 * the case that an application uses getMatrix to keep the original matrix,
677 * set matrix of its own, then set the original matrix back. There is no
683 // A temp matrix to remember what an application obtained via {@link getMatrix}
687 public void setMatrix(Matrix matrix) { argument
688 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) {
[all...]
H A DView.java2858 * DisplayList to clear its animation matrix.
3745 * The transform matrix for the View. This transform is calculated internally
3754 * The inverse transform matrix for the View. This transform is calculated
13689 * The transform matrix of this view, which is calculated based on the current
13697 * @return The current transform matrix for the view
13701 final Matrix matrix = mTransformationInfo.mMatrix;
13702 mRenderNode.getMatrix(matrix);
13703 return matrix;
13707 * Returns true if the transform matrix is the identity matrix
14728 setAnimationMatrix(Matrix matrix) argument
25572 public final Matrix matrix; field in class:View.ScrollabilityCache
[all...]
H A DViewStructure.java64 * Set the transformation matrix associated with this view, as per
67 public abstract void setTransformation(Matrix matrix); argument
/frameworks/base/core/java/android/view/inputmethod/
H A DCursorAnchorInfo.java72 * transformed with the transformation matrix when rendered on the screen. This should be
79 * transformed with the transformation matrix when rendered on the screen. This should be
86 * transformed with the transformation matrix when rendered on the screen. This should be
93 * transformed with the transformation matrix when rendered on the screen. This should be
101 * Java chars, in the local coordinates that will be transformed with the transformation matrix
107 * Transformation matrix that is applied to any positional information of this class to
304 * coordinates that will be transformed with the transformation matrix when rendered on the
308 * will be transformed with the transformation matrix when rendered on the screen. This
311 * that will be transformed with the transformation matrix when rendered on the screen. This
314 * that will be transformed with the transformation matrix whe
362 setMatrix(final Matrix matrix) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DImageView.java233 //need inflate syntax/reader for matrix
270 // updates the matrix, which is dependent on the bounds
749 * Scale using the image matrix when drawing. The image matrix can be set using
751 * <code>android:scaleType="matrix"</code>.
836 /** Returns the view's optional matrix. This is applied to the
837 view's drawable when it is drawn. If there is no matrix,
838 this method will return an identity matrix.
839 Do not change this matrix in place but make a copy.
840 If you want a different matrix applie
857 setImageMatrix(Matrix matrix) argument
1320 animateTransform(Matrix matrix) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DMatrix.cpp62 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
71 matrix->mapPoints((SkPoint*) dstArray, (const SkPoint*) srcArray,
74 matrix->mapVectors((SkVector*) dstArray, (const SkVector*) srcArray,
80 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
83 jboolean rectStaysRect = matrix->mapRect(&dst_, src_);
90 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
96 return matrix->setRectToRect(src_, dst_, stf) ? JNI_TRUE : JNI_FALSE;
102 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
115 result = matrix->setPolyToPoly((const SkPoint*) src,
122 SkMatrix* matrix local
132 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
304 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
309 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
315 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
321 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
[all...]
H A DPath.cpp202 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
203 obj->addPath(*src, *matrix);
219 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
221 obj->transform(*matrix, dst);
226 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
227 obj->transform(*matrix);
H A DPathMeasure.cpp115 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
116 bool result = pair->fMeasure.getMatrix(dist, matrix, (SkPathMeasure::MatrixFlags)flags);
H A DShader.cpp65 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
78 if (matrix) {
79 shader = baseShader->makeWithLocalMatrix(*matrix).release();
93 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
113 if (matrix) {
114 shader = baseShader->makeWithLocalMatrix(*matrix).release();
126 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
140 if (matrix) {
141 s = baseShader->makeWithLocalMatrix(*matrix).release();
154 const SkMatrix* matrix local
188 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
213 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
243 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
265 const SkMatrix* matrix = reinterpret_cast<const SkMatrix*>(matrixPtr); local
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp150 SkMatrix matrix = SkMatrix::Concat(*reinterpret_cast<SkMatrix*>(transformPtr), local
154 matrix.setConcat(coordinateChange, matrix);
157 if (!matrix.asAffine(transformValues)) {
161 "transform matrix has perspective. Only affine matrices are allowed.");
H A DPdfRenderer.cpp112 SkMatrix matrix; local
114 matrix = coordinateChange;
116 matrix = SkMatrix::Concat(*reinterpret_cast<SkMatrix*>(transformPtr), coordinateChange);
120 if (!matrix.asAffine(transformValues)) {
122 "transform matrix has perspective. Only affine matrices are allowed.");
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp58 // optionally copying canvas matrix & clip state.
121 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
122 get_canvas(canvasHandle)->getMatrix(matrix);
126 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
127 get_canvas(canvasHandle)->setMatrix(matrix ? *matrix : SkMatrix::I());
131 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
132 get_canvas(canvasHandle)->concat(*matrix);
411 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
414 get_canvas(canvasHandle)->drawBitmap(bitmap, *matrix, pain
[all...]
H A Dandroid_view_HardwareLayer.cpp64 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
65 layer->setTransform(matrix);
H A Dandroid_view_MotionEvent.cpp717 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
729 matrix->get9(m);
H A Dandroid_view_RenderNode.cpp106 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
107 return SET_AND_DIRTY(setStaticMatrix, matrix, RenderNode::GENERIC);
111 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixPtr); local
112 return SET_AND_DIRTY(setAnimationMatrix, matrix, RenderNode::GENERIC);
386 // load transform matrix
/frameworks/base/graphics/java/android/graphics/
H A DBaseCanvas.java109 public void drawBitmap(@NonNull Bitmap bitmap, @NonNull Matrix matrix, @Nullable Paint paint) { argument
111 nDrawBitmapMatrix(mNativeCanvasWrapper, bitmap, matrix.ni(),
H A DCamera.java21 * 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

Completed in 387 milliseconds

12345