/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentsModel.java | 67 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()
|
D | TaskIconCache.java | 65 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/ |
D | LauncherAppState.java | 66 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()
|
D | Launcher.java | 319 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/ |
D | AllAppsList.java | 66 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()
|
D | LoaderCursor.java | 76 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()
|
D | LoaderTask.java | 131 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/ |
D | WidgetsTableUtilsTest.java | 58 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/ |
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 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/ |
D | WidgetsListHeaderViewHolderBinderTest.java | 78 private IconCache mIconCache; field in WidgetsListHeaderViewHolderBinderTest 101 }).when(mIconCache).getTitleNoCache(any()); in setUp() 106 mIconCache, in setUp() 178 mTestProfile, mIconCache)); in generateWidgetItems()
|
D | WidgetsListSearchHeaderViewHolderBinderTest.java | 78 private IconCache mIconCache; field in WidgetsListSearchHeaderViewHolderBinderTest 101 }).when(mIconCache).getTitleNoCache(any()); in setUp() 106 mIconCache, in setUp() 179 mTestProfile, mIconCache)); in generateWidgetItems()
|
D | WidgetsListTableViewHolderBinderTest.java | 87 private IconCache mIconCache; field in WidgetsListTableViewHolderBinderTest 108 }).when(mIconCache).getTitleNoCache(any()); in setUp() 113 mIconCache, in setUp() 177 mTestProfile, mIconCache)); in generateWidgetItems()
|
D | WidgetsListAdapterTest.java | 69 @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()
|
D | WidgetsDiffReporterTest.java | 65 @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/ |
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/src/com/android/launcher3/widget/picker/ |
D | WidgetsDiffReporter.java | 43 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/ |
D | SimpleWidgetsSearchAlgorithmTest.java | 67 @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/ |
D | WidgetsListContentEntryTest.java | 61 @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/ |
D | CachingWidgetPreviewLoaderTest.java | 68 @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/ |
D | DatabaseWidgetPreviewLoader.java | 98 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/ |
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 327 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/ |
D | WidgetsPredicationUpdateTaskTest.java | 93 private IconCache mIconCache; field in WidgetsPredicationUpdateTaskTest 101 }).when(mIconCache).getTitleNoCache(any()); in setup()
|