/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | Transform3dActivity.java | 61 final Matrix matrix = mMatrix; in onDraw() local 63 rotate(centerX, centerY, camera, matrix, 32.0f); in onDraw() 64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix); in onDraw() 66 rotate(centerX, centerY, camera, matrix, 12.0f); in onDraw() 67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix); in onDraw() 69 rotate(centerX, centerY, camera, matrix, 52.0f); in onDraw() 70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix); in onDraw() 72 rotate(centerX, centerY, camera, matrix, 122.0f); in onDraw() 73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix); in onDraw() 78 Matrix matrix) { in drawBitmap() argument [all …]
|
D | Alpha8BitmapActivity.java | 81 Matrix matrix = new Matrix(); in onDraw() local 82 matrix.setScale(2.0f, 2.0f); in onDraw() 83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); in onDraw() 84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint); in onDraw()
|
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/ |
D | SampleProvider.java | 63 MatrixCursor matrix = new MatrixCursor(projection); in query() local 72 addRow(matrix, PHOTO_INDIVIDUAL_1); in query() 73 addRow(matrix, PHOTO_INDIVIDUAL_2); in query() 74 addRow(matrix, PHOTO_INDIVIDUAL_3); in query() 75 addRow(matrix, PHOTO_INDIVIDUAL_4); in query() 80 addRow(matrix, PHOTO_INDIVIDUAL_1); in query() 83 addRow(matrix, PHOTO_INDIVIDUAL_2); in query() 86 addRow(matrix, PHOTO_INDIVIDUAL_3); in query() 89 addRow(matrix, PHOTO_INDIVIDUAL_4); in query() 97 return matrix; in query() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | OrientedBoundingBox.java | 60 Matrix matrix = new Matrix(); in toPath() local 61 matrix.setRotate(orientation); in toPath() 62 matrix.postTranslate(centerX, centerY); in toPath() 63 matrix.mapPoints(point); in toPath() 68 matrix.mapPoints(point); in toPath() 73 matrix.mapPoints(point); in toPath() 78 matrix.mapPoints(point); in toPath()
|
/frameworks/base/tests/RenderScriptTests/FBOTest/src/com/android/fbotest/ |
D | fbotest.rs | 157 rs_matrix4x4 matrix; 158 rsMatrixLoadIdentity(&matrix); 160 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 161 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 162 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 163 rsgProgramVertexLoadModelMatrix(&matrix); 173 rs_matrix4x4 proj, matrix; 176 rsMatrixLoadIdentity(&matrix); 177 rsgProgramVertexLoadModelMatrix(&matrix); 208 rs_matrix4x4 matrix; [all …]
|
D | fbosync.rs | 158 rs_matrix4x4 matrix; 159 rsMatrixLoadIdentity(&matrix); 161 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 162 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 163 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 164 rsgProgramVertexLoadModelMatrix(&matrix); 174 rs_matrix4x4 proj, matrix; 177 rsMatrixLoadIdentity(&matrix); 178 rsgProgramVertexLoadModelMatrix(&matrix); 220 rs_matrix4x4 matrix; [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | ImageShader.java | 434 public void setSourceTransform(float[] matrix) { in setSourceTransform() argument 435 if (matrix.length != 16) { in setSourceTransform() 439 matrix[12], in setSourceTransform() 440 matrix[13], in setSourceTransform() 442 matrix[0] + matrix[12], in setSourceTransform() 443 matrix[1] + matrix[13], in setSourceTransform() 445 matrix[4] + matrix[12], in setSourceTransform() 446 matrix[5] + matrix[13], in setSourceTransform() 448 matrix[0] + matrix[4] + matrix[12], in setSourceTransform() 449 matrix[1] + matrix[5] + matrix[13], in setSourceTransform() [all …]
|
/frameworks/base/libs/hwui/ |
D | SkiaShader.cpp | 76 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): in SkiaShader() argument 79 setMatrix(matrix); in SkiaShader() 108 SkShader::TileMode tileY, SkMatrix* matrix, bool blend): in SkiaBitmapShader() argument 109 SkiaShader(kBitmap, key, tileX, tileY, matrix, blend), mBitmap(bitmap), mTexture(NULL) { in SkiaBitmapShader() 110 updateLocalMatrix(matrix); in SkiaBitmapShader() 174 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { in toUnitMatrix() argument 180 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); in toUnitMatrix() 181 matrix->postTranslate(-pts[0].fX, -pts[0].fY); in toUnitMatrix() 182 matrix->postScale(inv, inv); in toUnitMatrix() 187 SkMatrix* matrix, bool blend): in SkiaLinearGradientShader() argument [all …]
|
D | SkiaShader.h | 60 SkShader::TileMode tileY, SkMatrix* matrix, bool blend); 90 void setMatrix(SkMatrix* matrix) { in setMatrix() 91 updateLocalMatrix(matrix); in setMatrix() 95 void updateLocalMatrix(const SkMatrix* matrix) { in updateLocalMatrix() 96 if (matrix) { in updateLocalMatrix() 97 mat4 localMatrix(*matrix); in updateLocalMatrix() 140 SkShader::TileMode tileY, SkMatrix* matrix, bool blend); 162 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend); 186 int count, SkShader* key, SkMatrix* matrix, bool blend); 196 int count, SkShader* key, SkShader::TileMode tileMode, SkMatrix* matrix, bool blend); [all …]
|
D | DisplayListRenderer.cpp | 212 void DisplayListRenderer::setMatrix(SkMatrix* matrix) { in setMatrix() argument 213 matrix = refMatrix(matrix); in setMatrix() 214 addStateOp(new (alloc()) SetMatrixOp(matrix)); in setMatrix() 215 OpenGLRenderer::setMatrix(matrix); in setMatrix() 218 void DisplayListRenderer::concatMatrix(SkMatrix* matrix) { in concatMatrix() argument 219 matrix = refMatrix(matrix); in concatMatrix() 220 addStateOp(new (alloc()) ConcatMatrixOp(matrix)); in concatMatrix() 221 OpenGLRenderer::concatMatrix(matrix); in concatMatrix() 269 status_t DisplayListRenderer::drawBitmap(SkBitmap* bitmap, SkMatrix* matrix, SkPaint* paint) { in drawBitmap() argument 271 matrix = refMatrix(matrix); in drawBitmap() [all …]
|
/frameworks/rs/scriptc/ |
D | rs_matrix.rsh | 27 * Set one element of a matrix. 29 * @param m The matrix to be set 50 * Get one element of a matrix. 52 * @param m The matrix to read from 72 * Set the elements of a matrix to the identity matrix. 87 * Set the elements of a matrix from an array of floats. 110 * Set the elements of a matrix from another matrix. 125 * Load a rotation matrix. 137 * Load a scale matrix. 148 * Load a translation matrix. [all …]
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | torus_test.rs | 64 static void updateModelMatrix(rs_matrix4x4 *matrix, void *buffer) { 66 rsgProgramVertexLoadModelMatrix(matrix); 72 static void drawToruses(int numMeshes, rs_matrix4x4 *matrix, void *buffer) { 75 rsMatrixLoadTranslate(matrix, 0.0f, 0.0f, -7.5f); 76 rsMatrixRotate(matrix, gTorusRotation, 1.0f, 0.0f, 0.0f); 77 updateModelMatrix(matrix, buffer); 83 rsMatrixLoadTranslate(matrix, -1.6f, 0.0f, -7.5f); 84 rsMatrixRotate(matrix, gTorusRotation, 1.0f, 0.0f, 0.0f); 85 updateModelMatrix(matrix, buffer); 88 rsMatrixLoadTranslate(matrix, 1.6f, 0.0f, -7.5f); [all …]
|
D | fill_test.rs | 69 rs_matrix4x4 matrix; 70 rsMatrixLoadIdentity(&matrix); 71 rsgProgramVertexLoadModelMatrix(&matrix); 107 rs_matrix4x4 matrix; 108 rsMatrixLoadIdentity(&matrix); 109 rsgProgramVertexLoadModelMatrix(&matrix);
|
D | ui_test.rs | 220 rs_matrix4x4 matrix; 221 rsMatrixLoadTranslate(&matrix, 0.0f, 0.0f, 10.0f - 6.0f * absoluteAngle / 50.0f); 223 rsMatrixScale(&matrix, 6.6f, 6.0f, 1.0f); 225 rsMatrixScale(&matrix, 12.6f, 12.0f, 1.0f); 227 rsMatrixRotate(&matrix, absoluteAngle, 1.0f, 0.0f, 0.0f); 228 rsMatrixRotate(&matrix, a, 0.0f, 0.4f, 0.1f); 230 rsMatrixMultiply(&vpConstants->MVP, &matrix); 268 rs_matrix4x4 matrix; 269 rsMatrixLoadScale(&matrix, wSize, hSize, 1.0); 281 rsMatrixMultiply(&transMatrix, &matrix); [all …]
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | test_app.rs | 60 rs_matrix4x4 matrix; 61 rsMatrixLoadIdentity(&matrix); 64 rsMatrixTranslate(&matrix, 0, 0, -gZoom); 65 rsMatrixRotate(&matrix, 20.0f, 1.0f, 0.0f, 0.0f); 66 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 67 rsMatrixScale(&matrix, 0.2f, 0.2f, 0.2f); 68 rsgProgramVertexLoadModelMatrix(&matrix);
|
/frameworks/base/core/jni/android/graphics/ |
D | Matrix.cpp | 217 … static jboolean postSkew__FF(JNIEnv* env, jobject clazz, SkMatrix* matrix, jfloat kx, jfloat ky) { in postSkew__FF() argument 220 return matrix->postSkew(kx_, ky_); in postSkew__FF() 223 static jboolean postConcat(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* other) { in postConcat() argument 224 return matrix->postConcat(*other); in postConcat() 227 …static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject d… in setRectToRect() argument 232 return matrix->setRectToRect(src_, dst_, stf); in setRectToRect() 235 static jboolean setPolyToPoly(JNIEnv* env, jobject clazz, SkMatrix* matrix, in setPolyToPoly() argument 255 return matrix->setPolyToPoly(srcPt, dstPt, ptCount); in setPolyToPoly() 257 return matrix->setPolyToPoly((const SkPoint*)src, (const SkPoint*)dst, in setPolyToPoly() 262 static jboolean invert(JNIEnv* env, jobject clazz, SkMatrix* matrix, SkMatrix* inverse) { in invert() argument [all …]
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
D | rsrenderstates.rs | 162 rs_matrix4x4 matrix; 163 rsMatrixLoadIdentity(&matrix); 164 rsgProgramVertexLoadModelMatrix(&matrix); 213 rs_matrix4x4 matrix; 214 rsMatrixLoadIdentity(&matrix); 215 rsgProgramVertexLoadModelMatrix(&matrix); 258 rs_matrix4x4 matrix; 259 rsMatrixLoadTranslate(&matrix, 128, 128, 0); 260 rsgProgramVertexLoadModelMatrix(&matrix); 278 rs_matrix4x4 matrix; [all …]
|
/frameworks/native/include/private/gui/ |
D | LayerState.h | 58 matrix.dsdx = matrix.dtdy = 1.0f; in layer_state_t() 59 matrix.dsdy = matrix.dtdx = 0.0f; in layer_state_t() 84 matrix22_t matrix; member
|
/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
D | shaderstest.rs | 151 rs_matrix4x4 matrix; 153 rsMatrixLoadIdentity(&matrix); 154 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 155 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 156 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 157 rsgProgramVertexLoadModelMatrix(&matrix); 164 rs_matrix4x4 proj, matrix; 167 rsMatrixLoadIdentity(&matrix); 168 rsgProgramVertexLoadModelMatrix(&matrix);
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | simplemodel.rs | 159 rs_matrix4x4 matrix; 160 rsMatrixLoadIdentity(&matrix); 162 rsMatrixTranslate(&matrix, gLookAt.x, gLookAt.y, gLookAt.z - gZoom); 163 rsMatrixMultiply(&matrix, &gPostureMatrix); 164 rsMatrixRotate(&matrix, gRotateX, 1.0f, 0.0f, 0.0f); 165 rsMatrixRotate(&matrix, gRotateY, 0.0f, 1.0f, 0.0f); 167 rsgProgramVertexLoadModelMatrix(&matrix);
|
/frameworks/native/libs/input/ |
D | Input.cpp | 422 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) { in transformPoint() 424 float newX = matrix[0] * x + matrix[1] * y + matrix[2]; in transformPoint() 425 float newY = matrix[3] * x + matrix[4] * y + matrix[5]; in transformPoint() 426 float newZ = matrix[6] * x + matrix[7] * y + matrix[8]; in transformPoint() 434 static float transformAngle(const float matrix[9], float angleRadians, in transformAngle() 440 transformPoint(matrix, x, y, &x, &y); in transformAngle() 454 void MotionEvent::transform(const float matrix[9]) { in transform() 464 transformPoint(matrix, rawX + oldXOffset, rawY + oldYOffset, &newX, &newY); in transform() 471 transformPoint(matrix, 0, 0, &originX, &originY); in transform() 479 transformPoint(matrix, x, y, &x, &y); in transform() [all …]
|
/frameworks/ex/carousel/test/src/com/android/carouseltest/ |
D | TaskSwitcherActivity.java | 74 Matrix matrix; field in TaskSwitcherActivity.ActivityDescription 92 matrix = null; in clear() 186 Matrix matrix = new Matrix(); 187 matrix.setRotate(90.0f, (float) thumbWidth / 2, (float) thumbHeight / 2); 188 info.matrix = matrix; 190 info.matrix = null; 259 Matrix matrix = new Matrix(); in updateRunningTasks() local 260 matrix.setRotate(90.0f, (float) thumbWidth / 2, (float) thumbHeight / 2); in updateRunningTasks() 261 desc.matrix = matrix; in updateRunningTasks()
|
/frameworks/base/core/java/android/view/ |
D | GLES20DisplayList.java | 150 public void setMatrix(Matrix matrix) { in setMatrix() argument 152 nSetStaticMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance); in setMatrix() 157 public Matrix getMatrix(Matrix matrix) { in getMatrix() argument 159 nGetMatrix(mFinalizer.mNativeDisplayList, matrix.native_instance); in getMatrix() 161 return matrix; in getMatrix() 165 public void setAnimationMatrix(Matrix matrix) { in setAnimationMatrix() argument 168 (matrix != null) ? matrix.native_instance : 0); in setAnimationMatrix() 474 private static native void nGetMatrix(int displayList, int matrix); in nGetMatrix() argument
|
D | DisplayList.java | 314 public abstract void setMatrix(Matrix matrix); in setMatrix() argument 340 public abstract Matrix getMatrix(Matrix matrix); in getMatrix() argument 352 public abstract void setAnimationMatrix(Matrix matrix); in setAnimationMatrix() argument
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Matrix_Delegate.java | 84 public void set(Matrix_Delegate matrix) { in set() argument 85 System.arraycopy(matrix.mValues, 0, mValues, 0, MATRIX_SIZE); in set() 118 public static float[] makeValues(AffineTransform matrix) { in makeValues() argument 120 values[0] = (float) matrix.getScaleX(); in makeValues() 121 values[1] = (float) matrix.getShearX(); in makeValues() 122 values[2] = (float) matrix.getTranslateX(); in makeValues() 123 values[3] = (float) matrix.getShearY(); in makeValues() 124 values[4] = (float) matrix.getScaleY(); in makeValues() 125 values[5] = (float) matrix.getTranslateY(); in makeValues() 133 public static Matrix_Delegate make(AffineTransform matrix) { in make() argument [all …]
|