Searched refs:mIconCache (Results 1 – 3 of 3) sorted by relevance
43 private IconCache mIconCache; field in IconCacheTest51 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()
71 private final TaskKeyLruCache<Drawable> mIconCache; field in RecentsTaskLoader110 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()
42 protected final TaskKeyLruCache<Drawable> mIconCache; field in IconLoader48 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()