Home
last modified time | relevance | path

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

/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DIconCacheUpdateHandler.java62 private final BaseIconCache mIconCache; field in IconCacheUpdateHandler
70 mIconCache = cache; in IconCacheUpdateHandler()
75 mIconCache.mWorkerHandler.removeCallbacksAndMessages(ICON_UPDATE_TOKEN); in IconCacheUpdateHandler()
85 PackageManager pm = mIconCache.mPackageManager; in createPackageInfoMap()
133 long userSerial = mIconCache.getSerialNumberForUser(user); in updateIconsPerUser()
137 try (Cursor c = mIconCache.mIconDb.query( in updateIconsPerUser()
160 mIconCache.remove(component, user); in updateIconsPerUser()
176 mIconCache.getIconSystemState(info.packageName))) { in updateIconsPerUser()
185 mIconCache.remove(component, user); in updateIconsPerUser()
230 mIconCache.mIconDb.delete(queryBuilder.toString(), null); in finish()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsModel.java67 private final TaskIconCache mIconCache; field in RecentsModel
76 mIconCache = new TaskIconCache(context, looper); in RecentsModel()
83 return mIconCache; in getIconCache()
178 mIconCache.onTaskRemoved(dummyKey); in onTaskRemoved()
196 mIconCache.clear(); in onTrimMemory()
218 mIconCache.invalidatePackage(packageName); in setupPackageListener()
223 mIconCache.invalidatePackage(packageName); in setupPackageListener()
DTaskIconCache.java54 private final TaskKeyLruCache<Drawable> mIconCache; field in TaskIconCache
74 mIconCache = new TaskKeyLruCache<>(cacheSize, mClearActivityInfoOnEviction); in TaskIconCache()
77 mIconLoader = new NormalizedIconLoader(context, mIconCache, mActivityInfoCache, in TaskIconCache()
118 mIconCache.evictAll(); in clear()
153 mIconCache.remove(taskKey); in onTaskRemoved()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppState.java52 private final IconCache mIconCache; field in LauncherAppState
79 mIconCache = new IconCache(mContext, mInvariantDeviceProfile); in LauncherAppState()
80 mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache); in LauncherAppState()
81 mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext)); in LauncherAppState()
130 mIconCache.updateIconParams(idp.fillResIconDpi, idp.iconBitmapSize); in onIdpChanged()
159 return mIconCache; in getIconCache()
DWidgetPreviewLoader.java76 private final IconCache mIconCache; field in WidgetPreviewLoader
82 mIconCache = iconCache; in WidgetPreviewLoader()
418 mIconCache.getFullResIcon(info.provider.getPackageName(), info.icon); in generateWidgetPreview()
478 mutateOnMainThread(info.getFullResIcon(mIconCache)), in generateShortcutPreview()
DLauncher.java262 private IconCache mIconCache; field in Launcher
327 mIconCache = app.getIconCache(); in onCreate()
2160 new PendingAppWidgetHostView(this, item, mIconCache, true); in inflateAppWidget()
2258 view = new PendingAppWidgetHostView(this, item, mIconCache, false); in inflateAppWidget()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAllAppsList.java67 private IconCache mIconCache; field in AllAppsList
79 mIconCache = iconCache; in AllAppsList()
106 mIconCache.getTitleAndIcon(info, activityInfo, true /* useLowResIcon */); in add()
120 mIconCache.getTitleAndIcon(info, info.usingLowResIcon()); in addPromiseApp()
206 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels()
241 mIconCache.getTitleAndIcon(applicationInfo, info, true /* useLowResIcon */); in updatePackage()
253 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
DLoaderCursor.java68 private final IconCache mIconCache; field in LoaderCursor
101 mIconCache = app.getIconCache(); in LoaderCursor()
156 info.applyFrom(mIconCache.getDefaultIcon(info.user)); in loadSimpleWorkspaceItem()
222 mIconCache.getTitleAndIcon(info, false /* useLowResIcon */); in getRestoredItemInfo()
275 mIconCache.getTitleAndIcon(info, lai, useLowResIcon); in getAppShortcutInfo()
276 if (mIconCache.isDefaultIcon(info.iconBitmap, user)) { in getAppShortcutInfo()
DLoaderTask.java112 private final IconCache mIconCache; field in LoaderTask
128 mIconCache = mApp.getIconCache(); in LoaderTask()
199 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run()
712 mIconCache.getTitleAndIconForApp( in loadWorkspace()
782 mIconCache.getTitleAndIcon(info, false); in loadWorkspace()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java68 final Map<String, Bitmap> mIconCache; field in AdvancedBluetoothDetailsHeaderController
88 mIconCache = new HashMap<>(); in AdvancedBluetoothDetailsHeaderController()
135 for (Bitmap bitmap : mIconCache.values()) { in onDestroy()
140 mIconCache.clear(); in onDestroy()
260 if (mIconCache.containsKey(iconUri)) { in updateIcon()
261 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon()
270 mIconCache.put(iconUri, bitmap); in updateIcon()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
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);
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsDiffReporter.java38 private final IconCache mIconCache; field in WidgetsDiffReporter
42 mIconCache = iconCache; in WidgetsDiffReporter()
141 !mIconCache.isDefaultIcon(curInfo.iconBitmap, curInfo.user); in isSamePackageItemInfo()
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/
DWidgetsListAdapterTest.java58 @Mock private IconCache mIconCache; field in WidgetsListAdapterTest
72 mIconCache, null, null); in setup()
134 .fromProviderInfo(mContext, widgetInfo), mTestProfile, mIconCache); in generateSampleMap()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java86 IconCache mIconCache; field in MainFragment
124 mIconCache = new IconCache(getContext()); in onCreate()
384 newSuggPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
391 curPref.setIcon(mIconCache.getIcon(suggestion.getIcon())); in updateSuggestionList()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderControllerTest.java192 mController.mIconCache.put(ICON_URI, mBitmap); in updateIcon_existInCache_setImageBitmap()
253 mController.mIconCache.put(ICON_URI, mBitmap); in onDestroy_isAvailable_recycleBitmap()
257 assertThat(mController.mIconCache).isEmpty(); in onDestroy_isAvailable_recycleBitmap()
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/
DMainFragmentTest.java326 mMainFragment.mIconCache = mock(IconCache.class); in testUpdateSuggestionList_hasTheSameSuggestion()
344 mMainFragment.mIconCache = mock(IconCache.class); in testUpdateSuggestionList_hasNewSuggestion()