/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/ |
D | PackageUserKeyTest.java | 46 PackageUserKey packageUserKey = PackageUserKey.fromPackageItemInfo( in fromPackageItemInfo_shouldCreateExpectedObject() 56 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in constructor_packageNameAndUserHandle_shouldCreateExpectedObject() 65 PackageUserKey packageUserKey = new PackageUserKey(CONVERSATIONS, UserHandle.CURRENT); in constructor_widgetCategoryAndUserHandle_shouldCreateExpectedObject() 74 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_sameObject_shouldReturnTrue() 75 PackageUserKey otherPackageUserKey = packageUserKey; in equals_sameObject_shouldReturnTrue() 82 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentObjectSameContent_shouldReturnTrue() 83 PackageUserKey otherPackageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentObjectSameContent_shouldReturnTrue() 90 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_compareAgainstNull_shouldReturnFalse() 97 PackageUserKey packageUserKey = new PackageUserKey(TEST_PACKAGE, UserHandle.CURRENT); in equals_differentPackage_shouldReturnFalse() 98 PackageUserKey otherPackageUserKey = new PackageUserKey(TEST_PACKAGE + "1", in equals_differentPackage_shouldReturnFalse() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | PackageUserKey.java | 18 public class PackageUserKey { class 26 public static PackageUserKey fromItemInfo(ItemInfo info) { in fromItemInfo() 28 return new PackageUserKey(info.getTargetComponent().getPackageName(), info.user); in fromItemInfo() 31 public static PackageUserKey fromNotification(StatusBarNotification notification) { in fromNotification() 32 return new PackageUserKey(notification.getPackageName(), notification.getUser()); in fromNotification() 36 public static PackageUserKey fromPackageItemInfo(PackageItemInfo info) { in fromPackageItemInfo() 38 return new PackageUserKey(info.widgetCategory, info.user); in fromPackageItemInfo() 40 return new PackageUserKey(info.packageName, info.user); in fromPackageItemInfo() 43 public PackageUserKey(String packageName, UserHandle user) { in PackageUserKey() method in PackageUserKey 47 public PackageUserKey(int widgetCategory, UserHandle user) { in PackageUserKey() method in PackageUserKey [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | PopupDataProvider.java | 32 import com.android.launcher3.util.PackageUserKey; 58 private final Consumer<Predicate<PackageUserKey>> mNotificationDotsChangeListener; 63 private Map<PackageUserKey, DotInfo> mPackageUserToDotInfos = new HashMap<>(); 72 public PopupDataProvider(Consumer<Predicate<PackageUserKey>> notificationDotsChangeListener) { in PopupDataProvider() 76 private void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots() 81 public void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted() 94 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 …]
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | InstallSessionTracker.java | 36 import com.android.launcher3.util.PackageUserKey; 46 private SparseArray<PackageUserKey> mActiveSessions = null; 101 SparseArray<PackageUserKey> activeSessions = getActiveSessionMap(helper); in onFinished() 102 PackageUserKey key = activeSessions.get(sessionId); in onFinished() 154 PackageUserKey key = in pushSessionDisplayToLauncher() 155 new PackageUserKey(session.getAppPackageName(), getUserHandle(session)); in pushSessionDisplayToLauncher() 164 private SparseArray<PackageUserKey> getActiveSessionMap( in getActiveSessionMap() 195 void onUpdateSessionDisplay(@NonNull PackageUserKey key, @NonNull SessionInfo info); in onUpdateSessionDisplay()
|
D | InstallSessionHelper.java | 41 import com.android.launcher3.util.PackageUserKey; 123 public HashMap<PackageUserKey, SessionInfo> getActiveSessions() { in getActiveSessions() 124 HashMap<PackageUserKey, SessionInfo> activePackages = new HashMap<>(); in getActiveSessions() 126 activePackages.put(new PackageUserKey(info.getAppPackageName(), getUserHandle(info)), in getActiveSessions()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetsModel.java | 37 import com.android.launcher3.util.PackageUserKey; 116 public synchronized Map<PackageUserKey, List<WidgetItem>> getAllWidgetsWithoutShortcuts() { in getAllWidgetsWithoutShortcuts() 120 Map<PackageUserKey, List<WidgetItem>> packagesToWidgets = new HashMap<>(); in getAllWidgetsWithoutShortcuts() 127 new PackageUserKey(packageItemInfo.packageName, packageItemInfo.user), in getAllWidgetsWithoutShortcuts() 155 LauncherAppState app, @Nullable PackageUserKey packageUser) { in update() 202 LauncherAppState app, @Nullable PackageUserKey packageUser) { in setWidgetsAndShortcuts() 321 private List<PackageUserKey> getPackageUserKeys(Context context, WidgetItem item) { in getPackageUserKeys() 327 new PackageUserKey(item.componentName.getPackageName(), item.user)); in getPackageUserKeys() 329 List<PackageUserKey> packageUserKeys = new ArrayList<>(); in getPackageUserKeys() 333 new PackageUserKey(item.componentName.getPackageName(), in getPackageUserKeys() [all …]
|
D | SdCardAvailableReceiver.java | 28 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()
|
D | FirstScreenBroadcast.java | 44 import com.android.launcher3.util.PackageUserKey; 79 private final HashMap<PackageUserKey, SessionInfo> mSessionInfoForPackage; 81 public FirstScreenBroadcast(HashMap<PackageUserKey, SessionInfo> sessionInfoForPackage) { in FirstScreenBroadcast() argument
|
D | ModelTaskController.kt | 26 import com.android.launcher3.util.PackageUserKey in <lambda>() 98 keySelector = { PackageUserKey(it.componentName!!.packageName, it.user) }, in <lambda>()
|
D | WorkspaceItemProcessor.kt | 50 import com.android.launcher3.util.PackageUserKey 68 private val pendingPackages: MutableSet<PackageUserKey>, 73 private val installingPkgs: HashMap<PackageUserKey, PackageInstaller.SessionInfo>, 83 private val tempPackageKey = PackageUserKey(null, null) 233 pendingPackages.add(PackageUserKey(targetPkg, c.user)) in processAppOrDeepShortcut()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsStore.java | 36 import com.android.launcher3.util.PackageUserKey; 62 private PackageUserKey mTempKey = new PackageUserKey(null, null); 69 private Map<PackageUserKey, Integer> mPackageUserKeytoUidMap = Collections.emptyMap(); 89 public void setApps(@Nullable AppInfo[] apps, int flags, Map<PackageUserKey, Integer> map) { in setApps() argument 103 public void setApps(@Nullable AppInfo[] apps, int flags, Map<PackageUserKey, Integer> map, in setApps() argument 124 return mPackageUserKeytoUidMap.getOrDefault(new PackageUserKey(packageName, user), -1); in lookUpForUid() 209 public void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/ |
D | WidgetsListAdapter.java | 47 import com.android.launcher3.util.PackageUserKey; 94 @Nullable private PackageUserKey mWidgetsContentVisiblePackageUserKey = null; 98 || PackageUserKey.fromPackageItemInfo(entry.mPkgItem) 102 @Nullable private PackageUserKey mPendingClickHeader; 232 @NonNull WidgetsListBaseEntry entry, @Nullable PackageUserKey key) { in isHeaderForPackageUserKey() 237 @Nullable PackageUserKey key) { in matchesKey() 280 onHeaderClicked(true, PackageUserKey.fromPackageItemInfo(entry.mPkgItem))); in selectFirstHeaderEntry() 327 public void onHeaderClicked(boolean showWidgets, PackageUserKey packageUserKey) { in onHeaderClicked() 358 private OptionalInt getPositionForPackageUserKey(@Nullable PackageUserKey key) { in getPositionForPackageUserKey()
|
D | OnHeaderClickListener.java | 18 import com.android.launcher3.util.PackageUserKey; 27 void onHeaderClicked(boolean showWidgets, PackageUserKey key); in onHeaderClicked()
|
D | WidgetsTwoPaneSheet.java | 48 import com.android.launcher3.util.PackageUserKey; 73 private PackageUserKey mSuggestedWidgetsPackageUserKey; 83 private PackageUserKey mSelectedHeader; 285 mSuggestedWidgetsPackageUserKey = PackageUserKey.fromPackageItemInfo(packageItemInfo); in setupSuggestedWidgets() 383 public void onHeaderChanged(@NonNull PackageUserKey selectedHeader) { in getHeaderChangeListener() 505 void onHeaderChanged(@NonNull PackageUserKey selectedHeader);
|
D | WidgetsListHeaderViewHolderBinder.java | 23 import com.android.launcher3.util.PackageUserKey; 67 PackageUserKey.fromPackageItemInfo(data.mPkgItem)); in bindViewHolder()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationListener.java | 41 import com.android.launcher3.util.PackageUserKey; 169 Pair<PackageUserKey, NotificationKeyData> msg = (Pair) message.obj; in handleUiMessage() 177 Pair<PackageUserKey, NotificationKeyData> msg = (Pair) message.obj; in handleUiMessage() 318 private static Pair<PackageUserKey, NotificationKeyData> toKeyPair(StatusBarNotification sbn) { in toKeyPair() 319 return Pair.create(PackageUserKey.fromNotification(sbn), in toKeyPair() 324 void onNotificationPosted(PackageUserKey postedPackageUserKey, in onNotificationPosted() 326 void onNotificationRemoved(PackageUserKey removedPackageUserKey, in onNotificationRemoved()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | FirstScreenBroadcastHelperTest.kt | 34 import com.android.launcher3.util.PackageUserKey 82 val sessionInfoMap: HashMap<PackageUserKey, SessionInfo> = in Broadcast Models are created with Pending Items from first screen() 84 PackageUserKey(unexpectedAppPackage, UserHandle(0)) to sessionInfoExpected, in Broadcast Models are created with Pending Items from first screen() 85 PackageUserKey(expectedAppPackage, UserHandle(0)) to sessionInfoUnexpected in Broadcast Models are created with Pending Items from first screen() 205 val sessionInfoMap: HashMap<PackageUserKey, SessionInfo> = in Broadcast Models are created with Pending Items in Collections from the first screen() 207 PackageUserKey(unexpectedAppPackage, UserHandle(0)) to sessionInfoExpected, in Broadcast Models are created with Pending Items in Collections from the first screen() 208 PackageUserKey(expectedAppPackage, UserHandle(0)) to sessionInfoUnexpected, in Broadcast Models are created with Pending Items in Collections from the first screen()
|
D | WorkspaceItemProcessorTest.kt | 56 import com.android.launcher3.util.PackageUserKey 99 private var mInstallingPkgs: HashMap<PackageUserKey, PackageInstaller.SessionInfo> = hashMapOf() 103 private var mPendingPackages: MutableSet<PackageUserKey> = mutableSetOf() 192 pendingPackages: MutableSet<PackageUserKey> = mPendingPackages, in createWorkspaceItemProcessorUnderTest() 194 installingPkgs: HashMap<PackageUserKey, PackageInstaller.SessionInfo> = mInstallingPkgs, in createWorkspaceItemProcessorUnderTest() 557 val packageUserKey = PackageUserKey("com.google.android.testApp", mUserHandle) in When valid TYPE_REAL App Widget then add item() 714 val packageUserKey = PackageUserKey("com.google.android.testApp", mUserHandle) in When Pending App Widget has not started restore then update db and add item()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | WidgetPredictionsRequester.java | 43 import com.android.launcher3.util.PackageUserKey; 70 private final Map<PackageUserKey, List<WidgetItem>> mAllWidgets; 73 @NonNull Map<PackageUserKey, List<WidgetItem>> allWidgets) { in WidgetPredictionsRequester() argument 175 Map<PackageUserKey, List<WidgetItem>> allWidgets, Predicate<WidgetItem> filter) { in filterPredictions() argument 181 new PackageUserKey(prediction.getPackageName(), prediction.getUser())); in filterPredictions()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/allapps/ |
D | TaskbarAllAppsController.java | 33 import com.android.launcher3.util.PackageUserKey; 66 private Map<PackageUserKey, Integer> mPackageUserKeytoUidMap = Collections.emptyMap(); 87 public void setApps(@Nullable AppInfo[] apps, int flags, Map<PackageUserKey, Integer> map) { in setApps() argument 124 public void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/model/ |
D | WidgetsPredictionsRequesterTest.kt | 37 import com.android.launcher3.util.PackageUserKey 65 private lateinit var allWidgets: Map<PackageUserKey, List<WidgetItem>> 96 PackageUserKey(APP_1_PACKAGE_NAME, mUserHandle) to in setUp() 98 PackageUserKey(APP_2_PACKAGE_NAME, mUserHandle) to listOf(widgetItem2), in setUp()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetManagerHelper.java | 39 import com.android.launcher3.util.PackageUserKey; 91 public List<AppWidgetProviderInfo> getAllProviders(@Nullable PackageUserKey packageUser) { in getAllProviders() 134 getAllProviders(new PackageUserKey(provider.getPackageName(), user))) { in findProvider()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/allapps/ |
D | TaskbarAllAppsControllerTest.kt | 34 import com.android.launcher3.util.PackageUserKey 130 PackageUserKey.fromItemInfo(TEST_APPS[0]), in testUpdateNotificationDots_appInfo_hasDot() 155 PackageUserKey.fromItemInfo(TEST_PREDICTED_APPS[0]), in testUpdateNotificationDots_predictedApp_hasDot()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomWidgetManager.java | 36 import com.android.launcher3.util.PackageUserKey; 64 private Consumer<PackageUserKey> mWidgetRefreshCallback; 119 public void setWidgetRefreshCallback(Consumer<PackageUserKey> cb) { in setWidgetRefreshCallback()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarPopupController.java | 48 import com.android.launcher3.util.PackageUserKey; 107 private void updateNotificationDots(Predicate<PackageUserKey> updatedDots) { in updateNotificationDots() 108 final PackageUserKey packageUserKey = new PackageUserKey(null, null); in updateNotificationDots()
|