Home
last modified time | relevance | path

Searched refs:mNotificationDataManager (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DNotificationDataManagerTest.java58 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 …]
DCarNotificationListenerTest.java67 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 …]
DCarHeadsUpNotificationManagerTest.java94 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/
DCarNotificationListener.java57 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()
DNotificationClickHandlerFactory.java77 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))
DNotificationViewController.java25 private NotificationDataManager mNotificationDataManager; field in NotificationViewController
39 mNotificationDataManager = notificationDataManager; in NotificationViewController()
114 mNotificationDataManager.updateUnseenNotification(unseenNotifications); in resetNotifications()
DCarNotificationViewAdapter.java67 private NotificationDataManager mNotificationDataManager; field in CarNotificationViewAdapter
477 mNotificationDataManager = notificationDataManager; in setNotificationDataManager()
490 if (mNotificationDataManager != null) { in setNotificationsAsSeen()
495 mNotificationDataManager.setNotificationsAsSeen(notifications); in setNotificationsAsSeen()
DCarHeadsUpNotificationManager.java96 private NotificationDataManager mNotificationDataManager; field in CarHeadsUpNotificationManager
107 mNotificationDataManager = notificationDataManager; in CarHeadsUpNotificationManager()
567 if (mNotificationDataManager.isMessageNotificationMuted(alertEntry)) { in shouldShowHeadsUp()
DCarNotificationView.java54 private NotificationDataManager mNotificationDataManager; field in CarNotificationView
191 mNotificationDataManager = notificationDataManager; in setNotificationDataManager()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DNotificationPanelViewController.java81 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()
DNotificationVisibilityLogger.java51 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/
DNotificationVisibilityLoggerTest.java74 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/
DCarNotificationActionsViewTest.java79 private NotificationDataManager mNotificationDataManager; field in CarNotificationActionsViewTest
376 when(mNotificationDataManager.isMessageNotificationMuted(any(AlertEntry.class))) in messageIsMuted()
379 .thenReturn(mNotificationDataManager); in messageIsMuted()