Home
last modified time | relevance | path

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

/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageCache.java79 private ImageCacheParams mCacheParams; field in ImageCache
129 mCacheParams = cacheParams; in init()
133 if (mCacheParams.memoryCacheEnabled) { in init()
135 Log.d(TAG, "Memory cache created (size = " + mCacheParams.memCacheSize + ")"); in init()
152 mMemoryCache = new LruCache<String, BitmapDrawable>(mCacheParams.memCacheSize) { in init()
206 File diskCacheDir = mCacheParams.diskCacheDir; in initDiskCache()
207 if (mCacheParams.diskCacheEnabled && diskCacheDir != null) { in initDiskCache()
211 if (getUsableSpace(diskCacheDir) > mCacheParams.diskCacheSize) { in initDiskCache()
214 diskCacheDir, 1, 1, mCacheParams.diskCacheSize); in initDiskCache()
219 mCacheParams.diskCacheDir = null; in initDiskCache()
[all …]