/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationComparator.java | 89 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 D | ImportanceExtractor.java | 44 record.setUserImportance(record.getChannel().getImportance());
|
H A D | NotificationIntrusivenessExtractor.java | 49 if (record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) {
|
H A D | RankingConfig.java | 28 int getImportance(String packageName, int uid); method in interface:RankingConfig
|
H A D | RankingHelper.java | 423 || 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 D | NotificationRecord.java | 279 int importance = getChannel().getImportance(); 363 proto.write(NotificationRecordProto.IMPORTANCE, getImportance()); 623 public int getImportance() { method in class:NotificationRecord
|
H A D | NotificationManagerService.java | 1307 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 D | NotificationUsageStats.java | 448 finalImportance.increment(record.getImportance()); 1247 final int after = r.getImportance();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | NotificationInfoTest.java | 161 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 D | ImportanceExtractorTest.java | 85 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 D | NotificationListenerServiceTest.java | 57 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 D | NotificationRecordTest.java | 304 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 D | RankingHelperTest.java | 223 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 D | NotificationManagerServiceTest.java | 247 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, createdChannel.getImportance()); 261 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, createdChannel.getImportance());
|
/frameworks/base/core/java/android/app/ |
H A D | NotificationChannel.java | 343 * 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 D | NotificationManager.java | 728 public @Importance int getImportance() { method in class:NotificationManager
|
/frameworks/base/core/java/android/service/notification/ |
H A D | NotificationRankingUpdate.java | 119 public int[] getImportance() { method in class:NotificationRankingUpdate
|
H A D | NotificationListenerService.java | 1403 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 D | NotificationData.java | 283 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 D | StatusBarTest.java | 285 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 D | NotificationManagerCompat.java | 247 public int getImportance() { method in class:NotificationManagerCompat 249 return mNotificationManager.getImportance();
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | NotificationTestList.java | 496 "importance? " + mNM.getImportance(),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBar.java | 1578 } 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) {
|