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()
129 LruCache<String, BitmapDrawable> mDrawableCache; field in CachedBluetoothDevice177 mDrawableCache = new LruCache<String, BitmapDrawable>(cacheSize) { in initDrawableCache()675 if (uri != null && mDrawableCache.get(uri.toString()) == null) { in refresh()676 mDrawableCache.put(uri.toString(), in refresh()1580 BitmapDrawable drawable = mDrawableCache.get(uri.toString()); in getDrawableWithDescription()1594 mDrawableCache.evictAll(); in releaseLruCache()
120 private final DrawableCache mDrawableCache = new DrawableCache(); field in ResourcesImpl482 mDrawableCache.onConfigurationChange(configChanges); in updateConfiguration()597 mDrawableCache.clear(); in clearAllCaches()649 caches = mDrawableCache; in loadDrawable()
1154 mCachedDevice.mDrawableCache = lruCache; in getDrawableWithDescription_isAdvancedDevice_returnAdvancedIcon()1189 assertThat(mCachedDevice.mDrawableCache.size()).isEqualTo(0); in releaseLruCache_lruCacheShouldBeRelease()