/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | NotificationDataManagerTest.java | 58 private NotificationDataManager mNotificationDataManager; field in NotificationDataManagerTest 84 mNotificationDataManager = new NotificationDataManager(); in setup() 89 mNotificationDataManager = null; in tearDown() 94 mNotificationDataManager.addNewMessageNotification(mNonMessageNotification); in addNewMessageNotification_newNonMessageNotification_doesNothing() 96 assertThat(mNotificationDataManager.isMessageNotificationMuted(mNonMessageNotification)) in addNewMessageNotification_newNonMessageNotification_doesNothing() 102 mNotificationDataManager.addNewMessageNotification(mMessageNotification); in addNewMessageNotification_notificationExists_muteStateNotUpdated() 103 mNotificationDataManager.toggleMute(mMessageNotification); in addNewMessageNotification_notificationExists_muteStateNotUpdated() 105 mNotificationDataManager.addNewMessageNotification(mMessageNotification); in addNewMessageNotification_notificationExists_muteStateNotUpdated() 106 assertThat(mNotificationDataManager.isMessageNotificationMuted(mMessageNotification)) in addNewMessageNotification_notificationExists_muteStateNotUpdated() 112 mNotificationDataManager.addNewMessageNotification(mNonMessageNotification); in toggleMute_nonMessagingNotification_doesNothing() [all …]
|
D | CarNotificationListenerTest.java | 67 private NotificationDataManager mNotificationDataManager; field in CarNotificationListenerTest 79 mCarHeadsUpNotificationManager, mNotificationDataManager); in setup() 95 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent() 107 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent() 119 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() 142 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager() 166 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager() 191 verify(mNotificationDataManager, never()).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification() 192 verify(mNotificationDataManager).untrackUnseenNotification(any(AlertEntry.class)); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification() 203 verify(mNotificationDataManager).addNewMessageNotification(any(AlertEntry.class)); in onNotificationPosted_isNotHun_isForAllUsers_addsAlertEntryToDataManager() [all …]
|
D | CarHeadsUpNotificationManagerTest.java | 94 NotificationDataManager mNotificationDataManager; field in CarHeadsUpNotificationManagerTest 213 mNotificationDataManager, mCarHeadsUpNotificationContainer) { in setup() 419 when(mNotificationDataManager.isMessageNotificationMuted(any())).thenReturn(false); in maybeShowHeadsUp_nonMutedNotification_headsUpShown() 432 when(mNotificationDataManager.isMessageNotificationMuted(any())).thenReturn(true); in maybeShowHeadsUp_mutedNotification_headsUpNotShown()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationListener.java | 57 private NotificationDataManager mNotificationDataManager; field in CarNotificationListener 83 mNotificationDataManager = notificationDataManager; in registerAsSystemService() 99 mNotificationDataManager = new NotificationDataManager(); in onCreate() 102 app.getClickHandlerFactory().setNotificationDataManager(mNotificationDataManager); in onCreate() 104 …app.getClickHandlerFactory(), mNotificationDataManager, new CarHeadsUpNotificationAppContainer(thi… in onCreate() 214 mNotificationDataManager.addNewMessageNotification(alertEntry); in notifyNotificationPosted() 216 mNotificationDataManager.untrackUnseenNotification(alertEntry); in notifyNotificationPosted()
|
D | NotificationClickHandlerFactory.java | 77 private NotificationDataManager mNotificationDataManager; field in NotificationClickHandlerFactory 96 mNotificationDataManager = manager; in setNotificationDataManager() 105 return mNotificationDataManager; in getNotificationDataManager() 256 } else if (mNotificationDataManager != null) { 257 mNotificationDataManager.toggleMute(messageNotification); 260 (mNotificationDataManager.isMessageNotificationMuted(messageNotification))
|
D | NotificationViewController.java | 25 private NotificationDataManager mNotificationDataManager; field in NotificationViewController 39 mNotificationDataManager = notificationDataManager; in NotificationViewController() 114 mNotificationDataManager.updateUnseenNotification(unseenNotifications); in resetNotifications()
|
D | CarNotificationViewAdapter.java | 67 private NotificationDataManager mNotificationDataManager; field in CarNotificationViewAdapter 477 mNotificationDataManager = notificationDataManager; in setNotificationDataManager() 490 if (mNotificationDataManager != null) { in setNotificationsAsSeen() 495 mNotificationDataManager.setNotificationsAsSeen(notifications); in setNotificationsAsSeen()
|
D | CarHeadsUpNotificationManager.java | 96 private NotificationDataManager mNotificationDataManager; field in CarHeadsUpNotificationManager 107 mNotificationDataManager = notificationDataManager; in CarHeadsUpNotificationManager() 567 if (mNotificationDataManager.isMessageNotificationMuted(alertEntry)) { in shouldShowHeadsUp()
|
D | CarNotificationView.java | 54 private NotificationDataManager mNotificationDataManager; field in CarNotificationView 191 mNotificationDataManager = notificationDataManager; in setNotificationDataManager()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/ |
D | NotificationPanelViewController.java | 81 private final NotificationDataManager mNotificationDataManager; field in NotificationPanelViewController 143 mNotificationDataManager = notificationDataManager; in NotificationPanelViewController() 316 mNotificationDataManager.setOnUnseenCountUpdateListener(() -> { in onNotificationViewInflated() 319 mNotificationDataManager.getUnseenNotificationCount()); in onNotificationViewInflated() 322 mNotificationDataManager.getSeenNotifications()); in onNotificationViewInflated() 328 mNotificationClickHandlerFactory.setNotificationDataManager(mNotificationDataManager); in onNotificationViewInflated() 330 mNotificationView.setNotificationDataManager(mNotificationDataManager); in onNotificationViewInflated() 344 mNotificationDataManager); in onNotificationViewInflated() 457 mNotificationDataManager.clearAll(); in onCarPowerStateOn() 504 mNotificationDataManager.getVisibleNotifications().size()); in onPanelVisible()
|
D | NotificationVisibilityLogger.java | 51 private final NotificationDataManager mNotificationDataManager; field in NotificationVisibilityLogger 60 int count = mNotificationDataManager.getVisibleNotifications().size(); 61 for (AlertEntry alertEntry : mNotificationDataManager.getVisibleNotifications()) { 94 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/tests/unit/src/com/android/car/notification/template/ |
D | CarNotificationActionsViewTest.java | 79 private NotificationDataManager mNotificationDataManager; field in CarNotificationActionsViewTest 376 when(mNotificationDataManager.isMessageNotificationMuted(any(AlertEntry.class))) in messageIsMuted() 379 .thenReturn(mNotificationDataManager); in messageIsMuted()
|