Searched refs:newNotification (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationDiff.java | 163 AlertEntry newNotification = newChildNotifications.get(i); in areContentsTheSame() local 164 if (!sameNotificationContent(oldNotification, newNotification)) { in areContentsTheSame() 199 Notification newNotification = newItem.getNotification(); in sameNotificationContent() local 201 if (oldNotification.flags != newNotification.flags in sameNotificationContent() 202 || oldNotification.category != newNotification.category in sameNotificationContent() 203 || oldNotification.color != newNotification.color in sameNotificationContent() 204 || !areBundlesEqual(oldNotification.extras, newNotification.extras) in sameNotificationContent() 205 || !Objects.equals(oldNotification.contentIntent, newNotification.contentIntent) in sameNotificationContent() 206 || !Objects.equals(oldNotification.deleteIntent, newNotification.deleteIntent) in sameNotificationContent() 208 oldNotification.fullScreenIntent, newNotification.fullScreenIntent) in sameNotificationContent() [all …]
|
D | PreprocessingManager.java | 416 protected List<NotificationGroup> additionalGroupAndRank(AlertEntry newNotification, in additionalGroupAndRank() argument 418 Notification notification = newNotification.getNotification(); in additionalGroupAndRank() 423 if (hasSameGroupKey(mOldNotifications.get(key), newNotification)) { in additionalGroupAndRank() 429 newGroup.setGroupSummaryNotification(newNotification); in additionalGroupAndRank() 437 newNotification.getStatusBarNotification().getGroupKey())) { in additionalGroupAndRank() 440 mOldProcessedNotifications.add(i, new NotificationGroup(newNotification)); in additionalGroupAndRank() 444 mOldProcessedNotifications.add(new NotificationGroup(newNotification)); in additionalGroupAndRank() 449 insertRankedNotification(new NotificationGroup(newNotification), newRankingMap); in additionalGroupAndRank()
|
D | CarHeadsUpNotificationManager.java | 225 private boolean alertAgain(Notification newNotification) { in alertAgain() argument 226 return (newNotification.flags & Notification.FLAG_ONLY_ALERT_ONCE) == 0; in alertAgain()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationDiffTest.java | 298 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameSize_shouldReturnTrue() local 309 ID, TAG, UID, INITIAL_PID, newNotification.build(), USER_HANDLE, in areBundleEqual_sameSize_shouldReturnTrue() 344 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_diffSize_shouldReturnFalse() local 353 UID, INITIAL_PID, newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, in areBundleEqual_diffSize_shouldReturnFalse() 387 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue() local 397 newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, POST_TIME)); in areBundleEqual_sameKeySetWithSameValue_shouldReturnTrue() 430 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_sameKeySetWithDiffValue_shouldReturnFalse() local 440 newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, POST_TIME)); in areBundleEqual_sameKeySetWithDiffValue_shouldReturnFalse() 473 Notification.Builder newNotification = new Notification.Builder(mContext, in areBundleEqual_diffKeySet_shouldReturnFalse() local 483 newNotification.build(), USER_HANDLE, OVERRIDE_GROUP_KEY, POST_TIME)); in areBundleEqual_diffKeySet_shouldReturnFalse()
|
D | PreprocessingManagerTest.java | 589 Notification newNotification = generateNotification(false, false); in onAdditionalGroupAndRank_maintainsPreviousRanking() local 591 when(newSBN.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_maintainsPreviousRanking() 628 Notification newNotification = generateNotification(false, false); in onAdditionalGroupAndRank_prependsHighRankNotification() local 630 when(newSBN.getNotification()).thenReturn(newNotification); in onAdditionalGroupAndRank_prependsHighRankNotification() 661 Notification newNotification = new Notification.Builder(mContext, CHANNEL_ID) in onUpdateNotification_notificationPosted_isUpdate_putsNotification() local 666 newNotification.category = Notification.CATEGORY_NAVIGATION; in onUpdateNotification_notificationPosted_isUpdate_putsNotification() 668 .thenReturn(newNotification); in onUpdateNotification_notificationPosted_isUpdate_putsNotification()
|
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/ |
D | BaseNotificationDelegate.java | 190 boolean newNotification = !mNotificationBuilders.containsKey(conversationKey); in postNotification() 192 NotificationCompat.Builder builder = newNotification ? new NotificationCompat.Builder( in postNotification() 248 if (newNotification) { in postNotification()
|