| /development/ndk/platforms/android-21/samples/native-codec/src/com/example/nativecodec/ |
| MyGLSurfaceView.java | 32 import android.opengl.Matrix; 80 Matrix.setIdentityM(mSTMatrix, 0); 127 Matrix.setIdentityM(mMMatrix, 0); 128 Matrix.rotateM(mMMatrix, 0, 30, (float)Math.sin(d), (float)Math.cos(d), 0); 129 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 130 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 145 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); 222 Matrix.setLookAtM(mVMatrix, 0, 0, 0, 4f, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
| /frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
| MyGLSurfaceView.java | 34 import android.opengl.Matrix; 90 Matrix.setIdentityM(mSTMatrix, 0); 91 Matrix.setIdentityM(mMMatrix, 0); 92 Matrix.rotateM(mMMatrix, 0, 20, 0, 1, 0); 128 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 129 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 143 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); 219 Matrix.setLookAtM(mVMatrix, 0, 0, 0, 4f, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
| /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
| GLDepthTestActivity.java | 30 import android.opengl.Matrix; 167 Matrix.setIdentityM(mMMatrix, 0); 168 Matrix.translateM(mMMatrix, 0, 0, step, step / 2); 169 Matrix.scaleM(mMMatrix, 0, 2.0f, 1.0f, 1.0f); 170 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 171 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 186 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); 257 Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
|
| /developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
| OpenGLWatchFaceService.java | 24 import android.opengl.Matrix; 65 /** Projection transformation matrix. Converts from 3D to 2D. */ 70 * relative coordinates. One matrix per camera position. 74 /** The view transformation matrix to use in ambient mode */ 79 * coordinates. One matrix per degree of rotation. 84 * Products of {@link #mViewMatrices} and {@link #mProjectionMatrix}. One matrix per camera 198 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1); 203 // Set the camera position (View matrix). When active, move the eye around to show 208 Matrix.setLookAtM(mViewMatrices[i], 215 Matrix.setLookAtM(mAmbientViewMatrix [all...] |
| /developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
| OpenGLWatchFaceService.java | 24 import android.opengl.Matrix; 65 /** Projection transformation matrix. Converts from 3D to 2D. */ 70 * relative coordinates. One matrix per camera position. 74 /** The view transformation matrix to use in ambient mode */ 79 * coordinates. One matrix per degree of rotation. 84 * Products of {@link #mViewMatrices} and {@link #mProjectionMatrix}. One matrix per camera 198 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1); 203 // Set the camera position (View matrix). When active, move the eye around to show 208 Matrix.setLookAtM(mViewMatrices[i], 215 Matrix.setLookAtM(mAmbientViewMatrix [all...] |
| /development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
| OpenGLWatchFaceService.java | 24 import android.opengl.Matrix; 65 /** Projection transformation matrix. Converts from 3D to 2D. */ 70 * relative coordinates. One matrix per camera position. 74 /** The view transformation matrix to use in ambient mode */ 79 * coordinates. One matrix per degree of rotation. 84 * Products of {@link #mViewMatrices} and {@link #mProjectionMatrix}. One matrix per camera 198 Matrix.setRotateM(mModelMatrices[i], 0, i, 0, 0, 1); 203 // Set the camera position (View matrix). When active, move the eye around to show 208 Matrix.setLookAtM(mViewMatrices[i], 215 Matrix.setLookAtM(mAmbientViewMatrix [all...] |
| /external/eigen/Eigen/src/Core/ |
| Matrix.h | 16 /** \class Matrix 19 * \brief The matrix class, also used for vectors and row-vectors 21 * The %Matrix class is the work-horse for all \em dense (\ref dense "note") matrices and vectors within Eigen. 24 * The %Matrix class encompasses \em both fixed-size and dynamic-size objects (\ref fixedsize "note"). 42 * \li \c Matrix2d is a 2x2 square matrix of doubles (\c Matrix<double, 2, 2>) 43 * \li \c Vector4f is a vector of 4 floats (\c Matrix<float, 4, 1>) 44 * \li \c RowVector3i is a row-vector of 3 ints (\c Matrix<int, 1, 3>) 46 * \li \c MatrixXf is a dynamic-size matrix of floats (\c Matrix<float, Dynamic, Dynamic> [all...] |
| Map.h | 19 * \brief A matrix or vector expression mapping an existing array of data. 21 * \tparam PlainObjectType the equivalent matrix type of the mapped data 28 * This class represents a matrix or vector expression mapping an existing array of data. 34 * Here's an example of simply mapping a contiguous array as a \ref TopicStorageOrders "column-major" matrix: 47 * as a column-major matrix, 'outer stride' means the pointer increment between two consecutive columns. 157 /** Constructor in the dynamic-size matrix case. 160 * \param nbRows the number of rows of the matrix expression 161 * \param nbCols the number of columns of the matrix expression 184 inline Matrix<_Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols> 185 ::Matrix(const Scalar *data [all...] |
| /external/gemmlowp/test/ |
| test.h | 48 // gemmlowp itself doesn't have a Matrix class, only a MatrixMap class, 52 class Matrix : public MatrixMap<tScalar, tOrder> { 65 Matrix() : Map(nullptr, 0, 0, 0) {} 67 Matrix(int rows, int cols) : Map(nullptr, 0, 0, 0) { Resize(rows, cols); } 69 Matrix(const Matrix& other) : Map(nullptr, 0, 0, 0) { *this = other; } 71 Matrix& operator=(const Matrix& other) { 77 friend bool operator==(const Matrix& a, const Matrix& b) [all...] |
| /external/llvm/include/llvm/CodeGen/ |
| LiveRegMatrix.h | 11 // along two dimensions: Slot indexes and register units. The matrix is used by 46 // The matrix is represented as a LiveIntervalUnion per register unit. 48 LiveIntervalUnion::Array Matrix; 135 /// Query a line of the assigned virtual register matrix directly. 143 LiveIntervalUnion *getLiveUnions() { return &Matrix[0]; }
|
| /frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
| GL2CameraEye.java | 37 import android.opengl.Matrix; 146 Matrix.setIdentityM(mSTMatrix, 0); 147 Matrix.setIdentityM(mMMatrix, 0); 221 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 222 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 237 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); 322 Matrix.setLookAtM(mVMatrix, 0, 0, 0, 5f, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 376 Matrix.setIdentityM(mMMatrix, 0); 377 Matrix.translateM(mMMatrix, 0, mPos[0], mPos[1], mPos[2]);
|
| /cts/tests/tests/openglperf/src/android/openglperf/cts/ |
| PlanetsRenderer.java | 25 import android.opengl.Matrix; 157 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); 158 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 159 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 260 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); 261 Matrix.setLookAtM(mVMatrix, 0, 0, 3, 3, 0f, 0f, 0f, 0f, 1.0f, 0.0f); 271 // simple shader with MVP matrix and text coord
|
| /external/icu/android_icu4j/src/main/java/android/icu/text/ |
| PluralRanges.java | 30 private Matrix matrix = new Matrix(); field in class:PluralRanges 46 private static final class Matrix implements Comparable<Matrix>, Cloneable { 54 Matrix() { 149 if (!(other instanceof Matrix)) { 152 return 0 == compareTo((Matrix) other); 155 public int compareTo(Matrix o) { 166 public Matrix clone() [all...] |
| /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
| PluralRanges.java | 28 private Matrix matrix = new Matrix(); field in class:PluralRanges 44 private static final class Matrix implements Comparable<Matrix>, Cloneable { 52 Matrix() { 147 if (!(other instanceof Matrix)) { 150 return 0 == compareTo((Matrix) other); 153 public int compareTo(Matrix o) { 164 public Matrix clone() [all...] |
| /external/llvm/include/llvm/CodeGen/PBQP/ |
| CostAllocator.h | 115 typedef MatrixT Matrix;
|
| ReductionRules.h | 33 typedef typename GraphT::Matrix Matrix; 42 const Matrix &ECosts = G.getEdgeCosts(EId); 77 typedef typename GraphT::Matrix Matrix; 95 const Matrix *YXECosts = FlipEdge1 ? 96 new Matrix(G.getEdgeCosts(YXEId).transpose()) : 99 const Matrix *ZXECosts = FlipEdge2 ? 100 new Matrix(G.getEdgeCosts(ZXEId).transpose()) : 133 const Matrix &YZECosts = G.getEdgeCosts(YZEId) [all...] |
| /prebuilts/go/darwin-x86/src/runtime/ |
| proc_test.go | 547 type Matrix [][]float64 561 func makeMatrix(n int) Matrix { 562 m := make(Matrix, n) 572 func matmult(done chan<- struct{}, A, B, C Matrix, i0, i1, j0, j1, k0, k1, threshold int) {
|
| /prebuilts/go/linux-x86/src/runtime/ |
| proc_test.go | 547 type Matrix [][]float64 561 func makeMatrix(n int) Matrix { 562 m := make(Matrix, n) 572 func matmult(done chan<- struct{}, A, B, C Matrix, i0, i1, j0, j1, k0, k1, threshold int) {
|
| /external/deqp/framework/common/ |
| tcuMatrix.hpp | 23 * \brief Templatized matrix class. 33 // Templated matrix class. 35 class Matrix 48 Matrix (void); 49 explicit Matrix (const T& src); 50 explicit Matrix (const T src[Rows*Cols]); 51 Matrix (const Vector<T, Rows>& src); 52 Matrix (const Matrix<T, Rows, Cols>& src); 53 ~Matrix (void) 122 namespace matrix namespace in namespace:tcu [all...] |
| /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
| GLES20Canvas.java | 23 import android.opengl.Matrix; 150 // Projection matrix 270 Matrix.setIdentityM(mTempTextureMatrix, 0); 271 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 351 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 357 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); 394 Matrix.translateM(mMatrices, mCurrentMatrixIndex, x, y, z); 398 // (1) we knows z = 0, (2) we inline the Matrix.translateM call 422 float[] matrix = mMatrices; local [all...] |
| /packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
| GLES20Canvas.java | 23 import android.opengl.Matrix; 150 // Projection matrix 270 Matrix.setIdentityM(mTempTextureMatrix, 0); 271 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 351 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 352 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 356 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 357 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); 394 Matrix.translateM(mMatrices, mCurrentMatrixIndex, x, y, z); 398 // (1) we knows z = 0, (2) we inline the Matrix.translateM call 422 float[] matrix = mMatrices; local [all...] |
| GLES11Canvas.java | 24 import android.opengl.Matrix; 146 float matrix[] = mMatrixValues; local 147 Matrix.setIdentityM(matrix, 0); 150 Matrix.translateM(matrix, 0, 0, height, 0); 151 Matrix.scaleM(matrix, 0, 1, -1, 1); 230 Matrix.translateM(mMatrixValues, 0, x, y, z); 234 // (1) we knows z = 0, (2) we inline the Matrix.translateM call [all...] |
| /packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
| GLES20Canvas.java | 23 import android.opengl.Matrix; 148 // Projection matrix 268 Matrix.setIdentityM(mTempTextureMatrix, 0); 269 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 349 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); 350 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); 354 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); 355 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); 392 Matrix.translateM(mMatrices, mCurrentMatrixIndex, x, y, z); 396 // (1) we knows z = 0, (2) we inline the Matrix.translateM call 420 float[] matrix = mMatrices; local [all...] |
| /cts/tests/camera/src/android/hardware/cts/ |
| CameraGLTest.java | 27 import android.opengl.Matrix; 646 Matrix.setIdentityM(mSTMatrix, 0); 647 Matrix.setIdentityM(mMMatrix, 0); 701 Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mMMatrix, 0); 702 Matrix.multiplyMM(mMVPMatrix, 0, mProjMatrix, 0, mMVPMatrix, 0); 718 Matrix.frustumM(mProjMatrix, 0, -mRatio, mRatio, -1, 1, 3, 7); [all...] |
| /cts/tests/openglperf2/jni/graphics/ |
| Matrix.cpp | 15 #include "Matrix.h" 23 Matrix::Matrix() { 27 Matrix::Matrix(const Matrix& src) { 31 void Matrix::print(const char* label) { 39 bool Matrix::equals(const Matrix& src) { 50 void Matrix::loadWith(const Matrix& src) [all...] |