/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
H A D | IconCacheTest.java | 43 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 D | IconCacheUpdateHandler.java | 63 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 D | RecentsModel.java | 70 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 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()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/util/ |
H A D | WidgetsTableUtilsTest.java | 61 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 D | LauncherAppState.java | 65 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 D | Launcher.java | 338 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 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);
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | AllAppsList.java | 66 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 D | LoaderCursor.java | 72 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 D | LoaderTask.java | 135 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 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()
|
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | AdvancedBluetoothDetailsHeaderController.java | 93 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 D | WidgetsListAdapterTest.java | 73 @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 D | WidgetsListHeaderViewHolderBinderTest.java | 74 private IconCache mIconCache; field in WidgetsListHeaderViewHolderBinderTest 90 }).when(mIconCache).getTitleNoCache(any()); in setUp() 150 mTestProfile, mIconCache)); in generateWidgetItems()
|
H A D | WidgetsListSearchHeaderViewHolderBinderTest.java | 74 private IconCache mIconCache; field in WidgetsListSearchHeaderViewHolderBinderTest 89 }).when(mIconCache).getTitleNoCache(any()); in setUp() 150 mTestProfile, mIconCache)); in generateWidgetItems()
|
H A D | WidgetsListTableViewHolderBinderTest.java | 81 private IconCache mIconCache; field in WidgetsListTableViewHolderBinderTest 94 }).when(mIconCache).getTitleNoCache(any()); in setUp() 147 mTestProfile, mIconCache)); in generateWidgetItems()
|
H A D | WidgetsDiffReporterTest.java | 67 @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 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()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/model/ |
H A 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()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/search/ |
H A D | SimpleWidgetsSearchAlgorithmTest.java | 69 @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 D | WidgetsPredicationUpdateTaskTest.java | 82 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 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()
|