Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java45 private IconCache mIconCache; field in AllAppsList
51 mIconCache = iconCache; in AllAppsList()
94 add(new ApplicationInfo(info, user, mIconCache, null)); in addPackage()
112 mIconCache.flush(); in removePackage()
133 mIconCache.remove(component, user); in updatePackage()
150 mIconCache, null)); in updatePackage()
152 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
153 mIconCache.getTitleAndIcon(applicationInfo, info, null); in updatePackage()
165 mIconCache.remove(component, user); in updatePackage()
DLauncherApplication.java38 private IconCache mIconCache; field in LauncherApplication
55 mIconCache = new IconCache(this); in onCreate()
56 mModel = new LauncherModel(this, mIconCache); in onCreate()
115 return mIconCache; in getIconCache()
DWidgetPreviewLoader.java135 private IconCache mIconCache; field in WidgetPreviewLoader
158 mIconCache = app.getIconCache(); in WidgetPreviewLoader()
528 icon = mIconCache.getFullResIcon(info.provider.getPackageName(), in generateWidgetPreview()
634 Drawable icon = mIconCache.getFullResIcon(info, android.os.Process.myUserHandle()); in generateShortcutPreview()
DLauncherModel.java145 private IconCache mIconCache; field in LauncherModel
182 mIconCache = iconCache; in LauncherModel()
185 mIconCache.getFullResDefaultActivityIcon(), app); in LauncherModel()
1957 mIconCache, mLabelCache)); in loadAllAppsByBatch()
2215 icon = mIconCache.getIcon(componentName, lai, labelCache); in getShortcutInfo()
2303 mIconCache.getFullResIcon(resources, id, Process.myUserHandle()), in getShortcutInfo()
2449 mIconCache.getFullResIcon(resources, id, user), in infoFromShortcutIntent()
2501 Bitmap loaded = info.getIcon(mIconCache); in updateSavedIcon()
DFolder.java74 private final IconCache mIconCache; field in Folder
122 mIconCache = ((LauncherApplication)context.getApplicationContext()).getIconCache(); in Folder()
525 new FastBitmapDrawable(item.getIcon(mIconCache)), null, null); in createAndAddShortcut()
DAppsCustomizePagedView.java186 private IconCache mIconCache; field in AppsCustomizePagedView
255 mIconCache = ((LauncherApplication) context.getApplicationContext()).getIconCache(); in AppsCustomizePagedView()
749 Drawable icon = mIconCache.getFullResIcon(createShortcutInfo.shortcutActivityInfo, in beginDraggingWidget()
DLauncher.java267 private IconCache mIconCache; field in Launcher
371 mIconCache = app.getIconCache(); in onCreate()
531 mIconCache.flush(); in checkForLocaleChange()
1087 favorite.applyFromShortcutInfo(info, mIconCache); in createShortcut()
1940 FolderIcon.fromXml(R.layout.folder_icon, this, layout, folderInfo, mIconCache); in addFolder()
3533 (FolderInfo) item, mIconCache); in bindItems()
DWorkspace.java138 private IconCache mIconCache; field in Workspace
410 mIconCache = app.getIconCache(); in initWorkspace()
3129 (FolderInfo) info, mIconCache);
3848 info.updateIcon(mIconCache);
3850 shortcut.applyFromShortcutInfo(info, mIconCache);
/packages/apps/Launcher3/src/com/android/launcher3/
DAllAppsList.java56 private IconCache mIconCache; field in AllAppsList
64 mIconCache = iconCache; in AllAppsList()
81 mIconCache.getTitleAndIcon(info, activityInfo, true /* useLowResIcon */); in add()
94 mIconCache.getTitleAndIcon(info, info.usingLowResIcon); in addPromiseApp()
167 mIconCache.updateTitleAndIcon(info); in updateIconsAndLabels()
202 mIconCache.getTitleAndIcon(applicationInfo, info, true /* useLowResIcon */); in updatePackage()
213 mIconCache.remove(applicationInfo.componentName, user); in updatePackage()
DLauncherAppState.java52 private final IconCache mIconCache; field in LauncherAppState
99 mIconCache = new IconCache(mContext, mInvariantDeviceProfile);
100 mWidgetCache = new WidgetPreviewLoader(mContext, mIconCache);
101 mModel = new LauncherModel(this, mIconCache, AppFilter.newInstance(mContext));
164 return mIconCache;
DWidgetPreviewLoader.java72 private final IconCache mIconCache; field in WidgetPreviewLoader
82 mIconCache = iconCache; in WidgetPreviewLoader()
415 Drawable icon = info.getIcon(launcher, mIconCache); in generateWidgetPreview()
474 mutateOnMainThread(info.getFullResIcon(mIconCache)), mContext, 0); in generateShortcutPreview()
DLauncher.java278 private IconCache mIconCache; field in Launcher
397 mIconCache = app.getIconCache(); in onCreate()
3398 new PendingAppWidgetHostView(this, item, mIconCache, true);
3505 view = new PendingAppWidgetHostView(this, item, mIconCache, false);
/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/model/
DLoaderCursor.java68 private final IconCache mIconCache; field in LoaderCursor
101 mIconCache = app.getIconCache(); in LoaderCursor()
157 info.iconBitmap = mIconCache.getDefaultIcon(info.user); in loadSimpleShortcut()
218 mIconCache.getTitleAndIcon(info, false /* useLowResIcon */); in getRestoredItemInfo()
271 mIconCache.getTitleAndIcon(info, lai, useLowResIcon); in getAppShortcutInfo()
272 if (mIconCache.isDefaultIcon(info.iconBitmap, user)) { in getAppShortcutInfo()
DLoaderTask.java101 private final IconCache mIconCache; field in LoaderTask
117 mIconCache = mApp.getIconCache(); in LoaderTask()
669 mIconCache.getTitleAndIconForApp( in loadWorkspace()
733 mIconCache.getTitleAndIcon(info, false); in loadWorkspace()
791 mIconCache.updateDbIcons(packagesToIgnore); in updateIconCache()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsDiffReporter.java34 private final IconCache mIconCache; field in WidgetsDiffReporter
45 mIconCache = iconCache; in WidgetsDiffReporter()
139 !mIconCache.isDefaultIcon(curInfo.iconBitmap, curInfo.user); in isSamePackageItemInfo()
/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/
DWidgetsListAdapterTest.java57 @Mock private IconCache mIconCache; field in WidgetsListAdapterTest
72 WidgetsDiffReporter reporter = new WidgetsDiffReporter(mIconCache); in setup()