Searched refs:BitmapHolder (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Dialer/java/com/android/dialer/contactphoto/ |
D | ContactPhotoManagerImpl.java | 98 private static final BitmapHolder BITMAP_UNAVAILABLE; 107 BITMAP_UNAVAILABLE = new BitmapHolder(new byte[0], 0); 116 private final LruCache<Object, BitmapHolder> bitmapHolderCache; 174 new LruCache<Object, BitmapHolder>(holderCacheSize) { in ContactPhotoManagerImpl() 176 protected int sizeOf(Object key, BitmapHolder value) { in ContactPhotoManagerImpl() 182 boolean evicted, Object key, BitmapHolder oldValue, BitmapHolder newValue) { in ContactPhotoManagerImpl() 228 private static void inflateBitmap(BitmapHolder holder, int requestedExtent) { in inflateBitmap() 310 for (BitmapHolder h : bitmapHolderCache.snapshot().values()) { in dumpStats() 510 for (BitmapHolder holder : bitmapHolderCache.snapshot().values()) { in refreshCache() 524 BitmapHolder holder = bitmapHolderCache.get(request.getKey()); in loadCachedPhoto() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | ContactPhotoManager.java | 608 private static final BitmapHolder BITMAP_UNAVAILABLE; 611 BITMAP_UNAVAILABLE = new BitmapHolder(new byte[0], 0); 618 private static class BitmapHolder { class in ContactPhotoManagerImpl 627 public BitmapHolder(byte[] bytes, int originalSmallerExtent) { in BitmapHolder() method in ContactPhotoManagerImpl.BitmapHolder 641 private final LruCache<Object, BitmapHolder> mBitmapHolderCache; 728 mBitmapHolderCache = new LruCache<Object, BitmapHolder>(holderCacheSize) { in ContactPhotoManagerImpl() 729 @Override protected int sizeOf(Object key, BitmapHolder value) { in ContactPhotoManagerImpl() 734 boolean evicted, Object key, BitmapHolder oldValue, BitmapHolder newValue) { in ContactPhotoManagerImpl() 774 for (BitmapHolder h : mBitmapHolderCache.snapshot().values()) { in dumpStats() 920 for (BitmapHolder holder : mBitmapHolderCache.snapshot().values()) { in refreshCache() [all …]
|