Home
last modified time | relevance | path

Searched refs:scaledBitmap (Results 1 – 7 of 7) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java223 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap() local
225 final Canvas c = new Canvas(scaledBitmap); in getNormalizedBitmap()
228 c.drawRect(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), WHITE_PAINT); in getNormalizedBitmap()
233 final RectF dst = new RectF(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight()); in getNormalizedBitmap()
236 return scaledBitmap; in getNormalizedBitmap()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java190 Bitmap scaledBitmap = null; in loadMediaBlocking() local
213 scaledBitmap = bitmap = in loadMediaBlocking()
225 if (scaledBitmap != null && scaledBitmap != getBitmap()) { in loadMediaBlocking()
226 scaledBitmap.recycle(); in loadMediaBlocking()
227 scaledBitmap = null; in loadMediaBlocking()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAppUtils.java68 BitmapDrawable scaledBitmap = new BitmapDrawable(/* res= */ null, bitmap); in getSafeDrawable() local
69 scaledBitmap.setTargetDensity(originalBitmap.getDensity()); in getSafeDrawable()
70 return scaledBitmap; in getSafeDrawable()
/packages/apps/TV/tests/unit/src/com/android/tv/util/images/
DScaledBitmapInfoTest.java60 boolean expected, ScaledBitmapInfo scaledBitmap, int reqWidth, int reqHeight) { in assertNeedsToReload() argument
61 assertWithMessage(scaledBitmap.id + " needToReload(" + reqWidth + "," + reqHeight + ")") in assertNeedsToReload()
62 .that(scaledBitmap.needToReload(reqWidth, reqHeight)) in assertNeedsToReload()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java481 Bitmap scaledBitmap = Bitmap.createScaledBitmap( in centerCropBitmap() local
485 int horizontalGutterPx = Math.max(0, (scaledBitmap.getWidth() - measuredWidth) / 2); in centerCropBitmap()
486 int verticalGutterPx = Math.max(0, (scaledBitmap.getHeight() - measuredHeight) / 2); in centerCropBitmap()
488 scaledBitmap, in centerCropBitmap()
491 scaledBitmap.getWidth() - (2 * horizontalGutterPx), in centerCropBitmap()
492 scaledBitmap.getHeight() - (2 * verticalGutterPx)); in centerCropBitmap()
/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java66 Bitmap scaledBitmap = scaleBitmap(bm, maxWidth, maxHeight); in getScaledMutableBitmap() local
67 return scaledBitmap.isMutable() in getScaledMutableBitmap()
68 ? scaledBitmap in getScaledMutableBitmap()
69 : scaledBitmap.copy(Bitmap.Config.ARGB_8888, true); in getScaledMutableBitmap()
/packages/apps/Dialer/java/com/android/dialer/util/
DDrawableConverter.java88 Bitmap scaledBitmap = Bitmap.createScaledBitmap(bitmap, width, height, false); in getRoundedDrawable() local
90 RoundedBitmapDrawableFactory.create(context.getResources(), scaledBitmap); in getRoundedDrawable()