/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationViewAdapterTest.java | 344 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_groupExpanded_shouldNotThrowError() local 345 notificationGroup.setGroupSummaryNotification(mNotification1); in onBindViewHolder_groupExpanded_shouldNotThrowError() 346 mNotificationGroupList1.add(notificationGroup); in onBindViewHolder_groupExpanded_shouldNotThrowError() 359 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_groupCollapsed_shouldNotThrowError() local 360 notificationGroup.setGroupSummaryNotification(mNotification1); in onBindViewHolder_groupCollapsed_shouldNotThrowError() 361 mNotificationGroupList1.add(notificationGroup); in onBindViewHolder_groupCollapsed_shouldNotThrowError() 374 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_message_shouldNotThrowError() local 375 notificationGroup.setGroupSummaryNotification(mNotification1); in onBindViewHolder_message_shouldNotThrowError() 376 mNotificationGroupList1.add(notificationGroup); in onBindViewHolder_message_shouldNotThrowError() 389 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageWithRestriction_shouldNotThrowError() local [all …]
|
D | NotificationDataManagerTest.java | 146 NotificationGroup notificationGroup = new NotificationGroup(); in updateUnseenNotification_addNewUnseenNotification_updatesUnseenCount() local 147 notificationGroup.addNotification(mMessageNotification); in updateUnseenNotification_addNewUnseenNotification_updatesUnseenCount() 148 notificationGroups.add(notificationGroup); in updateUnseenNotification_addNewUnseenNotification_updatesUnseenCount() 159 NotificationGroup notificationGroup = new NotificationGroup(); in setNotificationsAsSeen_notificationIsSeen() local 160 notificationGroup.addNotification(mMessageNotification); in setNotificationsAsSeen_notificationIsSeen() 161 notificationGroups.add(notificationGroup); in setNotificationsAsSeen_notificationIsSeen() 175 NotificationGroup notificationGroup = new NotificationGroup(); in setNotificationsAsSeen_notificationIsSeen_decrementsUnseenCount() local 176 notificationGroup.addNotification(mMessageNotification); in setNotificationsAsSeen_notificationIsSeen_decrementsUnseenCount() 177 notificationGroups.add(notificationGroup); in setNotificationsAsSeen_notificationIsSeen_decrementsUnseenCount() 190 NotificationGroup notificationGroup = new NotificationGroup(); in setNotificationsAsSeen_notificationIsSeen_notificationIsVisibleToUser() local [all …]
|
D | NotificationClickHandlerFactoryTest.java | 431 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsSummary() local 432 notificationGroup.setGroupSummaryNotification(mAlertEntry1); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 433 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 434 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 435 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 436 notificationsToClear.add(notificationGroup); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 461 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() local 462 notificationGroup.setGroupSummaryNotification(mAlertEntry1); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() 463 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() 464 notificationGroup.addNotification(mAlertEntry2); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() [all …]
|
D | CarNotificationViewTest.java | 245 NotificationGroup notificationGroup = new NotificationGroup(); in getNotificationGroup() local 246 notificationGroup.addNotification(notification); in getNotificationGroup() 248 return notificationGroup; in getNotificationGroup()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationViewAdapter.java | 138 NotificationGroup notificationGroup = mNotifications.get(position); in onBindViewHolderImpl() local 149 .bind(notificationGroup, this, /* isExpanded= */ true); in onBindViewHolderImpl() 153 .bind(notificationGroup, this, /* isExpanded= */ false); in onBindViewHolderImpl() 157 ((GroupSummaryNotificationViewHolder) holder).bind(notificationGroup); in onBindViewHolderImpl() 162 AlertEntry alertEntry = notificationGroup.getSingleNotification(); in onBindViewHolderImpl() 175 NotificationGroup notificationGroup = mNotifications.get(position); in getItemViewTypeImpl() local 177 if (notificationGroup.isHeader()) { in getItemViewTypeImpl() 181 if (notificationGroup.isFooter()) { in getItemViewTypeImpl() 185 if (notificationGroup.isGroup()) { in getItemViewTypeImpl() 186 if (mExpandedNotifications.contains(notificationGroup.getGroupKey())) { in getItemViewTypeImpl() [all …]
|
D | CarNotificationView.java | 256 mNotifications.forEach(notificationGroup -> { in getAllDismissibleNotifications() 257 if (notificationGroup.isDismissible()) { in getAllDismissibleNotifications() 258 notifications.add(notificationGroup); in getAllDismissibleNotifications() 272 notifications.forEach(notificationGroup -> { in getNotificationViews() 273 long id = notificationGroup.isGroup() ? notificationGroup.getGroupKey().hashCode() : in getNotificationViews() 274 notificationGroup.getSingleNotification().getKey().hashCode(); in getNotificationViews() 299 groupNotificationsBeingCleared.forEach(notificationGroup -> { in registerChildNotificationsBeingCleared() 300 notificationGroup.getChildNotifications().forEach(notification -> { in registerChildNotificationsBeingCleared()
|
D | PreprocessingManager.java | 334 NotificationGroup notificationGroup = new NotificationGroup(); in group() local 335 groupedNotifications.put(groupKey, notificationGroup); in group() 350 notificationGroup -> { in group() 352 notificationGroup.getGroupSummaryNotification(); in group() 353 return notificationGroup.getChildCount() == 0 in group() 377 validGroupList.removeIf(notificationGroup -> in group() 378 notificationGroup.getChildNotifications().isEmpty()); in group() 490 notifications.forEach(notificationGroup -> { in rank() 491 if (notificationGroup.isGroup()) { in rank() 493 notificationGroup.getChildNotifications(), in rank()
|
D | CarNotificationItemTouchListener.java | 118 NotificationGroup notificationGroup = in CarNotificationItemTouchListener() 121 notificationGroup.getGroupSummaryNotification(); in CarNotificationItemTouchListener() 127 new HashSet<>(notificationGroup.getChildNotifications())); in CarNotificationItemTouchListener() 130 : notificationGroup.getChildNotifications()) { in CarNotificationItemTouchListener()
|
D | NotificationClickHandlerFactory.java | 309 notificationsToClear.forEach(notificationGroup -> { 310 if (notificationGroup.isGroup()) { 311 AlertEntry summaryNotification = notificationGroup.getGroupSummaryNotification(); 314 notificationGroup.getChildNotifications()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationListener.java | 129 NotificationGroup notificationGroup = mNotificationGroupMap.get(sbn.getGroupKey()); in handleWorkerMessage() local 131 if (notificationGroup != null) { in handleWorkerMessage() 132 notificationGroup.removeChildKey(key); in handleWorkerMessage() 133 if (notificationGroup.isEmpty()) { in handleWorkerMessage() 137 cancelNotification(notificationGroup.getGroupSummaryKey()); in handleWorkerMessage() 285 NotificationGroup notificationGroup = mNotificationGroupMap.get(newGroupKey); in updateGroupKeyIfNecessary() local 286 if (notificationGroup == null) { in updateGroupKeyIfNecessary() 287 notificationGroup = new NotificationGroup(); in updateGroupKeyIfNecessary() 288 mNotificationGroupMap.put(newGroupKey, notificationGroup); in updateGroupKeyIfNecessary() 293 notificationGroup.setGroupSummaryKey(childKey); in updateGroupKeyIfNecessary() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | GroupSummaryNotificationViewHolder.java | 69 public void bind(NotificationGroup notificationGroup) { in bind() argument 71 super.bind(notificationGroup.getSingleNotification(), /* isInGroup= */ true, false); in bind() 73 List<String> titles = notificationGroup.getChildTitles(); in bind()
|
D | GroupNotificationViewHolder.java | 148 NotificationGroup notificationGroup = new NotificationGroup(); in bind() 149 notificationGroup.addNotification(notification); in bind() 150 list.add(notificationGroup); in bind()
|