Home
last modified time | relevance | path

Searched refs:groupKey (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/notification/
DNotificationThrottler.java66 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()
DDialerNotificationManager.java74 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()
DNotificationManagerUtils.java28 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/
DNotificationGroup.java64 void setGroupKey(@NonNull String groupKey) { in setGroupKey() argument
65 mGroupKey = groupKey; in setGroupKey()
229 private void assertSameGroupKey(String groupKey) { in assertSameGroupKey() argument
231 setGroupKey(groupKey); in assertSameGroupKey()
232 } else if (!mGroupKey.equals(groupKey)) { in assertSameGroupKey()
235 "mGroupKey: " + mGroupKey + "; groupKey:" + groupKey); in assertSameGroupKey()
DPreprocessingManager.java325 String groupKey; in group() local
328 groupKey = UUID.randomUUID().toString(); in group()
330 groupKey = alertEntry.getStatusBarNotification().getGroupKey(); in group()
333 if (!groupedNotifications.containsKey(groupKey)) { in group()
335 groupedNotifications.put(groupKey, notificationGroup); in group()
338 groupedNotifications.get(groupKey) in group()
341 groupedNotifications.get(groupKey).addNotification(alertEntry); in group()
DCarNotificationViewAdapter.java317 public void setExpanded(String groupKey, boolean isExpanded) { in setExpanded() argument
318 if (isExpanded(groupKey) == isExpanded) { in setExpanded()
323 mExpandedNotifications.add(groupKey); in setExpanded()
325 mExpandedNotifications.remove(groupKey); in setExpanded()
341 boolean isExpanded(String groupKey) { in isExpanded() argument
342 return mExpandedNotifications.contains(groupKey); in isExpanded()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java617 String groupKey = "GROUP_KEY" + mCurrentNotificationId++; in initCustomGroupSummaryButton()
626 .setGroup(groupKey) in initCustomGroupSummaryButton()
645 .setGroup(groupKey) in initCustomGroupSummaryButton()
656 String groupKey = "GROUP_KEY" + mCurrentNotificationId++; in initGroupWithoutSummaryButton()
663 .setGroup(groupKey) in initGroupWithoutSummaryButton()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DPreprocessingManagerTest.java588 String groupKey = "NEW_GROUP_KEY"; in onAdditionalGroupAndRank_maintainsPreviousRanking() local
593 when(newSBN.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_maintainsPreviousRanking()
606 .filter(g -> !g.getGroupKey().equals(groupKey)) in onAdditionalGroupAndRank_maintainsPreviousRanking()
627 String groupKey = "NEW_GROUP_KEY"; in onAdditionalGroupAndRank_prependsHighRankNotification() local
632 when(newSBN.getGroupKey()).thenReturn(groupKey); in onAdditionalGroupAndRank_prependsHighRankNotification()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleNotifications.java846 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/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt957 for ((groupKey, groupState) in groupStates) { in <lambda>() method
958 val (groupName, isBackground) = groupKey in <lambda>()