/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationViewAdapterTest.java | 97 private NotificationGroup mNotificationGroup1; 98 private NotificationGroup mNotificationGroup2; 99 private List<NotificationGroup> mNotificationGroupList1; 132 mNotificationGroup1 = new NotificationGroup(); in setupBaseActivityAndLayout() 134 mNotificationGroup2 = new NotificationGroup(); in setupBaseActivityAndLayout() 333 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_group_shouldNotThrowError() 349 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_message_shouldNotThrowError() 364 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageWithRestriction_shouldNotThrowError() 383 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageInGroup_shouldNotThrowError() 398 NotificationGroup notificationGroup = new NotificationGroup(); in onBindViewHolder_messageInGroupWithRestriction_shouldNotThrowError() [all …]
|
D | CarNotificationDiffTest.java | 69 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 …]
|
D | NotificationDataManagerTest.java | 150 List<NotificationGroup> notificationGroups = new ArrayList<>(); in updateUnseenNotificationGroups_addHighImportanceNotification_updatesUnseenCount() 152 NotificationGroup notificationGroup = new NotificationGroup(); in updateUnseenNotificationGroups_addHighImportanceNotification_updatesUnseenCount() 167 List<NotificationGroup> notificationGroups = new ArrayList<>(); in updateUnseenNotificationGroups_addLowImportanceNotification_unseenCountZero() 169 NotificationGroup notificationGroup = new NotificationGroup(); in updateUnseenNotificationGroups_addLowImportanceNotification_unseenCountZero() 184 List<NotificationGroup> notificationGroups = new ArrayList<>(); in setVisibleNotificationsAsSeen_notificationIsSeen() 186 NotificationGroup notificationGroup = new NotificationGroup(); in setVisibleNotificationsAsSeen_notificationIsSeen() 200 List<NotificationGroup> notificationGroups = new ArrayList<>(); in isNotificationSeen_notificationIsSeen_returnTrue() 202 NotificationGroup notificationGroup = new NotificationGroup(); in isNotificationSeen_notificationIsSeen_returnTrue() 215 List<NotificationGroup> notificationGroups = new ArrayList<>(); in isNotificationSeen_notificationIsNotSeen_returnFalse() 217 NotificationGroup notificationGroup1 = new NotificationGroup(); in isNotificationSeen_notificationIsNotSeen_returnFalse() [all …]
|
D | CarNotificationViewTest.java | 89 private ArgumentCaptor<List<NotificationGroup>> mDismissedNotificationsCaptor; 108 NotificationGroup dismissible = getNotificationGroup(/* isDismissible= */ true); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications() 109 NotificationGroup notDismissible = getNotificationGroup(/* isDismissible= */ false); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications() 110 List<NotificationGroup> notifications = new ArrayList<>(); in onClickClearAllButton_callsFactoryClearNotificationsWithDismissibleNotifications() 161 NotificationGroup dismissible = getNotificationGroup(/* isDismissible= */ true); in setNotifications_notEmpty_listViewIsVisible() 162 NotificationGroup notDismissible = getNotificationGroup(/* isDismissible= */ false); in setNotifications_notEmpty_listViewIsVisible() 163 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_listViewIsVisible() 175 NotificationGroup dismissible = getNotificationGroup(/* isDismissible= */ true); in setNotifications_notEmpty_emptyNotificationTextViewIsGone() 176 NotificationGroup notDismissible = getNotificationGroup(/* isDismissible= */ false); in setNotifications_notEmpty_emptyNotificationTextViewIsGone() 177 List<NotificationGroup> notifications = new ArrayList<>(); in setNotifications_notEmpty_emptyNotificationTextViewIsGone() [all …]
|
D | PreprocessingManagerTest.java | 420 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onGroup_groupsNotificationsByGroupKey() 439 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onGroup_highGroupingThreshold_noGroups() 503 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onGroup_groupsNotificationsBySeenUnseen() 507 NotificationGroup group = groupResult.get(j); in onGroup_groupsNotificationsBySeenUnseen() 532 List<NotificationGroup> groupResult = mPreprocessingManager.group(list); in onGroup_autoGeneratedGroupWithNoGroupChildren_doesNotShowGroupSummary() 633 List<NotificationGroup> groupResult = mPreprocessingManager.group(list); in onGroup_removesNotificationGroupWithOnlySummaryNotification() 643 List<NotificationGroup> groupResult = mPreprocessingManager.group(list); in onGroup_splitsNotificationsBySeenAndUnseen() 658 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onGroup_childNotificationHasTimeStamp_groupHasMostRecentTimeStamp() 675 List<NotificationGroup> groupResult = mPreprocessingManager.group(mAlertEntries); in onRank_ranksNotificationGroups() 676 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationGroups() [all …]
|
D | NotificationClickHandlerFactoryTest.java | 519 List<NotificationGroup> notificationsToClear = new ArrayList<>(); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 520 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsSummary() 549 List<NotificationGroup> notificationsToClear = new ArrayList<>(); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() 550 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithSummary_clearsAllChildren() 579 List<NotificationGroup> notificationsToClear = new ArrayList<>(); in onClearNotifications_groupNotificationWithoutSummary_clearsAllChildren() 580 NotificationGroup notificationGroup = new NotificationGroup(); in onClearNotifications_groupNotificationWithoutSummary_clearsAllChildren()
|
D | NotificationGroupTest.java | 61 private NotificationGroup mNotificationGroup; 69 mNotificationGroup = new NotificationGroup(); in setup()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | PreprocessingManager.java | 79 private List<NotificationGroup> mOldProcessedNotifications; 152 public List<NotificationGroup> process(boolean showLessImportantNotifications, in process() 169 public List<NotificationGroup> updateNotifications( in updateNotifications() 372 List<NotificationGroup> group(List<AlertEntry> list) { in group() 373 SortedMap<String, NotificationGroup> groupedNotifications = new TreeMap<>(); in group() 394 NotificationGroup notificationGroup = new NotificationGroup(); in group() 412 List<NotificationGroup> groupList = new ArrayList<>(groupedNotifications.values()); in group() 434 List<NotificationGroup> tempGroupList = new ArrayList<>(); in group() 445 NotificationGroup seenNotificationGroup = new NotificationGroup(); in group() 448 NotificationGroup unseenNotificationGroup = new NotificationGroup(); in group() [all …]
|
D | CarNotificationViewAdapter.java | 74 private List<NotificationGroup> mNotifications = new ArrayList<>(); 164 NotificationGroup notificationGroup = mNotifications.get(position); in onBindViewHolderImpl() 209 NotificationGroup notificationGroup = mNotifications.get(position); in getItemViewTypeImpl() 351 NotificationGroup notificationGroup = mNotifications.get(position); in getItemId() 438 public void setNotifications(List<NotificationGroup> notifications, in setNotifications() 449 List<NotificationGroup> seenNotifications = new ArrayList<>(); in setNotifications() 450 List<NotificationGroup> unseenNotifications = new ArrayList<>(); in setNotifications() 453 seenNotifications.add(new NotificationGroup(notificationGroup)); in setNotifications() 455 unseenNotifications.add(new NotificationGroup(notificationGroup)); in setNotifications() 463 List<NotificationGroup> notificationGroupList = notifications.stream() in setNotifications() [all …]
|
D | CarNotificationDiff.java | 45 private final List<NotificationGroup> mOldList; 46 private final List<NotificationGroup> mNewList; 50 CarNotificationDiff(Context context, @NonNull List<NotificationGroup> oldList, in CarNotificationDiff() 51 @NonNull List<NotificationGroup> newList) { in CarNotificationDiff() 55 CarNotificationDiff(Context context, @NonNull List<NotificationGroup> oldList, in CarNotificationDiff() 56 @NonNull List<NotificationGroup> newList, int maxItems) { in CarNotificationDiff() 79 NotificationGroup oldItem = mOldList.get(oldItemPosition); in areItemsTheSame() 80 NotificationGroup newItem = mNewList.get(newItemPosition); in areItemsTheSame() 99 static boolean sameGroupUniqueIdentifiers(NotificationGroup oldItem, in sameGroupUniqueIdentifiers() 100 NotificationGroup newItem, boolean showRecentsAndOlderHeaders) { in sameGroupUniqueIdentifiers() [all …]
|
D | CarNotificationView.java | 61 private List<NotificationGroup> mNotifications; 186 List<NotificationGroup> getNotifications() { in getNotifications() 198 public void setNotifications(List<NotificationGroup> notifications) { in setNotifications() 213 NotificationGroup notificationGroup = new NotificationGroup(mNotifications.get(i)); in removeNotification() 312 List<NotificationGroup> dismissibleNotifications = getAllDismissibleNotifications(); in startClearAllNotifications() 333 private List<NotificationGroup> getAllDismissibleNotifications() { in getAllDismissibleNotifications() 334 List<NotificationGroup> notifications = new ArrayList<>(); in getAllDismissibleNotifications() 349 private List<View> getNotificationViews(List<NotificationGroup> notifications) { in getNotificationViews() 410 private void finishClearAllNotifications(List<NotificationGroup> dismissibleNotifications) { in finishClearAllNotifications()
|
D | NotificationGroup.java | 38 public class NotificationGroup { class 55 public NotificationGroup() { in NotificationGroup() method in NotificationGroup 58 public NotificationGroup(AlertEntry alertEntry) { in NotificationGroup() method in NotificationGroup 62 public NotificationGroup(NotificationGroup group) { in NotificationGroup() method in NotificationGroup
|
D | NotificationViewController.java | 111 List<NotificationGroup> notificationGroups = mPreprocessingManager.process( in resetNotifications() 140 List<NotificationGroup> notificationGroups = mPreprocessingManager.updateNotifications( in updateNotifications()
|
D | CarNotificationItemTouchListener.java | 127 NotificationGroup notificationGroup = in CarNotificationItemTouchListener() 295 NotificationGroup group = groupNotificationViewHolder.getNotificationGroup(); in isInteractingWithExpandedGroupNotificationList()
|
D | NotificationDataManager.java | 131 void updateUnseenNotificationGroups(List<NotificationGroup> notificationGroups) { in updateUnseenNotificationGroups()
|
D | NotificationClickHandlerFactory.java | 344 public void clearNotifications(List<NotificationGroup> notificationsToClear) {
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | GroupNotificationViewHolder.java | 46 import com.android.car.notification.NotificationGroup; 83 private NotificationGroup mNotificationGroup; 86 private List<NotificationGroup> mNotificationGroupsShown; 185 public NotificationGroup getNotificationGroup() { in getNotificationGroup() 195 public void bind(NotificationGroup group, CarNotificationViewAdapter parentAdapter, in bind() 272 NotificationGroup newGroup = new NotificationGroup(); in collapseGroup() 391 private int addNextPageOfNotificationsToList(List<NotificationGroup> groups) { in addNextPageOfNotificationsToList() 396 NotificationGroup notificationGroup = new NotificationGroup(); in addNextPageOfNotificationsToList()
|
D | GroupSummaryNotificationViewHolder.java | 25 import com.android.car.notification.NotificationGroup; 65 public void bind(NotificationGroup notificationGroup) { in bind()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/ |
D | GroupNotificationViewHolderTest.java | 41 import com.android.car.notification.NotificationGroup; 156 NotificationGroup group = getNotificationGroup(/* size= */ 22); in bind_22notifications_expanded5ThenCollapse_setExpandedFalse() 173 NotificationGroup group = getNotificationGroup(/* size= */ 22); in resetNotifications_removeAllGroupedNotifications() 187 private NotificationGroup getNotificationGroup(int size) { in getNotificationGroup() 196 NotificationGroup group = new NotificationGroup(); in getNotificationGroup()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationListener.java | 78 private final Map<String, NotificationGroup> mNotificationGroupMap = new HashMap<>(); 132 NotificationGroup notificationGroup = mNotificationGroupMap.get(sbn.getGroupKey()); in handleWorkerMessage() 267 NotificationGroup oldGroup = mNotificationGroupMap.get(oldGroupKey); in updateGroupKeyIfNecessary() 276 NotificationGroup notificationGroup = mNotificationGroupMap.get(newGroupKey); in updateGroupKeyIfNecessary() 278 notificationGroup = new NotificationGroup(); in updateGroupKeyIfNecessary()
|
D | NotificationGroup.java | 25 public class NotificationGroup { class 29 public NotificationGroup() { in NotificationGroup() method in NotificationGroup
|