Home
last modified time | relevance | path

Searched refs:Ranking (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNoManSimulator.java21 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()
DNotificationEntryTest.java44 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()
DNotifCollectionTest.java54 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/
DNotificationListenerServiceTest.java20 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/
DNotificationEntryHelper.java19 import android.service.notification.NotificationListenerService.Ranking;
44 public Ranking build() { in build()
45 final Ranking ranking = super.build(); in build()
DRankingBuilder.java24 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()
DNotificationListenerTest.java30 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/
DPeopleNotificationIdentifier.kt20 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
DPeopleHubNotificationListener.kt237 private fun NotificationListenerService.Ranking.getIcon( in extractPersonKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationListener.java96 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/
DCoalescedEvent.kt19 import android.service.notification.NotificationListenerService.Ranking
26 var ranking: Ranking,
DGroupCoalescer.java22 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/
DNotificationEntryManagerTest.java50 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/
DNotificationListenerService.java1519 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) {
DNotificationRankingUpdate.java27 public NotificationRankingUpdate(NotificationListenerService.Ranking[] rankings) { in NotificationRankingUpdate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java51 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()
DNotifCollection.java52 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();
DNotificationRankingManager.kt21 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/
DNotificationEntryManagerInflationTest.java35 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()
DNotificationBlockingHelperManagerTest.java20 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/
DConversationNotifications.kt23 import android.service.notification.NotificationListenerService.Ranking in <lambda>()
82 val ranking = Ranking() in onNotificationRankingUpdated()
DNotificationEntryManager.java29 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/
DGroupCoalescerTest.java28 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/
DNotificationBlockingHelperManager.java19 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEGAT…
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java24 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()

12