/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskIconCache.java | 64 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()
|
D | RecentsModel.java | 59 private final TaskIconCache mIconCache; field in RecentsModel 68 mIconCache = new TaskIconCache(context, looper); in RecentsModel() 77 return mIconCache; in getIconCache() 165 mIconCache.onTaskRemoved(dummyKey); in onTaskRemoved() 175 mIconCache.clear(); in onTrimMemory() 180 mIconCache.invalidateCacheEntries(pkg, user); in onPackageIconChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 68 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()
|
D | LoaderCursor.java | 73 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()
|
D | LoaderTask.java | 125 private final IconCache mIconCache; field in LoaderTask 144 mIconCache = mApp.getIconCache(); in LoaderTask() 217 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run() 545 mIconCache.getShortcutIcon(info, pinnedShortcut, c::loadIcon); in loadWorkspace() 759 mIconCache.getTitleAndIconForApp( in loadWorkspace() 831 mIconCache.getTitleAndIcon(info, false); in loadWorkspace() 881 mIconCache.getTitleAndIcon(info, false); in loadCachedPredictions()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAppState.java | 58 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()
|
D | WidgetPreviewLoader.java | 80 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()
|
D | Launcher.java | 310 private IconCache mIconCache; field in Launcher 379 mIconCache = app.getIconCache(); in onCreate() 2231 view = new PendingAppWidgetHostView(this, item, mIconCache, true); in inflateAppWidget() 2338 new PendingAppWidgetHostView(this, item, mIconCache, false)); in inflateAppWidget() 2341 view = new PendingAppWidgetHostView(this, item, mIconCache, false); in inflateAppWidget()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | AdvancedBluetoothDetailsHeaderController.java | 72 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/ |
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/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/ |
D | DynamicItemCache.java | 78 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/ |
D | WidgetsDiffReporter.java | 38 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/ |
D | WidgetsListAdapterTest.java | 59 @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/ |
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 227 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/ |
D | MainFragment.java | 112 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/ |
D | MainFragmentTest.java | 326 mMainFragment.mIconCache = mock(IconCache.class); in testUpdateSuggestionList_hasTheSameSuggestion() 344 mMainFragment.mIconCache = mock(IconCache.class); in testUpdateSuggestionList_hasNewSuggestion()
|