Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppIconCacheManager.java38 private final LruCache<String, Drawable> mDrawableCache; field in AppIconCacheManager
41 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockIcon.java58 private final SparseArray<Drawable> mDrawableCache = new SparseArray<>(); field in LockIcon
107 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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java169 LruCache<String, BitmapDrawable> mDrawableCache; field in CachedBluetoothDevice
219 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()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java126 private final DrawableCache mDrawableCache = new DrawableCache(); field in ResourcesImpl
591 mDrawableCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
706 mDrawableCache.clear(); in clearAllCaches()
759 caches = mDrawableCache; in loadDrawable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java1890 mCachedDevice.mDrawableCache = lruCache; in getDrawableWithDescription_isAdvancedDevice_returnAdvancedIcon()
1925 assertThat(mCachedDevice.mDrawableCache.size()).isEqualTo(0); in releaseLruCache_lruCacheShouldBeRelease()