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

/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.java49 if (record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) {
H A DRankingConfig.java28 int getImportance(String packageName, int uid); method in interface:RankingConfig
H A DRankingHelper.java423 || record.getImportance() > existingProxy.getImportance()) {
452 && record.getImportance() > NotificationManager.IMPORTANCE_MIN
494 public int getImportance(String packageName, int uid) { method in class:RankingHelper
573 if (channel.getImportance() < NotificationManager.IMPORTANCE_NONE
574 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) {
620 r.importance = updatedChannel.getImportance();
833 boolean wasEnabled = getImportance(packageName, uid) != NotificationManager.IMPORTANCE_NONE;
851 if (original.getImportance() != update.getImportance()) {
[all...]
H A DNotificationRecord.java279 int importance = getChannel().getImportance();
363 proto.write(NotificationRecordProto.IMPORTANCE, getImportance());
623 public int getImportance() { method in class:NotificationRecord
H A DNotificationManagerService.java1307 if (channel.getImportance() == NotificationManager.IMPORTANCE_NONE) {
1615 return mRankingHelper.getImportance(pkg, uid) != IMPORTANCE_NONE;
1621 return mRankingHelper.getImportance(pkg, Binder.getCallingUid());
3359 mRankingHelper.getImportance(pkg, callingUid) == NotificationManager.IMPORTANCE_NONE
3360 || r.getChannel().getImportance() == NotificationManager.IMPORTANCE_NONE;
3680 record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT;
3704 if (!record.isUpdate && record.getImportance() > IMPORTANCE_MIN) {
4859 importance.add(record.getImportance());
5017 final int importance = r.getImportance();
H A DNotificationUsageStats.java448 finalImportance.increment(record.getImportance());
1247 final int after = r.getImportance();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationInfoTest.java161 mNotificationChannel.getImportance(), mSbn, null, null, null,
174 mNotificationChannel.getImportance(), mSbn, null, null, null,
184 mNotificationChannel.getImportance(), mSbn, null, null, null,
203 mNotificationChannel.getImportance(), mSbn, null, null, null,
217 mNotificationChannel.getImportance(), mSbn, null, null, null,
227 mNotificationChannel.getImportance(), mSbn, null, null, null,
241 mNotificationChannel.getImportance(), mSbn, null, null, null,
252 mNotificationChannel.getImportance(), mSbn,
269 mNotificationChannel.getImportance(), mSbn, null, null, null, null, null);
279 mNotificationChannel.getImportance(), mSb
[all...]
/frameworks/base/services/tests/notification/src/com/android/server/notification/
H A DImportanceExtractorTest.java85 when(mConfig.getImportance(anyString(), anyInt())).thenReturn(
91 int notificationImportance = r.getImportance();
96 assertEquals(notificationImportance, r.getImportance());
104 when(mConfig.getImportance(anyString(), anyInt())).thenReturn(
H A DNotificationListenerServiceTest.java57 assertEquals(getImportance(i), ranking.getImportance());
86 importance[i] = getImportance(i);
116 private int getImportance(int index) { method in class:NotificationListenerServiceTest
125 return new NotificationChannel(key, key, getImportance(index));
H A DNotificationRecordTest.java304 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance());
316 assertEquals(NotificationManager.IMPORTANCE_LOW, record.getImportance());
328 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance());
337 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance());
423 assertEquals(channel.getImportance(),
H A DRankingHelperTest.java223 assertEquals(expected.getImportance(), actual.getImportance());
390 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(UPDATED_PKG, UID2));
469 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, updated.getImportance());
488 PKG, UID, NotificationChannel.DEFAULT_CHANNEL_ID, false).getImportance());
509 assertEquals(NotificationManager.IMPORTANCE_HIGH, updated1.getImportance());
657 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG, UID));
682 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG, UID));
1075 mHelper.getImportance(PKG, user0Uids[i]);
1076 mHelper.getImportance(PK
[all...]
H A DNotificationManagerServiceTest.java247 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, createdChannel.getImportance());
261 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, createdChannel.getImportance());
/frameworks/base/core/java/android/app/
H A DNotificationChannel.java343 * audio attributes. Notification channels with an {@link #getImportance() importance} of at
459 public int getImportance() { method in class:NotificationChannel
600 if (getImportance() != DEFAULT_IMPORTANCE) {
602 null, ATT_IMPORTANCE, Integer.toString(getImportance()));
661 if (getImportance() != DEFAULT_IMPORTANCE) {
663 NotificationListenerService.Ranking.importanceToString(getImportance()));
779 if (getImportance() != that.getImportance()) return false;
814 result = 31 * result + getImportance();
H A DNotificationManager.java728 public @Importance int getImportance() { method in class:NotificationManager
/frameworks/base/core/java/android/service/notification/
H A DNotificationRankingUpdate.java119 public int[] getImportance() { method in class:NotificationRankingUpdate
H A DNotificationListenerService.java1403 public @NotificationManager.Importance int getImportance() { method in class:NotificationListenerService.Ranking
1556 getImportance(key), getImportanceExplanation(key), getOverrideGroupKey(key),
1607 private int getImportance(String key) { method in class:NotificationListenerService.RankingMap
1712 int[] importance = mRankingUpdate.getImportance();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java283 aImportance = mRankingA.getImportance();
284 bImportance = mRankingB.getImportance();
402 public int getImportance(String key) { method in class:NotificationData
405 return mTmpRanking.getImportance();
568 mTmpRanking.getImportance());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarTest.java285 when(mNotificationData.getImportance(any())).thenReturn(IMPORTANCE_HIGH);
306 when(mNotificationData.getImportance(any())).thenReturn(IMPORTANCE_HIGH);
/frameworks/support/compat/java/android/support/v4/app/
H A DNotificationManagerCompat.java247 public int getImportance() { method in class:NotificationManagerCompat
249 return mNotificationManager.getImportance();
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
H A DNotificationTestList.java496 "importance? " + mNM.getImportance(),
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBar.java1578 } else if (mNotificationData.getImportance(key)
1605 mNotificationData.getImportance(key));
5952 row.getEntry().channel.getImportance(), sbn, onSettingsClick,
6333 mNotificationData.getImportance(sbn.getKey()));
6825 mNotificationData.getImportance(key));
6917 if (mNotificationData.getImportance(sbn.getKey()) < importanceLevel) {

Completed in 434 milliseconds