/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Alpha8BitmapActivity.java | 25 import android.graphics.Matrix; 81 Matrix matrix = new Matrix(); local 82 matrix.setScale(2.0f, 2.0f); 83 matrix.postTranslate(0.0f, mBitmap1.getHeight()); 84 canvas.drawBitmap(mBitmap1, matrix, mBitmapPaint);
|
/frameworks/support/samples/SupportTransitionDemos/src/main/java/com/example/android/support/transition/widget/ |
ChangeImageTransformUsage.java | 19 import android.graphics.Matrix; 71 case R.id.matrix: 72 mPhoto.setScaleType(ImageView.ScaleType.MATRIX); 73 final Matrix matrix = new Matrix(); 74 matrix.setRotate(45.f); 75 matrix.postTranslate(200, 10); 76 mPhoto.setImageMatrix(matrix); 86 findViewById(R.id.matrix).setOnClickListener(listener) [all...] |
/frameworks/support/transition/src/main/java/androidx/transition/ |
PatternPathMotion.java | 21 import android.graphics.Matrix; 48 private final Matrix mTempMatrix = new Matrix();
|
/packages/apps/Camera2/src/com/android/camera/app/ |
AppController.java | 24 import android.graphics.Matrix; 217 * matrix of the preview TextureView. It does not modify the matrix before 220 * @param matrix transform matrix to be set on preview TextureView 223 public void updatePreviewTransformFullscreen(Matrix matrix, float aspectRatio); 234 * matrix of the preview TextureView. It is encouraged to use 236 * module needs to rotate the surface texture using transform matrix. 238 * @param matrix transform matrix to be set on preview TextureVie [all...] |
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
CameraTest.java | 23 import android.graphics.Matrix; 77 Matrix matrix = new Matrix(); local 81 Util.prepareMatrix(matrix, false, 0, 800, 480); 84 matrix.mapPoints(points); 87 Util.prepareMatrix(matrix, false, 90, 800, 480); 90 matrix.mapPoints(points); 93 Util.prepareMatrix(matrix, false, 180, 800, 480); 96 matrix.mapPoints(points) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/ |
OrientedBitmapDrawable.java | 22 import android.graphics.Matrix; 88 final Matrix matrix = new Matrix(); local 89 matrix.setRotate(mOrientationParams.rotation, mCenterX, mCenterY); 91 matrix.mapRect(rotatedRect);
|
/external/eigen/Eigen/src/SparseCore/ |
SparseSolverBase.h | 27 // we process the sparse rhs per block of NbColsAtOnce columns temporarily stored into a dense matrix. 33 Eigen::Matrix<DestScalar,Dynamic,Dynamic> tmp(size,tmpCols); 34 Eigen::Matrix<DestScalar,Dynamic,Dynamic> tmpX(size,tmpCols); 51 Eigen::Matrix<DestScalar,Dynamic,1> rhs_dense(rhs); 52 Eigen::Matrix<DestScalar,Dynamic,1> dest_dense(size); 91 eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b"); 104 eigen_assert(derived().rows()==b.rows() && "solve(): invalid number of rows of the right hand side matrix b");
|
/external/eigen/bench/ |
basicbenchmark.cpp | 10 // this is the list of matrix type and size we want to bench: 11 // ((suffix) (matrix size) (number of iterations)) 25 BOOST_PP_CAT(Matrix, BOOST_PP_SEQ_HEAD(EL)) (\
|
vdw_new.cpp | 18 typedef Matrix<SCALAR, Eigen::Dynamic, 1> Vec;
|
/external/eigen/blas/ |
BandTriangularSolver.h | 16 * Solve Ax=b with A a band triangular matrix 25 typedef Map<const Matrix<LhsScalar,Dynamic,Dynamic,RowMajor>, 0, OuterStride<> > LhsMap; 26 typedef Map<Matrix<RhsScalar,Dynamic,1> > RhsMap; 61 typedef Map<const Matrix<LhsScalar,Dynamic,Dynamic,ColMajor>, 0, OuterStride<> > LhsMap; 62 typedef Map<Matrix<RhsScalar,Dynamic,1> > RhsMap;
|
PackedTriangularMatrixVector.h | 30 typedef Map<const Matrix<LhsScalar,Dynamic,1> > LhsMap; 32 typedef Map<Matrix<ResScalar,Dynamic,1> > ResMap; 59 typedef Map<const Matrix<LhsScalar,Dynamic,1> > LhsMap; 61 typedef Map<const Matrix<RhsScalar,Dynamic,1> > RhsMap;
|
PackedTriangularSolverVector.h | 28 typedef Map<const Matrix<LhsScalar,Dynamic,1> > LhsMap; 38 .cwiseProduct(Map<const Matrix<RhsScalar,Dynamic,1> >(rhs+(IsLower ? 0 : i+1),pi))).sum(); 56 typedef Map<const Matrix<LhsScalar,Dynamic,1> > LhsMap; 67 Map<Matrix<RhsScalar,Dynamic,1> >(rhs+(IsLower? i+1 : 0),r) -=
|
/external/eigen/doc/examples/ |
class_VectorBlock.cpp | 22 Matrix<int,1,6> v; v << 1,2,3,4,5,6;
|
/external/eigen/test/ |
diagonal.cpp | 89 CALL_SUBTEST_1( diagonal(Matrix<float, 1, 1>()) ); 90 CALL_SUBTEST_1( diagonal(Matrix<float, 4, 9>()) ); 91 CALL_SUBTEST_1( diagonal(Matrix<float, 7, 3>()) ); 97 CALL_SUBTEST_1( diagonal(Matrix<float,Dynamic,4>(3, 4)) );
|
is_same_dense.cpp | 16 typedef Matrix<double,Dynamic,Dynamic,ColMajor> ColMatrixXd;
|
resize.cpp | 17 Matrix<double, rows, cols> C;
|
/external/llvm/lib/CodeGen/ |
AllocationOrder.h | 42 const LiveRegMatrix *Matrix);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowImageView.java | 6 import android.graphics.Matrix; 26 private Matrix matrix; field in class:ShadowImageView 140 public void setImageMatrix(Matrix matrix) { 141 this.matrix = new Matrix(matrix); 146 if (matrix != null) { 147 canvas.translate(shadowOf(matrix).getTransX(), shadowOf(matrix [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
CanvasTest.java | 42 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 43 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 45 assertEquals("Bitmap for file:/an/image.jpg transformed by matrix\n" + 46 "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(canvas).getDescription()); 48 assertEquals("Bitmap for file:/an/image.jpg transformed by matrix\n" + 49 "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(targetBitmap).getDescription()); 55 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 56 canvas.drawBitmap(imageBitmap, new Matrix(), new Paint()); 58 assertEquals("Bitmap for file:/an/image.jpg transformed by matrix\n" + 59 "Bitmap for file:/an/image.jpg transformed by matrix", Robolectric.visualize(canvas)) [all...] |
/external/tensorflow/tensorflow/contrib/image/kernels/ |
adjust_hsv_in_yiq_op.h | 38 float* matrix) { 40 "Size of matrix should be 9."); 41 // Projection matrix from RGB to YIQ. Numbers from wikipedia 53 // Construct hsv linear transformation matrix in YIQ space. 63 // Compute final transformation matrix = inverse_yiq * hsv_transform * yiq 64 Eigen::Map<Eigen::Matrix<float, 3, 3, Eigen::ColMajor>> eigen_matrix(matrix);
|
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/ |
hyperplane_lsh_probes.cc | 35 using Matrix = Eigen::Matrix<CoordinateType, Eigen::Dynamic, Eigen::Dynamic, 37 using ConstMatrixMap = Eigen::Map<const Matrix>; 38 using MatrixMap = Eigen::Map<Matrix>; 100 auto products_eigen_tensor = products_tensor.matrix<CoordinateType>(); 114 auto probes_eigen_tensor = probes_tensor->matrix<int32>(); 115 auto tables_eigen_tensor = tables_tensor->matrix<int32>();
|
/external/tensorflow/tensorflow/contrib/rnn/kernels/ |
gru_ops.cc | 152 ctx, device, x_tensor->matrix<T>(), h_prev_tensor->matrix<T>(), 153 w_ru_tensor->matrix<T>(), w_c_tensor->matrix<T>(), 154 b_ru_tensor->vec<T>(), b_c_tensor->vec<T>(), r_u_bar_tensor.matrix<T>(), 155 r_tensor->matrix<T>(), u_tensor->matrix<T>(), c_tensor->matrix<T>(), 156 h_tensor->matrix<T>(), x_h_prev_tensor.matrix<T>() [all...] |
/external/tensorflow/tensorflow/contrib/tpu/ops/ |
tpu_embedding_ops.cc | 98 TF_RETURN_IF_ERROR(c->set_output("parameters", {c->Matrix(num_rows, width)})); 170 TF_RETURN_IF_ERROR(c->set_output("parameters", {c->Matrix(num_rows, width)})); 172 c->set_output("accumulators", {c->Matrix(num_rows, width)})); 211 Embedding lookups are equivalent to sparse-dense matrix multiplications: the 212 sparse matrix contains nonzeros in column j in order to retrieve row j from the 219 specify a COO-format sparse matrix. For the kth table, the row indices, 220 column indices, and nonzero values of the COO sparse matrix are specified by 228 sparse matrix representing the embedding lookups for each table. 230 COO sparse matrix representing the embedding lookups for each table. 232 of the COO sparse matrix representing the embedding lookups for each table [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
gather_nd_op.h | 41 typename TTypes<T>::Matrix Tout);
|
gather_nd_op_cpu_impl.h | 47 typename TTypes<T>::Matrix Tout, std::atomic<Index>* error_loc) 88 mutable typename TTypes<T>::Matrix Tout_; 102 typename TTypes<T>::Matrix Tout) { 133 typename TTypes<T>::Matrix Tout);
|