Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageUserKey.java13 public class PackageUserKey { class
20 public static PackageUserKey fromItemInfo(ItemInfo info) { in fromItemInfo()
22 return new PackageUserKey(info.getTargetComponent().getPackageName(), info.user); in fromItemInfo()
25 public static PackageUserKey fromNotification(StatusBarNotification notification) { in fromNotification()
26 return new PackageUserKey(notification.getPackageName(), notification.getUser()); in fromNotification()
29 public PackageUserKey(String packageName, UserHandle user) { in PackageUserKey() method in PackageUserKey
59 if (!(obj instanceof PackageUserKey)) return false; in equals()
60 PackageUserKey otherKey = (PackageUserKey) obj; in equals()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java31 import com.android.launcher3.util.PackageUserKey;
62 private Map<PackageUserKey, DotInfo> mPackageUserToDotInfos = new HashMap<>();
72 private void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
78 public void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted()
105 public void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
121 HashMap<PackageUserKey, DotInfo> updatedDots = new HashMap<>(mPackageUserToDotInfos); in onNotificationFullRefresh()
124 PackageUserKey packageUserKey = PackageUserKey.fromNotification(notification); in onNotificationFullRefresh()
134 for (PackageUserKey packageUserKey : mPackageUserToDotInfos.keySet()) { in onNotificationFullRefresh()
154 private void trimNotifications(Map<PackageUserKey, DotInfo> updatedDots) { in trimNotifications() argument
180 DotInfo dotInfo = mPackageUserToDotInfos.get(PackageUserKey.fromItemInfo(info)); in getDotInfoForItem()
[all …]
DPopupContainerWithArrow.java72 import com.android.launcher3.util.PackageUserKey;
496 public void onNotificationDotsUpdated(Predicate<PackageUserKey> updatedDots) {
498 PackageUserKey packageUser = PackageUserKey.fromItemInfo(itemInfo);
514 public void trimNotifications(Map<PackageUserKey, DotInfo> updatedDots) {
519 DotInfo dotInfo = updatedDots.get(PackageUserKey.fromItemInfo(originalInfo));
DPopupPopulator.java33 import com.android.launcher3.util.PackageUserKey;
164 PackageUserKey.fromItemInfo(originalInfo))); in createUpdateRunnable()
DSystemShortcut.java31 import com.android.launcher3.util.PackageUserKey;
140 launcher.getPopupDataProvider().getWidgetsForPackageUser(new PackageUserKey( in getOnClickListener()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java38 import com.android.launcher3.util.PackageUserKey;
126 Pair<PackageUserKey, NotificationKeyData> pair
127 = (Pair<PackageUserKey, NotificationKeyData>) message.obj;
240 final PackageUserKey packageUserKey;
245 packageUserKey = PackageUserKey.fromNotification(sbn); in NotificationPostedMsg()
258 Pair<PackageUserKey, NotificationKeyData> packageUserKeyAndNotificationKey in onNotificationRemoved()
259 = new Pair<>(PackageUserKey.fromNotification(sbn), in onNotificationRemoved()
389 void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted()
391 void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
DNotificationInfo.java35 import com.android.launcher3.util.PackageUserKey;
46 public final PackageUserKey packageUserKey;
62 packageUserKey = PackageUserKey.fromNotification(statusBarNotification); in NotificationInfo()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java38 import com.android.launcher3.util.PackageUserKey;
52 @Thunk final SparseArray<PackageUserKey> mActiveSessions = new SparseArray<>();
91 public HashMap<PackageUserKey, SessionInfo> updateAndGetActiveSessionCache() { in updateAndGetActiveSessionCache()
92 HashMap<PackageUserKey, SessionInfo> activePackages = new HashMap<>(); in updateAndGetActiveSessionCache()
96 activePackages.put(new PackageUserKey(info.getAppPackageName(), in updateAndGetActiveSessionCache()
99 new PackageUserKey(info.getAppPackageName(), getUserHandle(info))); in updateAndGetActiveSessionCache()
182 PackageUserKey key = mActiveSessions.get(sessionId);
226 new PackageUserKey(session.getAppPackageName(), user));
DAppWidgetManagerCompatVL.java33 import com.android.launcher3.util.PackageUserKey;
53 public List<AppWidgetProviderInfo> getAllProviders(@Nullable PackageUserKey packageUser) { in getAllProviders()
101 getAllProviders(new PackageUserKey(provider.getPackageName(), user))) { in findProvider()
DAppWidgetManagerCompatVO.java25 import com.android.launcher3.util.PackageUserKey;
37 public List<AppWidgetProviderInfo> getAllProviders(@Nullable PackageUserKey packageUser) { in getAllProviders()
DAppWidgetManagerCompat.java32 import com.android.launcher3.util.PackageUserKey;
73 @Nullable PackageUserKey packageUser); in getAllProviders()
DPackageInstallerCompat.java33 import com.android.launcher3.util.PackageUserKey;
64 public abstract HashMap<PackageUserKey, SessionInfo> updateAndGetActiveSessionCache(); in updateAndGetActiveSessionCache()
DLauncherAppsCompat.java35 import com.android.launcher3.util.PackageUserKey;
92 @Nullable PackageUserKey packageUser); in getCustomShortcutActivityList()
DLauncherAppsCompatVO.java41 import com.android.launcher3.util.PackageUserKey;
66 @Nullable PackageUserKey packageUser) { in getCustomShortcutActivityList()
DLauncherAppsCompatVL.java40 import com.android.launcher3.util.PackageUserKey;
197 @Nullable PackageUserKey packageUser) { in getCustomShortcutActivityList()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsStore.java29 import com.android.launcher3.util.PackageUserKey;
47 private PackageUserKey mTempKey = new PackageUserKey(null, null);
126 public void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DFirstScreenBroadcast.java29 import com.android.launcher3.util.PackageUserKey;
66 public FirstScreenBroadcast(HashMap<PackageUserKey, SessionInfo> sessionInfoForPackage) { in FirstScreenBroadcast() argument
75 HashMap<PackageUserKey, SessionInfo> sessionInfoForPackage) { in getPackagesForInstaller() argument
77 for (Map.Entry<PackageUserKey, SessionInfo> entry : sessionInfoForPackage.entrySet()) { in getPackagesForInstaller()
DLoaderTask.java77 import com.android.launcher3.util.PackageUserKey;
288 final HashMap<PackageUserKey, SessionInfo> installingPkgs = in loadWorkspace()
290 final PackageUserKey tempPackageKey = new PackageUserKey(null, null); in loadWorkspace()
DPackageUpdatedTask.java49 import com.android.launcher3.util.PackageUserKey;
330 dataModel.widgetsModel.update(app, new PackageUserKey(packages[i], mUser)); in execute()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetManager.java36 import com.android.launcher3.util.PackageUserKey;
63 private Consumer<PackageUserKey> mWidgetRefreshCallback;
105 public void setWidgetRefreshCallback(Consumer<PackageUserKey> cb) { in setWidgetRefreshCallback()
/packages/apps/Launcher3/go/src/com/android/launcher3/model/
DWidgetsModel.java24 import com.android.launcher3.util.PackageUserKey;
59 @Nullable PackageUserKey packageUser) { in update()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java26 import com.android.launcher3.util.PackageUserKey;
84 …public List<ComponentWithLabel> update(LauncherAppState app, @Nullable PackageUserKey packageUser)… in update()
128 LauncherAppState app, @Nullable PackageUserKey packageUser) { in setWidgetsAndShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsBottomSheet.java42 import com.android.launcher3.util.PackageUserKey;
100 new PackageUserKey( in onWidgetsBound()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java58 import com.android.launcher3.util.PackageUserKey;
529 public void refreshAndBindWidgetsAndShortcuts(@Nullable final PackageUserKey packageUser) { in refreshAndBindWidgetsAndShortcuts()
DWidgetPreviewLoader.java46 import com.android.launcher3.util.PackageUserKey;
181 @Nullable PackageUserKey packageUser) { in removeObsoletePreviews()

12