/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationViewAdapterTest.java | 333 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_group_shouldNotThrowError() local 334 notificationGroup.setGroupSummaryNotification(mNotification1); in onBindViewHolder_group_shouldNotThrowError() 335 notificationGroup.addNotification(mNotification1); in onBindViewHolder_group_shouldNotThrowError() 336 mNotificationGroupList1.add(notificationGroup); in onBindViewHolder_group_shouldNotThrowError() 349 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_message_shouldNotThrowError() local 350 notificationGroup.setGroupSummaryNotification(mNotification1); in onBindViewHolder_message_shouldNotThrowError() 351 mNotificationGroupList1.add(notificationGroup); in onBindViewHolder_message_shouldNotThrowError() 364 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageWithRestriction_shouldNotThrowError() local 365 notificationGroup.setGroupSummaryNotification(mNotification1); in onBindViewHolder_messageWithRestriction_shouldNotThrowError() 366 mNotificationGroupList1.add(notificationGroup); in onBindViewHolder_messageWithRestriction_shouldNotThrowError() [all …]
|
D | NotificationDataManagerTest.java | 152 NotificationGroup notificationGroup = new NotificationGroup(); in updateUnseenNotificationGroups_addHighImportanceNotification_updatesUnseenCount() local 153 notificationGroup.addNotification(mMessageNotification); in updateUnseenNotificationGroups_addHighImportanceNotification_updatesUnseenCount() 154 notificationGroups.add(notificationGroup); in updateUnseenNotificationGroups_addHighImportanceNotification_updatesUnseenCount() 169 NotificationGroup notificationGroup = new NotificationGroup(); in updateUnseenNotificationGroups_addLowImportanceNotification_unseenCountZero() local 170 notificationGroup.addNotification(mMessageNotification); in updateUnseenNotificationGroups_addLowImportanceNotification_unseenCountZero() 171 notificationGroups.add(notificationGroup); in updateUnseenNotificationGroups_addLowImportanceNotification_unseenCountZero() 186 NotificationGroup notificationGroup = new NotificationGroup(); in setVisibleNotificationsAsSeen_notificationIsSeen() local 187 notificationGroup.addNotification(mMessageNotification); in setVisibleNotificationsAsSeen_notificationIsSeen() 188 notificationGroups.add(notificationGroup); in setVisibleNotificationsAsSeen_notificationIsSeen() 202 NotificationGroup notificationGroup = new NotificationGroup(); in isNotificationSeen_notificationIsSeen_returnTrue() local [all …]
|
D | NotificationClickHandlerFactoryTest.java | 520 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsSummary() local 521 notificationGroup.setGroupSummaryNotification(mAlertEntry1); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 522 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 523 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 524 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 525 notificationsToClear.add(notificationGroup); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 550 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() local 551 notificationGroup.setGroupSummaryNotification(mAlertEntry1); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() 552 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() 553 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() [all …]
|
D | CarNotificationViewTest.java | 321 NotificationGroup notificationGroup = new NotificationGroup(); in getNotificationGroup() local 322 notificationGroup.addNotification(notification); in getNotificationGroup() 324 return notificationGroup; in getNotificationGroup()
|
D | CarNotificationDiffTest.java | 183 NotificationGroup notificationGroup = new NotificationGroup(); in sameGroupUniqueIdentifiers_differentIsSeen_shouldReturnFalse() local 184 notificationGroup.addNotification(mNotification1); in sameGroupUniqueIdentifiers_differentIsSeen_shouldReturnFalse() 185 notificationGroup.setSeen(true); in sameGroupUniqueIdentifiers_differentIsSeen_shouldReturnFalse() 187 assertThat(CarNotificationDiff.sameGroupUniqueIdentifiers(notificationGroup, in sameGroupUniqueIdentifiers_differentIsSeen_shouldReturnFalse()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationViewAdapter.java | 164 NotificationGroup notificationGroup = mNotifications.get(position); in onBindViewHolderImpl() local 184 .bind(notificationGroup, this, /* isExpanded= */ in onBindViewHolderImpl() 185 isExpanded(notificationGroup.getGroupKey(), in onBindViewHolderImpl() 186 notificationGroup.isSeen())); in onBindViewHolderImpl() 190 ((GroupSummaryNotificationViewHolder) holder).bind(notificationGroup); in onBindViewHolderImpl() 195 AlertEntry alertEntry = notificationGroup.getSingleNotification(); in onBindViewHolderImpl() 200 false, /* isHeadsUp= */ false, notificationGroup.isSeen()); in onBindViewHolderImpl() 203 notificationGroup.isSeen()); in onBindViewHolderImpl() 209 NotificationGroup notificationGroup = mNotifications.get(position); in getItemViewTypeImpl() local 210 if (notificationGroup.isHeader()) { in getItemViewTypeImpl() [all …]
|
D | PreprocessingManager.java | 394 NotificationGroup notificationGroup = new NotificationGroup(); in group() local 395 groupedNotifications.put(groupKey, notificationGroup); in group() 414 notificationGroup -> { in group() 416 notificationGroup.getGroupSummaryNotification(); in group() 417 return notificationGroup.getChildCount() == 0 in group() 435 groupList.forEach(notificationGroup -> { in group() 436 AlertEntry groupSummary = notificationGroup.getGroupSummaryNotification(); in group() 439 .isNotificationSeen(notificationGroup.getSingleNotification()); in group() 440 notificationGroup.setSeen(isNotificationSeen); in group() 441 tempGroupList.add(notificationGroup); in group() [all …]
|
D | CarNotificationView.java | 213 NotificationGroup notificationGroup = new NotificationGroup(mNotifications.get(i)); in removeNotification() local 214 boolean notificationRemoved = notificationGroup.removeNotification(alertEntry); in removeNotification() 216 if (notificationGroup.getChildCount() == 0) { in removeNotification() 223 Log.d(TAG, "Edited notification group: " + notificationGroup); in removeNotification() 225 mNotifications.set(i, notificationGroup); in removeNotification() 335 mNotifications.forEach(notificationGroup -> { in getAllDismissibleNotifications() 336 if (notificationGroup.isDismissible()) { in getAllDismissibleNotifications() 337 notifications.add(notificationGroup); in getAllDismissibleNotifications() 351 notifications.forEach(notificationGroup -> { in getNotificationViews() 352 long id = notificationGroup.isGroup() ? notificationGroup.getGroupKey().hashCode() : in getNotificationViews() [all …]
|
D | CarNotificationItemTouchListener.java | 127 NotificationGroup notificationGroup = in CarNotificationItemTouchListener() 130 notificationGroup.getGroupSummaryNotification(); in CarNotificationItemTouchListener() 132 notificationGroup.getGroupKey())) { in CarNotificationItemTouchListener() 138 : notificationGroup.getChildNotifications()) { in CarNotificationItemTouchListener()
|
D | NotificationClickHandlerFactory.java | 345 notificationsToClear.forEach(notificationGroup -> { 346 if (notificationGroup.isGroup()) { 347 AlertEntry summaryNotification = notificationGroup.getGroupSummaryNotification(); 350 notificationGroup.getChildNotifications()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationListener.java | 132 NotificationGroup notificationGroup = mNotificationGroupMap.get(sbn.getGroupKey()); in handleWorkerMessage() local 134 if (notificationGroup != null) { in handleWorkerMessage() 135 notificationGroup.removeChildKey(key); in handleWorkerMessage() 136 if (notificationGroup.isEmpty()) { in handleWorkerMessage() 276 NotificationGroup notificationGroup = mNotificationGroupMap.get(newGroupKey); in updateGroupKeyIfNecessary() local 277 if (notificationGroup == null) { in updateGroupKeyIfNecessary() 278 notificationGroup = new NotificationGroup(); in updateGroupKeyIfNecessary() 279 mNotificationGroupMap.put(newGroupKey, notificationGroup); in updateGroupKeyIfNecessary() 284 notificationGroup.setGroupSummaryKey(childKey); in updateGroupKeyIfNecessary() 286 notificationGroup.addChildKey(childKey); in updateGroupKeyIfNecessary()
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | GroupSummaryNotificationViewHolder.java | 65 public void bind(NotificationGroup notificationGroup) { in bind() argument 67 super.bind(notificationGroup.getSingleNotification(), /* isInGroup= */ in bind() 68 true, /* isHeadsUp= */false, notificationGroup.isSeen()); in bind() 70 List<String> titles = notificationGroup.getChildTitles(); in bind()
|
D | GroupNotificationViewHolder.java | 396 NotificationGroup notificationGroup = new NotificationGroup(); in addNextPageOfNotificationsToList() local 397 notificationGroup.addNotification(notification); in addNextPageOfNotificationsToList() 398 notificationGroup.setSeen(mNotificationGroup.isSeen()); in addNextPageOfNotificationsToList() 399 groups.add(notificationGroup); in addNextPageOfNotificationsToList()
|