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/src/com/android/launcher3/
DAllAppsList.java58 private IconCache mIconCache; field in AllAppsList
66 mIconCache = iconCache; in AllAppsList()
83 mIconCache.getTitleAndIcon(info, activityInfo, true /* useLowResIcon */); in add()
96 mIconCache.getTitleAndIcon(info, info.usingLowResIcon()); in addPromiseApp()
169 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels()
204 mIconCache.getTitleAndIcon(applicationInfo, info, true /* useLowResIcon */); in updatePackage()
215 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
DLauncherAppState.java53 private final IconCache mIconCache; field in LauncherAppState
80 mIconCache = new IconCache(mContext, mInvariantDeviceProfile); in LauncherAppState()
81 mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache); in LauncherAppState()
82 mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext)); in LauncherAppState()
130 mIconCache.updateIconParams(idp.fillResIconDpi, idp.iconBitmapSize); in onIdpChanged()
157 return mIconCache; in getIconCache()
DWidgetPreviewLoader.java75 private final IconCache mIconCache; field in WidgetPreviewLoader
84 mIconCache = iconCache; in WidgetPreviewLoader()
421 mIconCache.getFullResIcon(info.provider.getPackageName(), info.icon); in generateWidgetPreview()
481 mutateOnMainThread(info.getFullResIcon(mIconCache)), in generateShortcutPreview()
DLauncher.java253 private IconCache mIconCache; field in Launcher
318 mIconCache = app.getIconCache(); in onCreate()
2123 new PendingAppWidgetHostView(this, item, mIconCache, true); in inflateAppWidget()
2220 view = new PendingAppWidgetHostView(this, item, mIconCache, false); in inflateAppWidget()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DAdvancedBluetoothDetailsHeaderController.java67 final Map<String, Bitmap> mIconCache; field in AdvancedBluetoothDetailsHeaderController
87 mIconCache = new HashMap<>(); in AdvancedBluetoothDetailsHeaderController()
134 for (Bitmap bitmap : mIconCache.values()) { in onDestroy()
139 mIconCache.clear(); in onDestroy()
253 if (mIconCache.containsKey(iconUri)) { in updateIcon()
254 imageView.setImageBitmap(mIconCache.get(iconUri)); in updateIcon()
263 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/quickstep/src/com/android/quickstep/
DTaskIconCache.java54 private final TaskKeyLruCache<Drawable> mIconCache; field in TaskIconCache
75 mIconCache = new TaskKeyLruCache<>(cacheSize, mClearActivityInfoOnEviction); in TaskIconCache()
78 mIconLoader = new NormalizedIconLoader(context, mIconCache, mActivityInfoCache, in TaskIconCache()
119 mIconCache.evictAll(); in clear()
DRecentsModel.java63 private final TaskIconCache mIconCache; field in RecentsModel
72 mIconCache = new TaskIconCache(context, loaderThread.getLooper()); in RecentsModel()
78 return mIconCache; in getIconCache()
190 mIconCache.clear(); in onTrimMemory()
/packages/apps/Launcher3/src/com/android/launcher3/model/
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.java109 private final IconCache mIconCache; field in LoaderTask
125 mIconCache = mApp.getIconCache(); in LoaderTask()
196 IconCacheUpdateHandler updateHandler = mIconCache.getUpdateHandler(); in run()
693 mIconCache.getTitleAndIconForApp( in loadWorkspace()
763 mIconCache.getTitleAndIcon(info, false); in loadWorkspace()
/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()