/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenerServiceTest.java | 101 Ranking ranking = new Ranking(); in testRanking() local 102 service.getCurrentRanking().getRanking(key, ranking); in testRanking() 103 assertEquals(getVisibilityOverride(i), ranking.getVisibilityOverride()); in testRanking() 104 assertEquals(getOverrideGroupKey(key), ranking.getOverrideGroupKey()); in testRanking() 105 assertEquals(!isIntercepted(i), ranking.matchesInterruptionFilter()); in testRanking() 106 assertEquals(getSuppressedVisualEffects(i), ranking.getSuppressedVisualEffects()); in testRanking() 107 assertEquals(getImportance(i), ranking.getImportance()); in testRanking() 108 assertEquals(getExplanation(key), ranking.getImportanceExplanation()); in testRanking() 109 assertEquals(getChannel(key, i), ranking.getChannel()); in testRanking() 110 assertEquals(getPeople(key, i), ranking.getAdditionalPeople()); in testRanking() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUpdateHandler.java | 33 NotificationListenerService.RankingMap ranking); in addNotification() argument 43 void removeNotification(String key, NotificationListenerService.RankingMap ranking, int reason); in removeNotification() argument 52 NotificationListenerService.RankingMap ranking); in updateNotification() argument 59 void updateNotificationRanking(NotificationListenerService.RankingMap ranking); in updateNotificationRanking() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 182 @Nullable NotificationListenerService.Ranking ranking) { in NotificationEntry() argument 185 if (ranking != null) { in NotificationEntry() 186 populateFromRanking(ranking); in NotificationEntry() 190 public void populateFromRanking(@NonNull NotificationListenerService.Ranking ranking) { in populateFromRanking() argument 191 channel = ranking.getChannel(); in populateFromRanking() 192 lastAudiblyAlertedMs = ranking.getLastAudiblyAlertedMillis(); in populateFromRanking() 193 importance = ranking.getImportance(); in populateFromRanking() 194 ambient = ranking.isAmbient(); in populateFromRanking() 195 snoozeCriteria = ranking.getSnoozeCriteria(); in populateFromRanking() 196 userSentiment = ranking.getUserSentiment(); in populateFromRanking() [all …]
|
D | NotificationData.java | 197 public NotificationEntry remove(String key, RankingMap ranking) { in remove() argument 205 if (ranking == null) ranking = mRankingMap; in remove() 207 updateRankingAndSort(ranking); in remove() 214 RankingMap ranking, in update() argument 216 updateRanking(ranking); in update() 222 public void updateRanking(RankingMap ranking) { in updateRanking() argument 223 updateRankingAndSort(ranking); in updateRanking() 370 private void updateRankingAndSort(RankingMap ranking) { in updateRankingAndSort() argument 371 if (ranking != null) { in updateRankingAndSort() 372 mRankingMap = ranking; in updateRankingAndSort()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManager.java | 261 public void removeNotification(String key, NotificationListenerService.RankingMap ranking, in removeNotification() argument 263 removeNotificationInternal(key, ranking, obtainVisibility(key), false /* forceRemove */, in removeNotification() 269 @Nullable NotificationListenerService.RankingMap ranking, in removeNotificationInternal() argument 328 mNotificationData.remove(key, ranking); in removeNotificationInternal() 390 NotificationListenerService.Ranking ranking = new NotificationListenerService.Ranking(); in addNotificationInternal() local 391 rankingMap.getRanking(key, ranking); in addNotificationInternal() 393 NotificationEntry entry = new NotificationEntry(notification, ranking); in addNotificationInternal() 410 NotificationListenerService.RankingMap ranking) { in addNotification() argument 412 addNotificationInternal(notification, ranking); in addNotification() 419 NotificationListenerService.RankingMap ranking) throws InflationException { in updateNotificationInternal() argument [all …]
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/ |
D | CarNotificationEntryManager.java | 43 StatusBarNotification notification, NotificationListenerService.RankingMap ranking) { in addNotification() argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 321 Ranking ranking = mock(Ranking.class); in testCreateNotificationDataEntry_RankingUpdate() local 331 when(ranking.getSmartActions()).thenReturn(systemGeneratedSmartActions); in testCreateNotificationDataEntry_RankingUpdate() 333 when(ranking.getChannel()).thenReturn(NOTIFICATION_CHANNEL); in testCreateNotificationDataEntry_RankingUpdate() 335 when(ranking.getUserSentiment()).thenReturn(Ranking.USER_SENTIMENT_NEGATIVE); in testCreateNotificationDataEntry_RankingUpdate() 340 when(ranking.getSnoozeCriteria()).thenReturn(snoozeCriterions); in testCreateNotificationDataEntry_RankingUpdate() 343 new NotificationEntry(mMockStatusBarNotification, ranking); in testCreateNotificationDataEntry_RankingUpdate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 175 NotificationListenerService.Ranking ranking = (NotificationListenerService.Ranking) in setUserSentiment() 177 ranking.populate( in setUserSentiment() 192 NotificationListenerService.Ranking ranking = (NotificationListenerService.Ranking) in setSmartActions() 194 ranking.populate( in setSmartActions()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 1546 JSONObject ranking = new JSONObject(); in dumpJson() local 1549 ranking.put("noUid", mRestoredWithoutUids.size()); in dumpJson() 1596 ranking.put("PackagePreferencess", PackagePreferencess); in dumpJson() 1600 return ranking; in dumpJson()
|
D | NotificationManagerService.java | 7498 final NotificationListenerService.Ranking ranking = 7500 ranking.populate( 7522 rankings.add(ranking);
|
/frameworks/base/proto/src/metrics_constants/ |
D | metrics_constants.proto | 4578 // FIELD - State of asynchronous ranking when Settings search result is clicked 4642 // FIELD - Whether smart suggestion ranking was enabled or not
|