/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NoManSimulator.java | 21 import android.service.notification.NotificationListenerService.Ranking; 40 private final Map<String, Ranking> mRankings = new ArrayMap<>(); 75 public void setRanking(String key, Ranking ranking) { in setRanking() 80 return new RankingMap(mRankings.values().toArray(new Ranking[0])); in buildRankingMap() 86 public final Ranking ranking; 91 Ranking ranking, in NotifEvent()
|
D | NotificationEntryTest.java | 44 import android.service.notification.NotificationListenerService.Ranking; 183 Ranking ranking = new RankingBuilder() in testCreateNotificationDataEntry_RankingUpdate() 187 .setUserSentiment(Ranking.USER_SENTIMENT_NEGATIVE) in testCreateNotificationDataEntry_RankingUpdate() 196 assertEquals(Ranking.USER_SENTIMENT_NEGATIVE, entry.getUserSentiment()); in testCreateNotificationDataEntry_RankingUpdate()
|
D | NotifCollectionTest.java | 54 import android.service.notification.NotificationListenerService.Ranking; 319 Ranking newRanking1 = new RankingBuilder(notif1.ranking) in testRankingUpdateIsProperlyIssuedToEveryone() 323 Ranking newRanking2 = new RankingBuilder(notif2.ranking) in testRankingUpdateIsProperlyIssuedToEveryone() 330 Ranking newRanking3 = new RankingBuilder(notif3.ranking) in testRankingUpdateIsProperlyIssuedToEveryone() 1288 new RankingMap(new Ranking[]{ container.getRanking() })); in testClearNotificationDoesntThrowIfMissing() 1307 new RankingMap(new Ranking[]{ container.getRanking() })); in testClearNotificationDoesntThrowIfInForgivenessWindow() 1459 public final Ranking ranking;
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationListenerServiceTest.java | 20 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEGAT… 21 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEUTR… 22 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_POSIT… 50 import android.service.notification.NotificationListenerService.Ranking; 103 Ranking ranking = new Ranking(); in testRanking() 154 Ranking ranking = generateUpdate().getRankingMap().getRawRankingObject(mKeys[0]); in testRanking_parcel() 158 Ranking ranking1 = new Ranking(parcel); in testRanking_parcel() 170 Ranking tweak = nru2.getRankingMap().getRawRankingObject(mKeys[0]); in testRankingUpdate_equals() 247 Ranking[] rankings = new Ranking[mKeys.length]; in generateUpdate() 250 Ranking ranking = new Ranking(); in generateUpdate() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationEntryHelper.java | 19 import android.service.notification.NotificationListenerService.Ranking; 44 public Ranking build() { in build() 45 final Ranking ranking = super.build(); in build()
|
D | RankingBuilder.java | 24 import android.service.notification.NotificationListenerService.Ranking; 63 public RankingBuilder(Ranking ranking) { in RankingBuilder() 89 public Ranking build() { in build() 90 final Ranking ranking = new Ranking(); in build()
|
D | NotificationListenerTest.java | 30 import android.service.notification.NotificationListenerService.Ranking; 59 private RankingMap mRanking = new RankingMap(new Ranking[0]);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/ |
D | PeopleNotificationIdentifier.kt | 20 import android.service.notification.NotificationListenerService.Ranking 43 fun getPeopleNotificationType(sbn: StatusBarNotification, ranking: Ranking): Int in getPeopleNotificationType() 69 override fun getPeopleNotificationType(sbn: StatusBarNotification, ranking: Ranking): Int = in getPeopleNotificationType() 97 private val Ranking.personTypeInfo in upperBound() constant
|
D | PeopleHubNotificationListener.kt | 237 private fun NotificationListenerService.Ranking.getIcon( in extractPersonKey()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationListener.java | 96 final List<Ranking> newRankings = new ArrayList<>(); in onListenerConnected() 100 final RankingMap completeMap = new RankingMap(newRankings.toArray(new Ranking[0])); in onListenerConnected() 187 private static Ranking getRankingOrTemporaryStandIn(RankingMap rankingMap, String key) { in getRankingOrTemporaryStandIn() 188 Ranking ranking = new Ranking(); in getRankingOrTemporaryStandIn()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/ |
D | CoalescedEvent.kt | 19 import android.service.notification.NotificationListenerService.Ranking 26 var ranking: Ranking,
|
D | GroupCoalescer.java | 22 import android.service.notification.NotificationListenerService.Ranking; 257 private Ranking requireRanking(RankingMap rankingMap, String key) { in requireRanking() 258 Ranking ranking = new Ranking(); in requireRanking() 267 Ranking ranking = new Ranking(); in applyRanking()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 50 import android.service.notification.NotificationListenerService.Ranking; 137 Ranking ranking = (Ranking) in setUserSentiment() 150 }).when(mRankingMap).getRanking(eq(key), any(Ranking.class)); in setUserSentiment() 155 Ranking ranking = (Ranking) in setSmartActions() 166 Ranking.USER_SENTIMENT_NEUTRAL, false, -1, in setSmartActions() 169 }).when(mRankingMap).getRanking(eq(key), any(Ranking.class)); in setSmartActions() 209 setUserSentiment(mSbn.getKey(), Ranking.USER_SENTIMENT_NEUTRAL); in setUp() 243 assertEquals(entry.getUserSentiment(), Ranking.USER_SENTIMENT_NEUTRAL); in testAddNotification_setsUserSentiment() 250 mEntry.getKey(), Ranking.USER_SENTIMENT_NEGATIVE); in testUpdateNotification_updatesUserSentiment() 254 assertEquals(Ranking.USER_SENTIMENT_NEGATIVE, mEntry.getUserSentiment()); in testUpdateNotification_updatesUserSentiment() [all …]
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 1519 public static class Ranking { class in NotificationListenerService 1576 public Ranking() { } in Ranking() method in NotificationListenerService.Ranking 1612 public Ranking(Parcel in) { in Ranking() method in NotificationListenerService.Ranking 1906 public void populate(Ranking other) { 1960 Ranking other = (Ranking) o; 2002 private ArrayMap<String, Ranking> mRankings = new ArrayMap<>(); 2007 public RankingMap(Ranking[] rankings) { 2023 final Ranking r = new Ranking(in); 2085 public boolean getRanking(String key, Ranking outRanking) { 2100 public Ranking getRawRankingObject(String key) {
|
D | NotificationRankingUpdate.java | 27 public NotificationRankingUpdate(NotificationListenerService.Ranking[] rankings) { in NotificationRankingUpdate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 51 import android.service.notification.NotificationListenerService.Ranking; 98 private Ranking mRanking; 190 @NonNull Ranking ranking, in NotificationEntry() 197 @NonNull Ranking ranking, in NotificationEntry() 253 public Ranking getRanking() { in getRanking() 276 public void setRanking(@NonNull Ranking ranking) { in setRanking()
|
D | NotifCollection.java | 52 import android.service.notification.NotificationListenerService.Ranking; 409 Ranking ranking) { in postNotification() 488 Ranking ranking = new Ranking(); in applyRanking() 658 private static Ranking requireRanking(RankingMap rankingMap, String key) { 660 Ranking ranking = new Ranking();
|
D | NotificationRankingManager.kt | 21 import android.service.notification.NotificationListenerService.Ranking in <lambda>() 168 val newRanking = Ranking() in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationEntryManagerInflationTest.java | 35 import android.service.notification.NotificationListenerService.Ranking; 277 Ranking ranking = new Ranking(); in setUp() 291 Ranking.USER_SENTIMENT_NEUTRAL, in setUp() 302 mRankingMap = new NotificationListenerService.RankingMap(new Ranking[] {ranking}); in setUp()
|
D | NotificationBlockingHelperManagerTest.java | 20 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEGAT… 21 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEUTR… 22 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_POSIT…
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | ConversationNotifications.kt | 23 import android.service.notification.NotificationListenerService.Ranking in <lambda>() 82 val ranking = Ranking() in onNotificationRankingUpdated()
|
D | NotificationEntryManager.java | 29 import android.service.notification.NotificationListenerService.Ranking; 566 Ranking ranking = new Ranking(); in addNotificationInternal() 743 Ranking ranking = new Ranking(); in updateRankingOfPendingNotifications()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/ |
D | GroupCoalescerTest.java | 28 import android.service.notification.NotificationListenerService.Ranking; 302 Ranking ranking1b = new RankingBuilder() in testRankingsAreUpdated() 306 Ranking ranking2b = new RankingBuilder() in testRankingsAreUpdated()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationBlockingHelperManager.java | 19 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEGAT…
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationRecord.java | 24 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEUTR… 25 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_POSIT… 554 + NotificationListenerService.Ranking.importanceToString(mSystemImportance)); in dump() 556 + NotificationListenerService.Ranking.importanceToString(mAssistantImportance)); in dump() 558 + NotificationListenerService.Ranking.importanceToString(mImportance)); in dump()
|