Home
last modified time | relevance | path

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

/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.java112 LruCache<String, BitmapDrawable> mDrawableCache; field in CachedBluetoothDevice
151 mDrawableCache = new LruCache<String, BitmapDrawable>(cacheSize) { in initDrawableCache()
531 if (uri != null && mDrawableCache.get(uri.toString()) == null) { in refresh()
532 mDrawableCache.put(uri.toString(), in refresh()
1229 BitmapDrawable drawable = mDrawableCache.get(uri.toString()); in getDrawableWithDescription()
1244 mDrawableCache.evictAll(); in releaseLruCache()
/frameworks/base/core/java/android/content/res/
DResourcesImpl.java115 private final DrawableCache mDrawableCache = new DrawableCache(); field in ResourcesImpl
470 mDrawableCache.onConfigurationChange(configChanges); in updateConfiguration()
585 mDrawableCache.clear(); in clearAllCaches()
637 caches = mDrawableCache; in loadDrawable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceTest.java968 mCachedDevice.mDrawableCache = lruCache; in getDrawableWithDescription_isAdvancedDevice_returnAdvancedIcon()
1003 assertThat(mCachedDevice.mDrawableCache.size()).isEqualTo(0); in releaseLruCache_lruCacheShouldBeRelease()