/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() 322 private void assertSameGroupKey(String groupKey) { in assertSameGroupKey() argument 324 setGroupKey(groupKey); in assertSameGroupKey() 325 } else if (!mGroupKey.equals(groupKey)) { in assertSameGroupKey() 326 updateGroupKeyOrThrowError(groupKey); in assertSameGroupKey() 334 private void updateGroupKeyOrThrowError(String groupKey) { in updateGroupKeyOrThrowError() argument 339 if (TextUtils.equals(groupKey, singleGroupKey)) { in updateGroupKeyOrThrowError() 348 + "mGroupKey: " + mGroupKey + "; groupKey:" + groupKey); in updateGroupKeyOrThrowError()
|
D | PreprocessingManager.java | 380 String groupKey; in group() local 383 groupKey = UUID.randomUUID().toString(); in group() 385 groupKey = alertEntry.getStatusBarNotification().getGroupKey(); in group() 388 if (groupKey == null) { in group() 390 groupKey = UUID.randomUUID().toString(); in group() 393 if (!groupedNotifications.containsKey(groupKey)) { in group() 395 groupedNotifications.put(groupKey, notificationGroup); in group() 398 groupedNotifications.get(groupKey) in group() 401 groupedNotifications.get(groupKey).addNotification(alertEntry); in group() 696 private AlertEntry findGroupSummaryNotification(String groupKey) { in findGroupSummaryNotification() argument [all …]
|
D | CarNotificationViewAdapter.java | 389 public void setExpanded(String groupKey, boolean isSeen, boolean isExpanded) { in setExpanded() argument 390 if (isExpanded(groupKey, isSeen) == isExpanded) { in setExpanded() 394 ExpandedNotification expandedNotification = new ExpandedNotification(groupKey, isSeen); in setExpanded() 420 boolean isExpanded(String groupKey, boolean isSeen) { in isExpanded() argument 421 ExpandedNotification expandedNotification = new ExpandedNotification(groupKey, isSeen); in isExpanded() 653 public boolean shouldRemoveGroupSummary(String groupKey) { in shouldRemoveGroupSummary() argument 654 return mGroupKeyToCountMap.getOrDefault(groupKey, /* defaultValue= */ 0) <= 1; in shouldRemoveGroupSummary()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | PreprocessingManagerTest.java | 760 String groupKey = "NEW_GROUP_KEY"; in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() local 766 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() 779 .filter(g -> !g.getGroupKey().equals(groupKey)) in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() 800 String groupKey = "NEW_GROUP_KEY"; in onAdditionalGroupAndRank_isGroupSummary_prependsHighRankNotification() local 806 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_isGroupSummary_prependsHighRankNotification() 822 String groupKey = mImportantForeground.getStatusBarNotification().getGroupKey(); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated() local 828 when(newSbn.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated() 983 String groupKey = "TEST_GROUP_KEY"; in onAdditionalGroupAndRank_addToExistingGroup_groupSurpassGroupingThresholdExist() local 987 generateNotificationsWithSameGroupKey(numberOfGroupNotifications, groupKey); in onAdditionalGroupAndRank_addToExistingGroup_groupSurpassGroupingThresholdExist() 988 generateGroupSummaryNotification(groupKey); in onAdditionalGroupAndRank_addToExistingGroup_groupSurpassGroupingThresholdExist() [all …]
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
D | NotificationFragment.java | 905 String groupKey = "GROUP_KEY" + mCurrentNotificationId++; in initCustomGroupSummaryButton() 914 .setGroup(groupKey) in initCustomGroupSummaryButton() 933 .setGroup(groupKey) in initCustomGroupSummaryButton() 944 String groupKey = "GROUP_KEY" + mCurrentNotificationId++; in initGroupWithoutSummaryButton() 951 .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()
|