/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | RankingBuilder.java | 63 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 …]
|
D | NotificationEntryHelper.java | 45 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/ |
D | NotificationListenerServiceTest.java | 103 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/ |
D | NoManSimulator.java | 75 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()
|
D | NotificationRankingManagerTest.kt | 177 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>()
|
D | NotifCollectionTest.java | 187 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()
|
D | NotificationEntryTest.java | 183 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/ |
D | GroupCoalescerTest.java | 172 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/ |
D | ConversationNotifications.kt | 45 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()
|
D | NotificationEntryManager.java | 420 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 …]
|
D | NotificationClickerLogger.kt | 31 str2 = entry.ranking.channel.id in logOnClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/ |
D | PeopleNotificationIdentifier.kt | 43 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()
|
D | PeopleHubNotificationListener.kt | 217 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/ |
D | NotificationEntry.java | 190 @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 …]
|
D | NotificationRankingManager.kt | 74 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>()
|
D | NotifCollection.java | 409 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/ |
D | GroupCoalescer.java | 258 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()
|
D | CoalescedEvent.kt | 26 var ranking: Ranking, variable in com.android.systemui.statusbar.notification.collection.coalescer.CoalescedEvent
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationListener.java | 188 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()
|
D | ActionClickLogger.kt | 38 str2 = entry?.ranking?.channel?.id in logInitialClick()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ |
D | IconManager.kt | 258 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/ |
D | NotificationEntryManagerInflationTest.java | 277 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/ |
D | NotificationEntryManagerTest.java | 137 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/ |
D | ForegroundServiceSectionController.kt | 148 entries.sortedBy { it.ranking.rank }.forEach { entry -> in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/ |
D | NewNotifPipelineBubbleControllerTest.java | 647 NotificationListenerService.Ranking ranking = new RankingBuilder( in testRemoveBubble_noLongerBubbleAfterUpdate() local 649 mRow.getEntry().setRanking(ranking); in testRemoveBubble_noLongerBubbleAfterUpdate()
|