/cts/tests/openglperf2/test/ |
D | MatrixTest.cpp | 35 Matrix m1; in TEST() 36 Matrix m2; in TEST() 42 Matrix* clone = new Matrix(m1); in TEST() 50 Matrix m; in TEST() 57 checkValues(m.mData, expected, Matrix::MATRIX_SIZE); in TEST() 62 Matrix m1; in TEST() 64 float data[Matrix::MATRIX_SIZE]; in TEST() 67 for (int i = 0; i < Matrix::MATRIX_SIZE; i++) { in TEST() 73 Matrix m2; in TEST() 79 checkValues(m2.mData, data, Matrix::MATRIX_SIZE); in TEST() [all …]
|
/cts/tests/openglperf2/jni/graphics/ |
D | Matrix.h | 17 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 …]
|
D | Matrix.cpp | 23 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 …]
|
D | TransformationNode.h | 23 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;
|
D | ProgramNode.h | 25 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);
|
D | SceneGraphNode.h | 27 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);
|
D | ProgramNode.cpp | 21 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()
|
D | TransformationNode.cpp | 16 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()
|
D | Program.cpp | 21 void Program::before(Matrix& model, Matrix& view, Matrix& projection) { in before() 25 void Program::after(Matrix& model, Matrix& view, Matrix& projection) { in after()
|
D | Program.h | 25 virtual void before(Matrix& model, Matrix& view, Matrix& projection); 26 virtual void after(Matrix& model, Matrix& view, Matrix& projection);
|
D | PerspectiveProgram.h | 28 virtual void before(Matrix& model, Matrix& view, Matrix& projection); 30 Matrix mMVMatrix; 31 Matrix mMVPMatrix; 32 Matrix mLightModelMatrix;
|
D | MeshNode.h | 27 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;
|
D | PerspectiveMeshNode.h | 28 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection); 29 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
|
D | TexturedMeshNode.h | 28 virtual void before(Program& program, Matrix& model, Matrix& view, Matrix& projection); 29 virtual void after(Program& program, Matrix& model, Matrix& view, Matrix& projection);
|
D | TexturedMeshNode.cpp | 21 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()
|
D | PerspectiveProgram.cpp | 32 void PerspectiveProgram::before(Matrix& model, Matrix& view, Matrix& projection) { in before() 36 Matrix::multiplyVector(mLightPosInWorldSpace, mLightModelMatrix, mLightPosInModelSpace); in before() 37 Matrix::multiplyVector(mLightPosInEyeSpace, view, mLightPosInWorldSpace); in before()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraTest.java | 20 import android.graphics.Matrix; 43 Matrix m1 = new Matrix(); in testTranslate() 47 Matrix m2 = new Matrix(); in testTranslate() 65 Matrix m1 = new Matrix(); in testRotateX() 69 Matrix m2 = new Matrix(); in testRotateX() 87 Matrix m1 = new Matrix(); in testRotateY() 91 Matrix m2 = new Matrix(); in testRotateY() 109 Matrix m1 = new Matrix(); in testRotateZ() 113 Matrix m2 = new Matrix(); in testRotateZ() 135 Matrix m = new Matrix(); in testApplyToCanvas() [all …]
|
D | MatrixTest.java | 18 import android.graphics.Matrix; 20 import android.graphics.Matrix.ScaleToFit; 24 private Matrix mMatrix; 30 mMatrix = new Matrix(); in setUp() 35 new Matrix(); in testConstractor() 36 new Matrix(mMatrix); in testConstractor() 54 Matrix matrix = new Matrix(); in testSet() 64 Matrix matrix = new Matrix(); in testEquals() 136 Matrix a = new Matrix(); in testSetConcat() 137 Matrix b = new Matrix(); in testSetConcat() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeImageTransformTest.java | 20 import android.graphics.Matrix; 34 Matrix mStartMatrix; 35 Matrix mEndMatrix; 81 private Matrix centerMatrix() { in centerMatrix() 90 Matrix matrix = new Matrix(); in centerMatrix() 95 private Matrix fitXYMatrix() { in fitXYMatrix() 104 Matrix matrix = new Matrix(); in fitXYMatrix() 109 private Matrix centerCropMatrix() { in centerCropMatrix() 125 Matrix matrix = new Matrix(); in centerCropMatrix() 131 private Matrix fitCenterMatrix() { in fitCenterMatrix() [all …]
|
/cts/tests/openglperf2/jni/reference/scene/flocking/ |
D | WaterMeshNode.h | 28 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/ |
D | GlowingScene.h | 32 Matrix* setUpModelMatrix(); 33 Matrix* setUpViewMatrix(); 34 Matrix* setUpProjectionMatrix(float width, float height); 43 Matrix* mFboModelMatrix; 44 Matrix* mFboViewMatrix; 45 Matrix* mFboProjectionMatrix;
|
D | BlurMeshNode.h | 28 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/view/src/android/view/animation/cts/ |
D | TranslateAnimationTest.java | 21 import android.graphics.Matrix; 104 assertEquals(FROM_X_DETLTA, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 105 assertEquals(FROM_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() 110 assertEquals((TO_X_DELTA + FROM_X_DETLTA) / 2, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 111 assertEquals((TO_Y_DELTA + FROM_Y_DELTA) / 2, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() 116 assertEquals(TO_X_DELTA, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 117 assertEquals(TO_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() 124 assertEquals(FROM_X_DETLTA, values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() 125 assertEquals(FROM_Y_DELTA, values[Matrix.MTRANS_Y], POSITION_DELTA); in testApplyTransformation() 132 values[Matrix.MTRANS_X], POSITION_DELTA); in testApplyTransformation() [all …]
|
D | ScaleAnimationTest.java | 23 import android.graphics.Matrix; 84 float trans1X = values[Matrix.MTRANS_X]; in testApplyTransformation() 85 float trans1Y = values[Matrix.MTRANS_Y]; in testApplyTransformation() 90 float trans2X = values[Matrix.MTRANS_X]; in testApplyTransformation() 91 float trans2Y = values[Matrix.MTRANS_Y]; in testApplyTransformation() 96 float trans3X = values[Matrix.MTRANS_X]; in testApplyTransformation() 97 float trans3Y = values[Matrix.MTRANS_Y]; in testApplyTransformation() 124 float trans1X = values[Matrix.MTRANS_X]; 125 float trans1Y = values[Matrix.MTRANS_Y]; 130 float trans2X = values[Matrix.MTRANS_X]; [all …]
|
/cts/tests/openglperf2/jni/reference/scene/ |
D | Scene.h | 37 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;
|