/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 | 229 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/ |
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/UnifiedEmail/src/com/android/mail/utils/ |
D | BitmapUtil.java | 30 public class BitmapUtil { class 35 private BitmapUtil() { in BitmapUtil() method in BitmapUtil
|
D | NotificationUtils.java | 1723 contactIconInfo.icon = BitmapUtil.frameBitmapInCircle(contactIconInfo.icon); in getContactIcon()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
D | LetterTileProvider.java | 32 import com.android.mail.utils.BitmapUtil; 146 bitmap = BitmapUtil.centerCrop(mDefaultBitmap, d.width, d.height); in getBitmap()
|
/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/UnifiedEmail/src/com/android/mail/browse/ |
D | MessageHeaderView.java | 64 import com.android.mail.utils.BitmapUtil; 857 mPhotoView.setImageBitmap(BitmapUtil.frameBitmapInCircle(info.photo)); in updateContactInfo() 866 BitmapUtil.frameBitmapInCircle(makeLetterTile(mSender.getPersonal(), email))); in updateContactInfo()
|
/packages/apps/Contacts/ |
D | proguard.flags | 90 -keep class com.android.contacts.util.BitmapUtil { *; }
|