Home
last modified time | relevance | path

Searched refs:MediaCache (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaCacheManager.java33 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()
DMediaCache.java30 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
DBugleMediaCacheManager.java37 protected MediaCache<?> createMediaCacheById(final int id) { in createMediaCacheById()
46 return new MediaCache<VCardResource>(VCARD_CACHE_SIZE, id, "VCardCache"); in createMediaCacheById()
DImageRequest.java246 public MediaCache<ImageResource> getMediaCache() { in getMediaCache()
247 return (MediaCache<ImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()
DMediaResourceManager.java192 final MediaCache<T> mediaCache = mediaRequest.getMediaCache(); in loadMediaFromCache()
294 final MediaCache<T> mediaCache = mediaRequest.getMediaCache(); in addResourceToMemoryCache()
DMediaRequest.java51 MediaCache<T> getMediaCache(); in getMediaCache()
DVCardRequest.java112 public MediaCache<VCardResource> getMediaCache() { in getMediaCache()
113 return (MediaCache<VCardResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()
DAsyncMediaRequestWrapper.java51 public MediaCache<T> getMediaCache() { in getMediaCache()
DEncodedImageResource.java142 public MediaCache<ImageResource> getMediaCache() { in getMediaCache()
DDecodedImageResource.java235 public MediaCache<ImageResource> getMediaCache() { in getMediaCache()
DPoolableImageCache.java37 public class PoolableImageCache extends MediaCache<ImageResource> {
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DFakeMediaCacheManager.java24 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()
DFakeImageRequest.java54 public MediaCache<FakeImageResource> getMediaCache() { in getMediaCache()
55 return (MediaCache<FakeImageResource>) MediaCacheManager.get().getOrCreateMediaCacheById( in getMediaCache()