Searched refs:matrix (Results 76 - 100 of 195) sorted by relevance

12345678

/frameworks/layoutlib/bridge/src/android/graphics/
H A DLinearGradient_Delegate.java62 /*package*/ static long nativeCreate1(LinearGradient thisGradient, long matrix, argument
65 LinearGradient_Delegate newDelegate = new LinearGradient_Delegate(matrix, x0, y0,
71 /*package*/ static long nativeCreate2(LinearGradient thisGradient, long matrix, argument
74 return nativeCreate1(thisGradient, matrix, x0, y0, x1, y1, new int[] { color0, color1},
83 * @param nativeMatrix reference to the shader's native transformation matrix
138 "Unable to inverse matrix in LinearGradient", e, null /*data*/);
147 "Unable to inverse matrix in LinearGradient", e, null /*data*/);
192 // handle the local matrix.
H A DRadialGradient_Delegate.java62 /*package*/ static long nativeCreate1(long matrix, float x, float y, float radius, argument
64 RadialGradient_Delegate newDelegate = new RadialGradient_Delegate(matrix, x, y, radius,
70 /*package*/ static long nativeCreate2(long matrix, float x, float y, float radius, argument
72 return nativeCreate1(matrix, x, y, radius, new int[] { color0, color1 },
81 * @param nativeMatrix reference to the shader's native transformation matrix
127 "Unable to inverse matrix in RadialGradient", e, null /*data*/);
136 "Unable to inverse matrix in RadialGradient", e, null /*data*/);
184 // handle the local matrix
H A DSweepGradient_Delegate.java59 /*package*/ static long nativeCreate1(long matrix, float x, float y, int colors[], float argument
61 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(matrix, x, y, colors,
67 /*package*/ static long nativeCreate2(long matrix, float x, float y, int color0, int color1) { argument
68 return nativeCreate1(matrix, x, y, new int[] { color0, color1 },
77 * @param nativeMatrix reference to the shader's native transformation matrix
121 "Unable to inverse matrix in SweepGradient", e, null /*data*/);
130 "Unable to inverse matrix in SweepGradient", e, null /*data*/);
178 // handle the local matrix
H A DPath_Delegate.java418 /*package*/ static void nAddPath(long nPath, long src, long matrix) { argument
419 Matrix_Delegate matrixDelegate = Matrix_Delegate.getDelegate(matrix);
449 /*package*/ static void nTransform(long nPath, long matrix, argument
456 Matrix_Delegate matrixDelegate = Matrix_Delegate.getDelegate(matrix);
468 /*package*/ static void nTransform(long nPath, long matrix) { argument
469 nTransform(nPath, matrix, 0);
872 * Transform the points in this path by matrix, and write the answer
875 * @param matrix The matrix to apply to the path
879 public void transform(Matrix_Delegate matrix, Path_Delegat argument
[all...]
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dortho.h21 result.matrix() << a, 0, 0, xoff,
/frameworks/base/core/java/android/widget/
H A DImageView.java234 //need inflate syntax/reader for matrix
271 // updates the matrix, which is dependent on the bounds
750 * Scale using the image matrix when drawing. The image matrix can be set using
752 * <code>android:scaleType="matrix"</code>.
835 /** Returns the view's optional matrix. This is applied to the
836 view's drawable when it is drawn. If there is no matrix,
837 this method will return an identity matrix.
838 Do not change this matrix in place but make a copy.
839 If you want a different matrix applie
856 setImageMatrix(Matrix matrix) argument
1313 animateTransform(Matrix matrix) argument
[all...]
/frameworks/native/libs/math/include/math/
H A DTMatHelpers.h67 namespace matrix { namespace in namespace:android::details
128 // 2x2 matrix inverse is easy.
133 // Assuming the input matrix is:
160 // From the Wikipedia article on matrix inversion's section on fast 3x3
161 // matrix inversion:
167 // Assuming the input matrix is:
228 * Inversion function which switches on the matrix size.
229 * @warning This function assumes the matrix is invertible. The result is
231 * make sure the matrix is not singular.
234 inline constexpr MATRIX PURE inverse(const MATRIX& matrix) { argument
429 inverse(const BASE<T>& matrix) argument
[all...]
/frameworks/base/libs/hwui/
H A DRenderProperties.h198 bool setStaticMatrix(const SkMatrix* matrix) { argument
200 if (matrix) {
201 mStaticMatrix = new SkMatrix(*matrix);
211 bool setAnimationMatrix(const SkMatrix* matrix) { argument
213 if (matrix) {
214 mAnimationMatrix = new SkMatrix(*matrix);
236 // Don't dirty matrix/pivot, since they don't respect Z
255 // mMatrixOrPivotDirty not set, since matrix doesn't respect Z
458 LOG_ALWAYS_FATAL_IF(mPrimitiveFields.mMatrixOrPivotDirty, "Cannot get a dirty matrix!");
585 * In the common translation-only case, the matrix is
[all...]
H A DSkiaCanvasProxy.cpp227 void SkiaCanvasProxy::didConcat(const SkMatrix& matrix) { argument
228 mCanvas->concat(matrix);
231 void SkiaCanvasProxy::didSetMatrix(const SkMatrix& matrix) { argument
232 mCanvas->setMatrix(matrix);
394 const SkMatrix* matrix, const SkPaint& origPaint) {
462 SkMatrix matrix; local
463 mCanvas->getMatrix(&matrix);
464 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix);
393 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& origPaint) argument
H A DDamageAccumulator.cpp122 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { argument
125 if (CC_LIKELY(!matrix->isPerspective())) {
126 matrix->mapRect(temp);
H A DRecordingCanvas.h117 virtual void setMatrix(const SkMatrix& matrix) override { mState.setMatrix(matrix); }
119 virtual void concat(const SkMatrix& matrix) override { mState.concatMatrix(matrix); }
176 virtual void drawBitmap(Bitmap& bitmap, const SkMatrix& matrix, const SkPaint* paint) override;
/frameworks/base/core/jni/android/graphics/
H A DPathMeasure.cpp115 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
116 bool result = pair->fMeasure.getMatrix(dist, matrix, (SkPathMeasure::MatrixFlags)flags);
/frameworks/base/libs/hwui/font/
H A DFont.h55 FontDescription(const SkPaint* paint, const SkMatrix& matrix);
91 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix);
/frameworks/native/opengl/libagl/
H A DAndroid.mk20 matrix.cpp.arm \
H A Dmatrix.cpp1 /* libs/opengles/matrix.cpp
24 #include "matrix.h"
29 #warning "matrix.cpp should not be compiled in thumb on ARM."
134 vpt.transform.matrix.load(vpt.matrix);
172 matrix = gIdentityx;
193 const GLfixed* const m = matrix.m;
218 GLfixed const * const m = matrix.m;
407 memcpy(transform.matrix.m, rhs, sizeof(transform.matrix
[all...]
/frameworks/base/core/jni/android/graphics/pdf/
H A DPdfEditor.cpp138 SkMatrix matrix = SkMatrix::Concat(*reinterpret_cast<SkMatrix*>(transformPtr), local
142 matrix.setConcat(coordinateChange, matrix);
145 if (!matrix.asAffine(transformValues)) {
149 "transform matrix has perspective. Only affine matrices are allowed.");
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DPdfManipulationService.java124 Matrix matrix = new Matrix();
136 matrix.postScale(displayScale, displayScale);
141 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0);
161 page.render(bitmap, clip, matrix, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
H A DQuad.java119 * The transform is applied by multiplying each point (x, y, 1) by the matrix.
122 * @param matrix the transformation matrix
123 * @return the Quad representing the source rectangle transformed by the matrix
125 public static Quad fromTransformedRect(RectF rect, Matrix matrix) { argument
126 return Quad.fromRect(rect).transformed(matrix);
130 * Returns the transformation matrix to transform the source Quad to the target Quad.
134 * @return the transformation matrix to map source to target.
197 * Transform the quad with the given transformation matrix.
199 * The transform is applied by multiplying each point (x, y, 1) by the matrix
204 transformed(Matrix matrix) argument
[all...]
/frameworks/native/libs/gui/
H A DLayerState.cpp39 output.writeInplace(sizeof(layer_state_t::matrix22_t))) = matrix;
71 matrix = *reinterpret_cast<layer_state_t::matrix22_t const *>(matrix_data);
182 matrix = other.matrix;
/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/graphics/java/android/graphics/pdf/
H A DPdfEditor.java122 * Sets a transformation and clip for a given page. The transformation matrix if
316 private void throwIfNotNullAndNotAfine(Matrix matrix) { argument
317 if (matrix != null && !matrix.isAffine()) {
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java166 final Matrix matrix = new Matrix();
167 matrix.postRotate(orientation);
169 originalBitmap.getHeight(), matrix, true);
/frameworks/base/core/java/android/view/
H A DRenderNode.java398 * Set the static matrix on the display list. The specified matrix is combined with other
401 * @param matrix A transform matrix to apply to this display list
403 public boolean setStaticMatrix(Matrix matrix) { argument
404 return nSetStaticMatrix(mNativeRenderNode, matrix.native_instance);
408 * Set the Animation matrix on the display list. This matrix exists if an Animation is
410 * the Animation finishes, the matrix should be cleared by sending <code>null</code>
411 * for the matrix paramete
415 setAnimationMatrix(Matrix matrix) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DChangeTransform.java48 private static final String PROPNAME_MATRIX = "android:changeTransform:matrix";
64 * This property sets the animation matrix properties that are not translations.
80 * This property sets the translation animation matrix properties.
194 Matrix matrix = view.getMatrix();
195 if (matrix == null || matrix.isIdentity()) {
196 matrix = null;
198 matrix = new Matrix(matrix);
200 transitionValues.values.put(PROPNAME_MATRIX, matrix);
[all...]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DCursorAnchorInfoTest.java292 // Unlike insertion marker locations, {@link Float#NaN} in the matrix is treated as just a
380 final Matrix matrix = new Matrix();
383 matrix.set(MATRIX1);
384 builder.setMatrix(matrix);
385 matrix.postRotate(90.0f);
389 matrix.set(MATRIX2);
390 builder.setMatrix(matrix);
395 matrix.set(MATRIX3);
420 // Should succeed as coordinate transformation matrix is not required if no
430 // Coordinate transformation matrix i
[all...]

Completed in 452 milliseconds

12345678