Home
last modified time | relevance | path

Searched refs:scaledBitmap (Results 1 – 6 of 6) 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/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java309 Bitmap scaledBitmap = Bitmap.createScaledBitmap( in doInBackground() local
312 int horizontalGutterPx = Math.max(0, (scaledBitmap.getWidth() - measuredWidth) / 2); in doInBackground()
313 int verticalGutterPx = Math.max(0, (scaledBitmap.getHeight() - measuredHeight) / 2); in doInBackground()
316 scaledBitmap, in doInBackground()
319 scaledBitmap.getWidth() - (2 * horizontalGutterPx), in doInBackground()
320 scaledBitmap.getHeight() - (2 * verticalGutterPx)); in doInBackground()
/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/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()