Home
last modified time | relevance | path

Searched refs:mNotificationGroup (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationGroupTest.java61 private NotificationGroup mNotificationGroup; field in NotificationGroupTest
69 mNotificationGroup = new NotificationGroup(); in setup()
87 mNotificationGroup.addNotification(mNotification1); in addNotification_shouldAdd()
88 mNotificationGroup.addNotification(mNotification1); in addNotification_shouldAdd()
89 assertThat(mNotificationGroup.getChildCount()).isEqualTo(2); in addNotification_shouldAdd()
98 mNotificationGroup.addNotification(mNotification1); in addNotification_shouldThrowError()
100 () -> mNotificationGroup.addNotification(mNotification2)); in addNotification_shouldThrowError()
108 mNotificationGroup.setGroupSummaryNotification(mNotification1); in setGroupSummaryNotification_shouldReturnFalse()
109 assertThat(mNotificationGroup.isGroup()).isFalse(); in setGroupSummaryNotification_shouldReturnFalse()
117 mNotificationGroup.setGroupSummaryNotification(mNotification1); in setGroupSummaryNotification_shouldReturnTrue()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DGroupNotificationViewHolder.java83 private NotificationGroup mNotificationGroup; field in GroupNotificationViewHolder
186 return mNotificationGroup; in getNotificationGroup()
199 mNotificationGroup = group; in bind()
201 mSummaryNotification = mNotificationGroup.getGroupSummaryNotification(); in bind()
273 newGroup.setSeen(mNotificationGroup.isSeen()); in collapseGroup()
277 newGroup.addNotification(mNotificationGroup.getChildNotifications().get(0)); in collapseGroup()
281 newGroup.addNotification(mNotificationGroup.getGroupSummaryNotification()); in collapseGroup()
286 newGroup.setChildTitles(mNotificationGroup.generateChildTitles()); in collapseGroup()
300 if (mNotificationGroup.getChildCount() == 0) { in updateExpansionIcon()
319 int unshownCount = mNotificationGroup.getChildCount() - mNumberOfShownNotifications; in updateExpansionIcon()
[all …]