Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/util/
DImageCache.java37 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; field in ImageCache
51 mMemoryCache = new LruCache<String, ScaledBitmapInfo>(memCacheSize) { in ImageCache()
110 synchronized (mMemoryCache) { in putIfNeeded()
111 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded()
113 mMemoryCache.put(key, old); in putIfNeeded()
122 mMemoryCache.size() + " / " + mMemoryCache.maxSize() + " Kbytes"); in putIfNeeded()
135 ScaledBitmapInfo memBitmapInfo = mMemoryCache.get(key); in get()
137 int hit = mMemoryCache.hitCount(); in get()
138 int miss = mMemoryCache.missCount(); in get()
154 return mMemoryCache.remove(key); in remove()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DDrawableDownloader.java145 private LruCache<String, BitmapItem> mMemoryCache; field in DrawableDownloader
186 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) { in DrawableDownloader()
207 mMemoryCache.evictAll(); in trimTo()
209 mMemoryCache.trimToSize((int) (amount * mMemoryCache.maxSize())); in trimTo()
355 BitmapItem bitmapItem = mMemoryCache.get(bucketKey); in addBitmapToMemoryCache()
361 mMemoryCache.remove(bucketKey); in addBitmapToMemoryCache()
370 mMemoryCache.put(bucketKey, bitmapItem); in addBitmapToMemoryCache()
376 BitmapItem item = mMemoryCache.get(bucketKey); in getBitmapFromMemCache()
386 BitmapItem item = mMemoryCache.get(bucketKey); in getLargestBitmapFromMemCache()
DBitmapDownloader.java70 private LruCache<String, BitmapItem> mMemoryCache; field in BitmapDownloader
112 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) { in BitmapDownloader()
263 BitmapItem bitmapItem = mMemoryCache.get(bucketKey); in addBitmapToMemoryCache()
277 mMemoryCache.put(bucketKey, bitmapItem); in addBitmapToMemoryCache()
285 BitmapItem bitmapItem = mMemoryCache.get(bucketKey); in getBitmapFromMemCache()
307 bitmapItem = mMemoryCache.get(bucketKey); in getBitmapFromMemCache()
318 BitmapItem bitmapItem = mMemoryCache.get(bucketKey); in getBitmapFromMemCache()
331 BitmapItem bitmapItem = mMemoryCache.get(bucketKey); in getLargestBitmapFromMemCache()