/cts/tests/tests/graphics/src/android/graphics/cts/ |
Matrix_ScaleToFitTest.java | 19 import android.graphics.Matrix.ScaleToFit; 26 ScaleToFit[] scaleToFits = ScaleToFit.values(); 27 assertEquals(ScaleToFit.FILL,scaleToFits[0]); 28 assertEquals( ScaleToFit.START,scaleToFits[1]); 29 assertEquals( ScaleToFit.CENTER,scaleToFits[2]); 30 assertEquals( ScaleToFit.END,scaleToFits[3]); 34 assertEquals(ScaleToFit.FILL,ScaleToFit.valueOf("FILL")); 35 assertEquals( ScaleToFit.START,ScaleToFit.valueOf("START")) [all...] |
MatrixTest.java | 20 import android.graphics.Matrix.ScaleToFit; 270 assertTrue(mMatrix.setRectToRect(r1, r2, ScaleToFit.CENTER)); 273 mMatrix.setRectToRect(r1, r2, ScaleToFit.END); 276 mMatrix.setRectToRect(r1, r2, ScaleToFit.FILL); 278 mMatrix.setRectToRect(r1, r2, ScaleToFit.START); 281 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.CENTER)); 285 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.FILL)); 287 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.START)); 289 assertFalse(mMatrix.setRectToRect(r2, r1, ScaleToFit.END)); 293 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/base/graphics/java/android/graphics/drawable/ |
PictureDrawable.java | 23 import android.graphics.Matrix.ScaleToFit;
|
/external/chromium_org/third_party/skia/src/views/animated/ |
SkImageView.cpp | 111 // only redraw if we changed our matrix and we're not in scaleToFit mode 129 static inline SkMatrix::ScaleToFit scaleTypeToScaleToFit(SkImageView::ScaleType st) 139 return (SkMatrix::ScaleToFit)(st - 1);
|
/external/skia/src/views/animated/ |
SkImageView.cpp | 111 // only redraw if we changed our matrix and we're not in scaleToFit mode 129 static inline SkMatrix::ScaleToFit scaleTypeToScaleToFit(SkImageView::ScaleType st) 139 return (SkMatrix::ScaleToFit)(st - 1);
|
/frameworks/base/graphics/java/android/graphics/ |
Matrix.java | 201 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) { 495 public enum ScaleToFit { 523 ScaleToFit(int nativeInt) { 536 * @param stf the ScaleToFit option 539 public boolean setRectToRect(RectF src, RectF dst, ScaleToFit stf) {
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
CropDrawingUtils.java | 170 return m.setRectToRect(imageBounds, displayBounds, Matrix.ScaleToFit.CENTER); 181 boolean rToR = dst.setRectToRect(rotatedImage, screen, Matrix.ScaleToFit.CENTER);
|
CropMath.java | 218 m.setRectToRect(photoBounds, displayBounds, Matrix.ScaleToFit.FILL);
|
CropActivity.java | 521 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
|
/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);
|
CropActivity.java | 524 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
|
/frameworks/base/core/java/android/widget/ |
ImageView.java | 483 * Scale the image using {@link Matrix.ScaleToFit#FILL}. 488 * Scale the image using {@link Matrix.ScaleToFit#START}. 493 * Scale the image using {@link Matrix.ScaleToFit#CENTER}. 499 * Scale the image using {@link Matrix.ScaleToFit#END}. 747 private static final Matrix.ScaleToFit[] sS2FArray = { 748 Matrix.ScaleToFit.FILL, 749 Matrix.ScaleToFit.START, 750 Matrix.ScaleToFit.CENTER, 751 Matrix.ScaleToFit.END 754 private static Matrix.ScaleToFit scaleTypeToScaleToFit(ScaleType st) [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Matrix_Delegate.java | 25 import android.graphics.Matrix.ScaleToFit; 603 if (stf != ScaleToFit.FILL.nativeInt) { 614 if (stf == ScaleToFit.CENTER.nativeInt || stf == ScaleToFit.END.nativeInt) { 623 if (stf == ScaleToFit.CENTER.nativeInt) { [all...] |
/external/chromium_org/third_party/skia/include/core/ |
SkMatrix.h | 302 enum ScaleToFit { 335 @param stf the ScaleToFit option 338 bool setRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit stf);
|
/external/skia/include/core/ |
SkMatrix.h | 302 enum ScaleToFit { 335 @param stf the ScaleToFit option 338 bool setRectToRect(const SkRect& src, const SkRect& dst, ScaleToFit stf);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
ZoomView.java | 78 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/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 716 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 725 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
PhotoView.java | 771 mMatrix.setRectToRect(mTempSrc, scaledDestination, Matrix.ScaleToFit.CENTER); 773 mMatrix.setRectToRect(mTempSrc, mTempDst, Matrix.ScaleToFit.CENTER); [all...] |
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
WallpaperCropActivity.java | 714 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 723 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); [all...] |
/frameworks/base/core/java/android/app/ |
WallpaperManager.java | 403 * @param scaleToFit If true, scale the wallpaper down rather than just cropping it 411 boolean scaleToFit, float horizontalAlignment, float verticalAlignment) { 453 if (scaleToFit) { 524 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); [all...] |
/frameworks/base/core/jni/android/graphics/ |
Matrix.cpp | 227 static jboolean setRectToRect(JNIEnv* env, jobject clazz, SkMatrix* matrix, jobject src, jobject dst, SkMatrix::ScaleToFit stf) {
|
/packages/apps/Camera2/src/com/android/camera/util/ |
CameraUtil.java | 714 Matrix.ScaleToFit.FILL); [all...] |