/development/tools/winscope/src/ |
D | matrix_utils.js | 175 function multiply_vec2(matrix, x, y) { argument 176 if (!matrix) return {x, y}; 181 x: matrix.dsdx * x + matrix.dsdy * y + matrix.tx, 182 y: matrix.dtdx * x + matrix.dtdy * y + matrix.ty 186 function multiply_rect(matrix, rect) { argument 191 var left_top = multiply_vec2(matrix, rect.left, rect.top); 192 var right_top = multiply_vec2(matrix, rect.right, rect.top); 193 var left_bottom = multiply_vec2(matrix, rect.left, rect.bottom); 194 var right_bottom = multiply_vec2(matrix, rect.right, rect.bottom);
|
/development/gsi/gsi_util/gsi_util/utils/ |
D | vintf_utils.py | 23 def checkvintf(manifest, matrix): argument 35 logging.debug('checkvintf %s %s...', manifest, matrix) 39 ['checkvintf', manifest, matrix],
|
/development/gsi/gsi_util/gsi_util/checkers/ |
D | vintf_checker.py | 67 [manifest_filename, matrix_filename]) as [manifest, matrix]: 70 if not matrix: 74 result_ok, stderr = vintf_utils.checkvintf(manifest, matrix)
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | Rotate3dAnimation.java | 77 final Matrix matrix = t.getMatrix(); in applyTransformation() local 86 camera.getMatrix(matrix); in applyTransformation() 89 matrix.preTranslate(-centerX, -centerY); in applyTransformation() 90 matrix.postTranslate(centerX, centerY); in applyTransformation()
|
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
D | SkewableTextView.java | 75 Matrix matrix = new Matrix(); in invalidateSkewedBounds() local 76 matrix.setSkew(-mSkewX, 0); in invalidateSkewedBounds() 78 matrix.mapRect(mTempRect); in invalidateSkewedBounds()
|
/development/samples/devbytes/animation/Anticipation/src/com/example/android/anticipation/ |
D | AnticiButton.java | 221 Matrix matrix = new Matrix(); in invalidateSkewedBounds() local 222 matrix.setSkew(-mSkewX, 0); in invalidateSkewedBounds() 224 matrix.mapRect(mTempRect); in invalidateSkewedBounds()
|
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/ |
D | Camera2VideoFragment.java | 556 Matrix matrix = new Matrix(); in configureTransform() local 563 matrix.setRectToRect(viewRect, bufferRect, Matrix.ScaleToFit.FILL); in configureTransform() 567 matrix.postScale(scale, scale, centerX, centerY); in configureTransform() 568 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform() 570 mTextureView.setTransform(matrix); in configureTransform()
|
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/ |
D | Camera2BasicFragment.java | 746 Matrix matrix = new Matrix(); in configureTransform() local 753 matrix.setRectToRect(viewRect, bufferRect, Matrix.ScaleToFit.FILL); in configureTransform() 757 matrix.postScale(scale, scale, centerX, centerY); in configureTransform() 758 matrix.postRotate(90 * (rotation - 2), centerX, centerY); in configureTransform() 760 matrix.postRotate(180, centerX, centerY); in configureTransform() 762 mTextureView.setTransform(matrix); in configureTransform()
|
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/ |
D | Camera2RawFragment.java | 1103 Matrix matrix = new Matrix(); in configureTransform() local 1127 matrix.setRectToRect(viewRect, bufferRect, Matrix.ScaleToFit.FILL); in configureTransform() 1131 matrix.postScale(scale, scale, centerX, centerY); in configureTransform() 1134 matrix.postRotate(rotation, centerX, centerY); in configureTransform() 1136 mTextureView.setTransform(matrix); in configureTransform()
|