Home
last modified time | relevance | path

Searched refs:Matrix (Results 1 – 25 of 112) sorted by relevance

12345

/cts/tests/tests/opengl/src/android/opengl/cts/
DMatrixTest.java23 import android.opengl.Matrix;
40 () -> Matrix.multiplyMM(null, 0, mat, 0, mat, 0)); in testMultiplyMM()
42 () -> Matrix.multiplyMM( mat, 0, null, 0, mat, 0)); in testMultiplyMM()
44 () -> Matrix.multiplyMM( mat, 0, mat, 0, null, 0)); in testMultiplyMM()
46 () -> Matrix.multiplyMM( mat, 1, mat, 0, mat, 0)); in testMultiplyMM()
48 () -> Matrix.multiplyMM( mat, 0, mat, 1, mat, 0)); in testMultiplyMM()
50 () -> Matrix.multiplyMM( mat, 0, mat, 0, mat, 1)); in testMultiplyMM()
57 Matrix.setIdentityM(matLhs, 0); in testMultiplyMM()
58 Matrix.setIdentityM(matRhs, 0); in testMultiplyMM()
59 Matrix.multiplyMM(matResult, 0, matLhs, 0, matRhs, 0); in testMultiplyMM()
[all …]
/cts/tests/openglperf2/jni/graphics/
DMatrix.h17 class Matrix {
21 Matrix();
22 Matrix(const Matrix& src);
24 bool equals(const Matrix& src);
28 void loadWith(const Matrix& src);
36 void multiply(const Matrix& l, const Matrix& r);
41 static Matrix* newLookAt(float eyeX, float eyeY, float eyeZ, float centerX,
44 static Matrix* newFrustum(float left, float right, float bottom, float top,
47 static Matrix* newTranslate(float x, float y, float z);
49 static Matrix* newScale(float x, float y, float z);
[all …]
DMatrix.cpp23 Matrix::Matrix() { in Matrix() function in Matrix
27 Matrix::Matrix(const Matrix& src) { in Matrix() function in Matrix
31 void Matrix::print(const char* label) { in print()
39 bool Matrix::equals(const Matrix& src) { in equals()
50 void Matrix::loadWith(const Matrix& src) { in loadWith()
54 void Matrix::identity() { in identity()
76 void Matrix::translate(float x, float y, float z) { in translate()
77 Matrix* m = newTranslate(x, y, z); in translate()
78 Matrix* temp = new Matrix(*this); in translate()
86 void Matrix::scale(float x, float y, float z) { in scale()
[all …]
DTransformationNode.h23 explicit TransformationNode(Matrix* matrix);
26 virtual void before(Program& program, Matrix& model, Matrix& view,
27 Matrix& projection);
28 virtual void after(Program& program, Matrix& model, Matrix& view,
29 Matrix& projection);
31 Matrix mSavedModelMatrix;
32 Matrix* mMatrix;
DProgramNode.h25 void drawProgram(Matrix& model, Matrix& view, Matrix& projection);
27 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection);
28 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
DSceneGraphNode.h27 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection) = 0;
28 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection) = 0;
29 void draw(Program& program, Matrix& model, Matrix& view, Matrix& projection);
DProgramNode.cpp21 void ProgramNode::before(Program& program, Matrix& model, Matrix& view, Matrix& projection) { in before()
25 void ProgramNode::after(Program& program, Matrix& model, Matrix& view, Matrix& projection) { in after()
29 void ProgramNode::drawProgram(Matrix& model, Matrix& view, Matrix& projection) { in drawProgram()
DTransformationNode.cpp16 TransformationNode::TransformationNode(Matrix* matrix) : in TransformationNode()
24 void TransformationNode::before(Program& program, Matrix& model, Matrix& view, in before()
25 Matrix& projection) { in before()
32 void TransformationNode::after(Program& program, Matrix& model, Matrix& view, in after()
33 Matrix& projection) { in after()
DProgram.cpp21 void Program::before(Matrix& model, Matrix& view, Matrix& projection) { in before()
25 void Program::after(Matrix& model, Matrix& view, Matrix& projection) { in after()
DProgram.h25 virtual void before(Matrix& model, Matrix& view, Matrix& projection);
26 virtual void after(Matrix& model, Matrix& view, Matrix& projection);
DPerspectiveProgram.h28 virtual void before(Matrix& model, Matrix& view, Matrix& projection);
30 Matrix mMVMatrix;
31 Matrix mMVPMatrix;
32 Matrix mLightModelMatrix;
DPerspectiveMeshNode.h28 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection);
29 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
DMeshNode.h27 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection) = 0;
28 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection) = 0;
DTexturedMeshNode.h28 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection);
29 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
DTexturedMeshNode.cpp21 void TexturedMeshNode::before(Program& program, Matrix& model, Matrix& view, Matrix& projection) { in before()
39 void TexturedMeshNode::after(Program& program, Matrix& model, Matrix& view, Matrix& projection) { in after()
/cts/tests/tests/graphics/src/android/graphics/cts/
DCameraTest.java24 import android.graphics.Matrix;
57 Matrix m = new Matrix(); in testMatrixPreCompare()
68 Matrix m1 = new Matrix(); in testTranslate()
71 Matrix m2 = new Matrix(); in testTranslate()
84 Matrix m1 = new Matrix(); in testRotateX()
87 Matrix m2 = new Matrix(); in testRotateX()
100 Matrix m1 = new Matrix(); in testRotateY()
103 Matrix m2 = new Matrix(); in testRotateY()
116 Matrix m1 = new Matrix(); in testRotateZ()
119 Matrix m2 = new Matrix(); in testRotateZ()
[all …]
DMatrixTest.java26 import android.graphics.Matrix;
27 import android.graphics.Matrix.ScaleToFit;
46 private Matrix mMatrix;
51 mMatrix = new Matrix(); in setup()
57 assertTrue(new Matrix().isIdentity()); in testConstructor()
58 assertTrue(new Matrix(mMatrix).isIdentity()); in testConstructor()
70 assertNotNull(Matrix.IDENTITY_MATRIX); in testIdentityMatrix()
71 assertTrue(Matrix.IDENTITY_MATRIX.isIdentity()); in testIdentityMatrix()
72 assertTrue(Matrix.IDENTITY_MATRIX.isAffine()); in testIdentityMatrix()
73 assertTrue(Matrix.IDENTITY_MATRIX.rectStaysRect()); in testIdentityMatrix()
[all …]
DShaderTest.java26 import android.graphics.Matrix;
51 Matrix m = new Matrix(); in testAccessLocalMatrix()
68 Matrix skew10x20 = new Matrix(); in testGetSetLocalMatrix()
71 Matrix scale2x3 = new Matrix(); in testGetSetLocalMatrix()
81 Matrix paramMatrix = new Matrix(skew10x20); in testGetSetLocalMatrix()
94 Matrix matrix = new Matrix(); in testGetWithNullParam()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DModelMatrixCalculator.java23 import android.opengl.Matrix;
59 Matrix.setIdentityM(mModelMatrix, 0); in ModelMatrixCalculator()
78 Matrix.setIdentityM(imu2OpenGlMatrix, 0); in calculateModelMatrix()
79 Matrix.multiplyMM(imu2OpenGlMatrix, 0, mColorCamera2IMUMatrix, 0, in calculateModelMatrix()
82 Matrix.setIdentityM(invertedDevice2ImuMatrix, 0); in calculateModelMatrix()
83 Matrix.invertM(invertedDevice2ImuMatrix, 0, mDevice2IMUMatrix, 0); in calculateModelMatrix()
85 Matrix.setIdentityM(extrinsicsBasedMatrix, 0); in calculateModelMatrix()
86 Matrix.multiplyMM(extrinsicsBasedMatrix, 0, invertedDevice2ImuMatrix, 0, in calculateModelMatrix()
91Matrix.translateM(extrinsicsBasedMatrix, 0, requiredTranslations[X], requiredTranslations[Y], in calculateModelMatrix()
96 Matrix.setIdentityM(quaternionMatrix, 0); in calculateModelMatrix()
[all …]
/cts/tests/openglperf2/jni/reference/scene/flocking/
DWaterMeshNode.h28 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection);
29 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
/cts/tests/openglperf2/jni/reference/scene/glowing/
DGlowingScene.h32 Matrix* setUpModelMatrix();
33 Matrix* setUpViewMatrix();
34 Matrix* setUpProjectionMatrix(float width, float height);
43 Matrix* mFboModelMatrix;
44 Matrix* mFboViewMatrix;
45 Matrix* mFboProjectionMatrix;
DBlurMeshNode.h28 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection);
29 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
/cts/tests/tests/transition/src/android/transition/cts/
DChangeImageTransformTest.java29 import android.graphics.Matrix;
57 Matrix mStartMatrix;
58 Matrix mEndMatrix;
120 Matrix identityMatrix = new Matrix(); in testNoAnimationForDrawableWithoutSize()
135 private Matrix centerMatrix() { in centerMatrix()
144 Matrix matrix = new Matrix(); in centerMatrix()
149 private Matrix fitXYMatrix() { in fitXYMatrix()
158 Matrix matrix = new Matrix(); in fitXYMatrix()
163 private Matrix centerCropMatrix() { in centerCropMatrix()
179 Matrix matrix = new Matrix(); in centerCropMatrix()
[all …]
/cts/tests/openglperf2/jni/reference/scene/
DScene.h37 virtual Matrix* setUpModelMatrix() = 0;
38 virtual Matrix* setUpViewMatrix() = 0;
39 virtual Matrix* setUpProjectionMatrix(float width, float height) = 0;
47 Matrix* mModelMatrix;
48 Matrix* mViewMatrix;
49 Matrix* mProjectionMatrix;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/Renderable/
DRenderable.java25 import android.opengl.Matrix;
58 Matrix.setIdentityM(mMvMatrix, 0); in updateMvpMatrix()
59 Matrix.setIdentityM(mMvpMatrix, 0); in updateMvpMatrix()
60 Matrix.multiplyMM(mMvMatrix, 0, viewMatrix, 0, getModelMatrix(), 0); in updateMvpMatrix()
61 Matrix.multiplyMM(mMvpMatrix, 0, projectionMatrix, 0, mMvMatrix, 0); in updateMvpMatrix()
85 Matrix.setIdentityM(getModelMatrix(), 0); in setRotationAngle()
86 Matrix.rotateM(getModelMatrix(), 0, newAngle, 0.0f, 0.0f, 1.0f); in setRotationAngle()
87 Matrix.translateM(getModelMatrix(), 0, in setRotationAngle()

12345