Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java230 final Bitmap scaledBitmap = Bitmap.createBitmap(newWidth, newHeight, in getNormalizedBitmap() local
232 final Canvas c = new Canvas(scaledBitmap); in getNormalizedBitmap()
235 c.drawRect(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight(), WHITE_PAINT); in getNormalizedBitmap()
240 final RectF dst = new RectF(0, 0, scaledBitmap.getWidth(), scaledBitmap.getHeight()); in getNormalizedBitmap()
243 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/TV/tests/unit/src/com/android/tv/util/
DScaledBitmapInfoTest.java41 private static void assertNeedsToReload(boolean expected, ScaledBitmapInfo scaledBitmap, in assertNeedsToReload() argument
43 assertEquals(scaledBitmap.id + " needToReload(" + reqWidth + "," + reqHeight + ")", in assertNeedsToReload()
44 expected, scaledBitmap.needToReload(reqWidth, reqHeight)); in assertNeedsToReload()