/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ImportanceExtractorTest.java | 85 when(mConfig.getImportance(anyString(), anyInt())).thenReturn( in testAppPreferenceChannelNone() 91 int notificationImportance = r.getImportance(); in testAppPreferenceChannelNone() 95 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getImportance()); in testAppPreferenceChannelNone() 96 assertEquals(notificationImportance, r.getImportance()); in testAppPreferenceChannelNone() 104 when(mConfig.getImportance(anyString(), anyInt())).thenReturn( in testAppPreferenceChannelPreference() 113 assertEquals(r.getImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
D | NotificationRecordTest.java | 321 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_preUpgrade() 333 assertEquals(IMPORTANCE_LOW, record.getImportance()); in testImportance_locked_preUpgrade() 345 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_locked_unspecified_preUpgrade() 354 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance()); in testImportance_upgrade() 443 assertEquals(channel.getImportance(), in testLogMaker() 473 assertEquals(channel.getImportance(), in testLogMakerImportanceApp() 501 assertEquals(channel.getImportance(), in testLogMakerImportanceAsst() 527 assertEquals(channel.getImportance(), in testLogMakerImportanceSystem() 548 assertEquals(channel.getImportance(), in testLogMakerImportanceUser() 579 assertEquals(channel.getImportance(), in testLogMakerImportanceMulti() [all …]
|
D | NotificationListenerServiceTest.java | 107 assertEquals(getImportance(i), ranking.getImportance()); in testRanking() 173 tweak.getImportance(), in testRankingUpdate_equals() 250 getImportance(i), in generateUpdate() 288 private int getImportance(int index) { in getImportance() method in NotificationListenerServiceTest 297 return new NotificationChannel(key, key, getImportance(index)); in getChannel() 393 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
|
D | PreferencesHelperTest.java | 220 assertEquals(expected.getImportance(), actual.getImportance()); in compareChannels() 424 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG_O, UID_O)); in testChannelXmlForBackup() 615 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, updated.getImportance()); in testChannelXml_defaultChannelLegacyApp_noUserSettings() 635 … PKG_N_MR1, UID_N_MR1, NotificationChannel.DEFAULT_CHANNEL_ID, false).getImportance()); in testChannelXml_defaultChannelUpdatedApp_userSettings() 656 assertEquals(NotificationManager.IMPORTANCE_HIGH, updated1.getImportance()); in testChannelXml_upgradeCreateDefaultChannel() 813 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields() 839 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG_O, in testUpdate_postUpgrade_noUpdateAppFields() 876 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG_N_MR1, in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels() 1575 mHelper.getImportance(PKG_N_MR1, user0Uids[i]); in testOnUserRemoved() 1576 mHelper.getImportance(PKG_N_MR1, user1Uids[i]); in testOnUserRemoved() [all …]
|
D | NotificationManagerServiceTest.java | 430 when(mPreferencesHelper.getImportance(anyString(), anyInt())).thenReturn( in setUpPrefsForBubbles() 431 mTestNotificationChannel.getImportance()); in setUpPrefsForBubbles() 652 assertEquals(IMPORTANCE_DEFAULT, createdChannel.getImportance()); in testCreateNotificationChannels_SecondCreateDoesNotChangeImportance() 670 assertEquals(NotificationManager.IMPORTANCE_LOW, createdChannel.getImportance()); in testCreateNotificationChannels_SecondCreateAllowedToDowngradeImportance() 693 assertEquals(IMPORTANCE_HIGH, createdChannel.getImportance()); in testCreateNotificationChannels_CannotDowngradeImportanceIfAlreadyUpdated() 707 assertEquals(IMPORTANCE_DEFAULT, createdChannel.getImportance()); in testCreateNotificationChannels_IdenticalChannelsInListIgnoresSecond() 758 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 760 PKG, mContext.getUserId(), PKG, channel.getId()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService() 778 PKG, mContext.getUserId(), PKG, channel.getId()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() 789 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationComparator.java | 52 final int leftImportance = left.getImportance(); in compare() 53 final int rightImportance = right.getImportance(); in compare() 137 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized() 148 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing() 156 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople() 166 return mMessagingUtil.isImportantMessaging(record.sbn, record.getImportance()); in isImportantMessaging()
|
D | PreferencesHelper.java | 532 public int getImportance(String packageName, int uid) { in getImportance() method in PreferencesHelper 679 final int previousExistingImportance = existing.getImportance(); in createNotificationChannel() 681 channel.getImportance() < existing.getImportance()) { in createNotificationChannel() 682 existing.setImportance(channel.getImportance()); in createNotificationChannel() 695 || previousExistingImportance != existing.getImportance()) { in createNotificationChannel() 711 if (channel.getImportance() < IMPORTANCE_NONE in createNotificationChannel() 712 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) { in createNotificationChannel() 781 updatedChannel.setImportance(channel.getImportance()); in updateNotificationChannel() 786 && updatedChannel.getImportance() == IMPORTANCE_NONE) { in updateNotificationChannel() 787 updatedChannel.setImportance(channel.getImportance()); in updateNotificationChannel() [all …]
|
D | NotificationIntrusivenessExtractor.java | 51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
|
D | RankingConfig.java | 28 int getImportance(String packageName, int uid); in getImportance() method
|
D | RankingHelper.java | 144 && record.getImportance() > NotificationManager.IMPORTANCE_MIN in sort()
|
D | NotificationRecord.java | 336 int importance = getChannel().getImportance(); // Post-channels notifications use this in calculateInitialImportance() 432 proto.write(NotificationRecordProto.IMPORTANCE, getImportance()); in dump() 771 public int getImportance() { in getImportance() method in NotificationRecord
|
D | NotificationManagerService.java | 2007 if (channel.getImportance() == NotificationManager.IMPORTANCE_NONE) { 2043 if ((preUpdate.getImportance() == IMPORTANCE_NONE 2044 && update.getImportance() != IMPORTANCE_NONE) 2045 || (preUpdate.getImportance() != IMPORTANCE_NONE 2046 && update.getImportance() == IMPORTANCE_NONE)) { 2052 update.getImportance() == IMPORTANCE_NONE) 2492 boolean wasEnabled = mPreferencesHelper.getImportance(pkg, uid) 2566 return mPreferencesHelper.getImportance(pkg, uid) != IMPORTANCE_NONE; 2627 return mPreferencesHelper.getImportance(pkg, Binder.getCallingUid()); 4840 boolean appNotificationsOff = mPreferencesHelper.getImportance(pkg, notificationUid) [all …]
|
D | NotificationUsageStats.java | 476 finalImportance.increment(record.getImportance()); in countApiUse() 1323 final int after = r.getImportance(); in putNotificationDetails()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationData.java | 90 aImportance = mRankingA.getImportance(); 91 bImportance = mRankingB.getImportance(); 251 if (mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority() 290 && mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_LOW; in isImportantOngoing() 322 public int getImportance(String key) { in getImportance() method in NotificationData 325 return mTmpRanking.getImportance(); in getImportance() 466 + mTmpRanking.getImportance()); in dumpEntry()
|
D | NotificationEntry.java | 193 importance = ranking.getImportance(); in populateFromRanking()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | ChannelsTest.java | 93 assertEquals(NotificationManager.IMPORTANCE_NONE, newChannel.getImportance()); in testInheritFromLegacy_keepsUserLockedLegacySettings() 106 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance()); in testInheritFromLegacy_dropsUnlockedLegacySettings() 115 assertEquals(NotificationManager.IMPORTANCE_HIGH, newChannel.getImportance()); in testInheritFromLegacy_noLegacyExists()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInfoTest.java | 816 int originalImportance = mNotificationChannel.getImportance(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 837 assertEquals(originalImportance, mNotificationChannel.getImportance()); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 865 assertEquals(IMPORTANCE_UNSPECIFIED, mNotificationChannel.getImportance()); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified() 1023 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilentlyChangedCallsUpdateNotificationChannel_blockingHelper() 1054 assertEquals(IMPORTANCE_LOW, mNotificationChannel.getImportance()); in testKeepUpdatesNotificationChannel_blockingHelper() 1084 assertEquals(IMPORTANCE_DEFAULT, mNotificationChannel.getImportance()); in testNoActionsUpdatesNotificationChannel_blockingHelper() 1117 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel() 1150 assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance()); in testUnSilenceCallsUpdateNotificationChannel() 1184 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel_channelImportanceUnspecified() 1221 assertEquals(IMPORTANCE_MIN, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel_channelImportanceMin() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannel.java | 530 public int getImportance() { in getImportance() method in NotificationChannel 802 if (getImportance() != DEFAULT_IMPORTANCE) { in writeXml() 804 null, ATT_IMPORTANCE, Integer.toString(getImportance())); in writeXml() 873 if (getImportance() != DEFAULT_IMPORTANCE) { in toJson() 875 NotificationListenerService.Ranking.importanceToString(getImportance())); in toJson() 992 return getImportance() == that.getImportance() in equals() 1017 int result = Objects.hash(getId(), getName(), mDesc, getImportance(), mBypassDnd, in hashCode()
|
D | NotificationManager.java | 1057 public @Importance int getImportance() { in getImportance() method in NotificationManager
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 123 screenshotChannel.setImportance(legacySS.getImportance()); in createScreenshotChannel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInfo.java | 301 mStartingChannelImportance = mSingleNotificationChannel.getImportance(); in bindNotification()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 662 overrides.getInt(OVERRIDE_IMPORTANCE, outRanking.getImportance()), in getRanking()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | NotificationTestList.java | 535 "importance? " + mNM.getImportance(),
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 1649 public @NotificationManager.Importance int getImportance() { in getImportance() method in NotificationListenerService.Ranking
|
/frameworks/base/config/ |
D | boot-image-profile.txt | 1922 HSPLandroid/app/NotificationChannel;->getImportance()I 13236 HSPLandroid/service/notification/NotificationListenerService$Ranking;->getImportance()I 13254 HSPLandroid/service/notification/NotificationListenerService$RankingMap;->getImportance(Ljava/lang/… 13293 HSPLandroid/service/notification/NotificationRankingUpdate;->getImportance()[I
|