Home
last modified time | relevance | path

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

/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarNotificationListenerTest.java57 private NotificationListenerService.RankingMap mRankingMap; field in CarNotificationListenerTest
93 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent()
105 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent()
117 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager()
128 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications()
140 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager()
151 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForAllUsers_doesNotAddItToActiveNotifications()
164 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager()
175 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_addsItToActiveNotifications()
189 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_lowPriority_isForCurrentUser_untracksUnseenNotification()
[all …]
DPreprocessingManagerTest.java137 private NotificationListenerService.RankingMap mRankingMap; field in PreprocessingManagerTest
215 .filter(/* showLessImportantNotifications= */true, mAlertEntries, mRankingMap); in onFilter_showLessImportantNotifications_doesNotFilterNotifications()
224 .filter( /* showLessImportantNotifications= */ false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersLessImportantForeground()
233 .filter(/* showLessImportantNotifications= */false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_doesNotFilterMoreImportant()
242 .filter(/* showLessImportantNotifications= */false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersMediaAndNavigation()
251 .filter(/* showLessImportantNotifications= */true, mAlertEntries, mRankingMap); in onFilter_doShowLessImportantNotifications_doesNotFilterMediaOrNavigation()
266 mPreprocessingManager.filter(true, entries, mRankingMap); in onFilter_doShowLessImportantNotifications_filtersCalls()
279 mPreprocessingManager.filter(false, entries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersCalls()
509 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationGroups()
529 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
154 mRankingMap = rankingMap; in onNotificationRankingUpdate()
156 if (!mRankingMap.getRanking(alertEntry.getKey(), mTemporaryRanking)) { in onNotificationRankingUpdate()
173 if (mRankingMap != null) { in getOverrideGroupKey()
174 mRankingMap.getRanking(key, mTemporaryRanking); in getOverrideGroupKey()
194 return mRankingMap; in getCurrentRanking()
201 mRankingMap = super.getCurrentRanking(); in onListenerConnected()
273 mRankingMap.getRanking(alertEntry.getKey(), ranking); in shouldTrackUnseen()
DPreprocessingManager.java523 private final RankingMap mRankingMap; field in PreprocessingManager.InGroupComparator
526 mRankingMap = rankingMap; in InGroupComparator()
539 mRankingMap.getRanking(left.getKey(), leftRanking); in compare()
543 mRankingMap.getRanking(right.getKey(), rightRanking); in compare()
553 private final NotificationListenerService.RankingMap mRankingMap; field in PreprocessingManager.NotificationComparator
556 mRankingMap = rankingMap; in NotificationComparator()
563 mRankingMap.getRanking(left.getNotificationForSorting().getKey(), leftRanking); in compare()
567 mRankingMap.getRanking(right.getNotificationForSorting().getKey(), rightRanking); in compare()