/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | MatrixTest.java | 43 assertEquals(new Matrix(3, 2), new Matrix(2, new double[]{0, 0, 0, 0, 0, 0})); in testConstructors() 51 Matrix m1 = new Matrix(0, 20); in testDegenerate() 52 Matrix m2 = new Matrix(20, 0); in testDegenerate() 61 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testAddition() 62 Matrix m2 = new Matrix(2, new double[]{10, 20, 30, 40}); in testAddition() 63 Matrix m3 = new Matrix(2, new double[]{11, 22, 33, 44}); in testAddition() 72 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testSubtraction() 73 Matrix m2 = new Matrix(2, new double[]{10, 20, 30, 40}); in testSubtraction() 74 Matrix m3 = new Matrix(2, new double[]{11, 22, 33, 44}); in testSubtraction() 83 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testScalarMultiplication() [all …]
|
D | KalmanFilterTest.java | 57 kf.mF = new Matrix(2, new double[]{ in initializePll() 61 kf.mQ = new Matrix(2, new double[]{ in initializePll() 64 kf.mH = new Matrix(2, new double[]{1.0, 0.0}); in initializePll() 66 kf.mR = new Matrix(1, new double[]{measurementVariance}); in initializePll() 68 kf.mP = new Matrix(2, new double[]{ in initializePll() 71 kf.mx = new Matrix(2, 1); in initializePll() 114 kf.update(new Matrix(1, new double[] {idealSignal(i) + noise[i]})); in testPhaseLockedLoop()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/ |
D | MatrixTest.java | 32 Matrix matrix = new Matrix( in invert_invertsMatrixOntoItself() 40 Matrix expected = new Matrix( in invert_invertsMatrixOntoItself() 49 Matrix transform = new Matrix(new float[16]); in transformPoint_zeroZerosVector() 59 Matrix transform = Matrix.identity(); in transformPoint_identityKeepsVector() 69 Matrix transform = Matrix.newRotation(Quaternion.axisAngle(new Vector3(0, 1, 0), F_PI)); in transformPoint_rotate180AroundOrthogonalFlipsVector() 85 Matrix transform = Matrix.newRigidTransform(pose); in transformPoint_isConsistentWithPoseTransformPoint() 100 Matrix translationMat = Matrix.newTranslation(pose.translation); in newRigidTransform_isEquivalentToTrsWithoutScale() 101 Matrix rotationMat = Matrix.newRotation(pose.rotation); in newRigidTransform_isEquivalentToTrsWithoutScale() 104 Matrix product = Matrix.multiply(rotationMat, translationMat); in newRigidTransform_isEquivalentToTrsWithoutScale() 107 Matrix trs = Matrix.newRigidTransform(pose); in newRigidTransform_isEquivalentToTrsWithoutScale() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 22 public class Matrix { class 33 public Matrix(int rows, int cols) { in Matrix() method in Matrix 48 public Matrix(int stride, double[] values) { in Matrix() method in Matrix 60 public Matrix(Matrix that) { in Matrix() method in Matrix 102 public Matrix plus(Matrix that) { in plus() 103 return plus(that, new Matrix(n, m)); in plus() 115 public Matrix plus(Matrix that, Matrix result) { in plus() 132 public Matrix minus(Matrix that) { in minus() 133 return minus(that, new Matrix(n, m)); in minus() 144 public Matrix minus(Matrix that, Matrix result) { in minus() [all …]
|
D | KalmanFilter.java | 25 public Matrix mF; // stateTransition 26 public Matrix mQ; // processNoiseCovariance 27 public Matrix mH; // observationModel 28 public Matrix mR; // observationNoiseCovariance 29 public Matrix mP; // aPosterioriErrorCovariance 30 public Matrix mx; // stateEstimate 44 public void update(Matrix z) { in update() 45 Matrix y = z.minus(mH.dot(mx)); in update() 46 Matrix tS = mH.dot(mP).dotTranspose(mH).plus(mR); in update() 47 Matrix tK = mP.dotTranspose(mH).dot(tS.inverse()); in update()
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | Matrix.java | 32 public class Matrix { class 43 private Matrix() {} in Matrix() method in Matrix 49 public Matrix(float[] data) { in Matrix() method in Matrix 66 public static Matrix identity() { in identity() 67 return new Matrix(IDENTITY_DATA); in identity() 95 public static Matrix multiply(Matrix lhs, Matrix rhs) { in multiply() 107 return new Matrix(result); in multiply() 111 public Matrix invert() { in invert() 154 return new Matrix(m); in invert() 267 public static Matrix newTranslation(Vector3 translation) { in newTranslation() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
D | CameraCoordinateTransformer.java | 19 import android.graphics.Matrix; 30 private final Matrix mCameraToPreviewTransform; 31 private final Matrix mPreviewToCameraTransform; 77 private Matrix cameraToPreviewTransform(boolean mirrorX, int displayOrientation, in cameraToPreviewTransform() 79 Matrix transform = new Matrix(); in cameraToPreviewTransform() 89 Matrix fill = new Matrix(); in cameraToPreviewTransform() 92 Matrix.ScaleToFit.FILL); in cameraToPreviewTransform() 100 private Matrix inverse(Matrix source) { in inverse() 101 Matrix newMatrix = new Matrix(); in inverse()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 9 import android.graphics.Matrix; 69 Matrix rotateMatrix = new Matrix(); in readCroppedBitmap() 79 Matrix inverseRotateMatrix = new Matrix(); in readCroppedBitmap() 190 Matrix m = new Matrix(); in readCroppedBitmap() 192 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); in readCroppedBitmap() 194 Matrix m1 = new Matrix(); in readCroppedBitmap() 196 Matrix m2 = new Matrix(); in readCroppedBitmap() 198 Matrix m3 = new Matrix(); in readCroppedBitmap() 200 Matrix m4 = new Matrix(); in readCroppedBitmap() 201 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); in readCroppedBitmap() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeView.java | 20 import android.opengl.Matrix; 71 Matrix.setIdentityM(mMatrix, TOP_M); in onLayout() 72 Matrix.setIdentityM(mMatrix, LEFT_M); in onLayout() 73 Matrix.setIdentityM(mMatrix, BOTTOM_M); in onLayout() 74 Matrix.setIdentityM(mMatrix, RIGHT_M); in onLayout() 76 Matrix.rotateM(mMatrix, LEFT_M, 90, 0, 0, 1); in onLayout() 77 Matrix.scaleM(mMatrix, LEFT_M, 1, -1, 1); in onLayout() 79 Matrix.translateM(mMatrix, BOTTOM_M, 0, h, 0); in onLayout() 80 Matrix.scaleM(mMatrix, BOTTOM_M, 1, -1, 1); in onLayout() 82 Matrix.translateM(mMatrix, RIGHT_M, w, 0, 0); in onLayout() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | TextureViewHelper.java | 21 import android.graphics.Matrix; 129 mPreview.setTransform(new Matrix()); in clearTransform() 189 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) { in updateTransformFullScreen() 201 public void updateTransform(Matrix matrix) { 218 Matrix addtionalTransform = new Matrix(); 220 Matrix.ScaleToFit.CENTER); 230 private void updatePreviewArea(Matrix matrix) { 268 public Matrix getPreviewRotationalTransform(int currentDisplayOrientation, 272 return new Matrix(); 275 Matrix transform = new Matrix(); [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | VelocityBasedConnectedScore.java | 24 import com.android.server.wifi.util.Matrix; 44 mFilter.mH = new Matrix(2, new double[]{1.0, 0.0}); in VelocityBasedConnectedScore() 45 mFilter.mR = new Matrix(1, new double[]{1.0}); in VelocityBasedConnectedScore() 55 mFilter.mF = new Matrix(2, new double[]{1.0, dt, 0.0, 1.0}); in setDeltaTimeSeconds() 56 Matrix tG = new Matrix(1, new double[]{0.5 * dt * dt, dt}); in setDeltaTimeSeconds() 58 mFilter.mQ = tG.dotTranspose(tG).dot(new Matrix(2, new double[]{ in setDeltaTimeSeconds() 88 mFilter.mx = new Matrix(1, new double[]{rssi, 0.0}); in updateUsingRssi() 89 mFilter.mP = new Matrix(2, new double[]{initialVariance, 0.0, 0.0, 0.0}); in updateUsingRssi() 95 mFilter.update(new Matrix(1, new double[]{rssi})); in updateUsingRssi() 184 Matrix x = new Matrix(mFilter.mx); in generateScore()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 21 import android.graphics.Matrix; 41 protected Matrix mBaseMatrix = new Matrix(); 48 protected Matrix mSuppMatrix = new Matrix(); 52 private final Matrix mDisplayMatrix = new Matrix(); 191 Matrix m = getImageViewMatrix(); in center() 244 protected float getValue(Matrix matrix, int whichValue) { in getValue() 250 protected float getScale(Matrix matrix) { in getScale() 251 return getValue(matrix, Matrix.MSCALE_X); in getScale() 259 private void getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) { in getProperBaseMatrix() 282 protected Matrix getImageViewMatrix() { in getImageViewMatrix() [all …]
|
D | RotateBitmap.java | 20 import android.graphics.Matrix; 53 public Matrix getRotateMatrix() { in getRotateMatrix() 55 Matrix matrix = new Matrix(); in getRotateMatrix()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | BoundedRect.java | 18 import android.graphics.Matrix; 114 Matrix m0 = getInverseRotMatrix(); in moveInner() 177 Matrix m = getRotMatrix(); in resizeInner() 178 Matrix m0 = getInverseRotMatrix(); in resizeInner() 246 Matrix m = getRotMatrix(); in fixedAspectResizeInner() 247 Matrix m0 = getInverseRotMatrix(); in fixedAspectResizeInner() 346 Matrix m = getRotMatrix(); in reconstrain() 353 Matrix m = getInverseRotMatrix(); in rotateInner() 357 private Matrix getRotMatrix() { in getRotMatrix() 358 Matrix m = new Matrix(); in getRotMatrix() [all …]
|
D | CropMath.java | 20 import android.graphics.Matrix; 141 Matrix m = new Matrix(); in pointInRotatedRect() 144 Matrix m0 = new Matrix(); in pointInRotatedRect() 219 Matrix m = new Matrix(); in getScaledCropBounds() 220 m.setRectToRect(photoBounds, displayBounds, Matrix.ScaleToFit.FILL); in getScaledCropBounds() 252 Matrix m = new Matrix(); in getUnrotated()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 21 import android.graphics.Matrix; 217 private static void concatMirrorMatrix(Matrix m, GeometryHolder holder) { in concatMirrorMatrix() 317 Matrix m = getCropSelectionToScreenMatrix(null, holder, width, height, frame.width(), in applyFullGeometryMatrix() 331 public static Matrix getImageToScreenMatrix(Collection<FilterRepresentation> geometry, in getImageToScreenMatrix() 338 public static Matrix getPartialToScreenMatrix(Collection<FilterRepresentation> geometry, in getPartialToScreenMatrix() 349 Matrix compensation = new Matrix(); in getPartialToScreenMatrix() 372 public static Matrix getOriginalToScreen(GeometryHolder holder, boolean rotate, in getOriginalToScreen() 380 Matrix m = getCropSelectionToScreenMatrix(null, holder, (int) originalWidth, in getOriginalToScreen() 407 Matrix m = getCropSelectionToScreenMatrix(crop, holder, photo.getWidth(), photo.getHeight(), in drawTransformedCropped() 429 private static Matrix getFullGeometryMatrix(GeometryHolder holder, int bitmapWidth, in getFullGeometryMatrix() [all …]
|
D | ImageRedEye.java | 22 import android.graphics.Matrix; 74 Matrix originalNoRotateToScreen = getImageToScreenMatrix(false); in onTouchEvent() 75 Matrix originalToScreen = getImageToScreenMatrix(true); in onTouchEvent() 76 Matrix invert = new Matrix(); in onTouchEvent() 109 protected void drawPoint(FilterPoint point, Canvas canvas, Matrix originalToScreen, in drawPoint() 110 Matrix originalRotateToScreen, Paint paint) { in drawPoint()
|
D | PrimaryImage.java | 23 import android.graphics.Matrix; 567 public Matrix originalImageToScreen() { in originalImageToScreen() 571 public Matrix computeImageToScreen(Bitmap bitmapToDraw, in computeImageToScreen() 580 Matrix m = null; in computeImageToScreen() 592 m = new Matrix(); in computeImageToScreen() 619 private Matrix getImageToScreenMatrix(boolean reflectRotation) { in getImageToScreenMatrix() 621 return new Matrix(); in getImageToScreenMatrix() 623 Matrix m = GeometryMathUtils.getImageToScreenMatrix(mPreset.getGeometryFilters(), in getImageToScreenMatrix() 626 m = new Matrix(); in getImageToScreenMatrix() 637 private Matrix getScreenToImageMatrix(boolean reflectRotation) { in getScreenToImageMatrix() [all …]
|
D | ImagePoint.java | 22 import android.graphics.Matrix; 68 Matrix originalToScreen = getImageToScreenMatrix(false); in onDraw() 69 Matrix originalRotateToScreen = getImageToScreenMatrix(true); in onDraw() 79 FilterPoint candidate, Canvas canvas, Matrix originalToScreen, in drawPoint() 80 Matrix originalRotateToScreen, Paint paint); in drawPoint()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterDraw.java | 23 import android.graphics.Matrix; 91 public void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, Matrix toScrMatrix, in paint() 109 public void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, Matrix toScrMatrix, in paint() 159 Matrix toScrMatrix, in paint() 175 Matrix m = new Matrix(); in createScaledBitmap() 218 void paint(FilterDrawRepresentation.StrokeData sd, Canvas canvas, Matrix toScrMatrix, in paint() 223 public void drawData(Canvas canvas, Matrix originalRotateToScreen, int quality) { in drawData() 266 public void fillBuffer(Matrix originalRotateToScreen) { in fillBuffer() 277 public void draw(Canvas canvas, Matrix originalRotateToScreen) { in draw() 290 Matrix m = getOriginalToScreenMatrix(w, h); in apply()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | SwipeUpAnimationLogic.java | 23 import android.graphics.Matrix; 24 import android.graphics.Matrix.ScaleToFit; 231 protected RectF[] updateProgressForStartRect(Matrix[] outMatrix, float startProgress) { in updateProgressForStartRect() 241 outMatrix[i] = new Matrix(); in updateProgressForStartRect() 272 Matrix[] homeToWindowPositionMap = new Matrix[mRemoteTargetHandles.length]; in createWindowAnimationToHome() 291 RectF startRect, Matrix homeToWindowPositionMap) { in getWindowAnimationToHomeInternal() 294 Matrix windowToHomePositionMap = new Matrix(); in getWindowAnimationToHomeInternal() 324 final Matrix mMatrix = new Matrix(); 327 final Matrix mHomeToWindowPositionMap; 338 Matrix homeToWindowPositionMap, TransformParams transformParams, in SpringAnimationRunner()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | ZoomView.java | 23 import android.graphics.Matrix; 83 Matrix rotationMatrix = new Matrix(); in doInBackground() 99 Matrix mapping = new Matrix(); in doInBackground() 100 mapping.setRectToRect(endRect, fullResRect, Matrix.ScaleToFit.CENTER); in doInBackground() 107 Matrix invertRotation = new Matrix(); in doInBackground() 158 Matrix rotation = new Matrix(); in doInBackground()
|
/packages/apps/Dialer/java/com/android/incallui/videosurface/impl/ |
D | VideoScale.java | 19 import android.graphics.Matrix; 77 Matrix transform = new Matrix(); in scaleVideoAndFillView() 135 Matrix transform = new Matrix(); in scaleVideoMaintainingAspectRatio()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
D | PreviewTransformCalculator.java | 23 import android.graphics.Matrix; 45 public Matrix toTransformMatrix(Size previewViewSize, Size previewStreamSize) { in toTransformMatrix() 57 Matrix transformMatrix = new Matrix(); in toTransformMatrix() 72 previewViewRect, centeredEffectivePreviewRect, Matrix.ScaleToFit.FILL); in toTransformMatrix()
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/ |
D | GLES20Canvas.java | 22 import android.opengl.Matrix; 172 Matrix.setIdentityM(mTempTextureMatrix, 0); in GLES20Canvas() 173 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); in GLES20Canvas() 242 Matrix.setIdentityM(mMatrices, mCurrentMatrixIndex); in setSize() 243 Matrix.orthoM(mProjectionMatrix, 0, 0, width, 0, height, -1, 1); in setSize() 244 Matrix.translateM(mMatrices, mCurrentMatrixIndex, 0, height, 0); in setSize() 245 Matrix.scaleM(mMatrices, mCurrentMatrixIndex, 1, -1, 1); in setSize() 275 Matrix.setRotateM(temp, 0, angle, x, y, z); in rotate() 278 Matrix.multiplyMM(temp, MATRIX_SIZE, matrix, index, temp, 0); in rotate() 328 Matrix.translateM(mTempMatrix, 0, mMatrices, mCurrentMatrixIndex, x, y, 0f); in setMatrix() [all …]
|