Home
last modified time | relevance | path

Searched refs:mActiveNotifications (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java114 private Map<String, AlertEntry> mActiveNotifications; field in CarHeadsUpNotificationManagerTest
193 mActiveNotifications = new HashMap<>(); in setupBaseActivityAndLayout()
217 mManager.maybeShowHeadsUp(mNotification2, mRankingMapMock, mActiveNotifications); in maybeShowHeadsUp_isNotImportant_returnsNull()
240 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull()
253 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_shouldReturnOne()
265 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo()
266 mManager.maybeShowHeadsUp(mNotification2, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo()
277 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_sameNotifications_shouldReturnOne()
278 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_sameNotifications_shouldReturnOne()
290 mActiveNotifications); in maybeShowHeadsUp_categoryCarInformation_returnsNull()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java66 private Map<String, AlertEntry> mActiveNotifications = new HashMap<>(); field in CarNotificationListener
130 AlertEntry alertEntry = mActiveNotifications.get(sbn.getKey()); in onNotificationRemoved()
133 mActiveNotifications.remove(alertEntry.getKey()); in onNotificationRemoved()
146 for (AlertEntry alertEntry : mActiveNotifications.values()) { in onNotificationRankingUpdate()
177 return mActiveNotifications.entrySet().stream() in getNotifications()
190 mActiveNotifications = Stream.of(getActiveNotifications()).collect( in onListenerConnected()
211 mActiveNotifications); in notifyNotificationPosted()
241 mActiveNotifications.put(alertEntry.getKey(), alertEntry); in postNewNotification()
/packages/services/Car/tests/SecondaryHomeApp/src/com/android/car/secondaryhome/launcher/
DNotificationListener.java59 private Map<String, AlertEntry> mActiveNotifications = new HashMap<>(); field in NotificationListener
99 AlertEntry alertEntry = mActiveNotifications.get(sbn.getKey()); in onNotificationRemoved()
111 return mActiveNotifications.entrySet().stream() in getNotifications()
119 mActiveNotifications = Stream.of(getActiveNotifications()).collect( in onListenerConnected()
147 mActiveNotifications.put(alertEntry.getKey(), alertEntry); in postNewNotification()
152 mActiveNotifications.remove(alertEntry.getKey()); in removeNotification()