Home
last modified time | relevance | path

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

/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageCache.java77 int memCacheSize = calculateMemCacheSize(memCacheSizePercent); in init() local
81 Log.d(TAG, "Memory cache created (size = " + memCacheSize + ")"); in init()
83 mMemoryCache = new LruCache<String, Bitmap>(memCacheSize) { in init()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageCache.java135 Log.d(TAG, "Memory cache created (size = " + mCacheParams.memCacheSize + ")"); in init()
152 mMemoryCache = new LruCache<String, BitmapDrawable>(mCacheParams.memCacheSize) { in init()
469 public int memCacheSize = DEFAULT_MEM_CACHE_SIZE; field in ImageCache.ImageCacheParams
509 memCacheSize = Math.round(percent * Runtime.getRuntime().maxMemory() / 1024); in setMemCacheSizePercent()