Home
last modified time | relevance | path

Searched refs:PackageUserKey (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageUserKey.java12 public class PackageUserKey { class
18 public static PackageUserKey fromItemInfo(ItemInfo info) { in fromItemInfo()
19 return new PackageUserKey(info.getTargetComponent().getPackageName(), info.user); in fromItemInfo()
22 public static PackageUserKey fromNotification(StatusBarNotification notification) { in fromNotification()
23 return new PackageUserKey(notification.getPackageName(), notification.getUser()); in fromNotification()
26 public PackageUserKey(String packageName, UserHandle user) { in PackageUserKey() method in PackageUserKey
55 if (!(obj instanceof PackageUserKey)) return false; in equals()
56 PackageUserKey otherKey = (PackageUserKey) obj; in equals()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java34 import com.android.launcher3.util.PackageUserKey;
63 private Map<PackageUserKey, BadgeInfo> mPackageUserToBadgeInfos = new HashMap<>();
70 public void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted()
96 public void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
116 HashMap<PackageUserKey, BadgeInfo> updatedBadges = new HashMap<>(mPackageUserToBadgeInfos); in onNotificationFullRefresh()
119 PackageUserKey packageUserKey = PackageUserKey.fromNotification(notification); in onNotificationFullRefresh()
130 for (PackageUserKey packageUserKey : mPackageUserToBadgeInfos.keySet()) { in onNotificationFullRefresh()
152 private void updateLauncherIconBadges(Set<PackageUserKey> updatedBadges) { in updateLauncherIconBadges()
164 private void updateLauncherIconBadges(Set<PackageUserKey> updatedBadges, in updateLauncherIconBadges()
166 Iterator<PackageUserKey> iterator = updatedBadges.iterator(); in updateLauncherIconBadges()
[all …]
DPopupContainerWithArrow.java73 import com.android.launcher3.util.PackageUserKey;
569 public void updateNotificationHeader(Set<PackageUserKey> updatedBadges) { in updateNotificationHeader()
571 PackageUserKey packageUser = PackageUserKey.fromItemInfo(itemInfo); in updateNotificationHeader()
586 public void trimNotifications(Map<PackageUserKey, BadgeInfo> updatedBadges) { in trimNotifications() argument
591 BadgeInfo badgeInfo = updatedBadges.get(PackageUserKey.fromItemInfo(originalInfo)); in trimNotifications()
DSystemShortcut.java15 import com.android.launcher3.util.PackageUserKey;
58 final List<WidgetItem> widgets = launcher.getWidgetsForPackageUser(new PackageUserKey( in getOnClickListener()
DPopupPopulator.java41 import com.android.launcher3.util.PackageUserKey;
231 PackageUserKey.fromItemInfo(originalInfo)); in createUpdateRunnable()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java32 import com.android.launcher3.util.PackageUserKey;
96 Pair<PackageUserKey, NotificationKeyData> pair
97 = (Pair<PackageUserKey, NotificationKeyData>) message.obj;
166 PackageUserKey packageUserKey;
171 packageUserKey = PackageUserKey.fromNotification(sbn); in NotificationPostedMsg()
180 Pair<PackageUserKey, NotificationKeyData> packageUserKeyAndNotificationKey in onNotificationRemoved()
181 = new Pair<>(PackageUserKey.fromNotification(sbn), in onNotificationRemoved()
240 void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted()
242 void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
DNotificationInfo.java34 import com.android.launcher3.util.PackageUserKey;
45 public final PackageUserKey packageUserKey;
62 packageUserKey = PackageUserKey.fromNotification(statusBarNotification); in NotificationInfo()
/packages/apps/Launcher3/src/com/android/launcher3/badge/
DBadgeInfo.java29 import com.android.launcher3.util.PackageUserKey;
42 private PackageUserKey mPackageUserKey;
65 public BadgeInfo(PackageUserKey packageUserKey) { in BadgeInfo()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetsModel.java23 import com.android.launcher3.util.PackageUserKey;
64 public ArrayList<WidgetItem> update(Context context, @Nullable PackageUserKey packageUser) { in update()
99 Context context, @Nullable PackageUserKey packageUser) { in setWidgetsAndShortcuts()
DPackageUpdatedTask.java47 import com.android.launcher3.util.PackageUserKey;
380 new PackageUserKey(packages[i], mUser) /* packageUser */); in execute()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java61 import com.android.launcher3.util.PackageUserKey;
487 public void updateIconBadges(Set<PackageUserKey> updatedBadges) { in updateIconBadges()
488 final PackageUserKey packageUserKey = new PackageUserKey(null, null); in updateIconBadges()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompatVO.java23 import com.android.launcher3.util.PackageUserKey;
34 public List<AppWidgetProviderInfo> getAllProviders(@Nullable PackageUserKey packageUser) { in getAllProviders()
DAppWidgetManagerCompat.java33 import com.android.launcher3.util.PackageUserKey;
74 @Nullable PackageUserKey packageUser); in getAllProviders()
DLauncherAppsCompatVO.java32 import com.android.launcher3.util.PackageUserKey;
63 @Nullable PackageUserKey packageUser) { in getCustomShortcutActivityList()
DAppWidgetManagerCompatVL.java34 import com.android.launcher3.util.PackageUserKey;
51 public List<AppWidgetProviderInfo> getAllProviders(@Nullable PackageUserKey packageUser) { in getAllProviders()
DLauncherAppsCompat.java36 import com.android.launcher3.util.PackageUserKey;
89 @Nullable PackageUserKey packageUser); in getCustomShortcutActivityList()
DLauncherAppsCompatVL.java36 import com.android.launcher3.util.PackageUserKey;
182 @Nullable PackageUserKey packageUser) { in getCustomShortcutActivityList()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsContainerView.java43 import com.android.launcher3.util.PackageUserKey;
249 public List<WidgetItem> getWidgetsForPackageUser(PackageUserKey packageUserKey) { in getWidgetsForPackageUser()
DWidgetsListAdapter.java34 import com.android.launcher3.util.PackageUserKey;
106 public List<WidgetItem> copyWidgetsForPackageUser(PackageUserKey packageUserKey) { in copyWidgetsForPackageUser()
DWidgetsBottomSheet.java50 import com.android.launcher3.util.PackageUserKey;
117 List<WidgetItem> widgets = mLauncher.getWidgetsForPackageUser(new PackageUserKey( in onWidgetsBound()
/packages/apps/Launcher3/src/com/android/launcher3/
DWidgetPreviewLoader.java41 import com.android.launcher3.util.PackageUserKey;
181 @Nullable PackageUserKey packageUser) { in removeObsoletePreviews()
DLauncher.java124 import com.android.launcher3.util.PackageUserKey;
1573 public void updateIconBadges(final Set<PackageUserKey> updatedBadges) { in updateIconBadges()
3934 public List<WidgetItem> getWidgetsForPackageUser(PackageUserKey packageUserKey) { in getWidgetsForPackageUser()
3949 public void refreshAndBindWidgetsForPackageUser(@Nullable PackageUserKey packageUser) { in refreshAndBindWidgetsForPackageUser()
DWorkspace.java84 import com.android.launcher3.util.PackageUserKey;
3991 public void updateIconBadges(final Set<PackageUserKey> updatedBadges) {
3992 final PackageUserKey packageUserKey = new PackageUserKey(null, null);
DLauncherModel.java78 import com.android.launcher3.util.PackageUserKey;
1949 final boolean bindFirst, @Nullable final PackageUserKey packageUser) { in refreshAndBindWidgetsAndShortcuts()