Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java125 private Map<String, AlertEntry> mActiveNotifications; field in CarHeadsUpNotificationManagerTest
230 mActiveNotifications = new HashMap<>(); in setup()
243 mActiveNotifications); in maybeShowHeadsUp_isNotImportant_returnsFalseAndNotAddedToQueue()
255 mActiveNotifications); in maybeShowHeadsUp_isImportanceHigh_returnsTrueAndAddedToQueue()
268 mRankingMapMock, mActiveNotifications); in maybeShowHeadsUp_categoryCarInformation_returnsFalseAndNotAddedToQueue()
280 mActiveNotifications); in maybeShowHeadsUp_categoryMessage_returnsTrueAndAddedToQueue()
292 mActiveNotifications); in maybeShowHeadsUp_categoryCall_returnsTrueAndAddedToQueue()
304 mActiveNotifications); in maybeShowHeadsUp_categoryNavigation_returnsTrueAndAddedToQueue()
317 mActiveNotifications); in maybeShowHeadsUp_inboxHeadsUp_returnsTrueAndAddedToQueue()
329 mRankingMapMock, mActiveNotifications); in maybeShowHeadsUp_isSignedWithPlatformKey_returnsTrueAndAddedToQueue()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java73 private ConcurrentMap<String, AlertEntry> mActiveNotifications = new ConcurrentHashMap<>(); field in CarNotificationListener
175 AlertEntry alertEntry = mActiveNotifications.get(sbn.getKey()); in onNotificationRemoved()
178 mActiveNotifications.remove(alertEntry.getKey()); in onNotificationRemoved()
192 for (AlertEntry alertEntry : mActiveNotifications.values()) { in onNotificationRankingUpdate()
238 return mActiveNotifications.entrySet().stream() in getNotifications()
251 mActiveNotifications = Stream.of(getActiveNotifications()).collect( in onListenerConnected()
274 mActiveNotifications.clear(); in clearCache()
299 mActiveNotifications); in notifyNotificationPosted()
334 mActiveNotifications.put(alertEntry.getKey(), alertEntry); in postNewNotification()