Home
last modified time | relevance | path

Searched refs:cropRect (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/
DWallpaperCropActivity.java376 RectF cropRect = mCropView.getCrop(); in cropImageAndSetWallpaper()
381 float cropScale = mCropView.getWidth() / (float) cropRect.width(); in cropImageAndSetWallpaper()
394 cropRect.left = Math.max(0, cropRect.left); in cropImageAndSetWallpaper()
395 cropRect.right = Math.min(rotatedInSize[0], cropRect.right); in cropImageAndSetWallpaper()
396 cropRect.top = Math.max(0, cropRect.top); in cropImageAndSetWallpaper()
397 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom); in cropImageAndSetWallpaper()
404 extraSpace = 2f * Math.min(rotatedInSize[0] - cropRect.right, cropRect.left); in cropImageAndSetWallpaper()
406 extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; in cropImageAndSetWallpaper()
409 float maxExtraSpace = defaultWallpaperSize.x / cropScale - cropRect.width(); in cropImageAndSetWallpaper()
413 cropRect.left -= extraSpace / 2f; in cropImageAndSetWallpaper()
[all …]
DWallpaperPickerActivity.java815 RectF cropRect = WallpaperCropActivity.getMaxCropRect( in createThumbnail() local
817 cropTask.setCropBounds(cropRect); in createThumbnail()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java518 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()
/packages/apps/Settings/src/com/android/settings/drawable/
DCircleFramedDrawable.java92 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square); in CircleFramedDrawable() local
111 canvas.drawBitmap(icon, cropRect, circleRect, mPaint); in CircleFramedDrawable()
/packages/apps/Gallery/src/com/android/camera/
DHighlightView.java367 public void setup(Matrix m, Rect imageRect, RectF cropRect, boolean circle, in setup() argument
374 mCropRect = cropRect; in setup()
DCropImage.java492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);
493 hv.setup(mImageMatrix, imageRect, cropRect, mCircleCrop,