Searched refs:matrix (Results 51 - 75 of 137) sorted by relevance

123456

/frameworks/base/core/jni/android/graphics/
H A DShader.cpp52 // ensure we have a valid matrix to use
53 const SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local
54 if (NULL == matrix) {
55 matrix = &SkMatrix::I();
63 // Attempt to peel off an existing proxy shader and get the proxy's matrix. If
64 // the proxy existed and it's matrix equals the desired matrix then just return
65 // the proxy, otherwise replace it with a new proxy containing the desired matrix.
68 // returning both the underlying shader and the proxy's matrix.
70 // concats the provided local matrix wit
[all...]
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/
H A DRenderProperties.h215 bool setStaticMatrix(const SkMatrix* matrix) { argument
217 if (matrix) {
218 mStaticMatrix = new SkMatrix(*matrix);
230 bool setAnimationMatrix(const SkMatrix* matrix) { argument
232 if (matrix) {
233 mAnimationMatrix = new SkMatrix(*matrix);
259 // Don't dirty matrix/pivot, since they don't respect Z
284 // mMatrixOrPivotDirty not set, since matrix doesn't respect Z
533 LOG_ALWAYS_FATAL_IF(mPrimitiveFields.mMatrixOrPivotDirty, "Cannot get a dirty matrix!");
667 * In the common translation-only case, the matrix is
[all...]
H A DDisplayListCanvas.cpp132 // force matrix/clip isolation for layer
169 void DisplayListCanvas::setMatrix(const SkMatrix& matrix) { argument
170 addStateOp(new (alloc()) SetMatrixOp(matrix));
171 mState.setMatrix(matrix);
174 void DisplayListCanvas::concat(const SkMatrix& matrix) { argument
175 addStateOp(new (alloc()) ConcatMatrixOp(matrix));
176 mState.concatMatrix(matrix);
244 void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix, argument
246 if (matrix.isIdentity()) {
248 } else if (!(matrix
[all...]
H A DSkiaCanvasProxy.cpp195 void SkiaCanvasProxy::didConcat(const SkMatrix& matrix) { argument
196 mCanvas->concat(matrix);
199 void SkiaCanvasProxy::didSetMatrix(const SkMatrix& matrix) { argument
200 mCanvas->setMatrix(matrix);
349 const SkMatrix* matrix, const SkPaint& origPaint) {
367 SkMatrix matrix; local
368 mCanvas->getMatrix(&matrix);
369 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix);
348 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& origPaint) argument
H A DDamageAccumulator.cpp121 static inline void mapRect(const Matrix4* matrix, const SkRect& in, SkRect* out) { argument
124 if (CC_LIKELY(!matrix->isPerspective())) {
125 matrix->mapRect(temp);
H A DRecordingCanvas.h121 virtual void setMatrix(const SkMatrix& matrix) override { mState.setMatrix(matrix); }
123 virtual void concat(const SkMatrix& matrix) override { mState.concatMatrix(matrix); }
180 virtual void drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix,
/frameworks/base/libs/hwui/font/
H A DFont.h55 FontDescription(const SkPaint* paint, const SkMatrix& matrix);
97 static Font* create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix);
/frameworks/native/libs/gui/
H A DLayerState.cpp39 output.writeInplace(sizeof(layer_state_t::matrix22_t))) = matrix;
64 matrix = *reinterpret_cast<layer_state_t::matrix22_t const *>(matrix_data);
/frameworks/native/opengl/libagl/
H A Dmatrix.cpp1 /* libs/opengles/matrix.cpp
24 #include "matrix.h"
29 #warning "matrix.cpp should not be compiled in thumb on ARM."
135 vpt.transform.matrix.load(vpt.matrix);
173 matrix = gIdentityx;
194 const GLfixed* const m = matrix.m;
219 GLfixed const * const m = matrix.m;
408 memcpy(transform.matrix.m, rhs, sizeof(transform.matrix
[all...]
/frameworks/base/core/java/android/view/
H A DSurface.java92 // A matrix to scale the matrix set by application. This is set to null for
580 * <li>Scales the matrix in setMatrix by the application scale, except if
581 * the matrix looks like obtained from getMatrix. This is a hack to handle
582 * the case that an application uses getMatrix to keep the original matrix,
583 * set matrix of its own, then set the original matrix back. There is no
589 // A temp matrix to remember what an application obtained via {@link getMatrix}
593 public void setMatrix(Matrix matrix) { argument
594 if (mCompatibleMatrix == null || mOrigMatrix == null || mOrigMatrix.equals(matrix)) {
[all...]
/frameworks/base/libs/hwui/renderstate/
H A DRenderState.cpp267 fill.filter.matrix.matrix);
269 fill.filter.matrix.vector);
281 1, GL_FALSE, &state->matrix.data[0]);
/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/base/core/java/android/app/
H A DActivityTransitionCoordinator.java506 Matrix matrix = new Matrix();
507 parent.transformMatrixToLocal(matrix);
508 matrix.postTranslate(parent.getScrollX(), parent.getScrollY());
509 mSharedElementParentMatrices.add(matrix);
513 private void getSharedElementParentMatrix(View view, Matrix matrix) { argument
517 matrix.reset();
522 parent.transformMatrixToLocal(matrix);
523 matrix.postTranslate(parent.getScrollX(), parent.getScrollY());
529 matrix.set(parentMatrix);
760 float[] matrix
[all...]
/frameworks/base/graphics/java/android/graphics/pdf/
H A DPdfEditor.java109 * Sets a transformation and clip for a given page. The transformation matrix if
268 private void throwIfNotNullAndNotAfine(Matrix matrix) { argument
269 if (matrix != null && !matrix.isAffine()) {
/frameworks/base/libs/hwui/hwui/
H A DCanvas.h92 * that would change state (e.g. matrix or clip). Clients of asSkCanvas()
148 virtual void setMatrix(const SkMatrix& matrix) = 0;
150 virtual void concat(const SkMatrix& matrix) = 0;
200 virtual void drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNightModeController.java31 * Also pushes the current matrix to accessibility based on the current twilight
210 private static float[] multiply(float[] matrix, float[] other) { argument
211 if (matrix == null) {
215 Matrix.multiplyMM(result, 0, matrix, 0, other, 0);
/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/transition/
H A DChangeTransform.java47 private static final String PROPNAME_MATRIX = "android:changeTransform:matrix";
63 * This property sets the animation matrix properties that are not translations.
79 * This property sets the translation animation matrix properties.
192 Matrix matrix = view.getMatrix();
193 if (matrix == null || matrix.isIdentity()) {
194 matrix = null;
196 matrix = new Matrix(matrix);
198 transitionValues.values.put(PROPNAME_MATRIX, matrix);
[all...]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DCursorAnchorInfoTest.java280 // Unlike insertion marker locations, {@link Float#NaN} in the matrix is treated as just a
368 final Matrix matrix = new Matrix();
371 matrix.set(MATRIX1);
372 builder.setMatrix(matrix);
373 matrix.postRotate(90.0f);
377 matrix.set(MATRIX2);
378 builder.setMatrix(matrix);
383 matrix.set(MATRIX3);
408 // Should succeed as coordinate transformation matrix is not required if no
418 // Coordinate transformation matrix i
[all...]
/frameworks/native/services/sensorservice/
H A Dmat.h183 // matrix*matrix
191 // matrix*vector
197 // vector*matrix
203 // matrix*scalar
208 // scalar*matrix
214 // streaming operator to set the columns of the matrix:
219 // column_builder<> stores the matrix and knows which column to set
222 mat& matrix; member in struct:android::mat::column_builder
223 column_builder(mat& matrix) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp695 SkMatrix* matrix = android_graphics_Matrix_getSkMatrix(env, matrixObj); local
699 m[0] = SkScalarToFloat(matrix->get(SkMatrix::kMScaleX));
700 m[1] = SkScalarToFloat(matrix->get(SkMatrix::kMSkewX));
701 m[2] = SkScalarToFloat(matrix->get(SkMatrix::kMTransX));
702 m[3] = SkScalarToFloat(matrix->get(SkMatrix::kMSkewY));
703 m[4] = SkScalarToFloat(matrix->get(SkMatrix::kMScaleY));
704 m[5] = SkScalarToFloat(matrix->get(SkMatrix::kMTransY));
705 m[6] = SkScalarToFloat(matrix->get(SkMatrix::kMPersp0));
706 m[7] = SkScalarToFloat(matrix->get(SkMatrix::kMPersp1));
707 m[8] = SkScalarToFloat(matrix
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DVectorDrawableTests.cpp388 SkMatrix matrix; local
389 matrix.set9(matrixAndScale.buffer);
390 float actualMatrixScale = VectorDrawable::Path::getMatrixScale(matrix);
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java245 public void positionFromMatrix(Matrix matrix) { argument
257 matrix.mapRect(mTempRectF);
258 matrix.getValues(mValues);

Completed in 1930 milliseconds

123456