Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DInputStreamProvider.java68 Rect roundedTrueCrop = new Rect(); in readCroppedBitmap() local
82 cropBounds.roundOut(roundedTrueCrop); in readCroppedBitmap()
83 cropBounds.set(roundedTrueCrop); in readCroppedBitmap()
95 cropBounds.roundOut(roundedTrueCrop); in readCroppedBitmap()
96 if (roundedTrueCrop.width() <= 0 || roundedTrueCrop.height() <= 0) { in readCroppedBitmap()
102 int scaleDownSampleSize = Math.max(1, Math.min(roundedTrueCrop.width() / outWidth, in readCroppedBitmap()
103 roundedTrueCrop.height() / outHeight)); in readCroppedBitmap()
124 crop = decoder.decodeRegion(roundedTrueCrop, options); in readCroppedBitmap()
147 cropBounds.roundOut(roundedTrueCrop); in readCroppedBitmap()
150 if (roundedTrueCrop.width() > fullSize.getWidth()) { in readCroppedBitmap()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropActivity.java471 Rect roundedTrueCrop = new Rect(); in doInBackground() local
472 trueCrop.roundOut(roundedTrueCrop); in doInBackground()
474 if (roundedTrueCrop.width() <= 0 || roundedTrueCrop.height() <= 0) { in doInBackground()
493 crop = decoder.decodeRegion(roundedTrueCrop, options); in doInBackground()
505 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in doInBackground()
506 roundedTrueCrop.top, roundedTrueCrop.width(), in doInBackground()
507 roundedTrueCrop.height()); in doInBackground()