Home
last modified time | relevance | path

Searched refs:mIconCache (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DIconCacheTest.java43 private IconCache mIconCache; field in IconCacheTest
51 mIconCache = new IconCache(mContext); in setUp()
56 assertThat(mIconCache.getIcon(null)).isNull(); in testGetIcon_iconisNull()
61 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
63 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
69 mIconCache.getIcon(mIcon); in testGetIcon_iconLoadedFirstTime()
70 assertTrue(mIconCache.mMap.containsKey(mIcon)); in testGetIcon_iconLoadedFirstTime()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/
DRecentsTaskLoader.java71 private final TaskKeyLruCache<Drawable> mIconCache; field in RecentsTaskLoader
110 mIconCache = new TaskKeyLruCache<>(mMaxIconCacheSize, mClearActivityInfoOnEviction); in RecentsTaskLoader()
116 mIconLoader = createNewIconLoader(context, mIconCache, mActivityInfoCache); in RecentsTaskLoader()
188 Drawable icon = mIconCache.getAndInvalidateIfModified(t.key); in loadTaskData()
203 mIconCache.remove(t.key); in deleteTaskData()
220 mIconCache.trimToSize(Math.max(mNumVisibleTasksLoaded, in onTrimMemory()
226 mIconCache.trimToSize(Math.max(1, mMaxIconCacheSize / 2)); in onTrimMemory()
233 mIconCache.trimToSize(Math.max(1, mMaxIconCacheSize / 4)); in onTrimMemory()
240 mIconCache.evictAll(); in onTrimMemory()
415 mIconCache.dump(innerPrefix, writer); in dump()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DIconLoader.java42 protected final TaskKeyLruCache<Drawable> mIconCache; field in IconLoader
48 mIconCache = iconCache; in IconLoader()
74 Drawable cachedIcon = mIconCache.get(t.key); in getIcon()
77 mIconCache.put(t.key, cachedIcon); in getIcon()
88 Drawable icon = mIconCache.getAndInvalidateIfModified(taskKey); in getAndInvalidateIfModified()
96 mIconCache.put(taskKey, icon); in getAndInvalidateIfModified()