Home
last modified time | relevance | path

Searched refs:WidgetItem (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsModel.java41 private final MultiHashMap<PackageItemInfo, WidgetItem> mWidgetsList;
52 public MultiHashMap<PackageItemInfo, WidgetItem> getWidgetsMap() { in getWidgetsMap()
64 public ArrayList<WidgetItem> update(Context context, @Nullable PackageUserKey packageUser) { in update()
67 final ArrayList<WidgetItem> widgetsAndShortcuts = new ArrayList<>(); in update()
75 widgetsAndShortcuts.add(new WidgetItem(LauncherAppWidgetProviderInfo in update()
82 widgetsAndShortcuts.add(new WidgetItem(info)); in update()
98 private void setWidgetsAndShortcuts(ArrayList<WidgetItem> rawWidgetsShortcuts, in setWidgetsAndShortcuts()
125 Iterator<WidgetItem> widgetItemIterator = mWidgetsList.get(packageItem).iterator(); in setWidgetsAndShortcuts()
127 WidgetItem nextWidget = widgetItemIterator.next(); in setWidgetsAndShortcuts()
140 for (WidgetItem item : rawWidgetsShortcuts) { in setWidgetsAndShortcuts()
DWidgetItem.java21 public class WidgetItem extends ComponentKey implements Comparable<WidgetItem> { class
32 public WidgetItem(LauncherAppWidgetProviderInfo info, PackageManager pm, in WidgetItem() method in WidgetItem
44 public WidgetItem(ShortcutConfigActivityInfo info) { in WidgetItem() method in WidgetItem
53 public int compareTo(WidgetItem another) { in compareTo()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsListAdapter.java31 import com.android.launcher3.model.WidgetItem;
80 public void setWidgets(MultiHashMap<PackageItemInfo, WidgetItem> widgets) { in setWidgets()
84 for (Map.Entry<PackageItemInfo, ArrayList<WidgetItem>> entry : widgets.entrySet()) { in setWidgets()
106 public List<WidgetItem> copyWidgetsForPackageUser(PackageUserKey packageUserKey) { in copyWidgetsForPackageUser()
109 ArrayList<WidgetItem> widgets = new ArrayList<>(entry.widgets); in copyWidgetsForPackageUser()
111 Iterator<WidgetItem> iterator = widgets.iterator(); in copyWidgetsForPackageUser()
126 List<WidgetItem> infoList = entry.widgets; in onBindViewHolder()
DWidgetItemComparator.java21 import com.android.launcher3.model.WidgetItem;
29 public class WidgetItemComparator implements Comparator<WidgetItem> {
35 public int compare(WidgetItem a, WidgetItem b) { in compare()
DWidgetListRowEntry.java20 import com.android.launcher3.model.WidgetItem;
31 public final ArrayList<WidgetItem> widgets;
39 public WidgetListRowEntry(PackageItemInfo pkgItem, ArrayList<WidgetItem> items) { in WidgetListRowEntry()
DWidgetCell.java39 import com.android.launcher3.model.WidgetItem;
70 protected WidgetItem mItem;
133 public void applyFromCellItem(WidgetItem item, WidgetPreviewLoader loader) { in applyFromCellItem()
DWidgetsContainerView.java39 import com.android.launcher3.model.WidgetItem;
235 public void setWidgets(MultiHashMap<PackageItemInfo, WidgetItem> model) { in setWidgets()
249 public List<WidgetItem> getWidgetsForPackageUser(PackageUserKey packageUserKey) { in getWidgetsForPackageUser()
DWidgetsBottomSheet.java48 import com.android.launcher3.model.WidgetItem;
117 List<WidgetItem> widgets = mLauncher.getWidgetsForPackageUser(new PackageUserKey( in onWidgetsBound()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java54 import com.android.launcher3.model.WidgetItem;
187 WidgetItem item = new WidgetItem(shortcutInfo); in setupShortcut()
210 WidgetItem item = new WidgetItem(widgetInfo, getPackageManager(), mIdp); in setupWidget()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java39 import com.android.launcher3.model.WidgetItem;
96 public CancellationSignal getPreview(WidgetItem item, int previewWidth, in getPreview()
292 private Bitmap generatePreview(BaseActivity launcher, WidgetItem item, Bitmap recycle, in generatePreview()
536 private final WidgetItem mInfo;
545 PreviewLoadTask(WidgetCacheKey key, WidgetItem info, int previewWidth,
DLauncherModel.java67 import com.android.launcher3.model.WidgetItem;
206 public void bindAllWidgets(MultiHashMap<PackageItemInfo, WidgetItem> widgets); in bindAllWidgets()
1935 final MultiHashMap<PackageItemInfo, WidgetItem> widgets in bindWidgetsModel()
1956 ArrayList<WidgetItem> widgets = mBgWidgetsModel.update( in refreshAndBindWidgetsAndShortcuts()
DLauncher.java108 import com.android.launcher3.model.WidgetItem;
243 @Thunk MultiHashMap<PackageItemInfo, WidgetItem> mAllWidgets;
3917 public void bindAllWidgets(MultiHashMap<PackageItemInfo, WidgetItem> allWidgets) { in bindAllWidgets()
3934 public List<WidgetItem> getWidgetsForPackageUser(PackageUserKey packageUserKey) { in getWidgetsForPackageUser()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DSystemShortcut.java14 import com.android.launcher3.model.WidgetItem;
58 final List<WidgetItem> widgets = launcher.getWidgetsForPackageUser(new PackageUserKey( in getOnClickListener()