/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | AssetsAtlasActivity.java | 53 final Matrix matrix = new Matrix(); 54 matrix.setScale(0.5f, 0.5f); 61 canvas.drawBitmap(mBitmap, matrix, null);
|
H A D | Alpha8BitmapActivity.java | 81 Matrix matrix = new Matrix(); 82 matrix.setScale(2.0f, 2.0f); 83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); 84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint);
|
/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | LayerDrawable.cpp | 43 // transform the matrix based on the layer 85 SkMatrix matrix = SkMatrix::Concat(layerTransform, textureMatrix); local 92 const bool nonIdentityMatrix = !matrix.isIdentity(); 95 canvas->concat(matrix); 99 if (!matrix.invert(&matrixInv)) { 100 matrixInv = matrix; 111 // restore the original matrix
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | SyncRtSurfaceTransactionApplier.java | 78 t.setMatrix(params.surface, params.matrix, tmpFloat9); 93 * @param matrix Matrix to apply. 96 public SurfaceParams(SurfaceControlCompat surface, float alpha, Matrix matrix, argument 100 this.matrix = new Matrix(matrix); 107 final Matrix matrix; field in class:SyncRtSurfaceTransactionApplier.SurfaceParams
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | CircularImageView.java | 25 private final Matrix matrix; field in class:CircularImageView 42 matrix = new Matrix(); 100 matrix.reset(); 103 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL); 105 shader.setLocalMatrix(matrix);
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
H A D | TransitionUtils.java | 51 Matrix matrix = new Matrix(); 52 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); 53 ViewUtils.transformMatrixToGlobal(view, matrix); 54 ViewUtils.transformMatrixToLocal(sceneRoot, matrix); 56 matrix.mapRect(bounds); 64 Bitmap bitmap = createViewBitmap(view, matrix, bounds, sceneRoot); 76 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local 77 * coordinates. <code>matrix</code> will be modified during the bitmap creation. 82 * @param matrix The matrix convertin 89 createViewBitmap(View view, Matrix matrix, RectF bounds, ViewGroup sceneRoot) argument [all...] |
H A D | ImageViewUtils.java | 53 * Sets the matrix to animate the content of the image view. 55 static void animateTransform(ImageView view, Matrix matrix) { argument 57 view.setImageMatrix(matrix); 62 sAnimateTransformMethod.invoke(view, matrix);
|
H A D | ChangeImageTransform.java | 37 * This Transition captures an ImageView's matrix before and after the 46 private static final String PROPNAME_MATRIX = "android:changeImageTransform:matrix"; 64 public void set(ImageView view, Matrix matrix) { 65 ImageViewUtils.animateTransform(view, matrix); 199 * Calculates the image transformation matrix for an ImageView with ScaleType FIT_XY. This 204 final Matrix matrix = new Matrix(); 205 matrix.postScale( 208 return matrix; 212 * Calculates the image transformation matrix for an ImageView with ScaleType CENTER_CROP. This 232 final Matrix matrix [all...] |
/frameworks/base/core/java/android/view/ |
H A D | GhostView.java | 60 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 D | TextureLayer.java | 114 * @param matrix The transform to apply to the layer. 116 public void setTransform(Matrix matrix) { argument 117 nSetTransform(mFinalizer.get(), matrix.native_instance); 149 private static native void nSetTransform(long layerUpdater, long matrix); argument
|
/frameworks/base/core/java/android/transition/ |
H A D | ChangeImageTransform.java | 34 * This Transition captures an ImageView's matrix before and after the 45 private static final String PROPNAME_MATRIX = "android:changeImageTransform:matrix"; 98 Matrix matrix; 101 matrix = imageView.getImageMatrix(); 102 if (!matrix.isIdentity()) { 103 matrix = new Matrix(matrix); 110 matrix = new Matrix(); 111 matrix.setScale(scaleX, scaleY); 113 matrix [all...] |
H A D | TransitionUtils.java | 90 Matrix matrix = new Matrix(); 91 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); 92 view.transformMatrixToGlobal(matrix); 93 sceneRoot.transformMatrixToLocal(matrix); 95 matrix.mapRect(bounds); 103 Bitmap bitmap = createViewBitmap(view, matrix, bounds, sceneRoot); 146 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local 147 * coordinates. <code>matrix</code> will be modified during the bitmap creation. 151 * @param matrix The matrix convertin 160 createViewBitmap(View view, Matrix matrix, RectF bounds, ViewGroup sceneRoot) argument [all...] |
/frameworks/base/libs/hwui/ |
H A D | CanvasState.cpp | 157 void CanvasState::getMatrix(SkMatrix* matrix) const { 158 mSnapshot->transform->copyTo(*matrix); 177 void CanvasState::setMatrix(const SkMatrix& matrix) { argument 178 mSnapshot->transform->load(matrix); 181 void CanvasState::setMatrix(const Matrix4& matrix) { argument 182 *(mSnapshot->transform) = matrix; 185 void CanvasState::concatMatrix(const SkMatrix& matrix) { argument 186 mat4 transform(matrix); 190 void CanvasState::concatMatrix(const Matrix4& matrix) { argument 191 mSnapshot->transform->multiply(matrix); [all...] |
H A D | Matrix.h | 184 * If the matrix is identity or translate and/or scale. 210 friend std::ostream& operator<<(std::ostream& os, const Matrix4& matrix) { argument 211 if (matrix.isSimple()) { 212 os << "offset " << matrix.getTranslateX() << "x" << matrix.getTranslateY(); 213 if (!matrix.isPureTranslate()) { 214 os << ", scale " << matrix[kScaleX] << "x" << matrix[kScaleY]; local 217 os << "[" << matrix[0]; local 219 os << ", " << matrix[ local [all...] |
H A D | CanvasState.h | 61 * Manages the Snapshot stack, implementing matrix, save/restore, and clipping methods in the 80 * Initializes the first snapshot, computing the projection matrix, 86 * Initializes the first snapshot, computing the projection matrix, 111 void setMatrix(const SkMatrix& matrix); 112 void setMatrix(const Matrix4& matrix); // internal only convenience method 113 void concatMatrix(const SkMatrix& matrix); 114 void concatMatrix(const Matrix4& matrix); // internal only convenience method
|
H A D | Glop.h | 64 // offset the eventual drawing matrix by a tiny amount to 134 float matrix[16]; member in struct:android::uirenderer::Glop::Fill::Filter::Matrix 136 } matrix; member in union:android::uirenderer::Glop::Fill::Filter
|
H A D | DeferredLayerUpdater.h | 85 ANDROID_API void setTransform(const SkMatrix* matrix) { argument 87 mTransform = matrix ? new SkMatrix(*matrix) : nullptr;
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ImageShader.java | 434 public void setSourceTransform(float[] matrix) { argument 435 if (matrix.length != 16) { 436 throw new IllegalArgumentException("Expected 4x4 matrix for source transform!"); 439 matrix[12], 440 matrix[13], 442 matrix[0] + matrix[12], 443 matrix[1] + matrix[13], 445 matrix[ 485 setTargetTransform(float[] matrix) argument [all...] |
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
H A D | pose.h | 80 // Gets a 4x4 matrix representing a transform from the reference space (that 84 // Gets a 4x4 matrix representing a transform from the object space to the 97 Eigen::AffineMatrix<T, 4> matrix(rotation_.inverse().toRotationMatrix()); 98 return matrix.translate(-position_); 104 Eigen::AffineMatrix<T, 4> matrix(rotation_.toRotationMatrix()); 105 return matrix.pretranslate(position_);
|
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | PersistentDataStore.java | 471 float[] matrix = TouchCalibration.IDENTITY.getAffineTransform(); 477 for (int i = 0; i < matrix.length && i < CALIBRATION_NAME.length; i++) { 479 matrix[i] = Float.parseFloat(value); 488 mTouchCalibration[r] = new TouchCalibration(matrix[0], 489 matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); 492 mTouchCalibration[r] = new TouchCalibration(matrix[ [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Matrix.cpp | 62 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/native/services/surfaceflinger/RenderEngine/ |
H A D | Description.h | 47 void setInputTransformMatrix(const mat3& matrix); 48 void setOutputTransformMatrix(const mat4& matrix); 92 // projection matrix
|
/frameworks/base/core/java/android/app/ |
H A D | SharedElementCallback.java | 164 * @param viewToGlobalMatrix A matrix containing a transform from the view to the screen 192 Matrix matrix = imageView.getImageMatrix(); 194 matrix.getValues(values); 246 Matrix matrix = new Matrix(); 247 matrix.setValues(values); 248 imageView.setImageMatrix(matrix);
|
/frameworks/native/include/gui/ |
H A D | LayerState.h | 77 matrix.dsdx = matrix.dtdy = 1.0f; 78 matrix.dsdy = matrix.dtdx = 0.0f; 103 matrix22_t matrix; member in struct:android::layer_state_t
|
/frameworks/native/libs/gui/include/gui/ |
H A D | LayerState.h | 77 matrix.dsdx = matrix.dtdy = 1.0f; 78 matrix.dsdy = matrix.dtdx = 0.0f; 103 matrix22_t matrix; member in struct:android::layer_state_t
|