Searched defs:matrix (Results 51 - 75 of 114) sorted by relevance

12345

/frameworks/base/libs/input/
H A DSpriteController.cpp290 ALOGE("Error %d setting sprite surface transformation matrix.", status);
467 const SpriteTransformationMatrix& matrix) {
470 if (mLocked.state.transformationMatrix != matrix) {
471 mLocked.state.transformationMatrix = matrix;
466 setTransformationMatrix( const SpriteTransformationMatrix& matrix) argument
/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/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapShader_Delegate.java94 private BitmapShader_Delegate(long matrix, BufferedImage image, argument
96 super(matrix);
120 "Unable to inverse matrix in BitmapShader", e, null /*data*/);
129 "Unable to inverse matrix in BitmapShader", e, null /*data*/);
183 // handle the local matrix.
H A DLinearGradient_Delegate.java59 /*package*/ static long nativeCreate1(LinearGradient thisGradient, long matrix, argument
62 LinearGradient_Delegate newDelegate = new LinearGradient_Delegate(matrix, x0, y0,
68 /*package*/ static long nativeCreate2(LinearGradient thisGradient, long matrix, argument
71 return nativeCreate1(thisGradient, matrix, x0, y0, x1, y1, new int[] { color0, color1},
80 * @param nativeMatrix reference to the shader's native transformation matrix
135 "Unable to inverse matrix in LinearGradient", e, null /*data*/);
144 "Unable to inverse matrix in LinearGradient", e, null /*data*/);
193 // handle the local matrix.
H A DCanvas_Delegate.java291 // get its current matrix
297 // combine them so that the given matrix is applied after.
300 // give it to the graphics2D as a new matrix replacing all previous transform
320 // get its current matrix
322 // get the AffineTransform of the given matrix
325 // combine them so that the given matrix is applied after.
328 // give it to the graphics2D as a new matrix replacing all previous transform
348 // get the AffineTransform of the given matrix
351 // give it to the graphics2D as a new matrix replacing all previous transform
430 public static void nGetMatrix(long canvas, long matrix) { argument
[all...]
H A DMatrix_Delegate.java85 * Sets the content of the matrix with the content of another matrix.
87 public void set(Matrix_Delegate matrix) { argument
88 System.arraycopy(matrix.mValues, 0, mValues, 0, MATRIX_SIZE);
92 * Sets the content of the matrix with the content of another matrix represented as an array
100 * Resets the matrix to be the identity matrix.
107 * Returns whether or not the matrix is identity.
121 public static float[] makeValues(AffineTransform matrix) { argument
136 make(AffineTransform matrix) argument
725 getAffineTransform(float[] matrix) argument
833 postTransform(float[] matrix) argument
844 preTransform(float[] matrix) argument
[all...]
/frameworks/native/include/private/gui/
H A DLayerState.h73 matrix.dsdx = matrix.dtdy = 1.0f;
74 matrix.dsdy = matrix.dtdx = 0.0f;
98 matrix22_t matrix; member in struct:android::layer_state_t
/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 explicit column_builder(mat& matrix) argument
[all...]
/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/jni/android/graphics/
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...]
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...]
/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.");
/frameworks/base/libs/hwui/
H A DMatrix.h195 * If the matrix is identity or translate and/or scale.
221 friend std::ostream& operator<<(std::ostream& os, const Matrix4& matrix) { argument
222 if (matrix.isSimple()) {
223 os << "offset " << matrix.getTranslateX() << "x" << matrix.getTranslateY();
224 if (!matrix.isPureTranslate()) {
225 os << ", scale " << matrix[kScaleX] << "x" << matrix[kScaleY]; local
228 os << "[" << matrix[0]; local
230 os << ", " << matrix[ local
[all...]
H A DRenderNode.cpp350 // We could try to be clever and only re-damage if the matrix changed.
441 * Apply property-based transformations to input matrix
443 * If true3dTransform is set to true, the transform applied to the input matrix will use true 4x4
444 * matrix computation instead of the Skia 3x3 matrix + camera hackery.
446 void RenderNode::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) const { argument
448 matrix.translate(properties().getLeft(), properties().getTop());
452 matrix.multiply(stat);
455 matrix.multiply(anim);
461 matrix
[all...]
H A DTessellationCache.cpp89 void TessellationCache::Description::setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const { argument
90 matrix->loadScale(scaleX, scaleY, 1.0f);
189 // map z coordinate with true 3d matrix
192 // map x,y coordinates with draw/Skia matrix
410 Matrix4 matrix; local
412 description.setupMatrixAndPaint(&matrix, &paint);
414 PathTessellator::tessellatePath(path, &paint, matrix, *buffer);
/frameworks/base/libs/hwui/tests/unit/
H A DFatalTestCanvas.h47 const SkMatrix* matrix, const SkPaint& paint) {
46 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) argument
H A DRenderNodeDrawableTests.cpp178 SkMatrix matrix; local
179 recorder.getMatrix(&matrix);
180 return matrix;
197 //note we don't pass SaveFlags::MatrixClip, but matrix and clip will be saved
961 virtual void onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix) override {
965 SkCanvas::onDrawDrawable(drawable, matrix);
974 virtual void didConcat(const SkMatrix& matrix) override {
976 // matrix.
978 EXPECT_EQ(SkMatrix::MakeTrans(CASTER_X, CASTER_Y), matrix); local
/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);
/frameworks/native/libs/ui/
H A DColorSpace.cpp384 static mat3 adaptation(const mat3& matrix, const float3& srcWhitePoint, const float3& dstWhitePoint) { argument
385 float3 srcLMS = matrix * srcWhitePoint;
386 float3 dstLMS = matrix * dstWhitePoint;
387 return inverse(matrix) * mat3{dstLMS / srcLMS} * matrix;
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp330 float matrix[] = {0.299f, 0.299f, 0.299f,0.587f,0.587f,0.587f,0.114f,0.114f, 0.114f}; local
331 setColorMatrix3(matrix);
336 float matrix[] = { 0.299f, -0.14713f, 0.615f, 0.587f, -0.28886f, -0.51499f, 0.114f, 0.436f, -0.10001f}; local
337 setColorMatrix3(matrix);
342 float matrix[] = {1.f, 1.f, 1.f, 0.f, -0.39465f, 2.03211f, 1.13983f, -0.5806f, 0.f}; local
343 setColorMatrix3(matrix);
/frameworks/base/core/java/android/view/
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 DViewStructure.java64 * Set the transformation matrix associated with this view, as per
67 public abstract void setTransformation(Matrix matrix); argument
/frameworks/base/libs/hwui/font/
H A DFont.cpp485 Font* Font::create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) { argument
486 FontDescription description(paint, matrix);
493 font->mIdentityTransform = matrix.isIdentity();
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java239 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java291 AffineTransform matrix = mLayers.get(0).getGraphics().getTransform();
295 mapRect(matrix, rect2, layerBounds);
710 // didn't save the matrix? set the current matrix on the previous snapshot
836 private void mapRect(AffineTransform matrix, RectF dst, RectF src) { argument
846 matrix.transform(corners, 0, corners, 0, 4);

Completed in 494 milliseconds

12345