/packages/apps/Dialer/java/com/android/dialer/notification/ |
D | NotificationThrottler.java | 66 String groupKey = notification.getGroup(); in throttle() local 67 if (TextUtils.isEmpty(groupKey)) { in throttle() 87 if (isNotificationInGroup(currentNotification, groupKey)) { in throttle() 96 groupKey, in throttle() 99 List<StatusBarNotification> notifications = getSortedMatchingNotifications(context, groupKey); in throttle() 109 @NonNull Context context, @NonNull String groupKey) { in getSortedMatchingNotifications() argument 113 if (isNotificationInGroup(notification, groupKey)) { in getSortedMatchingNotifications() 129 @NonNull StatusBarNotification notification, @NonNull String groupKey) { in isNotificationInGroup() argument 135 return TextUtils.equals(groupKey, notification.getNotification().getGroup()); in isNotificationInGroup()
|
D | DialerNotificationManager.java | 74 String groupKey = findGroupKey(notifications, tag, id); in cancel() local 75 if (!TextUtils.isEmpty(groupKey)) { in cancel() 77 getGroupSummaryAndCount(notifications, groupKey); in cancel() 82 groupKey); in cancel() 119 @NonNull StatusBarNotification[] notifications, @NonNull String groupKey) { in getGroupSummaryAndCount() argument 123 if (TextUtils.equals(groupKey, notification.getNotification().getGroup())) { in getGroupSummaryAndCount()
|
D | NotificationManagerUtils.java | 28 public static void cancelAllInGroup(@NonNull Context context, @NonNull String groupKey) { in cancelAllInGroup() argument 30 Assert.checkArgument(!TextUtils.isEmpty(groupKey)); in cancelAllInGroup() 34 if (TextUtils.equals(groupKey, notification.getNotification().getGroup())) { in cancelAllInGroup()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | NotificationGroup.java | 113 void setGroupKey(@NonNull String groupKey) { in setGroupKey() argument 114 mGroupKey = groupKey; in setGroupKey() 349 private void assertSameGroupKey(String groupKey) { in assertSameGroupKey() argument 351 setGroupKey(groupKey); in assertSameGroupKey() 352 } else if (!mGroupKey.equals(groupKey)) { in assertSameGroupKey() 353 updateGroupKeyOrThrowError(groupKey); in assertSameGroupKey() 361 private void updateGroupKeyOrThrowError(String groupKey) { in updateGroupKeyOrThrowError() argument 366 if (TextUtils.equals(groupKey, singleGroupKey)) { in updateGroupKeyOrThrowError() 375 + "mGroupKey: " + mGroupKey + "; groupKey:" + groupKey); in updateGroupKeyOrThrowError()
|
D | PreprocessingManager.java | 374 String groupKey; in group() local 377 groupKey = UUID.randomUUID().toString(); in group() 379 groupKey = alertEntry.getStatusBarNotification().getGroupKey(); in group() 382 if (groupKey == null) { in group() 384 groupKey = UUID.randomUUID().toString(); in group() 387 if (!groupedNotifications.containsKey(groupKey)) { in group() 389 groupedNotifications.put(groupKey, notificationGroup); in group() 392 groupedNotifications.get(groupKey) in group() 395 groupedNotifications.get(groupKey).addNotification(alertEntry); in group() 721 private AlertEntry findGroupSummaryNotification(String groupKey) { in findGroupSummaryNotification() argument [all …]
|
D | CarNotificationViewAdapter.java | 382 public void setExpanded(String groupKey, boolean isSeen, boolean isExpanded) { in setExpanded() argument 383 if (isExpanded(groupKey, isSeen) == isExpanded) { in setExpanded() 387 ExpandedNotification expandedNotification = new ExpandedNotification(groupKey, isSeen); in setExpanded() 413 boolean isExpanded(String groupKey, boolean isSeen) { in isExpanded() argument 414 ExpandedNotification expandedNotification = new ExpandedNotification(groupKey, isSeen); in isExpanded() 646 public boolean shouldRemoveGroupSummary(String groupKey) { in shouldRemoveGroupSummary() argument 647 return mGroupKeyToCountMap.getOrDefault(groupKey, /* defaultValue= */ 0) <= 1; in shouldRemoveGroupSummary()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | PreprocessingManagerTest.java | 704 String groupKey = "NEW_GROUP_KEY"; in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() local 710 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() 723 .filter(g -> !g.getGroupKey().equals(groupKey)) in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() 743 String groupKey = "NEW_GROUP_KEY"; in onAdditionalGroupAndRank_isGroupSummary_noChildren_prependsHighRankNotification() local 749 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_isGroupSummary_noChildren_prependsHighRankNotification() 778 String groupKey = mImportantForeground.getStatusBarNotification().getGroupKey(); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated() local 784 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated() 801 String groupKey = mProgress.getStatusBarNotification().getGroupKey(); in onAdditionalGroupAndRank_progressUpdate_notificationUpdatedInOrder() local 807 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_progressUpdate_notificationUpdatedInOrder() 824 String groupKey = mImportantForeground.getStatusBarNotification().getGroupKey(); in onAdditionalGroupAndRank_progressUpdatesNonProgress_notificationUpdatedNewGroup() local [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
D | NotificationFragment.java | 1030 String groupKey = "GROUP_KEY" + mCurrentNotificationId++; in initCustomGroupSummaryButton() 1039 .setGroup(groupKey) in initCustomGroupSummaryButton() 1058 .setGroup(groupKey) in initCustomGroupSummaryButton() 1069 String groupKey = "GROUP_KEY" + mCurrentNotificationId++; in initGroupWithoutSummaryButton() 1076 .setGroup(groupKey) in initGroupWithoutSummaryButton()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | BugleNotifications.java | 846 final String groupKey = "groupkey"; in setWearableGroupOptions() local 848 LogUtil.v(TAG, "Group key (for wearables)=" + groupKey); in setWearableGroupOptions() 851 notifBuilder.setGroup(groupKey).setGroupSummary(true); in setWearableGroupOptions() 858 notifBuilder.setGroup(groupKey).setSortKey(sortKey); in setWearableGroupOptions()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkStatsCollection.java | 827 final Key groupKey = new Key(new NetworkIdentitySet(), key.uid, key.set, key.tag); in dumpCheckin() local 828 NetworkStatsHistory groupHistory = grouped.get(groupKey); in dumpCheckin() 831 grouped.put(groupKey, groupHistory); in dumpCheckin()
|