Home
last modified time | relevance | path

Searched refs:NotificationGroup (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java97 private NotificationGroup mNotificationGroup1;
98 private NotificationGroup mNotificationGroup2;
99 private List<NotificationGroup> mNotificationGroupList1;
132 mNotificationGroup1 = new NotificationGroup(); in setupBaseActivityAndLayout()
134 mNotificationGroup2 = new NotificationGroup(); in setupBaseActivityAndLayout()
344 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_groupExpanded_shouldNotThrowError()
359 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_groupCollapsed_shouldNotThrowError()
374 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_message_shouldNotThrowError()
389 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageWithRestriction_shouldNotThrowError()
408 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageInGroup_shouldNotThrowError()
[all …]
DCarNotificationDiffTest.java69 private NotificationGroup mNotificationGroup1;
70 private NotificationGroup mNotificationGroup2;
71 private NotificationGroup mNotificationGroup3;
72 private NotificationGroup mNotificationGroup4;
73 private List<NotificationGroup> mNotificationGroupList1;
74 private List<NotificationGroup> mNotificationGroupList2;
75 private List<NotificationGroup> mNotificationGroupList3;
76 private List<NotificationGroup> mNotificationGroupList4;
92 mNotificationGroup1 = new NotificationGroup(); in setupBaseActivityAndLayout()
93 mNotificationGroup2 = new NotificationGroup(); in setupBaseActivityAndLayout()
[all …]
DCarNotificationViewTest.java83 private ArgumentCaptor<List<NotificationGroup>> mDismissedNotificationsCaptor;
101 NotificationGroup dismissible = in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
103 NotificationGroup notDismissible = in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
105 List<NotificationGroup> notifications = new ArrayList<>(); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications()
153 NotificationGroup dismissible = in setNotifications_notEmpty_listViewIsVisible()
155 NotificationGroup notDismissible = in setNotifications_notEmpty_listViewIsVisible()
157 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_listViewIsVisible()
169 NotificationGroup dismissible = in setNotifications_notEmpty_emptyNotificationTextViewIsGone()
171 NotificationGroup notDismissible = in setNotifications_notEmpty_emptyNotificationTextViewIsGone()
173 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_emptyNotificationTextViewIsGone()
[all …]
DNotificationDataManagerTest.java144 List<NotificationGroup> notificationGroups = new ArrayList<>(); in updateUnseenNotification_addNewUnseenNotification_updatesUnseenCount()
146 NotificationGroup notificationGroup = new NotificationGroup(); in updateUnseenNotification_addNewUnseenNotification_updatesUnseenCount()
157 List<NotificationGroup> notificationGroups = new ArrayList<>(); in setNotificationsAsSeen_notificationIsSeen()
159 NotificationGroup notificationGroup = new NotificationGroup(); in setNotificationsAsSeen_notificationIsSeen()
173 List<NotificationGroup> notificationGroups = new ArrayList<>(); in setNotificationsAsSeen_notificationIsSeen_decrementsUnseenCount()
175 NotificationGroup notificationGroup = new NotificationGroup(); in setNotificationsAsSeen_notificationIsSeen_decrementsUnseenCount()
188 List<NotificationGroup> notificationGroups = new ArrayList<>(); in setNotificationsAsSeen_notificationIsSeen_notificationIsVisibleToUser()
190 NotificationGroup notificationGroup = new NotificationGroup(); in setNotificationsAsSeen_notificationIsSeen_notificationIsVisibleToUser()
204 List<NotificationGroup> notificationGroups = new ArrayList<>(); in clearAll_clearsAllUnseenData()
206 NotificationGroup notificationGroup = new NotificationGroup(); in clearAll_clearsAllUnseenData()
DPreprocessingManagerTest.java360 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onGroup_groupsNotificationsByGroupKey()
378 List<NotificationGroup> groupResult = mPreprocessingManager.group(list); in onGroup_autoGeneratedGroupWithNoGroupChildren_doesNotShowGroupSummary()
479 List<NotificationGroup> groupResult = mPreprocessingManager.group(list); in onGroup_removesNotificationGroupWithOnlySummaryNotification()
494 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onGroup_childNotificationHasTimeStamp_groupHasMostRecentTimeStamp()
508 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onRank_ranksNotificationGroups()
509 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationGroups()
528 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onRank_ranksNotificationsInEachGroup()
529 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationsInEachGroup()
530 NotificationGroup groupB = rankResult.get(1); in onRank_ranksNotificationsInEachGroup()
563 List<NotificationGroup> expected = mPreprocessingManager.group(copy); in onAdditionalGroupAndRank_returnsTheSameGroupsAsStandardGroup()
[all …]
DNotificationClickHandlerFactoryTest.java430 List<NotificationGroup> notificationsToClear = new ArrayList<>(); in onClearNotifications_groupNotificationWithSummary_clearsSummary()
431 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsSummary()
460 List<NotificationGroup> notificationsToClear = new ArrayList<>(); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren()
461 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren()
490 List<NotificationGroup> notificationsToClear = new ArrayList<>(); in onClearNotifications_groupNotificationWithoutSummary_clearsAllChildren()
491 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithoutSummary_clearsAllChildren()
DNotificationGroupTest.java61 private NotificationGroup mNotificationGroup;
69 mNotificationGroup = new NotificationGroup(); in setup()
/packages/apps/Car/Notification/src/com/android/car/notification/
DPreprocessingManager.java70 private List<NotificationGroup> mOldProcessedNotifications;
126 public List<NotificationGroup> process( in process()
146 public List<NotificationGroup> updateNotifications( in updateNotifications()
317 List<NotificationGroup> group(List<AlertEntry> list) { in group()
318 SortedMap<String, NotificationGroup> groupedNotifications = new TreeMap<>(); in group()
334 NotificationGroup notificationGroup = new NotificationGroup(); in group()
348 List<NotificationGroup> groupList = new ArrayList<>(groupedNotifications.values()); in group()
361 List<NotificationGroup> validGroupList = new ArrayList<>(); in group()
367 NotificationGroup newGroup = new NotificationGroup(); in group()
416 protected List<NotificationGroup> additionalGroupAndRank(AlertEntry newNotification, in additionalGroupAndRank()
[all …]
DCarNotificationDiff.java45 private final List<NotificationGroup> mOldList;
46 private final List<NotificationGroup> mNewList;
49 CarNotificationDiff(Context context, @NonNull List<NotificationGroup> oldList, in CarNotificationDiff()
50 @NonNull List<NotificationGroup> newList) { in CarNotificationDiff()
54 CarNotificationDiff(Context context, @NonNull List<NotificationGroup> oldList, in CarNotificationDiff()
55 @NonNull List<NotificationGroup> newList, int maxItems) { in CarNotificationDiff()
74 NotificationGroup oldItem = mOldList.get(oldItemPosition); in areItemsTheSame()
75 NotificationGroup newItem = mNewList.get(newItemPosition); in areItemsTheSame()
91 static boolean sameGroupUniqueIdentifiers(NotificationGroup oldItem, in sameGroupUniqueIdentifiers()
92 NotificationGroup newItem) { in sameGroupUniqueIdentifiers()
[all …]
DCarNotificationViewAdapter.java62 private List<NotificationGroup> mNotifications = new ArrayList<>();
138 NotificationGroup notificationGroup = mNotifications.get(position); in onBindViewHolderImpl()
175 NotificationGroup notificationGroup = mNotifications.get(position); in getItemViewTypeImpl()
297 NotificationGroup notificationGroup = mNotifications.get(position); in getItemId()
358 public void setNotifications(List<NotificationGroup> notifications, in setNotifications()
365 List<NotificationGroup> notificationGroupList = new ArrayList<>(notifications); in setNotifications()
407 private NotificationGroup createNotificationHeader() { in createNotificationHeader()
408 NotificationGroup notificationGroupWithHeader = new NotificationGroup(); in createNotificationHeader()
414 private NotificationGroup createNotificationFooter() { in createNotificationFooter()
415 NotificationGroup notificationGroupWithFooter = new NotificationGroup(); in createNotificationFooter()
DCarNotificationView.java56 private List<NotificationGroup> mNotifications;
146 public void setNotifications(List<NotificationGroup> notifications) { in setNotifications()
232 List<NotificationGroup> dismissibleNotifications = getAllDismissibleNotifications(); in startClearAllNotifications()
254 private List<NotificationGroup> getAllDismissibleNotifications() { in getAllDismissibleNotifications()
255 List<NotificationGroup> notifications = new ArrayList<>(); in getAllDismissibleNotifications()
270 private List<View> getNotificationViews(List<NotificationGroup> notifications) { in getNotificationViews()
297 List<NotificationGroup> groupNotificationsBeingCleared) { in registerChildNotificationsBeingCleared()
346 private void finishClearAllNotifications(List<NotificationGroup> dismissibleNotifications) { in finishClearAllNotifications()
DNotificationGroup.java35 public class NotificationGroup { class
47 public NotificationGroup() { in NotificationGroup() method in NotificationGroup
50 public NotificationGroup(AlertEntry alertEntry) { in NotificationGroup() method in NotificationGroup
DNotificationViewController.java104 List<NotificationGroup> notificationGroups = mPreprocessingManager.process( in resetNotifications()
109 List<NotificationGroup> unseenNotifications = notificationGroups.stream() in resetNotifications()
DNotificationDataManager.java111 void updateUnseenNotification(List<NotificationGroup> notificationGroups) { in updateUnseenNotification()
117 for (NotificationGroup group : notificationGroups) { in updateUnseenNotification()
DCarNotificationItemTouchListener.java118 NotificationGroup notificationGroup = in CarNotificationItemTouchListener()
DNotificationClickHandlerFactory.java308 public void clearNotifications(List<NotificationGroup> notificationsToClear) {
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DGroupNotificationViewHolder.java38 import com.android.car.notification.NotificationGroup;
63 private NotificationGroup mNotificationGroup;
113 public NotificationGroup getNotificationGroup() { in getNotificationGroup()
124 NotificationGroup group, CarNotificationViewAdapter parentAdapter, boolean isExpanded) { in bind()
141 List<NotificationGroup> list = new ArrayList<>(); in bind()
148 NotificationGroup notificationGroup = new NotificationGroup(); in bind()
157 NotificationGroup newGroup = new NotificationGroup(); in bind()
205 CarNotificationViewAdapter parentAdapter, NotificationGroup group, boolean isExpanded) { in updateOnClickListener()
DGroupSummaryNotificationViewHolder.java26 import com.android.car.notification.NotificationGroup;
69 public void bind(NotificationGroup notificationGroup) { in bind()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationListener.java77 private final Map<String, NotificationGroup> mNotificationGroupMap = new HashMap<>();
129 NotificationGroup notificationGroup = mNotificationGroupMap.get(sbn.getGroupKey()); in handleWorkerMessage()
276 NotificationGroup oldGroup = mNotificationGroupMap.get(oldGroupKey); in updateGroupKeyIfNecessary()
285 NotificationGroup notificationGroup = mNotificationGroupMap.get(newGroupKey); in updateGroupKeyIfNecessary()
287 notificationGroup = new NotificationGroup(); in updateGroupKeyIfNecessary()
DNotificationGroup.java25 public class NotificationGroup { class
29 public NotificationGroup() { in NotificationGroup() method in NotificationGroup