Home
last modified time | relevance | path

Searched refs:cropSize (Results 1 – 2 of 2) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPreviewBitmapTransformation.java69 Rect cropSize = new Rect(x, y, x + Math.round(mScreenSize.x / scale), in transform() local
72 if (!originalSize.contains(cropSize)) { in transform()
76 cropped = Bitmap.createBitmap(toTransform, cropSize.left, cropSize.top, in transform()
77 cropSize.width(), cropSize.height()); in transform()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java321 public static Rect calculateCropRect(Context context, Point hostViewSize, Point cropSize, in calculateCropRect() argument
327 return calculateCropRect(context, wallpaperZoom, rawWallpaperSize, cropSize, hostViewSize, in calculateCropRect()
341 public static Rect calculateCropRect(Context context, Point hostViewSize, Point cropSize, in calculateCropRect() argument
343 return calculateCropRect(context, hostViewSize, cropSize, rawWallpaperSize, in calculateCropRect()