Searched refs:getImportance (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/notification/
H A DNotificationComparator.java89 final int leftImportance = left.getImportance();
90 final int rightImportance = right.getImportance();
121 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) {
132 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) {
140 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) {
150 return mMessagingUtil.isImportantMessaging(record.sbn, record.getImportance());
H A DImportanceExtractor.java44 record.setUserImportance(record.getChannel().getImportance());
H A DNotificationIntrusivenessExtractor.java51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) {
H A DRankingConfig.java28 int getImportance(String packageName, int uid); method in interface:RankingConfig
H A DRankingHelper.java506 && record.getImportance() > NotificationManager.IMPORTANCE_MIN
528 public int getImportance(String packageName, int uid) { method in class:RankingHelper
639 channel.getImportance() < existing.getImportance()) {
640 existing.setImportance(channel.getImportance());
657 if (channel.getImportance() < IMPORTANCE_NONE
658 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) {
717 r.importance = updatedChannel.getImportance();
959 if (!nc.isDeleted() && IMPORTANCE_NONE == nc.getImportance()) {
1030 boolean wasEnabled = getImportance(packageNam
[all...]
H A DNotificationRecord.java315 int importance = getChannel().getImportance();
404 proto.write(NotificationRecordProto.IMPORTANCE, getImportance());
716 public int getImportance() { method in class:NotificationRecord
H A DNotificationManagerService.java1657 if (channel.getImportance() == NotificationManager.IMPORTANCE_NONE) {
1693 if ((preUpdate.getImportance() == IMPORTANCE_NONE
1694 && update.getImportance() != IMPORTANCE_NONE)
1695 || (preUpdate.getImportance() != IMPORTANCE_NONE
1696 && update.getImportance() == IMPORTANCE_NONE)) {
1702 update.getImportance() == IMPORTANCE_NONE)
2172 return mRankingHelper.getImportance(pkg, uid) != IMPORTANCE_NONE;
2178 return mRankingHelper.getImportance(pkg, Binder.getCallingUid());
4043 boolean appNotificationsOff = mRankingHelper.getImportance(pkg, notificationUid)
4064 && (r.getImportance()
[all...]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DImportanceExtractorTest.java86 when(mConfig.getImportance(anyString(), anyInt())).thenReturn(
92 int notificationImportance = r.getImportance();
97 assertEquals(notificationImportance, r.getImportance());
105 when(mConfig.getImportance(anyString(), anyInt())).thenReturn(
H A DNotificationListenerServiceTest.java86 assertEquals(getImportance(i), ranking.getImportance());
119 importance[i] = getImportance(i);
151 private int getImportance(int index) { method in class:NotificationListenerServiceTest
160 return new NotificationChannel(key, key, getImportance(index));
H A DRankingHelperTest.java276 assertEquals(expected.getImportance(), actual.getImportance());
463 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(UPDATED_PKG, UID2));
645 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, updated.getImportance());
664 PKG, UID, NotificationChannel.DEFAULT_CHANNEL_ID, false).getImportance());
685 assertEquals(NotificationManager.IMPORTANCE_HIGH, updated1.getImportance());
840 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG, UID));
866 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG, UID));
1369 mHelper.getImportance(PKG, user0Uids[i]);
1370 mHelper.getImportance(PK
[all...]
H A DNotificationRecordTest.java303 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance());
315 assertEquals(NotificationManager.IMPORTANCE_LOW, record.getImportance());
327 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance());
336 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance());
422 assertEquals(channel.getImportance(),
H A DNotificationManagerServiceTest.java438 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, createdChannel.getImportance());
456 assertEquals(NotificationManager.IMPORTANCE_LOW, createdChannel.getImportance());
479 assertEquals(IMPORTANCE_HIGH, createdChannel.getImportance());
493 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, createdChannel.getImportance());
543 mService.getNotificationRecord(sbn.getKey()).getImportance());
545 mBinderService.getNotificationChannel(PKG, channel.getId()).getImportance());
563 mBinderService.getNotificationChannel(PKG, channel.getId()).getImportance());
574 mService.getNotificationRecord(sbn.getKey()).getImportance());
576 mBinderService.getNotificationChannel(PKG, channel.getId()).getImportance());
585 mBinderService.getNotificationChannel(PKG, channel.getId()).getImportance());
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A DChannelsTest.java96 assertEquals(NotificationManager.IMPORTANCE_NONE, newChannel.getImportance());
109 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance());
118 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance());
/frameworks/base/core/java/android/app/
H A DNotificationChannel.java367 * audio attributes. Notification channels with an {@link #getImportance() importance} of at
488 public int getImportance() { method in class:NotificationChannel
709 if (getImportance() != DEFAULT_IMPORTANCE) {
711 null, ATT_IMPORTANCE, Integer.toString(getImportance()));
774 if (getImportance() != DEFAULT_IMPORTANCE) {
776 NotificationListenerService.Ranking.importanceToString(getImportance()));
893 if (getImportance() != that.getImportance()) return false;
928 result = 31 * result + getImportance();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationInfoTest.java418 int originalImportance = mNotificationChannel.getImportance();
426 assertEquals(originalImportance, mNotificationChannel.getImportance());
441 assertEquals(IMPORTANCE_UNSPECIFIED, mNotificationChannel.getImportance());
631 assertEquals(IMPORTANCE_NONE, updated.getValue().getImportance());
662 assertEquals(IMPORTANCE_NONE, updated.getValue().getImportance());
697 assertEquals(IMPORTANCE_MIN, updated.getValue().getImportance());
714 assertEquals(IMPORTANCE_LOW, mNotificationChannel.getImportance());
735 assertEquals(IMPORTANCE_LOW, mNotificationChannel.getImportance());
756 assertEquals(IMPORTANCE_LOW, mNotificationChannel.getImportance());
H A DNotificationDataTest.java402 outRanking.getImportance(), outRanking.getImportanceExplanation(),
409 outRanking.getImportance(), outRanking.getImportanceExplanation(),
416 outRanking.getImportance(), outRanking.getImportanceExplanation(),
/frameworks/base/core/java/android/service/notification/
H A DNotificationRankingUpdate.java127 public int[] getImportance() { method in class:NotificationRankingUpdate
H A DNotificationListenerService.java1494 public @NotificationManager.Importance int getImportance() { method in class:NotificationListenerService.Ranking
1677 getImportance(key), getImportanceExplanation(key), getOverrideGroupKey(key),
1728 private int getImportance(String key) { method in class:NotificationListenerService.RankingMap
1854 int[] importance = mRankingUpdate.getImportance();
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DNotificationChannels.java124 screenshotChannel.setImportance(legacySS.getImportance());
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java376 aImportance = mRankingA.getImportance();
377 bImportance = mRankingB.getImportance();
582 public int getImportance(String key) { method in class:NotificationData
585 return mTmpRanking.getImportance();
800 mTmpRanking.getImportance());
H A DNotificationEntryManager.java724 mNotificationData.getImportance(sbn.getKey()));
769 } else if (mNotificationData.getImportance(key)
796 mNotificationData.getImportance(key));
869 mNotificationData.getImportance(key));
961 if (mNotificationData.getImportance(sbn.getKey()) < importanceLevel) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarTest.java373 when(mNotificationData.getImportance(any())).thenReturn(IMPORTANCE_HIGH);
394 when(mNotificationData.getImportance(any())).thenReturn(IMPORTANCE_HIGH);
414 when(mNotificationData.getImportance(any())).thenReturn(IMPORTANCE_HIGH);
432 when(mNotificationData.getImportance(any())).thenReturn(IMPORTANCE_HIGH);
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/
H A DAssistantTest.java139 when(mockRanking.getImportance()).thenReturn(channel.getImportance());
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DNotificationManagerCompat.java250 public int getImportance() { method in class:NotificationManagerCompat
252 return mNotificationManager.getImportance();
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
H A DAssistant.java203 if (ranking.getImportance() > IMPORTANCE_MIN && ci.shouldTriggerBlock()) {

Completed in 1089 milliseconds

12