Home
last modified time | relevance | path

Searched refs:mMemoryCache (Results 1 – 2 of 2) sorted by relevance

/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageCache.java34 private LruCache<String, Bitmap> mMemoryCache; field in ImageCache
83 mMemoryCache = new LruCache<String, Bitmap>(memCacheSize) { in init()
107 if (mMemoryCache != null && mMemoryCache.get(data) == null) { in addBitmapToCache()
108 mMemoryCache.put(data, bitmap); in addBitmapToCache()
119 if (mMemoryCache != null) { in getBitmapFromMemCache()
120 final Bitmap memBitmap = mMemoryCache.get(data); in getBitmapFromMemCache()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageCache.java78 private LruCache<String, BitmapDrawable> mMemoryCache; field in ImageCache
152 mMemoryCache = new LruCache<String, BitmapDrawable>(mCacheParams.memCacheSize) { in init()
242 if (mMemoryCache != null) { in addBitmapToCache()
248 mMemoryCache.put(data, value); in addBitmapToCache()
296 if (mMemoryCache != null) { in getBitmapFromMemCache()
297 memValue = mMemoryCache.get(data); in getBitmapFromMemCache()
400 if (mMemoryCache != null) { in clearCache()
401 mMemoryCache.evictAll(); in clearCache()