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.java37 private final LruCache<String, Drawable> mDrawableCache; field in AppIconCacheManager
40 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()
/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.java157 LruCache<String, BitmapDrawable> mDrawableCache; field in CachedBluetoothDevice
205 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()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java123 private final DrawableCache mDrawableCache = new DrawableCache(); field in ResourcesImpl
567 mDrawableCache.onConfigurationChange(configChanges); in updateConfigurationImpl()
682 mDrawableCache.clear(); in clearAllCaches()
734 caches = mDrawableCache; in loadDrawable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java1857 mCachedDevice.mDrawableCache = lruCache; in getDrawableWithDescription_isAdvancedDevice_returnAdvancedIcon()
1892 assertThat(mCachedDevice.mDrawableCache.size()).isEqualTo(0); in releaseLruCache_lruCacheShouldBeRelease()