Home
last modified time | relevance | path

Searched refs:mRankingMap (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationListenerTest.java58 private NotificationListenerService.RankingMap mRankingMap; field in CarNotificationListenerTest
95 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
107 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
119 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
130 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications()
142 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager()
153 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForAllUsers_doesNotAddItToActiveNotifications()
166 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager()
177 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_addsItToActiveNotifications()
191 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification()
[all …]
DPreprocessingManagerTest.java134 private NotificationListenerService.RankingMap mRankingMap; field in PreprocessingManagerTest
205 .filter(/* showLessImportantNotifications= */true, mAlertEntries, mRankingMap); in onFilter_showLessImportantNotifications_doesNotFilterNotifications()
213 .filter( /* showLessImportantNotifications= */ false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersLessImportantForeground()
222 .filter(/* showLessImportantNotifications= */false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_doesNotFilterMoreImportant()
231 .filter(/* showLessImportantNotifications= */false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersMediaAndNavigation()
240 .filter(/* showLessImportantNotifications= */true, mAlertEntries, mRankingMap); in onFilter_doShowLessImportantNotifications_doesNotFilterMediaOrNavigation()
255 mPreprocessingManager.filter(true, entries, mRankingMap); in onFilter_doShowLessImportantNotifications_filtersCalls()
268 mPreprocessingManager.filter(false, entries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersCalls()
498 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationGroups()
518 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationsInEachGroup()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java55 private RankingMap mRankingMap; field in CarNotificationListener
145 mRankingMap = rankingMap; in onNotificationRankingUpdate()
147 if (!mRankingMap.getRanking(alertEntry.getKey(), mTemporaryRanking)) { in onNotificationRankingUpdate()
164 if (mRankingMap != null) { in getOverrideGroupKey()
165 mRankingMap.getRanking(key, mTemporaryRanking); in getOverrideGroupKey()
185 return mRankingMap; in getCurrentRanking()
192 mRankingMap = super.getCurrentRanking(); in onListenerConnected()
264 mRankingMap.getRanking(alertEntry.getKey(), ranking); in shouldTrackUnseen()
DPreprocessingManager.java514 private final RankingMap mRankingMap; field in PreprocessingManager.InGroupComparator
517 mRankingMap = rankingMap; in InGroupComparator()
530 mRankingMap.getRanking(left.getKey(), leftRanking); in compare()
534 mRankingMap.getRanking(right.getKey(), rightRanking); in compare()
544 private final NotificationListenerService.RankingMap mRankingMap; field in PreprocessingManager.NotificationComparator
547 mRankingMap = rankingMap; in NotificationComparator()
554 mRankingMap.getRanking(left.getNotificationForSorting().getKey(), leftRanking); in compare()
558 mRankingMap.getRanking(right.getNotificationForSorting().getKey(), rightRanking); in compare()