Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsModel.java67 private final TaskIconCache mIconCache; field in RecentsModel
76 mIconCache = new TaskIconCache(context, RECENTS_MODEL_EXECUTOR, iconProvider); in RecentsModel()
84 return mIconCache; in getIconCache()
179 mIconCache.onTaskRemoved(stubKey); in onTaskRemoved()
189 mIconCache.clearCache(); in onTrimMemory()
195 mIconCache.invalidateCacheEntries(packageName, user); in onAppIconChanged()
203 mIconCache.clearCache(); in onSystemIconStateChanged()
DTaskIconCache.java65 private final TaskKeyLruCache<TaskCacheEntry> mIconCache; field in TaskIconCache
80 mIconCache = new TaskKeyLruCache<>(cacheSize); in TaskIconCache()
131 mIconCache.remove(taskKey); in onTaskRemoved()
135 mBgExecutor.execute(() -> mIconCache.removeAll(key -> in invalidateCacheEntries()
141 TaskCacheEntry entry = mIconCache.getAndInvalidateIfModified(task.key); in getCacheEntry()
191 mIconCache.put(task.key, entry); in getCacheEntry()
250 mIconCache.evictAll(); in resetFactory()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java66 private final IconCache mIconCache; field in LauncherAppState
140 mIconCache = new IconCache(mContext, mInvariantDeviceProfile, in LauncherAppState()
142 mWidgetCache = new DatabaseWidgetPreviewLoader(mContext, mIconCache); in LauncherAppState()
143 mModel = new LauncherModel(context, this, mIconCache, new AppFilter(mContext)); in LauncherAppState()
144 mOnTerminateCallback.add(mIconCache::close); in LauncherAppState()
156 mIconCache.updateIconParams( in refreshAndReloadLauncher()
177 return mIconCache; in getIconCache()
DLauncher.java319 private IconCache mIconCache; field in Launcher
431 mIconCache = app.getIconCache(); in onCreate()
2364 view = new PendingAppWidgetHostView(this, item, mIconCache, true); in inflateAppWidget()
2492 new PendingAppWidgetHostView(this, item, mIconCache, false)); in inflateAppWidget()
2495 view = new PendingAppWidgetHostView(this, item, mIconCache, false); in inflateAppWidget()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java66 private IconCache mIconCache; field in AllAppsList
85 mIconCache = iconCache; in AllAppsList()
139 mIconCache.getTitleAndIcon(info, activityInfo, false /* useLowResIcon */); in add()
151 mIconCache.getTitleAndIcon(info, info.usingLowResIcon()); in addPromiseApp()
246 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels()
283 mIconCache.getTitleAndIcon(applicationInfo, info, false /* useLowResIcon */); in updatePackage()
299 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
DLoaderCursor.java76 private final IconCache mIconCache; field in LoaderCursor
116 mIconCache = app.getIconCache(); in LoaderCursor()
175 info.bitmap = mIconCache.getDefaultIcon(info.user); in loadSimpleWorkspaceItem()
234 mIconCache.getTitleAndIcon(info, false /* useLowResIcon */); in getRestoredItemInfo()
291 mIconCache.getTitleAndIcon(info, mActivityInfo, useLowResIcon); in getAppShortcutInfo()
292 if (mIconCache.isDefaultIcon(info.bitmap, user)) { in getAppShortcutInfo()
DLoaderTask.java131 private final IconCache mIconCache; field in LoaderTask
155 mIconCache = mApp.getIconCache(); in LoaderTask()
233 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run()
555 mIconCache.getShortcutIcon(info, pinnedShortcut, c::loadIcon); in loadWorkspace()
796 mIconCache.getTitleAndIconForApp( in loadWorkspace()
842 mIconCache.getTitleAndIcon(info, false); in loadWorkspace()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/util/
DWidgetsTableUtilsTest.java58 private IconCache mIconCache; field in WidgetsTableUtilsTest
87 .when(mIconCache).getTitleNoCache(any()); in setUp()
165 widgetItems.add(new WidgetItem(widgetInfo, mTestProfile, mIconCache)); in initTestWidgets()
179 mIconCache, packageManager); in initTestShortcuts()
182 mIconCache, packageManager); in initTestShortcuts()
185 mIconCache, packageManager); in initTestShortcuts()
/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/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java93 final Map<String, Bitmap> mIconCache; field in AdvancedBluetoothDetailsHeaderController
115 mIconCache = new HashMap<>(); in AdvancedBluetoothDetailsHeaderController()
161 for (Bitmap bitmap : mIconCache.values()) { in onDestroy()
166 mIconCache.clear(); in onDestroy()
447 if (mIconCache.containsKey(iconUri)) { in updateIcon()
449 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon()
463 mIconCache.put(iconUri, bitmap); in updateIcon()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsListHeaderViewHolderBinderTest.java78 private IconCache mIconCache; field in WidgetsListHeaderViewHolderBinderTest
101 }).when(mIconCache).getTitleNoCache(any()); in setUp()
106 mIconCache, in setUp()
178 mTestProfile, mIconCache)); in generateWidgetItems()
DWidgetsListSearchHeaderViewHolderBinderTest.java78 private IconCache mIconCache; field in WidgetsListSearchHeaderViewHolderBinderTest
101 }).when(mIconCache).getTitleNoCache(any()); in setUp()
106 mIconCache, in setUp()
179 mTestProfile, mIconCache)); in generateWidgetItems()
DWidgetsListTableViewHolderBinderTest.java87 private IconCache mIconCache; field in WidgetsListTableViewHolderBinderTest
108 }).when(mIconCache).getTitleNoCache(any()); in setUp()
113 mIconCache, in setUp()
177 mTestProfile, mIconCache)); in generateWidgetItems()
DWidgetsListAdapterTest.java69 @Mock private IconCache mIconCache; field in WidgetsListAdapterTest
85 mIconCache, null, null); in setup()
90 .when(mIconCache).getTitleNoCache(any()); in setup()
279 mTestProfile, mIconCache)); in generateWidgetItems()
DWidgetsDiffReporterTest.java65 @Mock private IconCache mIconCache; field in WidgetsDiffReporterTest
88 .when(mIconCache).getTitleNoCache(any()); in setUp()
91 mWidgetsDiffReporter = new WidgetsDiffReporter(mIconCache, mAdapter); in setUp()
308 mTestProfile, mIconCache); in generateWidgetItems()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSuggestionQuickSettingPrefsContainer.java35 IconCache mIconCache; field in SuggestionQuickSettingPrefsContainer
52 mIconCache = new IconCache(mainFragment.getContext()); in onCreate()
132 newSuggPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
139 curPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsDiffReporter.java43 private final IconCache mIconCache; field in WidgetsDiffReporter
47 mIconCache = iconCache; in WidgetsDiffReporter()
190 && !mIconCache.isDefaultIcon(curInfo.bitmap, curInfo.user); in isSamePackageItemInfo()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java67 @Mock private IconCache mIconCache; field in SimpleWidgetsSearchAlgorithmTest
90 }).when(mIconCache).getTitleNoCache(any()); in setUp()
209 mTestProfile, mIconCache); in generateWidgetItems()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/model/
DWidgetsListContentEntryTest.java61 @Mock private IconCache mIconCache; field in WidgetsListContentEntryTest
82 }).when(mIconCache).getTitleNoCache(any()); in setUp()
260 return new WidgetItem(launcherAppWidgetProviderInfo, mTestProfile, mIconCache); in createWidgetItem()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/
DCachingWidgetPreviewLoaderTest.java68 @Mock private IconCache mIconCache; field in CachingWidgetPreviewLoaderTest
101 mWidgetItem = new WidgetItem(mProviderInfo, testProfile, mIconCache); in setUp()
102 mWidgetItem2 = new WidgetItem(mProviderInfo2, testProfile, mIconCache); in setUp()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DDatabaseWidgetPreviewLoader.java98 private final IconCache mIconCache; field in DatabaseWidgetPreviewLoader
105 mIconCache = iconCache; in DatabaseWidgetPreviewLoader()
505 mIconCache.getFullResIcon(info.provider.getPackageName(), info.icon); in generateWidgetPreview()
568 mutateOnMainThread(info.getFullResIcon(mIconCache)), in generateShortcutPreview()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java327 mController.mIconCache.put(ICON_URI, mBitmap); in updateIcon_existInCache_setImageBitmap()
380 mController.mIconCache.put(ICON_URI, mBitmap); in onDestroy_recycleBitmap()
384 assertThat(mController.mIconCache).isEmpty(); in onDestroy_recycleBitmap()
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java93 private IconCache mIconCache; field in WidgetsPredicationUpdateTaskTest
101 }).when(mIconCache).getTitleNoCache(any()); in setup()