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.java109 private Map<String, AlertEntry> mActiveNotifications; field in CarHeadsUpNotificationManagerTest
210 mActiveNotifications = new HashMap<>(); in setup()
228 mActiveNotifications); in maybeShowHeadsUp_isNotImportant_returnsNull()
247 mActiveNotifications); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull()
262 mActiveNotifications); in getActiveHeadsUpNotifications_shouldReturnOne()
278 mManager.maybeShowHeadsUp(mAlertEntryCallHeadsUp, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo()
280 mActiveNotifications); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo()
295 mManager.maybeShowHeadsUp(mAlertEntryCallHeadsUp, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_sameNotifications_shouldReturnOne()
296 mManager.maybeShowHeadsUp(mAlertEntryCallHeadsUp, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_sameNotifications_shouldReturnOne()
310 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
139 AlertEntry alertEntry = mActiveNotifications.get(sbn.getKey()); in onNotificationRemoved()
142 mActiveNotifications.remove(alertEntry.getKey()); in onNotificationRemoved()
155 for (AlertEntry alertEntry : mActiveNotifications.values()) { in onNotificationRankingUpdate()
186 return mActiveNotifications.entrySet().stream() in getNotifications()
199 mActiveNotifications = Stream.of(getActiveNotifications()).collect( in onListenerConnected()
220 mActiveNotifications); in notifyNotificationPosted()
250 mActiveNotifications.put(alertEntry.getKey(), alertEntry); in postNewNotification()