/cts/tests/tests/graphics/src/android/graphics/cts/ |
Matrix_ScaleToFitTest.java | 21 import android.graphics.Matrix.ScaleToFit; 33 ScaleToFit[] scaleToFits = ScaleToFit.values(); 34 assertEquals(ScaleToFit.FILL,scaleToFits[0]); 35 assertEquals(ScaleToFit.START,scaleToFits[1]); 36 assertEquals(ScaleToFit.CENTER,scaleToFits[2]); 37 assertEquals(ScaleToFit.END,scaleToFits[3]); 42 assertEquals(ScaleToFit.FILL,ScaleToFit.valueOf("FILL")); 43 assertEquals(ScaleToFit.START,ScaleToFit.valueOf("START")) [all...] |
MatrixTest.java | 27 import android.graphics.Matrix.ScaleToFit; 311 assertTrue(mMatrix.setRectToRect(r1, r2, ScaleToFit.CENTER)); 313 mMatrix.setRectToRect(r1, r2, ScaleToFit.END); 316 mMatrix.setRectToRect(r1, r2, ScaleToFit.FILL); 318 mMatrix.setRectToRect(r1, r2, ScaleToFit.START); 321 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.CENTER)); 324 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.FILL)); 326 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.START)); 328 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.END)); 334 mMatrix.setRectToRect(null, null, ScaleToFit.CENTER) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ScaleToFit.java | 24 public class ScaleToFit extends GraphicsActivity { 39 private static final Matrix.ScaleToFit[] sFits = 40 new Matrix.ScaleToFit[] { 41 Matrix.ScaleToFit.FILL, 42 Matrix.ScaleToFit.START, 43 Matrix.ScaleToFit.CENTER, 44 Matrix.ScaleToFit.END 81 private void drawFit(Canvas canvas, int index, Matrix.ScaleToFit stf) {
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
CameraDeviceInfo.java | 189 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL);
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
CameraCoordinateTransformer.java | 92 Matrix.ScaleToFit.FILL);
|
/packages/apps/Camera2/src/com/android/camera/ |
TextureViewHelper.java | 219 Matrix.ScaleToFit.CENTER); 275 transform.setRectToRect(surfaceDimensions, desiredBounds, Matrix.ScaleToFit.FILL); 293 transform.setRectToRect(rotatedRect, desiredBounds, Matrix.ScaleToFit.FILL); 297 transform.setRectToRect(normalRect, desiredBounds, Matrix.ScaleToFit.FILL); 301 transform.setRectToRect(rotatedRect, desiredBounds, Matrix.ScaleToFit.FILL); 306 transform.setRectToRect(normalRect, desiredBounds, Matrix.ScaleToFit.FILL);
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
CircularImageView.java | 103 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL);
|
/frameworks/support/transition/src/main/java/androidx/transition/ |
MatrixUtils.java | 188 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) {
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
PreviewTransformCalculator.java | 70 // Undo ScaleToFit.FILL done by the surface 72 previewViewRect, centeredEffectivePreviewRect, Matrix.ScaleToFit.FILL);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
CompositeImageRequest.java | 89 Matrix.ScaleToFit.FILL);
|
AvatarRequest.java | 149 matrix.setRectToRect(source, dest, Matrix.ScaleToFit.FILL);
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/ |
TerminalView.java | 57 private static final Matrix.ScaleToFit scaleType = Matrix.ScaleToFit.FILL;
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
ClipAnimationHelper.java | 26 import android.graphics.Matrix.ScaleToFit; 170 mTmpMatrix.setRectToRect(mSourceRect, currentRect, ScaleToFit.FILL); 281 mTmpMatrix.setRectToRect(mTargetRect, currentRect, ScaleToFit.FILL);
|
/frameworks/base/graphics/java/android/graphics/ |
Matrix.java | 205 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) { 526 public enum ScaleToFit { 552 ScaleToFit(int nativeInt) { 565 * @param stf the ScaleToFit option 568 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropDrawingUtils.java | 170 return m.setRectToRect(imageBounds, displayBounds, Matrix.ScaleToFit.CENTER); 181 boolean rToR = dst.setRectToRect(rotatedImage, screen, Matrix.ScaleToFit.CENTER);
|
CropMath.java | 220 m.setRectToRect(photoBounds, displayBounds, Matrix.ScaleToFit.FILL);
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
InputStreamProvider.java | 192 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 201 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
|
/frameworks/base/core/java/android/widget/ |
ImageView.java | 756 * Scale the image using {@link Matrix.ScaleToFit#FILL}. 761 * Scale the image using {@link Matrix.ScaleToFit#START}. 766 * Scale the image using {@link Matrix.ScaleToFit#CENTER}. 772 * Scale the image using {@link Matrix.ScaleToFit#END}. [all...] |
/frameworks/layoutlib/bridge/src/android/graphics/ |
Matrix_Delegate.java | 25 import android.graphics.Matrix.ScaleToFit; 554 if (stf != ScaleToFit.FILL.nativeInt) { 565 if (stf == ScaleToFit.CENTER.nativeInt || stf == ScaleToFit.END.nativeInt) { 574 if (stf == ScaleToFit.CENTER.nativeInt) { [all...] |
/external/skia/include/core/ |
SkMatrix.h | [all...] |
/external/skqp/include/core/ |
SkMatrix.h | [all...] |
/packages/apps/Camera2/src/com/android/camera/ui/ |
ZoomView.java | 100 mapping.setRectToRect(endRect, fullResRect, Matrix.ScaleToFit.CENTER);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
IconView.java | 207 new RectF(mBitmapBounds), Matrix.ScaleToFit.CENTER);
|
/frameworks/base/core/jni/android/graphics/ |
Matrix.cpp | 91 SkMatrix::ScaleToFit stf = static_cast<SkMatrix::ScaleToFit>(stfHandle);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
UserIconDrawable.java | 397 mIconMatrix.setRectToRect(srcRect, dstRect, Matrix.ScaleToFit.FILL);
|