Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
H A DIconCacheTest.java43 private IconCache mIconCache; field in IconCacheTest
51 mIconCache = new IconCache(mContext); in setUp()
56 assertThat(mIconCache.getIcon(null)).isNull(); in testGetIcon_iconisNull()
61 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
63 mIconCache.getIcon(mIcon); in testGetIcon_iconAlreadyLoaded()
69 mIconCache.getIcon(mIcon); in testGetIcon_iconLoadedFirstTime()
70 assertTrue(mIconCache.mMap.containsKey(mIcon)); in testGetIcon_iconLoadedFirstTime()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/
H A DIconCacheUpdateHandler.java63 private final BaseIconCache mIconCache; field in IconCacheUpdateHandler
71 mIconCache = cache; in IconCacheUpdateHandler()
76 mIconCache.mWorkerHandler.removeCallbacksAndMessages(ICON_UPDATE_TOKEN); in IconCacheUpdateHandler()
94 PackageManager pm = mIconCache.mPackageManager; in createPackageInfoMap()
142 long userSerial = mIconCache.getSerialNumberForUser(user); in updateIconsPerUser()
146 try (Cursor c = mIconCache.mIconDb.query( in updateIconsPerUser()
169 mIconCache.remove(component, user); in updateIconsPerUser()
195 mIconCache.remove(component, user); in updateIconsPerUser()
240 mIconCache.mIconDb.delete(queryBuilder.toString(), null); in finish()
276 mIconCache.addIconToDBAndMemCache( in run()
[all …]
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DRecentsModel.java70 private final TaskIconCache mIconCache; field in RecentsModel
79 mIconCache = new TaskIconCache(context, RECENTS_MODEL_EXECUTOR, iconProvider); in RecentsModel()
87 return mIconCache; in getIconCache()
183 mIconCache.onTaskRemoved(stubKey); in onTaskRemoved()
193 mIconCache.clearCache(); in onTrimMemory()
199 mIconCache.invalidateCacheEntries(packageName, user); in onAppIconChanged()
207 mIconCache.clearCache(); in onSystemIconStateChanged()
H A 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()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/util/
H A DWidgetsTableUtilsTest.java61 private IconCache mIconCache; field in WidgetsTableUtilsTest
90 .when(mIconCache).getTitleNoCache(any()); in setUp()
187 widgetItems.add(new WidgetItem(widgetInfo, mTestProfile, mIconCache)); in initTestWidgets()
201 mIconCache, packageManager); in initTestShortcuts()
204 mIconCache, packageManager); in initTestShortcuts()
207 mIconCache, packageManager); in initTestShortcuts()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherAppState.java65 private final IconCache mIconCache; field in LauncherAppState
142 mIconCache = new IconCache(mContext, mInvariantDeviceProfile, in LauncherAppState()
144 mModel = new LauncherModel(context, this, mIconCache, new AppFilter(mContext), in LauncherAppState()
146 mOnTerminateCallback.add(mIconCache::close); in LauncherAppState()
158 mIconCache.updateIconParams( in refreshAndReloadLauncher()
179 return mIconCache; in getIconCache()
H A DLauncher.java338 private IconCache mIconCache; field in Launcher
458 mIconCache = app.getIconCache(); in onCreate()
2438 view = new PendingAppWidgetHostView(this, item, mIconCache, true); in inflateAppWidget()
2566 new PendingAppWidgetHostView(this, item, mIconCache, false)); in inflateAppWidget()
2569 view = new PendingAppWidgetHostView(this, item, mIconCache, false); in inflateAppWidget()
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A 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);
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DAllAppsList.java66 private IconCache mIconCache; field in AllAppsList
85 mIconCache = iconCache; in AllAppsList()
144 mIconCache.getTitleAndIcon(info, activityInfo, false /* useLowResIcon */); in add()
168 mIconCache.getTitleAndIcon(promiseAppInfo, promiseAppInfo.usingLowResIcon()); in addPromiseApp()
270 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels()
307 mIconCache.getTitleAndIcon(applicationInfo, info, false /* useLowResIcon */); in updatePackage()
323 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
H A DLoaderCursor.java72 private final IconCache mIconCache; field in LoaderCursor
112 mIconCache = app.getIconCache(); in LoaderCursor()
171 info.bitmap = mIconCache.getDefaultIcon(info.user); in loadSimpleWorkspaceItem()
220 mIconCache.getTitleAndIcon(info, false /* useLowResIcon */); in getRestoredItemInfo()
283 mIconCache.getTitleAndIcon(info, mActivityInfo, useLowResIcon); in getAppShortcutInfo()
284 if (mIconCache.isDefaultIcon(info.bitmap, user)) { in getAppShortcutInfo()
H A DLoaderTask.java135 private final IconCache mIconCache; field in LoaderTask
159 mIconCache = mApp.getIconCache(); in LoaderTask()
252 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run()
581 mIconCache.getShortcutIcon(info, pinnedShortcut, c::loadIcon); in loadWorkspace()
826 mIconCache.getTitleAndIconForApp( in loadWorkspace()
841 mIconCache.getTitlesAndIconsInBulk(iconRequestInfos); in loadWorkspace()
845 if (mIconCache.isDefaultIcon(wai.bitmap, wai.user)) { in loadWorkspace()
887 mIconCache.getTitleAndIcon(info, false); in loadWorkspace()
1002 mIconCache.getTitlesAndIconsInBulk(iconRequestInfos); in loadAllApps()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DAdvancedBluetoothDetailsHeaderController.java93 final Map<String, Bitmap> mIconCache; field in AdvancedBluetoothDetailsHeaderController
117 mIconCache = new HashMap<>(); in AdvancedBluetoothDetailsHeaderController()
163 for (Bitmap bitmap : mIconCache.values()) { in onDestroy()
168 mIconCache.clear(); in onDestroy()
449 if (mIconCache.containsKey(iconUri)) { in updateIcon()
451 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon()
465 mIconCache.put(iconUri, bitmap); in updateIcon()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/
H A DWidgetsListAdapterTest.java73 @Mock private IconCache mIconCache; field in WidgetsListAdapterTest
89 mIconCache, () -> 0, null, null); in setup()
94 .when(mIconCache).getTitleNoCache(any()); in setup()
288 mTestProfile, mIconCache)); in generateWidgetItems()
H A DWidgetsListHeaderViewHolderBinderTest.java74 private IconCache mIconCache; field in WidgetsListHeaderViewHolderBinderTest
90 }).when(mIconCache).getTitleNoCache(any()); in setUp()
150 mTestProfile, mIconCache)); in generateWidgetItems()
H A DWidgetsListSearchHeaderViewHolderBinderTest.java74 private IconCache mIconCache; field in WidgetsListSearchHeaderViewHolderBinderTest
89 }).when(mIconCache).getTitleNoCache(any()); in setUp()
150 mTestProfile, mIconCache)); in generateWidgetItems()
H A DWidgetsListTableViewHolderBinderTest.java81 private IconCache mIconCache; field in WidgetsListTableViewHolderBinderTest
94 }).when(mIconCache).getTitleNoCache(any()); in setUp()
147 mTestProfile, mIconCache)); in generateWidgetItems()
H A DWidgetsDiffReporterTest.java67 @Mock private IconCache mIconCache; field in WidgetsDiffReporterTest
90 .when(mIconCache).getTitleNoCache(any()); in setUp()
93 mWidgetsDiffReporter = new WidgetsDiffReporter(mIconCache, mAdapter); in setUp()
305 mTestProfile, mIconCache); in generateWidgetItems()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
H A DWidgetsDiffReporter.java43 private final IconCache mIconCache; field in WidgetsDiffReporter
47 mIconCache = iconCache; in WidgetsDiffReporter()
190 && !mIconCache.isDefaultIcon(curInfo.bitmap, curInfo.user); in isSamePackageItemInfo()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/model/
H A DWidgetsListContentEntryTest.java66 @Mock private IconCache mIconCache; field in WidgetsListContentEntryTest
85 }).when(mIconCache).getTitleNoCache(any()); in setUp()
258 return new WidgetItem(launcherAppWidgetProviderInfo, mTestProfile, mIconCache); in createWidgetItem()
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/search/
H A DSimpleWidgetsSearchAlgorithmTest.java69 @Mock private IconCache mIconCache; field in SimpleWidgetsSearchAlgorithmTest
92 }).when(mIconCache).getTitleNoCache(any()); in setUp()
206 mTestProfile, mIconCache); in generateWidgetItems()
/aosp12/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/
H A DWidgetsPredicationUpdateTaskTest.java82 private IconCache mIconCache; field in WidgetsPredicationUpdateTaskTest
91 }).when(mIconCache).getTitleNoCache(any()); in setup()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A 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()