/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationListenerTest.java | 62 private NotificationListenerService.RankingMap mRankingMap; field in CarNotificationListenerTest 118 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent() 130 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent() 142 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() 153 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications() 165 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager() 176 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isHun_isForAllUsers_doesNotAddItToActiveNotifications() 188 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_overrideGroupKeySet() 199 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_addsAlertEntryToDataManager() 210 mCarNotificationListener.onNotificationPosted(mStatusBarNotification, mRankingMap); in onNotificationPosted_isNotHun_isForCurrentUser_addsItToActiveNotifications() [all …]
|
D | CarHeadsUpNotificationQueueTest.java | 83 private NotificationListenerService.RankingMap mRankingMap; field in CarHeadsUpNotificationQueueTest 147 mCarHeadsUpNotificationQueue.addToQueue(alertEntry1, mRankingMap); in addToQueue_prioritises_postTimeOfHeadsUp() 148 mCarHeadsUpNotificationQueue.addToQueue(alertEntry2, mRankingMap); in addToQueue_prioritises_postTimeOfHeadsUp() 149 mCarHeadsUpNotificationQueue.addToQueue(alertEntry3, mRankingMap); in addToQueue_prioritises_postTimeOfHeadsUp() 150 mCarHeadsUpNotificationQueue.addToQueue(alertEntry4, mRankingMap); in addToQueue_prioritises_postTimeOfHeadsUp() 151 mCarHeadsUpNotificationQueue.addToQueue(alertEntry5, mRankingMap); in addToQueue_prioritises_postTimeOfHeadsUp() 181 mCarHeadsUpNotificationQueue.addToQueue(alertEntry1, mRankingMap); in addToQueue_prioritises_categoriesOfHeadsUp() 182 mCarHeadsUpNotificationQueue.addToQueue(alertEntry2, mRankingMap); in addToQueue_prioritises_categoriesOfHeadsUp() 183 mCarHeadsUpNotificationQueue.addToQueue(alertEntry3, mRankingMap); in addToQueue_prioritises_categoriesOfHeadsUp() 184 mCarHeadsUpNotificationQueue.addToQueue(alertEntry4, mRankingMap); in addToQueue_prioritises_categoriesOfHeadsUp() [all …]
|
D | PreprocessingManagerTest.java | 168 private NotificationListenerService.RankingMap mRankingMap; field in PreprocessingManagerTest 272 .filter(/* showLessImportantNotifications= */ true, mAlertEntries, mRankingMap); in onFilter_showLessImportantNotifications_doesNotFilterNotifications() 281 .filter( /* showLessImportantNotifications= */ false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersLessImportantForeground() 290 .filter(/* showLessImportantNotifications= */ false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_doesNotFilterMoreImportant() 299 .filter(/* showLessImportantNotifications= */ false, mAlertEntries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersMediaAndNavigation() 308 .filter(/* showLessImportantNotifications= */ true, mAlertEntries, mRankingMap); in onFilter_doShowLessImportantNotifications_doesNotFilterMediaOrNavigation() 323 mPreprocessingManager.filter(true, entries, mRankingMap); in onFilter_doShowLessImportantNotifications_filtersCalls() 336 mPreprocessingManager.filter(false, entries, mRankingMap); in onFilter_dontShowLessImportantNotifications_filtersCalls() 676 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationGroups() 699 List<NotificationGroup> rankResult = mPreprocessingManager.rank(groupResult, mRankingMap); in onRank_ranksNotificationsInEachGroup() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationListener.java | 60 private RankingMap mRankingMap; field in CarNotificationListener 190 mRankingMap = rankingMap; in onNotificationRankingUpdate() 203 if (!mRankingMap.getRanking(alertEntry.getKey(), mTemporaryRanking)) { in updateOverrideGroupKey() 225 if (mRankingMap != null) { in getOverrideGroupKey() 226 mRankingMap.getRanking(key, mTemporaryRanking); in getOverrideGroupKey() 246 return mRankingMap; in getCurrentRanking() 253 mRankingMap = super.getCurrentRanking(); in onListenerConnected() 355 mRankingMap.getRanking(alertEntry.getKey(), ranking); in isNotificationHigherThanLowImportance()
|
D | PreprocessingManager.java | 785 private final RankingMap mRankingMap; field in PreprocessingManager.InGroupComparator 788 mRankingMap = rankingMap; in InGroupComparator() 801 mRankingMap.getRanking(left.getKey(), leftRanking); in compare() 805 mRankingMap.getRanking(right.getKey(), rightRanking); in compare() 815 private final NotificationListenerService.RankingMap mRankingMap; field in PreprocessingManager.NotificationComparator 818 mRankingMap = rankingMap; in NotificationComparator() 833 mRankingMap.getRanking(left.getNotificationForSorting().getKey(), leftRanking); in compare() 837 mRankingMap.getRanking(right.getNotificationForSorting().getKey(), rightRanking); in compare()
|
D | CarHeadsUpNotificationQueue.java | 79 private NotificationListenerService.RankingMap mRankingMap; field in CarHeadsUpNotificationQueue 165 mRankingMap = rankingMap; in addToQueue() 271 mQueueCallback.showAsHeadsUp(alertEntry, mRankingMap); in triggerCallback()
|