/frameworks/base/libs/hwui/ |
H A D | SkiaShader.cpp | 65 * Compute the matrix to transform to screen space. 66 * @param screenSpace Output param for the computed matrix. 67 * @param unitMatrix The unit matrix for gradient shaders, as returned by SkShader::asAGradient, 69 * @param localMatrix Local matrix, as returned by SkShader::getLocalMatrix(). 70 * @param modelViewMatrix Model view matrix, as supplied by the OpenGLRenderer. 83 // gradient shader matrix helpers 86 static void toLinearUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { argument 92 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); 93 matrix->postTranslate(-pts[0].fX, -pts[0].fY); 94 matrix 97 toCircularUnitMatrix(const float x, const float y, const float radius, SkMatrix* matrix) argument 104 toSweepUnitMatrix(const float x, const float y, SkMatrix* matrix) argument [all...] |
H A D | Snapshot.h | 60 Matrix4 matrix; member in class:android::uirenderer::RoundRectClipState 155 * transformed by the inverse transform matrix. 270 * This is a reference to a matrix owned by this snapshot or another 330 * Contains the current orthographic, projection matrix.
|
H A D | CanvasState.cpp | 165 void CanvasState::getMatrix(SkMatrix* matrix) const { 166 mSnapshot->transform->copyTo(*matrix); 185 void CanvasState::setMatrix(const SkMatrix& matrix) { argument 186 mSnapshot->transform->load(matrix); 189 void CanvasState::setMatrix(const Matrix4& matrix) { argument 190 *(mSnapshot->transform) = matrix; 193 void CanvasState::concatMatrix(const SkMatrix& matrix) { argument 194 mat4 transform(matrix); 198 void CanvasState::concatMatrix(const Matrix4& matrix) { argument 199 mSnapshot->transform->multiply(matrix); [all...] |
H A D | Matrix.h | 195 * 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 D | OpenGLRenderer.h | 94 * Defines additional transformation that should be applied by the model view matrix, beyond that of 100 * matrix will be a simple translation. 105 * Used when the model view should translate and scale geometry. The resulting matrix will be a 262 * transform matrix, and whether filteration is needed. 296 void setGlobalMatrix(const Matrix4& matrix) { argument 297 mState.setMatrix(matrix); 299 void setLocalMatrix(const Matrix4& matrix); 300 void setLocalMatrix(const SkMatrix& matrix); 301 void concatMatrix(const SkMatrix& matrix) { mState.concatMatrix(matrix); } argument 351 setBaseTransform(const Matrix4& matrix) argument [all...] |
H A D | SkiaCanvasProxy.cpp | 195 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 D | TessellationCache.cpp | 90 void TessellationCache::Description::setupMatrixAndPaint(Matrix4* matrix, SkPaint* paint) const { argument 91 matrix->loadScale(scaleX, scaleY, 1.0f); 190 // map z coordinate with true 3d matrix 193 // map x,y coordinates with draw/Skia matrix 426 Matrix4 matrix; local 428 description.setupMatrixAndPaint(&matrix, &paint); 430 PathTessellator::tessellatePath(path, &paint, matrix, *buffer);
|
H A D | VectorDrawable.cpp | 47 //TODO: try apply the path matrix to the canvas instead of creating a new path. 70 // After matrix mapping, we got A' and B'. Let theta = the angel b/t A' and B'. 75 // For non-skew case, which is most of the cases, matrix scale is computing exactly the 196 const SkMatrix& matrix, bool useStagingData){ 204 SkShader* newShader = properties.getFillGradient()->newWithLocalMatrix(matrix); 224 SkShader* newShader = properties.getStrokeGradient()->newWithLocalMatrix(matrix); 312 float strokeScale, const SkMatrix& matrix, bool useStagingData){ 322 // TODO: Try apply the matrix to the canvas instead of passing it down the tree 324 // Calculate current group's matrix by preConcat the parent's and 327 // Mi the local matrix a 195 drawPath(SkCanvas* outCanvas, SkPath& renderPath, float strokeScale, const SkMatrix& matrix, bool useStagingData) argument 311 drawPath(SkCanvas* outCanvas, SkPath& renderPath, float strokeScale, const SkMatrix& matrix, bool useStagingData) argument [all...] |
/frameworks/base/libs/input/ |
H A D | SpriteController.cpp | 291 ALOGE("Error %d setting sprite surface transformation matrix.", status); 468 const SpriteTransformationMatrix& matrix) { 471 if (mLocked.state.transformationMatrix != matrix) { 472 mLocked.state.transformationMatrix = matrix; 467 setTransformationMatrix( const SpriteTransformationMatrix& matrix) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | NightModeController.java | 31 * 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/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
H A D | Quad.java | 119 * 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/include/private/gui/ |
H A D | LayerState.h | 69 matrix.dsdx = matrix.dtdy = 1.0f; 70 matrix.dsdy = matrix.dtdx = 0.0f; 94 matrix22_t matrix; member in struct:android::layer_state_t
|
/frameworks/native/services/sensorservice/ |
H A D | mat.h | 183 // 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/java/android/view/ |
H A D | ViewStructure.java | 54 * Set the transformation matrix associated with this view, as per 57 public abstract void setTransformation(Matrix matrix); argument
|
H A D | Surface.java | 92 // 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/core/java/android/view/inputmethod/ |
H A D | CursorAnchorInfo.java | 72 * 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 D | Shader.cpp | 52 // 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 D | Matrix.cpp | 185 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 186 matrix->postSkew(kx, ky); 190 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 192 matrix->postConcat(*other); 196 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 202 return matrix->setRectToRect(src_, dst_, stf) ? JNI_TRUE : JNI_FALSE; 208 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 220 result = matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst, 229 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 231 return matrix 238 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 257 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 266 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 272 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local 285 SkMatrix* matrix = reinterpret_cast<SkMatrix*>(matrixHandle); local [all...] |
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfEditor.cpp | 199 CFX_Matrix matrix; local 206 "transform matrix has perspective. Only affine matrices are allowed."); 212 matrix.Set(1, 0, 0, -1, 0, page->GetPageHeight()); 215 matrix.Concat(transformValues[SkMatrix::kAScaleX], transformValues[SkMatrix::kASkewY], 220 matrix.Concat(1, 0, 0, -1, 0, page->GetPageHeight()); 222 FS_MATRIX transform = {matrix.a, matrix.b, matrix.c, matrix.d, matrix [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | TiledImageView.java | 245 public void positionFromMatrix(Matrix matrix) { argument 257 matrix.mapRect(mTempRectF); 258 matrix.getValues(mValues);
|
/frameworks/rs/cpp/ |
H A D | ScriptIntrinsics.cpp | 320 float matrix[] = {0.299f, 0.299f, 0.299f,0.587f,0.587f,0.587f,0.114f,0.114f, 0.114f}; local 321 setColorMatrix3(matrix); 326 float matrix[] = { 0.299f, -0.14713f, 0.615f, 0.587f, -0.28886f, -0.51499f, 0.114f, 0.436f, -0.10001f}; local 327 setColorMatrix3(matrix); 332 float matrix[] = {1.f, 1.f, 1.f, 0.f, -0.39465f, 2.03211f, 1.13983f, -0.5806f, 0.f}; local 333 setColorMatrix3(matrix);
|
/frameworks/base/libs/hwui/font/ |
H A D | Font.cpp | 479 Font* Font::create(FontRenderer* state, const SkPaint* paint, const SkMatrix& matrix) { argument 480 FontDescription description(paint, matrix); 487 font->mIdentityTransform = matrix.isIdentity();
|
/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 717 getAffineTransform(float[] matrix) argument 825 postTransform(float[] matrix) argument 836 preTransform(float[] matrix) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/ |
H A D | NopCanvas.java | 235 public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) { argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 289 AffineTransform matrix = mLayers.get(0).getGraphics().getTransform(); 293 mapRect(matrix, rect2, layerBounds); 707 // didn't save the matrix? set the current matrix on the previous snapshot 852 private void mapRect(AffineTransform matrix, RectF dst, RectF src) { argument 862 matrix.transform(corners, 0, corners, 0, 4);
|