Home
last modified time | relevance | path

Searched refs:BitmapUtil (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/util/
DBitmapUtilTests.java32 assertEquals(100, BitmapUtil.getSmallerExtentFromBytes(createJpegRawData(100, 100))); in testGetSmallerExtentFromBytes1()
33 assertEquals(100, BitmapUtil.getSmallerExtentFromBytes(createPngRawData(100, 100))); in testGetSmallerExtentFromBytes1()
37 assertEquals(50, BitmapUtil.getSmallerExtentFromBytes(createJpegRawData(200, 50))); in testGetSmallerExtentFromBytes2()
38 assertEquals(50, BitmapUtil.getSmallerExtentFromBytes(createPngRawData(200, 50))); in testGetSmallerExtentFromBytes2()
42 assertEquals(40, BitmapUtil.getSmallerExtentFromBytes(createJpegRawData(40, 150))); in testGetSmallerExtentFromBytes3()
43 assertEquals(40, BitmapUtil.getSmallerExtentFromBytes(createPngRawData(40, 150))); in testGetSmallerExtentFromBytes3()
47 assertEquals(1, BitmapUtil.findOptimalSampleSize(512, 512)); in testFindOptimalSampleSizeExact()
51 assertEquals(1, BitmapUtil.findOptimalSampleSize(512, 1024)); in testFindOptimalSampleSizeBigger()
55 assertEquals(2, BitmapUtil.findOptimalSampleSize(512, 256)); in testFindOptimalSampleSizeSmaller1()
59 assertEquals(2, BitmapUtil.findOptimalSampleSize(512, 230)); in testFindOptimalSampleSizeSmaller2()
[all …]
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java29 public class BitmapUtil { class
31 private BitmapUtil() {} in BitmapUtil() method in BitmapUtil
DContactPhotoManagerImpl.java229 BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent); in inflateBitmap()
247 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
713 new BitmapHolder(bytes, bytes == null ? -1 : BitmapUtil.getSmallerExtentFromBytes(bytes)); in cacheBitmap()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java56 import com.android.contacts.util.BitmapUtil;
385 BitmapUtil.findOptimalSampleSize(sourceWidth, mIconSize), in decodeStreamForShortcut()
386 BitmapUtil.findOptimalSampleSize(sourceHeight, mIconSize)); in decodeStreamForShortcut()
411 return BitmapUtil.getRoundedBitmap(bitmap, targetSize, targetSize); in decodeStreamForShortcut()
DContactPhotoManager.java59 import com.android.contacts.util.BitmapUtil;
1016 BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent); in inflateBitmap()
1034 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap()
1199 bytes == null ? -1 : BitmapUtil.getSmallerExtentFromBytes(bytes)); in cacheBitmap()
DShortcutIntentBuilder.java54 import com.android.contacts.util.BitmapUtil;
410 BitmapUtil.drawableToBitmap(phoneDrawable, phoneDrawable.getIntrinsicHeight()); in generatePhoneNumberIcon()
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java33 public class BitmapUtil { class
34 private BitmapUtil() {} in BitmapUtil() method in BitmapUtil
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DImageActionUtils.java44 import com.android.systemui.shared.recents.utilities.BitmapUtil;
69 systemUiProxy.handleImageBundleAsScreenshot(BitmapUtil.hardwareBitmapToBundle(screenshot), in saveScreenshot()
/packages/apps/Dialer/java/com/android/incallui/
DExternalCallNotifier.java42 import com.android.dialer.contactphoto.BitmapUtil;
333 return BitmapUtil.getRoundedBitmap(bitmap, width, height); in getRoundedIcon()
DStatusBarNotifier.java70 import com.android.dialer.contactphoto.BitmapUtil;
635 return BitmapUtil.getRoundedBitmap(bitmap, width, height); in getRoundedIcon()
/packages/apps/Contacts/
Dproguard.flags90 -keep class com.android.contacts.util.BitmapUtil { *; }