Home
last modified time | relevance | path

Searched refs:newNotification (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationDiff.java177 AlertEntry newNotification = newChildNotifications.get(i); in areContentsTheSame() local
178 if (!sameNotificationContent(oldNotification, newNotification)) { in areContentsTheSame()
213 Notification newNotification = newItem.getNotification(); in sameNotificationContent() local
215 if (oldNotification.flags != newNotification.flags in sameNotificationContent()
216 || oldNotification.category != newNotification.category in sameNotificationContent()
217 || oldNotification.color != newNotification.color in sameNotificationContent()
218 || !areBundlesEqual(oldNotification.extras, newNotification.extras) in sameNotificationContent()
219 || !Objects.equals(oldNotification.contentIntent, newNotification.contentIntent) in sameNotificationContent()
220 || !Objects.equals(oldNotification.deleteIntent, newNotification.deleteIntent) in sameNotificationContent()
222 oldNotification.fullScreenIntent, newNotification.fullScreenIntent) in sameNotificationContent()
[all …]
DPreprocessingManager.java571 protected List<NotificationGroup> additionalGroupAndRank(AlertEntry newNotification, in additionalGroupAndRank() argument
573 Notification notification = newNotification.getNotification(); in additionalGroupAndRank()
580 mNotificationDataManager.setNotificationAsSeen(newNotification); in additionalGroupAndRank()
585 if (hasSameGroupKey(oldGroup.getSingleNotification(), newNotification)) { in additionalGroupAndRank()
586 oldGroup.setGroupSummaryNotification(newNotification); in additionalGroupAndRank()
591 newGroup.setGroupSummaryNotification(newNotification); in additionalGroupAndRank()
611 newNotification.getStatusBarNotification().getGroupKey())) { in additionalGroupAndRank()
617 boolean isRemoved = oldGroup.removeNotification(newNotification); in additionalGroupAndRank()
638 group.addNotification(newNotification); in additionalGroupAndRank()
648 oldGroup.removeNotification(newNotification); in additionalGroupAndRank()
[all …]
DCarHeadsUpNotificationManager.java365 private boolean alertAgain(Notification newNotification) { in alertAgain() argument
366 return (newNotification.flags & Notification.FLAG_ONLY_ALERT_ONCE) == 0; in alertAgain()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationDiffTest.java308 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameSize_shouldReturnTrue() local
319 ID, TAG, UID, INITIAL_PID, newNotification.build(), USER_HANDLE, in areBundleEqual_sameSize_shouldReturnTrue()
354 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_diffSize_shouldReturnFalse() local
363 UID, INITIAL_PID, newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, in areBundleEqual_diffSize_shouldReturnFalse()
397 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue() local
407 newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, POST_TIME)); in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue()
440 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameKeySetWithDiffValue_shouldReturnFalse() local
450 newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, POST_TIME)); in areBundleEqual_sameKeySetWithDiffValue_shouldReturnFalse()
483 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_diffKeySet_shouldReturnFalse() local
493 newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, POST_TIME)); in areBundleEqual_diffKeySet_shouldReturnFalse()
DPreprocessingManagerTest.java761 Notification newNotification = generateNotification(/* isForeground= */ false, in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking() local
764 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_isGroupSummary_maintainsPreviousRanking()
801 Notification newNotification = generateNotification(/* isForeground= */ false, in onAdditionalGroupAndRank_isGroupSummary_prependsHighRankNotification() local
804 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_isGroupSummary_prependsHighRankNotification()
823 Notification newNotification = generateNotification(/* isForeground= */ true, in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated() local
826 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_notGroupSummary_isUpdate_notificationUpdated()
867 Notification newNotification = generateNotification(/* isForeground= */ true, in onAdditionalGroupAndRank_updateToNotificationInSeenGroup_newUnseenGroupCreated() local
870 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_updateToNotificationInSeenGroup_newUnseenGroupCreated()
913 Notification newNotification = generateNotification(/* isForeground= */ true, in onAdditionalGroupAndRank_updateToNotificationInSeenGroup_oldGroupNotDeleted() local
916 when(newSbn.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_updateToNotificationInSeenGroup_oldGroupNotDeleted()
[all …]