Searched refs:cropRect (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
D | Utils.java | 110 RectF cropRect = new RectF(); in getMaxCropRect() local 113 cropRect.top = 0; in getMaxCropRect() 114 cropRect.bottom = inHeight; in getMaxCropRect() 115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; in getMaxCropRect() 116 cropRect.right = inWidth - cropRect.left; in getMaxCropRect() 118 cropRect.right -= cropRect.left; in getMaxCropRect() 119 cropRect.left = 0; in getMaxCropRect() 122 cropRect.left = 0; in getMaxCropRect() 123 cropRect.right = inWidth; in getMaxCropRect() 124 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; in getMaxCropRect() [all …]
|
D | BitmapCropTask.java | 342 RectF cropRect = new RectF(0, 0, dimsAfter[0], dimsAfter[1]); in cropBitmap() local 347 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); in cropBitmap() 356 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); in cropBitmap()
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
D | WallpaperCropActivity.java | 392 RectF cropRect = mCropView.getCrop(); in cropImageAndSetWallpaper() 397 float cropScale = mCropView.getWidth() / (float) cropRect.width(); in cropImageAndSetWallpaper() 410 cropRect.left = Math.max(0, cropRect.left); in cropImageAndSetWallpaper() 411 cropRect.right = Math.min(rotatedInSize[0], cropRect.right); in cropImageAndSetWallpaper() 412 cropRect.top = Math.max(0, cropRect.top); in cropImageAndSetWallpaper() 413 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom); in cropImageAndSetWallpaper() 420 extraSpace = 2f * Math.min(rotatedInSize[0] - cropRect.right, cropRect.left); in cropImageAndSetWallpaper() 422 extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; in cropImageAndSetWallpaper() 425 float maxExtraSpace = defaultWallpaperSize.x / cropScale - cropRect.width(); in cropImageAndSetWallpaper() 429 cropRect.left -= extraSpace / 2f; in cropImageAndSetWallpaper() [all …]
|
D | WallpaperPickerActivity.java | 943 RectF cropRect = Utils.getMaxCropRect( 945 cropTask.setCropBounds(cropRect);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/ |
D | AndroidImageProxy.java | 143 public void setCropRect(Rect cropRect) { in setCropRect() argument 145 mCropRect = cropRect; in setCropRect() 147 mImage.setCropRect(cropRect); in setCropRect()
|
D | ForwardingImageProxy.java | 51 public void setCropRect(Rect cropRect) { in setCropRect() argument 52 mImpl.setCropRect(cropRect); in setCropRect()
|
D | ImageProxy.java | 74 public void setCropRect(Rect cropRect); in setCropRect() argument
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 367 public void setup(Matrix m, Rect imageRect, RectF cropRect, boolean circle, in setup() argument 374 mCropRect = cropRect; in setup()
|
D | CropImage.java | 492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight); 493 hv.setup(mImageMatrix, imageRect, cropRect, mCircleCrop,
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropActivity.java | 518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground() local 521 m.mapRect(cropRect); in doInBackground() 524 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); in doInBackground()
|