/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | NotificationDataManagerTest.java | 64 private NotificationDataManager mNotificationDataManager; field in NotificationDataManagerTest 90 mNotificationDataManager = NotificationDataManager.getInstance(); in setup() 100 mNotificationDataManager.addNewMessageNotification(mNonMessageNotification); in addNewMessageNotification_newNonMessageNotification_doesNothing() 102 assertThat(mNotificationDataManager.isMessageNotificationMuted(mNonMessageNotification)) in addNewMessageNotification_newNonMessageNotification_doesNothing() 108 mNotificationDataManager.addNewMessageNotification(mMessageNotification); in addNewMessageNotification_notificationExists_muteStateNotUpdated() 109 mNotificationDataManager.toggleMute(mMessageNotification); in addNewMessageNotification_notificationExists_muteStateNotUpdated() 111 mNotificationDataManager.addNewMessageNotification(mMessageNotification); in addNewMessageNotification_notificationExists_muteStateNotUpdated() 112 assertThat(mNotificationDataManager.isMessageNotificationMuted(mMessageNotification)) in addNewMessageNotification_notificationExists_muteStateNotUpdated() 118 mNotificationDataManager.addNewMessageNotification(mNonMessageNotification); in toggleMute_nonMessagingNotification_doesNothing() 119 mNotificationDataManager.toggleMute(mNonMessageNotification); in toggleMute_nonMessagingNotification_doesNothing() [all …]
|
D | CarNotificationListenerTest.java | 70 private NotificationDataManager mNotificationDataManager; field in CarNotificationListenerTest 96 mCarNotificationListener.setNotificationDataManager(mNotificationDataManager); in setup() 120 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent() 132 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent() 144 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() 167 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager() 201 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager() 226 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification() 227 verify(mNotificationDataManager).untrackUnseenNotification(any(AlertEntry.class)); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification() 238 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_isForAllUsers_addsAlertEntryToDataManager() [all …]
|
D | PreprocessingManagerTest.java | 144 private NotificationDataManager mNotificationDataManager; field in PreprocessingManagerTest 459 when(mNotificationDataManager.isNotificationSeen(mLessImportantForeground)) in onGroup_groupsNotificationsBySeenUnseen() 461 when(mNotificationDataManager.isNotificationSeen(mLessImportantBackground)) in onGroup_groupsNotificationsBySeenUnseen() 463 when(mNotificationDataManager.isNotificationSeen(mMedia)).thenReturn(true); in onGroup_groupsNotificationsBySeenUnseen() 464 when(mNotificationDataManager.isNotificationSeen(mImportantBackground)).thenReturn(true); in onGroup_groupsNotificationsBySeenUnseen() 465 when(mNotificationDataManager.isNotificationSeen(mImportantForeground)).thenReturn(true); in onGroup_groupsNotificationsBySeenUnseen() 466 when(mNotificationDataManager.isNotificationSeen(mImportantForeground2)).thenReturn(true); in onGroup_groupsNotificationsBySeenUnseen() 467 when(mNotificationDataManager.isNotificationSeen(mImportantForeground3)).thenReturn(true); in onGroup_groupsNotificationsBySeenUnseen() 468 when(mNotificationDataManager.isNotificationSeen(mImportantForeground4)).thenReturn(false); in onGroup_groupsNotificationsBySeenUnseen() 469 when(mNotificationDataManager.isNotificationSeen(mImportantForeground5)).thenReturn(false); in onGroup_groupsNotificationsBySeenUnseen() [all …]
|
D | CarNotificationVisibilityLoggerTest.java | 77 private NotificationDataManager mNotificationDataManager; field in CarNotificationVisibilityLoggerTest 92 when(mNotificationDataManager.getVisibleNotifications()).thenReturn( in setUp() 96 mBarService, mNotificationDataManager); in setUp()
|
D | CarHeadsUpNotificationManagerTest.java | 104 NotificationDataManager mNotificationDataManager; field in CarHeadsUpNotificationManagerTest 352 when(mNotificationDataManager.isMessageNotificationMuted(any())).thenReturn(false); in maybeShowHeadsUp_nonMutedNotification_returnsTrueAndAddedToQueue() 365 when(mNotificationDataManager.isMessageNotificationMuted(any())).thenReturn(true); in maybeShowHeadsUp_mutedNotification_returnsFalseAndNotAddedToQueue() 502 mManager.setNotificationDataManager(mNotificationDataManager); in createCarHeadsUpNotificationManager()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationCenterActivity.java | 43 private NotificationDataManager mNotificationDataManager; field in CarNotificationCenterActivity 57 mNotificationDataManager.setOnUnseenCountUpdateListener(() -> { 73 mNotificationDataManager.setOnUnseenCountUpdateListener(null); 88 mNotificationDataManager = NotificationDataManager.getInstance(); in onCreate() 92 mNotificationDataManager); in onCreate() 130 mNotificationDataManager.getVisibleNotifications().size()); in notifyVisibilityChanged()
|
D | CarNotificationListener.java | 62 private NotificationDataManager mNotificationDataManager; field in CarNotificationListener 88 mNotificationDataManager = NotificationDataManager.getInstance(); in registerAsSystemService() 103 mNotificationDataManager = notificationDataManager; in setNotificationDataManager() 109 mNotificationDataManager = NotificationDataManager.getInstance(); in onCreate() 273 mNotificationDataManager.clearAll(); in clearCache() 290 mNotificationDataManager.addNewMessageNotification(alertEntry); in notifyNotificationPosted() 292 mNotificationDataManager.untrackUnseenNotification(alertEntry); in notifyNotificationPosted()
|
D | CarNotificationVisibilityLogger.java | 40 private final NotificationDataManager mNotificationDataManager; field in CarNotificationVisibilityLogger 46 mNotificationDataManager = notificationDataManager; in CarNotificationVisibilityLogger() 73 List<AlertEntry> entries = mNotificationDataManager.getVisibleNotifications(); in notifyVisibilityChanged()
|
D | NotificationViewController.java | 25 private final NotificationDataManager mNotificationDataManager; field in NotificationViewController 39 mNotificationDataManager = NotificationDataManager.getInstance(); in NotificationViewController() 121 mNotificationDataManager.updateUnseenNotificationGroups(notificationGroups); in resetNotifications()
|
D | PreprocessingManager.java | 81 private NotificationDataManager mNotificationDataManager; field in PreprocessingManager 104 mNotificationDataManager = NotificationDataManager.getInstance(); in PreprocessingManager() 130 mNotificationDataManager = notificationDataManager; in setNotificationDataManager() 428 mNotificationDataManager.updateUnseenNotificationGroups(groupList); in group() 438 boolean isNotificationSeen = mNotificationDataManager in group() 453 if (mNotificationDataManager.isNotificationSeen(alertEntry)) { in group() 580 mNotificationDataManager.setNotificationAsSeen(newNotification); in additionalGroupAndRank() 682 mNotificationDataManager.setNotificationAsSeen(groupSummaryNotification); in additionalGroupAndRank()
|
D | NotificationClickHandlerFactory.java | 80 private NotificationDataManager mNotificationDataManager; field in NotificationClickHandlerFactory 88 mNotificationDataManager = NotificationDataManager.getInstance(); in NotificationClickHandlerFactory() 275 } else if (mNotificationDataManager != null) { 276 mNotificationDataManager.toggleMute(messageNotification); 278 mNotificationDataManager.isMessageNotificationMuted(messageNotification));
|
D | CarNotificationViewAdapter.java | 80 private NotificationDataManager mNotificationDataManager; field in CarNotificationViewAdapter 105 mNotificationDataManager = NotificationDataManager.getInstance(); in CarNotificationViewAdapter() 673 if (mNotificationDataManager == null || mIsGroupNotificationAdapter) { in setVisibleNotificationsAsSeen() 691 mNotificationDataManager.setVisibleNotificationsAsSeen(notifications); in setVisibleNotificationsAsSeen()
|
D | CarHeadsUpNotificationManager.java | 141 private NotificationDataManager mNotificationDataManager; field in CarHeadsUpNotificationManager 152 mNotificationDataManager = NotificationDataManager.getInstance(); in CarHeadsUpNotificationManager() 215 mNotificationDataManager = notificationDataManager; in setNotificationDataManager() 740 if (mNotificationDataManager.isMessageNotificationMuted(alertEntry)) { in shouldShowHeadsUp()
|
D | CarNotificationView.java | 59 private NotificationDataManager mNotificationDataManager; field in CarNotificationView 73 mNotificationDataManager = NotificationDataManager.getInstance(); in CarNotificationView()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/ |
D | NotificationPanelViewController.java | 82 private final NotificationDataManager mNotificationDataManager; field in NotificationPanelViewController 171 mNotificationDataManager = notificationDataManager; in NotificationPanelViewController() 346 mNotificationDataManager.setOnUnseenCountUpdateListener(() -> { in onNotificationViewInflated() 351 mNotificationDataManager.getNonLowImportanceUnseenNotificationCount( in onNotificationViewInflated() 358 mNotificationDataManager.getSeenNotifications()); in onNotificationViewInflated() 475 mNotificationDataManager.clearAll(); in onCarPowerStateOn() 536 mNotificationDataManager.getVisibleNotifications().size()); in onPanelVisible()
|
D | NotificationVisibilityLogger.java | 52 private final NotificationDataManager mNotificationDataManager; field in NotificationVisibilityLogger 62 mNotificationDataManager.getVisibleNotifications(); 97 mNotificationDataManager = notificationDataManager; in NotificationVisibilityLogger()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/notification/ |
D | NotificationVisibilityLoggerTest.java | 74 private NotificationDataManager mNotificationDataManager; field in NotificationVisibilityLoggerTest 91 when(mNotificationDataManager.getVisibleNotifications()).thenReturn( in setUp() 95 mUiBgExecutor, mBarService, mNotificationDataManager); in setUp()
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | CarNotificationActionsView.java | 97 private NotificationDataManager mNotificationDataManager; field in CarNotificationActionsView 127 mNotificationDataManager = NotificationDataManager.getInstance(); in CarNotificationActionsView() 161 mNotificationDataManager = notificationDataManager; in setNotificationDataManager() 322 setMuteStatus(button, mNotificationDataManager.isMessageNotificationMuted(alertEntry)); in createMuteButton()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/template/ |
D | CarNotificationActionsViewTest.java | 86 private NotificationDataManager mNotificationDataManager; field in CarNotificationActionsViewTest 473 mCarNotificationActionsView.setNotificationDataManager(mNotificationDataManager); in finishInflateWithIsCall() 491 when(mNotificationDataManager.isMessageNotificationMuted(any(AlertEntry.class))) in messageIsMuted()
|