Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java64 private final TaskKeyLruCache<TaskCacheEntry> mIconCache; field in TaskIconCache
75 mIconCache = new TaskKeyLruCache<>(cacheSize); in TaskIconCache()
115 mIconCache.evictAll(); in clear()
119 mIconCache.remove(taskKey); in onTaskRemoved()
124 () -> mIconCache.removeAll(key -> in invalidateCacheEntries()
130 TaskCacheEntry entry = mIconCache.getAndInvalidateIfModified(task.key); in getCacheEntry()
180 mIconCache.put(task.key, entry); in getCacheEntry()
DRecentsModel.java59 private final TaskIconCache mIconCache; field in RecentsModel
68 mIconCache = new TaskIconCache(context, looper); in RecentsModel()
77 return mIconCache; in getIconCache()
172 mIconCache.onTaskRemoved(dummyKey); in onTaskRemoved()
182 mIconCache.clear(); in onTrimMemory()
187 mIconCache.invalidateCacheEntries(pkg, user); in onPackageIconChanged()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java68 private IconCache mIconCache; field in AllAppsList
87 mIconCache = iconCache; in AllAppsList()
141 mIconCache.getTitleAndIcon(info, activityInfo, true /* useLowResIcon */); in add()
154 mIconCache.getTitleAndIcon(info, info.usingLowResIcon()); in addPromiseApp()
237 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels()
271 mIconCache.getTitleAndIcon(applicationInfo, info, true /* useLowResIcon */); in updatePackage()
283 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
DLoaderCursor.java73 private final IconCache mIconCache; field in LoaderCursor
110 mIconCache = app.getIconCache(); in LoaderCursor()
167 info.bitmap = mIconCache.getDefaultIcon(info.user); in loadSimpleWorkspaceItem()
226 mIconCache.getTitleAndIcon(info, false /* useLowResIcon */); in getRestoredItemInfo()
279 mIconCache.getTitleAndIcon(info, lai, useLowResIcon); in getAppShortcutInfo()
280 if (mIconCache.isDefaultIcon(info.bitmap, user)) { in getAppShortcutInfo()
DLoaderTask.java125 private final IconCache mIconCache; field in LoaderTask
142 mIconCache = mApp.getIconCache(); in LoaderTask()
215 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run()
543 mIconCache.getShortcutIcon(info, pinnedShortcut, c::loadIcon); in loadWorkspace()
756 mIconCache.getTitleAndIconForApp( in loadWorkspace()
826 mIconCache.getTitleAndIcon(info, false); in loadWorkspace()
876 mIconCache.getTitleAndIcon(info, false); in loadCachedPredictions()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java58 private final IconCache mIconCache; field in LauncherAppState
129 mIconCache = new IconCache(mContext, mInvariantDeviceProfile, iconCacheFileName); in LauncherAppState()
130 mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache); in LauncherAppState()
131 mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext)); in LauncherAppState()
149 mIconCache.updateIconParams(idp.fillResIconDpi, idp.iconBitmapSize); in onIdpChanged()
181 return mIconCache; in getIconCache()
DWidgetPreviewLoader.java80 private final IconCache mIconCache; field in WidgetPreviewLoader
89 mIconCache = iconCache; in WidgetPreviewLoader()
484 mIconCache.getFullResIcon(info.provider.getPackageName(), info.icon); in generateWidgetPreview()
546 mutateOnMainThread(info.getFullResIcon(mIconCache)), in generateShortcutPreview()
DLauncher.java307 private IconCache mIconCache; field in Launcher
376 mIconCache = app.getIconCache(); in onCreate()
2201 view = new PendingAppWidgetHostView(this, item, mIconCache, true); in inflateAppWidget()
2308 new PendingAppWidgetHostView(this, item, mIconCache, false)); in inflateAppWidget()
2311 view = new PendingAppWidgetHostView(this, item, mIconCache, false); in inflateAppWidget()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java72 final Map<String, Bitmap> mIconCache; field in AdvancedBluetoothDetailsHeaderController
94 mIconCache = new HashMap<>(); in AdvancedBluetoothDetailsHeaderController()
142 for (Bitmap bitmap : mIconCache.values()) { in onDestroy()
147 mIconCache.clear(); in onDestroy()
297 if (mIconCache.containsKey(iconUri)) { in updateIcon()
298 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon()
311 mIconCache.put(iconUri, bitmap); in updateIcon()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCachingIconLoader.java43 private final WeakHashMap<String, Entry> mIconCache; field in CachingIconLoader
52 mIconCache = new WeakHashMap<String, Entry>(); in CachingIconLoader()
87 NowOrLater<Drawable.ConstantState> cached = mIconCache.get(drawableId);
96 mIconCache.put(resourceUri, drawable);
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DDynamicItemCache.java78 private final IconCache mIconCache; field in DynamicItemCache
89 mIconCache = LauncherAppState.getInstance(mContext).getIconCache(); in DynamicItemCache()
173 mIconCache.getShortcutIcon(si, details.get(0)); in loadShortcutWorker()
260 mIconCache.updateIconInBackground(callback, info); in updateDependencies()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsDiffReporter.java38 private final IconCache mIconCache; field in WidgetsDiffReporter
42 mIconCache = iconCache; in WidgetsDiffReporter()
141 && !mIconCache.isDefaultIcon(curInfo.bitmap, curInfo.user); in isSamePackageItemInfo()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/
DWidgetsListAdapterTest.java59 @Mock private IconCache mIconCache; field in WidgetsListAdapterTest
73 mIconCache, null, null); in setup()
139 .fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache); in generateSampleMap()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java227 mController.mIconCache.put(ICON_URI, mBitmap); in updateIcon_existInCache_setImageBitmap()
280 mController.mIconCache.put(ICON_URI, mBitmap); in onDestroy_recycleBitmap()
284 assertThat(mController.mIconCache).isEmpty(); in onDestroy_recycleBitmap()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java112 IconCache mIconCache; field in MainFragment
152 mIconCache = new IconCache(getContext()); in onCreate()
520 newSuggPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
527 curPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/
DMainFragmentTest.java326 mMainFragment.mIconCache = mock(IconCache.class); in testUpdateSuggestionList_hasTheSameSuggestion()
344 mMainFragment.mIconCache = mock(IconCache.class); in testUpdateSuggestionList_hasNewSuggestion()