/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentsModel.java | 73 private final TaskIconCache mIconCache; field in RecentsModel 83 mIconCache = new TaskIconCache(context, RECENTS_MODEL_EXECUTOR, iconProvider); in RecentsModel() 84 mIconCache.registerTaskVisualsChangeListener(this); in RecentsModel() 92 return mIconCache; in getIconCache() 206 mIconCache.onTaskRemoved(stubKey); in onTaskRemoved() 216 mIconCache.clearCache(); in onTrimMemory() 222 mIconCache.invalidateCacheEntries(packageName, user); in onAppIconChanged() 237 mIconCache.clearCache(); in onSystemIconStateChanged()
|
D | TaskIconCache.java | 67 private final TaskKeyLruCache<TaskCacheEntry> mIconCache; field in TaskIconCache 87 mIconCache = new TaskKeyLruCache<>(cacheSize); in TaskIconCache() 139 mIconCache.remove(taskKey); in onTaskRemoved() 143 mBgExecutor.execute(() -> mIconCache.removeAll(key -> in invalidateCacheEntries() 149 TaskCacheEntry entry = mIconCache.getAndInvalidateIfModified(task.key); in getCacheEntry() 198 mIconCache.put(task.key, entry); in getCacheEntry() 276 mIconCache.evictAll(); in resetFactory()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 68 private IconCache mIconCache; field in AllAppsList 89 mIconCache = iconCache; in AllAppsList() 148 mIconCache.getTitleAndIcon(info, activityInfo, false /* useLowResIcon */); in add() 174 mIconCache.getTitleAndIcon(promiseAppInfo, promiseAppInfo.usingLowResIcon()); in addPromiseApp() 278 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels() 315 mIconCache.getTitleAndIcon(applicationInfo, info, false /* useLowResIcon */); in updatePackage() 331 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
|
D | LoaderCursor.java | 71 private final IconCache mIconCache; field in LoaderCursor 119 mIconCache = app.getIconCache(); in LoaderCursor() 186 info.bitmap = mIconCache.getDefaultIcon(info.user); in loadSimpleWorkspaceItem() 297 mIconCache.getTitleAndIcon(info, false /* useLowResIcon */); in getRestoredItemInfo() 313 info.contentDescription = mIconCache.getUserBadgedLabel(info.title, info.user); in getRestoredItemInfo() 360 mIconCache.getTitleAndIcon(info, mActivityInfo, useLowResIcon); in getAppShortcutInfo() 361 if (mIconCache.isDefaultIcon(info.bitmap, user)) { in getAppShortcutInfo() 384 info.contentDescription = mIconCache.getUserBadgedLabel(info.title, info.user); in getAppShortcutInfo()
|
D | LoaderTask.java | 136 private final IconCache mIconCache; field in LoaderTask 160 mIconCache = mApp.getIconCache(); in LoaderTask() 254 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run() 461 mIconCache.getTitleAndIcon(info, false); in loadWorkspace() 615 mIconCache.getShortcutIcon(info, pinnedShortcut, c::loadIcon); in processWorkspaceItem() 851 mIconCache.getTitleAndIconForApp( in processWorkspaceItem() 869 mIconCache.getTitlesAndIconsInBulk(iconRequestInfos); in maybeLoadWorkspaceIconsInBulk() 872 if (mIconCache.isDefaultIcon(wai.bitmap, wai.user)) { in maybeLoadWorkspaceIconsInBulk() 990 mIconCache.getTitlesAndIconsInBulk(iconRequestInfos); in loadAllApps()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAppState.java | 73 private final IconCache mIconCache; field in LauncherAppState 156 mIconCache = new IconCache(mContext, mInvariantDeviceProfile, in LauncherAppState() 158 mModel = new LauncherModel(context, this, mIconCache, new AppFilter(mContext), in LauncherAppState() 160 mOnTerminateCallback.add(mIconCache::close); in LauncherAppState() 172 mIconCache.updateIconParams( in refreshAndReloadLauncher() 193 return mIconCache; in getIconCache()
|
D | Launcher.java | 360 private IconCache mIconCache; field in Launcher 484 mIconCache = app.getIconCache(); in onCreate() 2579 view = new PendingAppWidgetHostView(this, item, mIconCache, true); 2707 new PendingAppWidgetHostView(this, item, mIconCache, false)); 2710 view = new PendingAppWidgetHostView(this, item, mIconCache, false);
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/util/ |
D | WidgetsTableUtilsTest.java | 69 private IconCache mIconCache; field in WidgetsTableUtilsTest 102 .when(mIconCache).getTitleNoCache(any()); in setUp() 225 widgetItems.add(new WidgetItem(widgetInfo, mTestInvariantProfile, mIconCache)); in initTestWidgets() 239 mIconCache, packageManager); in initTestShortcuts() 242 mIconCache, packageManager); in initTestShortcuts() 245 mIconCache, packageManager); in initTestShortcuts()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | CachingIconLoader.java | 43 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/ |
D | AdvancedBluetoothDetailsHeaderController.java | 93 final Map<String, Bitmap> mIconCache; field in AdvancedBluetoothDetailsHeaderController 121 mIconCache = new HashMap<>(); in AdvancedBluetoothDetailsHeaderController() 167 for (Bitmap bitmap : mIconCache.values()) { in onDestroy() 172 mIconCache.clear(); in onDestroy() 477 if (mIconCache.containsKey(iconUri)) { in updateIcon() 479 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon() 493 mIconCache.put(iconUri, bitmap); in updateIcon()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | SuggestionQuickSettingPrefsContainer.java | 35 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/tests/src/com/android/launcher3/widget/picker/ |
D | WidgetsListTableViewHolderBinderTest.java | 81 private IconCache mIconCache; field in WidgetsListTableViewHolderBinderTest 94 }).when(mIconCache).getTitleNoCache(any()); in setUp() 147 mTestProfile, mIconCache)); in generateWidgetItems()
|
D | WidgetsListHeaderViewHolderBinderTest.java | 74 private IconCache mIconCache; field in WidgetsListHeaderViewHolderBinderTest 90 }).when(mIconCache).getTitleNoCache(any()); in setUp() 150 mTestProfile, mIconCache)); in generateWidgetItems()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/search/ |
D | SimpleWidgetsSearchAlgorithmTest.java | 68 @Mock private IconCache mIconCache; field in SimpleWidgetsSearchAlgorithmTest 91 }).when(mIconCache).getTitleNoCache(any()); in setUp() 205 mTestProfile, mIconCache); in generateWidgetItems()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/model/ |
D | WidgetsListContentEntryTest.java | 66 @Mock private IconCache mIconCache; field in WidgetsListContentEntryTest 85 }).when(mIconCache).getTitleNoCache(any()); in setUp() 258 return new WidgetItem(launcherAppWidgetProviderInfo, mTestProfile, mIconCache); in createWidgetItem()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/ |
D | WidgetsPredicationUpdateTaskTest.java | 80 private IconCache mIconCache; field in WidgetsPredicationUpdateTaskTest 89 }).when(mIconCache).getTitleNoCache(any()); in setup()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 328 mController.mIconCache.put(ICON_URI, mBitmap); in updateIcon_existInCache_setImageBitmap() 381 mController.mIconCache.put(ICON_URI, mBitmap); in onDestroy_recycleBitmap() 385 assertThat(mController.mIconCache).isEmpty(); in onDestroy_recycleBitmap()
|