Searched refs:BitmapUtil (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | BitmapUtilTests.java | 32 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/ |
D | BitmapUtil.java | 29 public class BitmapUtil { class 31 private BitmapUtil() {} in BitmapUtil() method in BitmapUtil
|
D | ContactPhotoManagerImpl.java | 230 BitmapUtil.findOptimalSampleSize(holder.originalSmallerExtent, requestedExtent); in inflateBitmap() 248 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); in inflateBitmap() 714 new BitmapHolder(bytes, bytes == null ? -1 : BitmapUtil.getSmallerExtentFromBytes(bytes)); in cacheBitmap()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 56 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()
|
D | ContactPhotoManager.java | 59 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()
|
D | ShortcutIntentBuilder.java | 54 import com.android.contacts.util.BitmapUtil; 410 BitmapUtil.drawableToBitmap(phoneDrawable, phoneDrawable.getIntrinsicHeight()); in generatePhoneNumberIcon()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | BitmapUtil.java | 33 public class BitmapUtil { class 34 private BitmapUtil() {} in BitmapUtil() method in BitmapUtil
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | ExternalCallNotifier.java | 42 import com.android.dialer.contactphoto.BitmapUtil; 333 return BitmapUtil.getRoundedBitmap(bitmap, width, height); in getRoundedIcon()
|
D | StatusBarNotifier.java | 70 import com.android.dialer.contactphoto.BitmapUtil; 635 return BitmapUtil.getRoundedBitmap(bitmap, width, height); in getRoundedIcon()
|
/packages/apps/Contacts/ |
D | proguard.flags | 90 -keep class com.android.contacts.util.BitmapUtil { *; }
|