Searched refs:MediaCache (Results 1 – 13 of 13) sorted by relevance
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | MediaCacheManager.java | 33 protected final SparseArray<MediaCache<?>> mCaches; 36 mCaches = new SparseArray<MediaCache<?>>(); in MediaCacheManager() 49 public synchronized MediaCache<?> getOrCreateMediaCacheById(final int id) { in getOrCreateMediaCacheById() 50 MediaCache<?> cache = mCaches.get(id); in getOrCreateMediaCacheById() 61 final MediaCache<?> cache = getOrCreateMediaCacheById(cacheId); in getOrCreateBitmapPoolForCache() 68 protected abstract MediaCache<?> createMediaCacheById(final int id); in createMediaCacheById()
|
D | MediaCache.java | 30 public class MediaCache<T extends RefCountedMediaResource> extends LruCache<String, T> { class 42 public MediaCache(final int id, final String name) { in MediaCache() method in MediaCache 46 public MediaCache(final int maxSize, final int id, final String name) { in MediaCache() method in MediaCache
|
D | BugleMediaCacheManager.java | 37 protected MediaCache<?> createMediaCacheById(final int id) { in createMediaCacheById() 46 return new MediaCache<VCardResource>(VCARD_CACHE_SIZE, id, "VCardCache"); in createMediaCacheById()
|
D | ImageRequest.java | 246 public MediaCache<ImageResource> getMediaCache() { in getMediaCache() 247 return (MediaCache<ImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()
|
D | MediaResourceManager.java | 192 final MediaCache<T> mediaCache = mediaRequest.getMediaCache(); in loadMediaFromCache() 294 final MediaCache<T> mediaCache = mediaRequest.getMediaCache(); in addResourceToMemoryCache()
|
D | MediaRequest.java | 51 MediaCache<T> getMediaCache(); in getMediaCache()
|
D | VCardRequest.java | 112 public MediaCache<VCardResource> getMediaCache() { in getMediaCache() 113 return (MediaCache<VCardResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()
|
D | AsyncMediaRequestWrapper.java | 51 public MediaCache<T> getMediaCache() { in getMediaCache()
|
D | EncodedImageResource.java | 142 public MediaCache<ImageResource> getMediaCache() { in getMediaCache()
|
D | DecodedImageResource.java | 235 public MediaCache<ImageResource> getMediaCache() { in getMediaCache()
|
D | PoolableImageCache.java | 37 public class PoolableImageCache extends MediaCache<ImageResource> {
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
D | FakeMediaCacheManager.java | 24 public MediaCache<?> createMediaCacheById(final int id) { in createMediaCacheById() 28 return new MediaCache<FakeImageResource>(3, FAKE_IMAGE_CACHE, "FakeImageCache"); in createMediaCacheById() 31 return new MediaCache<FakeImageResource>(10, FAKE_BATCH_IMAGE_CACHE, in createMediaCacheById()
|
D | FakeImageRequest.java | 54 public MediaCache<FakeImageResource> getMediaCache() { in getMediaCache() 55 return (MediaCache<FakeImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()
|