Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationRankingUpdateTest.java19 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEGAT…
20 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_NEUTR…
21 import static android.service.notification.NotificationListenerService.Ranking.USER_SENTIMENT_POSIT…
96 NotificationListenerService.Ranking[] rankings = in generateUpdate()
97 new NotificationListenerService.Ranking[mKeys.length]; in generateUpdate()
100 NotificationListenerService.Ranking ranking = new NotificationListenerService.Ranking(); in generateUpdate()
367 public void detailedAssertEquals(String comment, NotificationListenerService.Ranking a, in detailedAssertEquals()
368 NotificationListenerService.Ranking b) { in detailedAssertEquals()
409 NotificationListenerService.Ranking arank = new NotificationListenerService.Ranking(); in detailedAssertEquals()
410 NotificationListenerService.Ranking brank = new NotificationListenerService.Ranking(); in detailedAssertEquals()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNoManSimulator.java23 import android.service.notification.NotificationListenerService.Ranking;
42 private final Map<String, Ranking> mRankings = new ArrayMap<>();
84 public void setRanking(String key, Ranking ranking) { in setRanking()
89 public Ranking removeRankingWithoutEvent(String key) { in removeRankingWithoutEvent()
94 return new RankingMap(mRankings.values().toArray(new Ranking[0])); in buildRankingMap()
100 public final Ranking ranking;
105 Ranking ranking, in NotifEvent()
DNotificationEntryTest.java46 import android.service.notification.NotificationListenerService.Ranking;
139 Ranking ranking = new RankingBuilder() in testBlockableWhenEntryHasNoChannel()
235 Ranking ranking = new RankingBuilder() in testCreateNotificationDataEntry_RankingUpdate()
239 .setUserSentiment(Ranking.USER_SENTIMENT_NEGATIVE) in testCreateNotificationDataEntry_RankingUpdate()
248 assertEquals(Ranking.USER_SENTIMENT_NEGATIVE, entry.getUserSentiment()); in testCreateNotificationDataEntry_RankingUpdate()
319 Ranking ranking = new RankingBuilder() in testIsChannelVisibilityPrivate_visibilityPublic_false()
332 Ranking ranking = new RankingBuilder() in testIsChannelVisibilityPrivate_entryHasNoChannel_false()
DTargetSdkResolverTest.kt26 import android.service.notification.NotificationListenerService.Ranking
120 private fun createRanking(key: String) = Ranking().apply { in createSbn()
/frameworks/base/core/java/android/service/notification/
DNotificationRankingUpdate.java52 public NotificationRankingUpdate(NotificationListenerService.Ranking[] rankings) { in NotificationRankingUpdate()
125 NotificationListenerService.Ranking ranking = mRankingMap.getRawRankingObject(key); in addSmartActionsFromBundleToRankingMap()
174 ArrayList<NotificationListenerService.Ranking> marshalableRankings = new ArrayList<>(); in writeToParcel()
183 NotificationListenerService.Ranking ranking = mRankingMap.getRawRankingObject(key); in writeToParcel()
195 NotificationListenerService.Ranking rankingCopy = in writeToParcel()
196 new NotificationListenerService.Ranking(); in writeToParcel()
206 new NotificationListenerService.Ranking[0] in writeToParcel()
DNotificationListenerService.java1689 public static class Ranking { class in NotificationListenerService
1777 public Ranking() { in Ranking() method in NotificationListenerService.Ranking
1818 public Ranking(Parcel in) { in Ranking() method in NotificationListenerService.Ranking
2184 public @NonNull Ranking withAudiblyAlertedInfo(@Nullable Ranking previous) {
2195 public void populate(Ranking other) { in populate()
2252 Ranking other = (Ranking) o; in equals()
2297 private ArrayMap<String, Ranking> mRankings = new ArrayMap<>();
2302 public RankingMap(Ranking[] rankings) { in RankingMap()
2318 final Ranking r = new Ranking(in); in RankingMap()
2380 public boolean getRanking(String key, Ranking outRanking) { in getRanking()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleEntry.java25 import android.service.notification.NotificationListenerService.Ranking;
39 private Ranking mRanking;
47 Ranking ranking, boolean isDismissable, boolean shouldSuppressNotificationDot, in BubbleEntry()
65 public Ranking getRanking() { in getRanking()
/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()
DNotificationListenerTest.java32 import android.service.notification.NotificationListenerService.Ranking;
68 private RankingMap mRanking = new RankingMap(new Ranking[0]);
/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.java24 import android.service.notification.NotificationListenerService.Ranking;
277 private Ranking requireRanking(RankingMap rankingMap, String key) { in requireRanking()
278 Ranking ranking = new Ranking(); in requireRanking()
287 Ranking ranking = new Ranking(); in applyRanking()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DAssistantFeedbackController.java19 import static android.service.notification.NotificationListenerService.Ranking;
116 Ranking ranking = entry.getRanking(); in getFeedbackStatus()
126 || ranking.getRankingAdjustment() == Ranking.RANKING_PROMOTED) { in getFeedbackStatus()
129 || ranking.getRankingAdjustment() == Ranking.RANKING_DEMOTED) { in getFeedbackStatus()
DConversationNotifications.kt24 import android.service.notification.NotificationListenerService.Ranking in <lambda>()
157 val ranking = Ranking() in updateNotificationRanking()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java26 import android.service.notification.NotificationListenerService.Ranking;
68 public RankingBuilder(Ranking ranking) { in RankingBuilder()
97 public Ranking build() { in build()
98 final Ranking ranking = new Ranking(); in build()
/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…
55 import android.service.notification.NotificationListenerService.Ranking;
148 Ranking ranking = new Ranking(); in testRanking()
220 Ranking[] rankings = new Ranking[mKeys.length]; in generateUpdate()
223 Ranking ranking = new Ranking(); in generateUpdate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationListener.java125 final List<Ranking> newRankings = new ArrayList<>(); in onListenerConnected()
129 final RankingMap completeMap = new RankingMap(newRankings.toArray(new Ranking[0])); in onListenerConnected()
273 private static Ranking getRankingOrTemporaryStandIn(RankingMap rankingMap, String key) { in getRankingOrTemporaryStandIn()
274 Ranking ranking = new Ranking(); in getRankingOrTemporaryStandIn()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DAssistantFeedbackControllerTest.java24 import static android.service.notification.NotificationListenerService.Ranking.RANKING_DEMOTED;
25 import static android.service.notification.NotificationListenerService.Ranking.RANKING_PROMOTED;
26 import static android.service.notification.NotificationListenerService.Ranking.RANKING_UNCHANGED;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/
DPeopleNotificationIdentifier.kt20 import android.service.notification.NotificationListenerService.Ranking
103 private val Ranking.personTypeInfo in upperBound() constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DNotificationMediaManagerTest.kt95 whenever(notifEntry.ranking).thenReturn(NotificationListenerService.Ranking()) in mediaDataRemoved_userInitiated_dismissNotif()
118 whenever(notifEntry.ranking).thenReturn(NotificationListenerService.Ranking()) in mediaDataRemoved_notUserInitiated_flagOff_dismissNotif()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java49 import android.service.notification.NotificationListenerService.Ranking;
104 private Ranking mRanking;
252 @NonNull Ranking ranking, in NotificationEntry()
304 public Ranking getRanking() { in getRanking()
312 public void setRanking(@NonNull Ranking ranking) { in setRanking()
DNotifCollection.java60 import android.service.notification.NotificationListenerService.Ranking;
508 Ranking ranking) { in postNotification()
630 Ranking ranking = new Ranking(); in applyRanking()
846 private static Ranking requireRanking(RankingMap rankingMap, String key) {
848 Ranking ranking = new Ranking();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coalescer/
DGroupCoalescerTest.java30 import android.service.notification.NotificationListenerService.Ranking;
303 Ranking ranking1b = new RankingBuilder() in testRankingsAreUpdated()
307 Ranking ranking2b = new RankingBuilder() in testRankingsAreUpdated()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryBuilder.java26 import android.service.notification.NotificationListenerService.Ranking;
115 final Ranking ranking = mRankingBuilder.setKey(sbn.getKey()).build(); in buildOrApply()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerWithScenesTest.kt33 import android.service.notification.NotificationListenerService.Ranking in <lambda>()
485 .setUserSentiment(Ranking.USER_SENTIMENT_NEGATIVE) in <lambda>()
518 .setUserSentiment(Ranking.USER_SENTIMENT_NEGATIVE) in <lambda>()
550 .setUserSentiment(Ranking.USER_SENTIMENT_NEGATIVE) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubbleDataTest.java141 NotificationListenerService.Ranking ranking = in setUp()
142 mock(NotificationListenerService.Ranking.class); in setUp()
1357 NotificationListenerService.Ranking ranking) { in createBubbleEntry()
1362 NotificationListenerService.Ranking ranking, LocusId locusId) { in createBubbleEntry()
1376 NotificationListenerService.Ranking ranking, long postTime, in createBubbleEntry()

123