/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 39 final Matrix matrix = new Matrix(); 42 matrix.setRotate(-orientation); 45 matrix.mapRect(fullRectF); 46 matrix.mapRect(partialRectF); 48 matrix.reset(); 49 matrix.setTranslate(-fullRectF.left, -fullRectF.top); 50 matrix.mapRect(fullRectF); 51 matrix.mapRect(partialRectF); 61 final Matrix matrix = new Matrix(); 62 matrix [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | ColorMatrixColorFilter.java | 20 * A color filter that transforms colors through a 4x5 color matrix. This filter 29 * Create a color filter that transforms colors through a 4x5 color matrix. 31 * @param matrix 4x5 matrix used to transform colors. It is copied into 32 * the filter, so changes made to the matrix after the filter 35 public ColorMatrixColorFilter(ColorMatrix matrix) { argument 36 mMatrix.set(matrix); 41 * Create a color filter that transforms colors through a 4x5 color matrix. 44 * matrix. The first 20 entries of the array are copied into 57 * value is never null. Modifying the returned matrix doe 81 setColorMatrix(ColorMatrix matrix) argument [all...] |
H A D | Camera.java | 21 * generate a matrix that can be applied, for instance, on a 136 * Computes the matrix corresponding to the current transformation 137 * and copies it to the supplied matrix object. 139 * @param matrix The matrix to copy the current transforms into 141 public void getMatrix(Matrix matrix) { argument 142 nativeGetMatrix(matrix.native_instance); 146 * Computes the matrix corresponding to the current transformation 149 * @param canvas The Canvas to set the transform matrix onto
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | Transform3dActivity.java | 61 final Matrix matrix = mMatrix; 63 rotate(centerX, centerY, camera, matrix, 32.0f); 64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix); 66 rotate(centerX, centerY, camera, matrix, 12.0f); 67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); 69 rotate(centerX, centerY, camera, matrix, 52.0f); 70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); 72 rotate(centerX, centerY, camera, matrix, 122.0f); 73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix); 78 Matrix matrix) { 77 drawBitmap(Canvas canvas, float centerX, float centerY, float offset, Matrix matrix) argument 86 rotate(float centerX, float centerY, Camera camera, Matrix matrix, float angle) argument [all...] |
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/core/java/android/gesture/ |
H A D | OrientedBoundingBox.java | 60 Matrix matrix = new Matrix(); 61 matrix.setRotate(orientation); 62 matrix.postTranslate(centerX, centerY); 63 matrix.mapPoints(point); 68 matrix.mapPoints(point); 73 matrix.mapPoints(point); 78 matrix.mapPoints(point);
|
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/ |
H A D | SampleProvider.java | 63 MatrixCursor matrix = new MatrixCursor(projection); 72 addRow(matrix, PHOTO_INDIVIDUAL_1); 73 addRow(matrix, PHOTO_INDIVIDUAL_2); 74 addRow(matrix, PHOTO_INDIVIDUAL_3); 75 addRow(matrix, PHOTO_INDIVIDUAL_4); 80 addRow(matrix, PHOTO_INDIVIDUAL_1); 83 addRow(matrix, PHOTO_INDIVIDUAL_2); 86 addRow(matrix, PHOTO_INDIVIDUAL_3); 89 addRow(matrix, PHOTO_INDIVIDUAL_4); 97 return matrix; 104 addRow(MatrixCursor matrix, int match_id) argument [all...] |
/frameworks/rs/api/ |
H A D | rs_matrix.spec | 28 a vector is done by postmultiplying the vector, e.g. <code>(matrix * vector)</code>, 31 To create a transformation matrix that performs two transformations at once, 33 argument. E.g. to create a transformation matrix that applies the 39 style simply stores the transformation matrix in the first argument. The latter 40 modifies a pre-existing transformation matrix so that the new transformation 41 happens first. E.g. if you call @rsMatrixTranslate() on a matrix that already 42 does a scaling, the resulting matrix when applied to a vector will first do the 60 Computes 6 frustum planes from the view projection matrix 187 Returns one element of a matrix. 196 summary: Inverts a matrix i [all...] |
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
H A D | AssistVisualizer.java | 38 final Matrix matrix; field in class:AssistVisualizer.TextEntry 47 TextEntry(AssistStructure.ViewNode node, int parentLeft, int parentTop, Matrix matrix) { argument 53 this.matrix = new Matrix(matrix); 97 Matrix matrix = new Matrix(); 98 matrix.setTranslate(windowNode.getLeft(), windowNode.getTop()); 99 mMatrixStack.add(matrix); 120 + " matrix=" + te.matrix.toShortString() 147 Matrix matrix; [all...] |
/frameworks/native/services/surfaceflinger/RenderEngine/ |
H A D | Texture.cpp | 42 void Texture::setMatrix(float const* matrix) { argument 43 mTextureMatrix = mat4(matrix);
|
/frameworks/base/libs/hwui/ |
H A D | DeferredLayerUpdater.h | 76 ANDROID_API void setTransform(const SkMatrix* matrix) { argument 78 mTransform = matrix ? new SkMatrix(*matrix) : nullptr;
|
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 | Glop.h | 66 // offset the eventual drawing matrix by a tiny amount to 135 float matrix[16]; member in struct:android::uirenderer::Glop::Fill::Filter::Matrix 137 } matrix; member in union:android::uirenderer::Glop::Fill::Filter
|
/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/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/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 | HardwareLayer.java | 116 * @param matrix The transform to apply to the layer. 118 public void setTransform(Matrix matrix) { argument 119 nSetTransform(mFinalizer.get(), matrix.native_instance); 150 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 | 89 Matrix matrix = new Matrix(); 90 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); 91 view.transformMatrixToGlobal(matrix); 92 sceneRoot.transformMatrixToLocal(matrix); 94 matrix.mapRect(bounds); 102 Bitmap bitmap = createViewBitmap(view, matrix, bounds); 143 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local 144 * coordinates. <code>matrix</code> will be modified during the bitmap creation. 148 * @param matrix The matrix convertin 155 createViewBitmap(View view, Matrix matrix, RectF bounds) argument [all...] |
/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/base/core/jni/android/graphics/ |
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/java/android/app/ |
H A D | SharedElementCallback.java | 160 * @param viewToGlobalMatrix A matrix containing a transform from the view to the screen 183 Matrix matrix = imageView.getImageMatrix(); 185 matrix.getValues(values); 232 Matrix matrix = new Matrix(); 233 matrix.setValues(values); 234 imageView.setImageMatrix(matrix);
|
/frameworks/native/libs/input/ |
H A D | Input.cpp | 356 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) { argument 358 float newX = matrix[0] * x + matrix[1] * y + matrix[2]; 359 float newY = matrix[3] * x + matrix[4] * y + matrix[5]; 360 float newZ = matrix[6] * x + matrix[7] * y + matrix[ 368 transformAngle(const float matrix[9], float angleRadians, float originX, float originY) argument 388 transform(const float matrix[9]) argument [all...] |