Searched refs:mDrawableCache (Results 1 – 5 of 5) sorted by relevance
37 private final LruCache<String, Drawable> mDrawableCache; field in AppIconCacheManager40 mDrawableCache = new LruCache<String, Drawable>(MAX_CACHE_SIZE_IN_KB) { in AppIconCacheManager()76 mDrawableCache.put(key, drawable); in put()92 final Drawable cachedDrawable = mDrawableCache.get(key); in get()101 sAppIconCacheManager.mDrawableCache.evictAll(); in release()125 sAppIconCacheManager.mDrawableCache.trimToSize(0); in trimMemory()131 final int maxSize = sAppIconCacheManager.mDrawableCache.maxSize(); in trimMemory()132 sAppIconCacheManager.mDrawableCache.trimToSize(maxSize / 2); in trimMemory()
58 private final SparseArray<Drawable> mDrawableCache = new SparseArray<>(); field in LockIcon107 mDrawableCache.clear(); in onConfigurationChanged()156 mDrawableCache.clear(); in updateColor()173 if (!mDrawableCache.contains(iconRes)) { in getIcon()174 mDrawableCache.put(iconRes, getContext().getDrawable(iconRes)); in getIcon()177 return mDrawableCache.get(iconRes); in getIcon()
157 LruCache<String, BitmapDrawable> mDrawableCache; field in CachedBluetoothDevice205 mDrawableCache = new LruCache<String, BitmapDrawable>(cacheSize) { in initDrawableCache()758 if (uri != null && mDrawableCache.get(uri.toString()) == null) { in refresh()759 mDrawableCache.put(uri.toString(), in refresh()1989 BitmapDrawable drawable = mDrawableCache.get(uri.toString()); in getDrawableWithDescription()2003 mDrawableCache.evictAll(); in releaseLruCache()
123 private final DrawableCache mDrawableCache = new DrawableCache(); field in ResourcesImpl567 mDrawableCache.onConfigurationChange(configChanges); in updateConfigurationImpl()682 mDrawableCache.clear(); in clearAllCaches()734 caches = mDrawableCache; in loadDrawable()
1857 mCachedDevice.mDrawableCache = lruCache; in getDrawableWithDescription_isAdvancedDevice_returnAdvancedIcon()1892 assertThat(mCachedDevice.mDrawableCache.size()).isEqualTo(0); in releaseLruCache_lruCacheShouldBeRelease()