Home
last modified time | relevance | path

Searched refs:MemoryCache (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMemoryCacheManager.java28 private final HashSet<MemoryCache> mMemoryCaches = new HashSet<MemoryCache>();
38 public interface MemoryCache { interface in MemoryCacheManager
45 public void registerMemoryCache(final MemoryCache cache) { in registerMemoryCache()
54 public void unregisterMemoryCache(final MemoryCache cache) { in unregisterMemoryCache()
67 final HashSet<MemoryCache> shallowCopy; in reclaimMemory()
69 shallowCopy = (HashSet<MemoryCache>) mMemoryCaches.clone(); in reclaimMemory()
71 for (final MemoryCache cache : shallowCopy) { in reclaimMemory()
DBitmapPool.java26 import com.android.messaging.datamodel.MemoryCacheManager.MemoryCache;
39 public class BitmapPool implements MemoryCache {
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DMemoryCacheManagerTest.java22 import com.android.messaging.datamodel.MemoryCacheManager.MemoryCache;
30 final MemoryCache mockMemoryCache = Mockito.mock(MemoryCache.class); in testRegisterCachesGetReclaimed()
31 final MemoryCache otherMockMemoryCache = Mockito.mock(MemoryCache.class); in testRegisterCachesGetReclaimed()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DBitmapCache.java33 private final MemoryCache mMemoryCache = new MemoryCache(CACHE_SIZE);
47 private static class MemoryCache extends LruCache<Uri, Bitmap> { class in BitmapCache
48 private MemoryCache(int maxSize) { in MemoryCache() method in BitmapCache.MemoryCache
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaCacheManager.java22 import com.android.messaging.datamodel.MemoryCacheManager.MemoryCache;
28 public abstract class MediaCacheManager implements MemoryCache {