Searched refs:mDrawableCache (Results 1 – 5 of 5) sorted by relevance
38 private final LruCache<String, Drawable> mDrawableCache; field in AppIconCacheManager41 mDrawableCache = new LruCache<String, Drawable>(MAX_CACHE_SIZE_IN_KB) { in AppIconCacheManager()84 mDrawableCache.put(key, drawable); in put()100 final Drawable cachedDrawable = mDrawableCache.get(key); in get()109 sAppIconCacheManager.mDrawableCache.evictAll(); in release()133 sAppIconCacheManager.mDrawableCache.trimToSize(0); in trimMemory()139 final int maxSize = sAppIconCacheManager.mDrawableCache.maxSize(); in trimMemory()140 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()
169 LruCache<String, BitmapDrawable> mDrawableCache; field in CachedBluetoothDevice219 mDrawableCache = new LruCache<String, BitmapDrawable>(cacheSize) { in initDrawableCache()835 if (uri != null && mDrawableCache.get(uri.toString()) == null) { in refresh()836 mDrawableCache.put(uri.toString(), in refresh()2381 BitmapDrawable drawable = mDrawableCache.get(uri.toString()); in getDrawableWithDescription()2395 mDrawableCache.evictAll(); in releaseLruCache()
126 private final DrawableCache mDrawableCache = new DrawableCache(); field in ResourcesImpl591 mDrawableCache.onConfigurationChange(configChanges); in updateConfigurationImpl()706 mDrawableCache.clear(); in clearAllCaches()759 caches = mDrawableCache; in loadDrawable()
1890 mCachedDevice.mDrawableCache = lruCache; in getDrawableWithDescription_isAdvancedDevice_returnAdvancedIcon()1925 assertThat(mCachedDevice.mDrawableCache.size()).isEqualTo(0); in releaseLruCache_lruCacheShouldBeRelease()