HomeSort by relevance Sort by last modified time
    Searched refs:Matrix (Results 1 - 25 of 89) sorted by null

1 2 3 4

  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
Shader.java 29 private final Matrix mMatrix = new Matrix();
54 * Return true if the shader has a non-identity local matrix.
55 * @param localM If not null, it is set to the shader's local matrix.
56 * @return true if the shader has a non-identity local matrix
58 public boolean getLocalMatrix(Matrix localM) {
67 * Set the shader's local matrix. Passing null will reset the shader's
68 * matrix to identity
69 * @param localM The shader's new local matrix, or null to specify identity
71 public void setLocalMatrix(Matrix localM)
    [all...]
Matrix.java 24 * A matrix implementation overridden by the LayoutLib bridge.
26 public class Matrix extends _Original_Matrix {
31 * Create an identity matrix
33 public Matrix() {
38 * Create a matrix that is a (deep) copy of src
39 * @param src The matrix to copy into this matrix
41 public Matrix(Matrix src) {
46 * Creates a Matrix object from the float array. The array becomes the internal storag
148 Matrix matrix = (Matrix)obj; local
    [all...]
  /frameworks/base/libs/rs/
rsMatrix.h 26 struct Matrix
40 void load(const Matrix *);
45 void loadMultiply(const Matrix *lhs, const Matrix *rhs);
52 void multiply(const Matrix *rhs) {
53 Matrix tmp;
58 Matrix tmp;
63 Matrix tmp;
68 Matrix tmp;
rsMatrix.cpp 28 void Matrix::loadIdentity()
51 void Matrix::load(const float *v)
56 void Matrix::load(const Matrix *v)
61 void Matrix::loadRotate(float rot, float x, float y, float z)
100 void Matrix::loadScale(float x, float y, float z)
108 void Matrix::loadTranslate(float x, float y, float z)
116 void Matrix::loadMultiply(const Matrix *lhs, const Matrix *rhs
    [all...]
  /frameworks/base/tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/
AndroidGraphicsTests.java 19 import android.graphics.Matrix;
42 Matrix m1 = new Matrix();
49 Matrix m2 = new Matrix(m1);
  /frameworks/base/graphics/java/android/graphics/
Shader.java 53 * Return true if the shader has a non-identity local matrix.
54 * @param localM If not null, it is set to the shader's local matrix.
55 * @return true if the shader has a non-identity local matrix
57 public boolean getLocalMatrix(Matrix localM) {
62 * Set the shader's local matrix. Passing null will reset the shader's
63 * matrix to identity
64 * @param localM The shader's new local matrix, or null to specify identity
66 public void setLocalMatrix(Matrix localM) {
Camera.java 34 public void getMatrix(Matrix matrix) {
35 nativeGetMatrix(matrix.native_instance);
  /cts/tests/tests/graphics/src/android/graphics/cts/
CameraTest.java 20 import android.graphics.Matrix;
73 args = {android.graphics.Matrix.class}
77 Matrix m1 = new Matrix();
81 Matrix m2 = new Matrix();
107 args = {android.graphics.Matrix.class}
111 Matrix m1 = new Matrix();
115 Matrix m2 = new Matrix()
    [all...]
ShaderTest.java 21 import android.graphics.Matrix;
44 args = {android.graphics.Matrix.class}
49 args = {android.graphics.Matrix.class}
59 Matrix m = new Matrix();
MatrixTest.java 18 import android.graphics.Matrix;
20 import android.graphics.Matrix.ScaleToFit;
27 @TestTargetClass(Matrix.class)
29 private Matrix mMatrix;
35 mMatrix = new Matrix();
42 method = "Matrix",
47 method = "Matrix",
48 args = {android.graphics.Matrix.class}
57 new Matrix();
58 new Matrix(mMatrix)
91 Matrix matrix = new Matrix(); local
106 Matrix matrix = new Matrix(); local
335 Matrix matrix = new Matrix(); local
427 Matrix matrix = new Matrix(); local
483 Matrix matrix = new Matrix(); local
708 Matrix matrix = new Matrix(); local
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
ScaleToFit.java 37 private final Matrix mMatrix = new Matrix();
40 private static final Matrix.ScaleToFit[] sFits =
41 new Matrix.ScaleToFit[] {
42 Matrix.ScaleToFit.FILL,
43 Matrix.ScaleToFit.START,
44 Matrix.ScaleToFit.CENTER,
45 Matrix.ScaleToFit.END
82 private void drawFit(Canvas canvas, int index, Matrix.ScaleToFit stf) {
BitmapMesh.java 44 private final Matrix mMatrix = new Matrix();
45 private final Matrix mInverse = new Matrix();
Vertices.java 47 private final Matrix mMatrix = new Matrix();
48 private final Matrix mInverse = new Matrix();
  /frameworks/base/core/java/android/view/animation/
Transformation.java 19 import android.graphics.Matrix;
30 * Indicates a transformation that has no effect (alpha = 1 and identity matrix.)
34 * Indicates a transformation that applies an alpha only (uses an identity matrix.)
38 * Indicates a transformation that applies a matrix only (alpha = 1.)
42 * Indicates a transformation that applies an alpha and a matrix.
46 protected Matrix mMatrix;
51 * Creates a new transformation with alpha = 1 and the identity matrix.
64 mMatrix = new Matrix();
115 * @return The 3x3 Matrix representing the trnasformation to apply to the
118 public Matrix getMatrix()
    [all...]
  /packages/apps/Gallery/src/com/android/camera/
RotateBitmap.java 20 import android.graphics.Matrix;
53 public Matrix getRotateMatrix() {
54 // By default this is an identity matrix.
55 Matrix matrix = new Matrix(); local
62 matrix.preTranslate(-cx, -cy);
63 matrix.postRotate(mRotation);
64 matrix.postTranslate(getWidth() / 2, getHeight() / 2);
66 return matrix;
    [all...]
ImageViewTouchBase.java 21 import android.graphics.Matrix;
39 // This matrix is recomputed when we go from the thumbnail image to
41 protected Matrix mBaseMatrix = new Matrix();
46 // This matrix remains the same when we go from the thumbnail image
48 protected Matrix mSuppMatrix = new Matrix();
50 // This is the final matrix which is computed as the concatentation
51 // of the base matrix and the supplementary matrix
    [all...]
  /packages/apps/Gallery3D/src/com/cooliris/media/
RotateBitmap.java 20 import android.graphics.Matrix;
53 public Matrix getRotateMatrix() {
54 // By default this is an identity matrix.
55 Matrix matrix = new Matrix(); local
62 matrix.preTranslate(-cx, -cy);
63 matrix.postRotate(mRotation);
64 matrix.postTranslate(getWidth() / 2, getHeight() / 2);
66 return matrix;
    [all...]
ImageViewTouchBase.java 21 import android.graphics.Matrix;
39 // This matrix is recomputed when we go from the thumbnail image to
41 protected Matrix mBaseMatrix = new Matrix();
46 // This matrix remains the same when we go from the thumbnail image
48 protected Matrix mSuppMatrix = new Matrix();
50 // This is the final matrix which is computed as the concatentation
51 // of the base matrix and the supplementary matrix
    [all...]
MatrixStack.java 19 import android.opengl.Matrix;
25 * A matrix stack, similar to OpenGL ES's internal matrix stack.
43 Matrix.multiplyMV(mCoordsOut, 0, mMatrix, mTop, mCoordsIn, 0);
47 Matrix.frustumM(mMatrix, mTop, left, right, bottom, top, near, far);
56 Matrix.setIdentityM(mMatrix, mTop);
81 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset);
104 Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far);
124 Matrix.setRotateM(mTemp, 0, angle, x, y, z);
126 Matrix.multiplyMM(mMatrix, mTop, mTemp, MATRIX_SIZE, mTemp, 0)
    [all...]
  /cts/tests/tests/view/src/android/view/animation/cts/
ScaleAnimationTest.java 27 import android.graphics.Matrix;
125 float trans1X = values[Matrix.MTRANS_X];
126 float trans1Y = values[Matrix.MTRANS_Y];
131 float trans2X = values[Matrix.MTRANS_X];
132 float trans2Y = values[Matrix.MTRANS_Y];
137 float trans3X = values[Matrix.MTRANS_X];
138 float trans3Y = values[Matrix.MTRANS_Y];
171 float trans1X = values[Matrix.MTRANS_X];
172 float trans1Y = values[Matrix.MTRANS_Y];
177 float trans2X = values[Matrix.MTRANS_X]
    [all...]
TranslateAnimationTest.java 21 import android.graphics.Matrix;
145 assertEquals(FROM_X_DETLTA, values[Matrix.MTRANS_X], POSITION_DELTA);
146 assertEquals(FROM_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA);
151 assertEquals((TO_X_DELTA + FROM_X_DETLTA) / 2, values[Matrix.MTRANS_X], POSITION_DELTA);
152 assertEquals((TO_Y_DELTA + FROM_Y_DELTA) / 2, values[Matrix.MTRANS_Y], POSITION_DELTA);
157 assertEquals(TO_X_DELTA, values[Matrix.MTRANS_X], POSITION_DELTA);
158 assertEquals(TO_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA);
165 assertEquals(FROM_X_DETLTA, values[Matrix.MTRANS_X], POSITION_DELTA);
166 assertEquals(FROM_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA);
173 values[Matrix.MTRANS_X], POSITION_DELTA)
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
Projector.java 19 import android.opengl.Matrix;
43 Matrix.multiplyMM(mMVP, 0, mGrabber.mProjection, 0, mGrabber.mModelView, 0);
47 Matrix.multiplyMV(mV, 0, mMVP, 0, obj, objOffset);
57 * Get the current projection matrix. Has the side-effect of
58 * setting current matrix mode to GL_PROJECTION
67 * Get the current model view matrix. Has the side-effect of
68 * setting current matrix mode to GL_MODELVIEW
MatrixStack.java 19 import android.opengl.Matrix;
25 * A matrix stack, similar to OpenGL ES's internal matrix stack.
44 Matrix.frustumM(mMatrix, mTop, left, right, bottom, top, near, far);
55 Matrix.setIdentityM(mMatrix, mTop);
80 Matrix.multiplyMM(mMatrix, mTop, mTemp, 0, m, offset);
104 Matrix.orthoM(mMatrix, mTop, left, right, bottom, top, near, far);
127 Matrix.setRotateM(mTemp, 0, angle, x, y, z);
129 Matrix.multiplyMM(mMatrix, mTop, mTemp, MATRIX_SIZE, mTemp, 0);
137 Matrix.scaleM(mMatrix, mTop, x, y, z)
    [all...]
  /frameworks/base/core/java/android/gesture/
OrientedBoundingBox.java 19 import android.graphics.Matrix;
60 Matrix matrix = new Matrix(); local
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)
    [all...]
  /frameworks/base/opengl/java/android/opengl/
GLU.java 77 Matrix.setLookAtM(scratch, 0, eyeX, eyeY, eyeZ, centerX, centerY, centerZ,
84 * Set up a 2D orthographic projection matrix
98 * Set up a perspective projection matrix
131 * @param model the current modelview matrix
134 * @param project the current projection matrix
136 * matrix data starts.
155 Matrix.multiplyMM(scratch, M_OFFSET, project, projectOffset,
163 Matrix.multiplyMV(scratch, V2_OFFSET,
197 * @param model the current modelview matrix
200 * @param project the current projection matrix
    [all...]

Completed in 410 milliseconds

1 2 3 4