Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java32 import com.android.launcher3.util.PackageUserKey;
56 private final Consumer<Predicate<PackageUserKey>> mNotificationDotsChangeListener;
61 private Map<PackageUserKey, DotInfo> mPackageUserToDotInfos = new HashMap<>();
70 public PopupDataProvider(Consumer<Predicate<PackageUserKey>> notificationDotsChangeListener) { in PopupDataProvider()
74 private void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
80 public void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted()
93 public void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
109 HashMap<PackageUserKey, DotInfo> updatedDots = new HashMap<>(mPackageUserToDotInfos); in onNotificationFullRefresh()
112 PackageUserKey packageUserKey = PackageUserKey.fromNotification(notification); in onNotificationFullRefresh()
122 for (PackageUserKey packageUserKey : mPackageUserToDotInfos.keySet()) { in onNotificationFullRefresh()
[all …]
DPopupContainerWithArrow.java69 import com.android.launcher3.util.PackageUserKey;
216 launcher.refreshAndBindWidgetsForPackageUser(PackageUserKey.fromItemInfo(item)); in showForIcon()
582 public void onNotificationDotsUpdated(Predicate<PackageUserKey> updatedDots) {
584 PackageUserKey packageUser = PackageUserKey.fromItemInfo(itemInfo);
592 public void trimNotifications(Map<PackageUserKey, DotInfo> updatedDots) {
597 DotInfo dotInfo = updatedDots.get(PackageUserKey.fromItemInfo(originalInfo));
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageUserKey.java14 public class PackageUserKey { class
21 public static PackageUserKey fromItemInfo(ItemInfo info) { in fromItemInfo()
23 return new PackageUserKey(info.getTargetComponent().getPackageName(), info.user); in fromItemInfo()
26 public static PackageUserKey fromNotification(StatusBarNotification notification) { in fromNotification()
27 return new PackageUserKey(notification.getPackageName(), notification.getUser()); in fromNotification()
30 public PackageUserKey(String packageName, UserHandle user) { in PackageUserKey() method in PackageUserKey
60 if (!(obj instanceof PackageUserKey)) return false; in equals()
61 PackageUserKey otherKey = (PackageUserKey) obj; in equals()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DInstallSessionTracker.java29 import com.android.launcher3.util.PackageUserKey;
35 private SparseArray<PackageUserKey> mActiveSessions = null;
59 SparseArray<PackageUserKey> activeSessions = getActiveSessionMap(); in onFinished()
60 PackageUserKey key = activeSessions.get(sessionId); in onFinished()
100 PackageUserKey key = in pushSessionDisplayToLauncher()
101 new PackageUserKey(session.getAppPackageName(), getUserHandle(session)); in pushSessionDisplayToLauncher()
109 private SparseArray<PackageUserKey> getActiveSessionMap() { in getActiveSessionMap()
126 void onUpdateSessionDisplay(PackageUserKey key, SessionInfo info); in onUpdateSessionDisplay()
DInstallSessionHelper.java47 import com.android.launcher3.util.PackageUserKey;
111 public HashMap<PackageUserKey, SessionInfo> getActiveSessions() { in getActiveSessions()
112 HashMap<PackageUserKey, SessionInfo> activePackages = new HashMap<>(); in getActiveSessions()
114 activePackages.put(new PackageUserKey(info.getAppPackageName(), getUserHandle(info)), in getActiveSessions()
DShortcutConfigActivityInfo.java44 import com.android.launcher3.util.PackageUserKey;
173 Context context, @Nullable PackageUserKey packageUser) { in queryList()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsListAdapter.java50 import com.android.launcher3.util.PackageUserKey;
102 @Nullable private PackageUserKey mWidgetsContentVisiblePackageUserKey = null;
107 || new PackageUserKey(entry.mPkgItem.packageName, entry.mPkgItem.user)
111 @Nullable private PackageUserKey mPendingClickHeader;
329 @NonNull WidgetsListBaseEntry entry, @Nullable PackageUserKey key) { in isHeaderForPackageUserKey()
334 @NonNull WidgetsListBaseEntry entry, @Nullable PackageUserKey key) { in matchesKey()
403 public void onHeaderClicked(boolean showWidgets, PackageUserKey packageUserKey) { in onHeaderClicked()
438 private OptionalInt getPositionForPackageUserKey(@Nullable PackageUserKey key) { in getPositionForPackageUserKey()
509 Map<PackageUserKey, PackageItemInfo> packagesInfo = in shouldClearVisibleEntries()
514 entry -> new PackageUserKey(entry.packageName, entry.user), in shouldClearVisibleEntries()
[all …]
DOnHeaderClickListener.java18 import com.android.launcher3.util.PackageUserKey;
27 void onHeaderClicked(boolean showWidgets, PackageUserKey packageUserKey); in onHeaderClicked()
DWidgetsListHeaderViewHolderBinder.java23 import com.android.launcher3.util.PackageUserKey;
68 new PackageUserKey(data.mPkgItem.packageName, data.mPkgItem.user) in bindViewHolder()
DWidgetsListSearchHeaderViewHolderBinder.java23 import com.android.launcher3.util.PackageUserKey;
68 new PackageUserKey(data.mPkgItem.packageName, data.mPkgItem.user))); in bindViewHolder()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java40 import com.android.launcher3.util.PackageUserKey;
184 Pair<PackageUserKey, NotificationKeyData> msg = (Pair) message.obj; in handleUiMessage()
191 Pair<PackageUserKey, NotificationKeyData> msg = (Pair) message.obj; in handleUiMessage()
337 private static Pair<PackageUserKey, NotificationKeyData> toKeyPair(StatusBarNotification sbn) { in toKeyPair()
338 return Pair.create(PackageUserKey.fromNotification(sbn), in toKeyPair()
343 void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted()
345 void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
DNotificationInfo.java37 import com.android.launcher3.util.PackageUserKey;
48 public final PackageUserKey packageUserKey;
66 packageUserKey = PackageUserKey.fromNotification(statusBarNotification); in NotificationInfo()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DSdCardAvailableReceiver.java28 import com.android.launcher3.util.PackageUserKey;
44 private final Set<PackageUserKey> mPackages;
46 public SdCardAvailableReceiver(LauncherAppState app, Set<PackageUserKey> packages) { in SdCardAvailableReceiver()
56 for (PackageUserKey puk : mPackages) { in onReceive()
DFirstScreenBroadcast.java38 import com.android.launcher3.util.PackageUserKey;
71 private final HashMap<PackageUserKey, SessionInfo> mSessionInfoForPackage;
73 public FirstScreenBroadcast(HashMap<PackageUserKey, SessionInfo> sessionInfoForPackage) { in FirstScreenBroadcast() argument
DLoaderTask.java91 import com.android.launcher3.util.PackageUserKey;
139 private final Set<PackageUserKey> mPendingPackages = new HashSet<>();
355 final HashMap<PackageUserKey, SessionInfo> installingPkgs = in loadWorkspace()
359 final PackageUserKey tempPackageKey = new PackageUserKey(null, null); in loadWorkspace()
511 mPendingPackages.add(new PackageUserKey(targetPkg, c.user)); in loadWorkspace()
DPackageUpdatedTask.java51 import com.android.launcher3.util.PackageUserKey;
133 new PackageUserKey(packages[i], mUser)); in execute()
357 dataModel.widgetsModel.update(app, new PackageUserKey(packages[i], mUser)); in execute()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java30 import com.android.launcher3.util.PackageUserKey;
94 public synchronized Map<PackageUserKey, List<WidgetItem>> getAllWidgetsWithoutShortcuts() { in getAllWidgetsWithoutShortcuts()
95 Map<PackageUserKey, List<WidgetItem>> packagesToWidgets = new HashMap<>(); in getAllWidgetsWithoutShortcuts()
102 new PackageUserKey(packageItemInfo.packageName, packageItemInfo.user), in getAllWidgetsWithoutShortcuts()
114 LauncherAppState app, @Nullable PackageUserKey packageUser) { in update()
158 LauncherAppState app, @Nullable PackageUserKey packageUser) { in setWidgetsAndShortcuts()
297 WidgetPackageOrCategoryKey(PackageUserKey key) { in WidgetPackageOrCategoryKey()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DWidgetsPredictionUpdateTask.java29 import com.android.launcher3.util.PackageUserKey;
59 Map<PackageUserKey, List<WidgetItem>> allWidgets = in execute()
67 PackageUserKey packageUserKey = new PackageUserKey(app.getPackageName(), in execute()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsStore.java31 import com.android.launcher3.util.PackageUserKey;
50 private PackageUserKey mTempKey = new PackageUserKey(null, null);
144 public void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
/packages/apps/Launcher3/go/src/com/android/launcher3/model/
DWidgetsModel.java28 import com.android.launcher3.util.PackageUserKey;
63 public synchronized Map<PackageUserKey, List<WidgetItem>> getAllWidgetsWithoutShortcuts() { in getAllWidgetsWithoutShortcuts()
72 @Nullable PackageUserKey packageUser) { in update()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetManagerHelper.java33 import com.android.launcher3.util.PackageUserKey;
72 public List<AppWidgetProviderInfo> getAllProviders(@Nullable PackageUserKey packageUser) { in getAllProviders()
105 getAllProviders(new PackageUserKey(provider.getPackageName(), user))) { in findProvider()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/
DWidgetsListAdapterTest.java41 import com.android.launcher3.util.PackageUserKey;
135 new PackageUserKey(TEST_PACKAGE_PLACEHOLDER + 1, mUserHandle)); in headerClick_expanded_shouldNotifyItemChange()
153 new PackageUserKey(TEST_PACKAGE_PLACEHOLDER + 1, mUserHandle)); in setWidgets_expandedApp_moreWidgets_shouldNotifyItemChangedWithWidgetItemInfoDiff()
222 new PackageUserKey(TEST_PACKAGE_PLACEHOLDER + 1, mUserHandle)); in setWidgetsOnSearch_expandedApp_shouldResetExpandedApp()
DWidgetsListHeaderViewHolderBinderTest.java43 import com.android.launcher3.util.PackageUserKey;
152 eq(new PackageUserKey(entry.mPkgItem.packageName, entry.mPkgItem.user))); in bindViewHolder_shouldAttachOnHeaderClickListener()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/
DLShadowLauncherApps.java37 import com.android.launcher3.util.PackageUserKey;
55 public final ArraySet<PackageUserKey> disabledApps = new ArraySet<>();
70 return !disabledApps.contains(new PackageUserKey(packageName, user)); in isPackageEnabled()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetManager.java35 import com.android.launcher3.util.PackageUserKey;
63 private Consumer<PackageUserKey> mWidgetRefreshCallback;
107 public void setWidgetRefreshCallback(Consumer<PackageUserKey> cb) { in setWidgetRefreshCallback()

12