Home
last modified time | relevance | path

Searched refs:ranking (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DRankingBuilder.java63 public RankingBuilder(Ranking ranking) { in RankingBuilder() argument
64 mKey = ranking.getKey(); in RankingBuilder()
65 mRank = ranking.getRank(); in RankingBuilder()
66 mMatchesInterruptionFilter = ranking.matchesInterruptionFilter(); in RankingBuilder()
67 mVisibilityOverride = ranking.getVisibilityOverride(); in RankingBuilder()
68 mSuppressedVisualEffects = ranking.getSuppressedVisualEffects(); in RankingBuilder()
69 mImportance = ranking.getImportance(); in RankingBuilder()
70 mExplanation = ranking.getImportanceExplanation(); in RankingBuilder()
71 mOverrideGroupKey = ranking.getOverrideGroupKey(); in RankingBuilder()
72 mChannel = ranking.getChannel(); in RankingBuilder()
[all …]
DNotificationEntryHelper.java45 final Ranking ranking = super.build(); in build() local
46 mTarget.setRanking(ranking); in build()
47 return ranking; in build()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationListenerServiceTest.java103 Ranking ranking = new Ranking(); in testRanking() local
104 service.getCurrentRanking().getRanking(key, ranking); in testRanking()
105 assertEquals(getVisibilityOverride(i), ranking.getVisibilityOverride()); in testRanking()
106 assertEquals(getOverrideGroupKey(key), ranking.getOverrideGroupKey()); in testRanking()
107 assertEquals(!isIntercepted(i), ranking.matchesInterruptionFilter()); in testRanking()
108 assertEquals(getSuppressedVisualEffects(i), ranking.getSuppressedVisualEffects()); in testRanking()
109 assertEquals(getImportance(i), ranking.getImportance()); in testRanking()
110 assertEquals(getExplanation(key), ranking.getImportanceExplanation()); in testRanking()
111 assertEquals(getChannel(key, i), ranking.getChannel()); in testRanking()
112 assertEquals(getPeople(key, i), ranking.getAdditionalPeople()); in testRanking()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNoManSimulator.java75 public void setRanking(String key, Ranking ranking) { in setRanking() argument
76 mRankings.put(key, ranking); in setRanking()
86 public final Ranking ranking; field in NoManSimulator.NotifEvent
91 Ranking ranking, in NotifEvent() argument
95 this.ranking = ranking; in NotifEvent()
DNotificationRankingManagerTest.kt177 whenever(personNotificationIdentifier.getPeopleNotificationType(a.sbn, a.ranking)) in <lambda>()
197 whenever(personNotificationIdentifier.getPeopleNotificationType(a.sbn, a.ranking)) in <lambda>()
219 whenever(personNotificationIdentifier.getPeopleNotificationType(a.sbn, a.ranking)) in <lambda>()
235 whenever(personNotificationIdentifier.getPeopleNotificationType(b.sbn, b.ranking)) in <lambda>()
264 whenever(personNotificationIdentifier.getPeopleNotificationType(a.sbn, a.ranking)) in <lambda>()
280 whenever(personNotificationIdentifier.getPeopleNotificationType(b.sbn, b.ranking)) in <lambda>()
309 rankingManager.updateRanking(RankingMap(arrayOf(e.ranking)), listOf(e), "test") in <lambda>()
329 rankingManager.updateRanking(RankingMap(arrayOf(e.ranking)), listOf(e), "test") in <lambda>()
353 rankingManager.updateRanking(RankingMap(arrayOf(e.ranking)), listOf(e), "test") in <lambda>()
403 whenever(personNotificationIdentifier.getPeopleNotificationType(a.sbn, a.ranking)) in <lambda>()
DNotifCollectionTest.java187 assertEquals(notif1.ranking, entry.getRanking()); in testEventDispatchedWhenNotifPosted()
262 assertEquals(notif2.ranking, entry.getRanking()); in testEventDispatchedWhenNotifUpdated()
284 assertEquals(notif.ranking, entry.getRanking()); in testEventDispatchedWhenNotifRemoved()
295 mNoMan.setRanking(notif1.sbn.getKey(), new RankingBuilder(notif1.ranking) in testRankingsAreUpdatedForOtherNotifs()
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()
1036 assertEquals(notif2a.ranking, entry2.getRanking()); in testRankingIsUpdatedWhenALifetimeExtendedNotifIsReposted()
1459 public final Ranking ranking; field in NotifCollectionTest.CollectionEvent
1466 this.ranking = rawEvent.ranking; in CollectionEvent()
DNotificationEntryTest.java183 Ranking ranking = new RankingBuilder() in testCreateNotificationDataEntry_RankingUpdate() local
192 new NotificationEntry(sbn, ranking, mClock.uptimeMillis()); in testCreateNotificationDataEntry_RankingUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescerTest.java172 new CoalescedEvent(notif2.key, 1, notif2.sbn, notif2.ranking, null), in testCoalescedNotificationsArePosted()
173 new CoalescedEvent(notif1.key, 0, notif1.sbn, notif1.ranking, null), in testCoalescedNotificationsArePosted()
174 new CoalescedEvent(notif3.key, 2, notif3.sbn, notif3.ranking, null) in testCoalescedNotificationsArePosted()
209 new CoalescedEvent(notif1a.key, 0, notif1a.sbn, notif1a.ranking, null), in testCoalescedEventsThatAreLaterUngroupedAreEmittedImmediatelyAndNotLater()
210 new CoalescedEvent(notif2.key, 1, notif2.sbn, notif2.ranking, null), in testCoalescedEventsThatAreLaterUngroupedAreEmittedImmediatelyAndNotLater()
211 new CoalescedEvent(notif3.key, 2, notif3.sbn, notif3.ranking, null) in testCoalescedEventsThatAreLaterUngroupedAreEmittedImmediatelyAndNotLater()
249 new CoalescedEvent(notif1.key, 0, notif1.sbn, notif1.ranking, null), in testUpdatingCoalescedNotifTriggersBatchEmit()
250 new CoalescedEvent(notif2a.key, 1, notif2a.sbn, notif2a.ranking, null) in testUpdatingCoalescedNotifTriggersBatchEmit()
259 new CoalescedEvent(notif2b.key, 0, notif2b.sbn, notif2b.ranking, null) in testUpdatingCoalescedNotifTriggersBatchEmit()
281 new CoalescedEvent(notif1.key, 0, notif1.sbn, notif1.ranking, null), in testRemovingCoalescedNotifTriggersBatchEmit()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DConversationNotifications.kt45 if (entry.ranking.channel.isImportantConversation) in <lambda>()
49 entry.ranking.shortcutInfo?.let { shortcutInfo -> in <lambda>()
82 val ranking = Ranking() in onNotificationRankingUpdated() constant
86 if (rankingMap.getRanking(entry.sbn.key, ranking) && ranking.isConversation) { in onNotificationRankingUpdated()
87 val important = ranking.channel.isImportantConversation in onNotificationRankingUpdated()
117 if (!entry.ranking.isConversation) return in onEntryInflated()
DNotificationEntryManager.java420 public void removeNotification(String key, RankingMap ranking, in removeNotification() argument
422 removeNotificationInternal(key, ranking, obtainVisibility(key), false /* forceRemove */, in removeNotification()
428 @Nullable RankingMap ranking, in removeNotificationInternal() argument
471 mLatestRankingMap = ranking; in removeNotificationInternal()
566 Ranking ranking = new Ranking(); in addNotificationInternal() local
567 rankingMap.getRanking(key, ranking); in addNotificationInternal()
575 ranking, in addNotificationInternal()
612 public void addNotification(StatusBarNotification notification, RankingMap ranking) { in addNotification() argument
614 addNotificationInternal(notification, ranking); in addNotification()
621 RankingMap ranking) throws InflationException { in updateNotificationInternal() argument
[all …]
DNotificationClickerLogger.kt31 str2 = entry.ranking.channel.id in logOnClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/
DPeopleNotificationIdentifier.kt43 fun getPeopleNotificationType(sbn: StatusBarNotification, ranking: Ranking): Int in getPeopleNotificationType()
69 override fun getPeopleNotificationType(sbn: StatusBarNotification, ranking: Ranking): Int = in getPeopleNotificationType()
70 when (val type = ranking.personTypeInfo) { in getPeopleNotificationType()
115 ?.map { getPeopleNotificationType(it.sbn, it.ranking) } in extractPersonTypeInfo()
DPeopleHubNotificationListener.kt217 val type = peopleNotificationIdentifier.getPeopleNotificationType(sbn, ranking) in extractPersonKey()
223 val name = ranking.shortcutInfo?.label in extractPersonKey()
227 val drawable = ranking.getIcon(iconFactory, sbn) in extractPersonKey()
232 ranking.channel.isImportantConversation in extractPersonKey()
252 val type = peopleNotificationIdentifier.getPeopleNotificationType(sbn, ranking) in extractPersonKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java190 @NonNull Ranking ranking, in NotificationEntry() argument
192 this(sbn, ranking, false, creationTime); in NotificationEntry()
197 @NonNull Ranking ranking, in NotificationEntry() argument
203 requireNonNull(ranking); in NotificationEntry()
208 setRanking(ranking); in NotificationEntry()
276 public void setRanking(@NonNull Ranking ranking) { in setRanking() argument
277 requireNonNull(ranking); in setRanking()
278 requireNonNull(ranking.getKey()); in setRanking()
280 if (!ranking.getKey().equals(mKey)) { in setRanking()
281 throw new IllegalArgumentException("New key " + ranking.getKey() in setRanking()
[all …]
DNotificationRankingManager.kt74 val aRank = a.ranking.rank in <lambda>()
75 val bRank = b.ranking.rank in <lambda>()
172 entry.ranking = newRanking in <lambda>()
189 key == mediaManager.mediaNotificationKey && ranking.importance > IMPORTANCE_MIN in <lambda>()
194 peopleNotificationIdentifier.getPeopleNotificationType(sbn, ranking) in <lambda>()
DNotifCollection.java409 Ranking ranking) { in postNotification() argument
414 entry = new NotificationEntry(sbn, ranking, mClock.uptimeMillis()); in postNotification()
488 Ranking ranking = new Ranking(); in applyRanking() local
489 if (rankingMap.getRanking(entry.getKey(), ranking)) { in applyRanking()
490 entry.setRanking(ranking); in applyRanking()
496 final String newOverrideGroupKey = ranking.getOverrideGroupKey(); in applyRanking()
660 Ranking ranking = new Ranking();
661 if (!rankingMap.getRanking(key, ranking)) {
664 return ranking;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescer.java258 Ranking ranking = new Ranking(); in requireRanking() local
259 if (!rankingMap.getRanking(key, ranking)) { in requireRanking()
262 return ranking; in requireRanking()
267 Ranking ranking = new Ranking(); in applyRanking() local
268 if (rankingMap.getRanking(event.getKey(), ranking)) { in applyRanking()
269 event.setRanking(ranking); in applyRanking()
DCoalescedEvent.kt26 var ranking: Ranking, variable in com.android.systemui.statusbar.notification.collection.coalescer.CoalescedEvent
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationListener.java188 Ranking ranking = new Ranking(); in getRankingOrTemporaryStandIn() local
189 if (!rankingMap.getRanking(key, ranking)) { in getRankingOrTemporaryStandIn()
190 ranking.populate( in getRankingOrTemporaryStandIn()
216 return ranking; in getRankingOrTemporaryStandIn()
DActionClickLogger.kt38 str2 = entry?.ranking?.channel?.id in logInitialClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/
DIconManager.kt258 val shortcut = entry.ranking.shortcutInfo in <lambda>()
314 return entry.ranking.channel != null && entry.ranking.channel.isImportantConversation in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationEntryManagerInflationTest.java277 Ranking ranking = new Ranking(); in setUp() local
278 ranking.populate( in setUp()
302 mRankingMap = new NotificationListenerService.RankingMap(new Ranking[] {ranking}); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java137 Ranking ranking = (Ranking) in setUserSentiment()
139 ranking.populate( in setUserSentiment()
155 Ranking ranking = (Ranking) in setSmartActions()
157 ranking.populate( in setSmartActions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DForegroundServiceSectionController.kt148 entries.sortedBy { it.ranking.rank }.forEach { entry -> in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/
DNewNotifPipelineBubbleControllerTest.java647 NotificationListenerService.Ranking ranking = new RankingBuilder( in testRemoveBubble_noLongerBubbleAfterUpdate() local
649 mRow.getEntry().setRanking(ranking); in testRemoveBubble_noLongerBubbleAfterUpdate()

12