/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 | 343 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_preUpgrade() 355 assertEquals(IMPORTANCE_LOW, record.getImportance()); in testImportance_locked_preUpgrade() 367 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_locked_unspecified_preUpgrade() 376 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance()); in testImportance_upgrade() 465 assertEquals(channel.getImportance(), in testLogMaker() 495 assertEquals(channel.getImportance(), in testLogMakerImportanceApp() 523 assertEquals(channel.getImportance(), in testLogMakerImportanceAsst() 549 assertEquals(channel.getImportance(), in testLogMakerImportanceSystem() 570 assertEquals(channel.getImportance(), in testLogMakerImportanceUser() 601 assertEquals(channel.getImportance(), in testLogMakerImportanceMulti() [all …]
|
D | NotificationListenerServiceTest.java | 109 assertEquals(getImportance(i), ranking.getImportance()); in testRanking() 177 tweak.getImportance(), in testRankingUpdate_equals() 257 getImportance(i), in generateUpdate() 298 private int getImportance(int index) { in getImportance() method in NotificationListenerServiceTest 307 return new NotificationChannel(key, key, getImportance(index)); in getChannel() 422 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
|
D | PreferencesHelperTest.java | 260 assertEquals(expected.getImportance(), actual.getImportance()); in compareChannels() 279 assertEquals(parent.getImportance(), actual.getImportance()); in compareChannelsParentChild() 490 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG_O, UID_O)); in testChannelXmlForBackup() 687 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, updated.getImportance()); in testChannelXml_defaultChannelLegacyApp_noUserSettings() 707 … PKG_N_MR1, UID_N_MR1, NotificationChannel.DEFAULT_CHANNEL_ID, false).getImportance()); in testChannelXml_defaultChannelUpdatedApp_userSettings() 728 assertEquals(NotificationManager.IMPORTANCE_HIGH, updated1.getImportance()); in testChannelXml_upgradeCreateDefaultChannel() 885 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields() 911 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG_O, in testUpdate_postUpgrade_noUpdateAppFields() 948 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG_N_MR1, in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels() 1680 mHelper.getImportance(PKG_N_MR1, user0Uids[i]); in testOnUserRemoved() [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() 143 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized() 154 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing() 162 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople() 172 return mMessagingUtil.isImportantMessaging(record.getSbn(), record.getImportance()); in isImportantMessaging()
|
D | NotificationChannelLogger.java | 229 return getLoggingImportance(channel, channel.getImportance()); in getLoggingImportance() 248 static int getImportance(@NonNull NotificationChannelGroup channelGroup) { in getImportance() method 249 return getImportance(channelGroup.isBlocked()); in getImportance() 255 static int getImportance(boolean isBlocked) { in getImportance() method
|
D | NotificationChannelLoggerImpl.java | 55 /* int old_importance*/ NotificationChannelLogger.getImportance(wasBlocked), in logNotificationChannelGroup() 56 /* int importance*/ NotificationChannelLogger.getImportance(channelGroup)); in logNotificationChannelGroup()
|
D | PreferencesHelper.java | 625 public int getImportance(String packageName, int uid) { in getImportance() method in PreferencesHelper 843 final int previousExistingImportance = existing.getImportance(); in createNotificationChannel() 847 channel.getImportance() < existing.getImportance()) { in createNotificationChannel() 848 existing.setImportance(channel.getImportance()); in createNotificationChannel() 861 || previousExistingImportance != existing.getImportance()) { in createNotificationChannel() 868 existing.setOriginalImportance(channel.getImportance()); in createNotificationChannel() 886 if (channel.getImportance() < IMPORTANCE_NONE in createNotificationChannel() 887 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) { in createNotificationChannel() 916 channel.setOriginalImportance(channel.getImportance()); in createNotificationChannel() 967 updatedChannel.setImportance(channel.getImportance()); in updateNotificationChannel() [all …]
|
D | NotificationRecordLogger.java | 351 && (r.getImportance() == old.getImportance()) in shouldLogReported() 424 final int importance = r.getImportance(); in getLoggingImportance()
|
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceNotificationListener.java | 65 addNotification(entry, entry.getImportance()); in ForegroundServiceNotificationListener() 70 updateNotification(entry, entry.getImportance()); in ForegroundServiceNotificationListener() 87 addNotification(entry, entry.getImportance()); in ForegroundServiceNotificationListener() 92 updateNotification(entry, entry.getImportance()); in ForegroundServiceNotificationListener()
|
/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/services/core/java/com/android/server/location/ |
D | AppForegroundHelper.java | 109 return isForeground(getImportance(uid)); in isAppForeground() 119 public int getImportance(int uid) { in getImportance() method in AppForegroundHelper
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/ |
D | HighPriorityProvider.java | 77 return notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority() 116 && entry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_LOW; in isImportantOngoing()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationConversationInfoTest.java | 633 assertEquals(IMPORTANCE_LOW, mConversationChannel.getImportance()); in testFavorite() 676 assertEquals(IMPORTANCE_LOW, mConversationChannel.getImportance()); in testDefault() 719 assertEquals(IMPORTANCE_DEFAULT, mConversationChannel.getImportance()); in testSilence() 757 assertEquals(IMPORTANCE_DEFAULT, captor.getValue().getImportance()); in testFavorite_andSave() 792 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testFavorite_andSave_doesNotLowerImportance() 830 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testFavorite_thenDefaultThenFavorite_andSave_nothingChanged() 867 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testDefault_andSave() 903 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testDefault_andSave_doesNotChangeNonImportantBubbling() 937 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testDefault_andSave_doesNotDemoteImportance() 975 assertEquals(IMPORTANCE_LOW, captor.getValue().getImportance()); in testSilence_andSave()
|
D | NotificationInfoTest.java | 760 int originalImportance = mNotificationChannel.getImportance(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 781 assertEquals(originalImportance, mNotificationChannel.getImportance()); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 816 assertEquals(IMPORTANCE_UNSPECIFIED, mNotificationChannel.getImportance()); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified() 849 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel() 888 assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance()); in testUnSilenceCallsUpdateNotificationChannel() 922 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel_channelImportanceUnspecified() 959 assertEquals(IMPORTANCE_MIN, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel_channelImportanceMin() 996 assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance()); in testAlertCallsUpdateNotificationChannel_channelImportanceMin() 1086 assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance()); in testUnSilenceCallsUpdateNotificationChannel_channelImportanceUnspecified()
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannel.java | 621 public int getImportance() { in getImportance() method in NotificationChannel 973 if (getImportance() != DEFAULT_IMPORTANCE) { in writeXml() 975 null, ATT_IMPORTANCE, Integer.toString(getImportance())); in writeXml() 1059 if (getImportance() != DEFAULT_IMPORTANCE) { in toJson() 1061 NotificationListenerService.Ranking.importanceToString(getImportance())); in toJson() 1179 return getImportance() == that.getImportance() in equals() 1209 int result = Objects.hash(getId(), getName(), mDesc, getImportance(), mBypassDnd, in hashCode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationConversationInfo.java | 499 if (mNotificationChannel.getImportance() <= IMPORTANCE_LOW in getSelectedAction() 500 && mNotificationChannel.getImportance() > IMPORTANCE_UNSPECIFIED) { in getSelectedAction() 649 if (mChannelToUpdate.getImportance() == IMPORTANCE_UNSPECIFIED in run() 650 || mChannelToUpdate.getImportance() >= IMPORTANCE_DEFAULT) { in run()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/inflation/ |
D | NotificationRowBinderImpl.java | 199 if (oldImportance != null && entry.getImportance() != oldImportance) { in onNotificationRankingUpdated() 230 mMessagingUtil.isImportantMessaging(entry.getSbn(), entry.getImportance()); in inflateContentViews()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImpl.java | 224 if (entry.getImportance() < NotificationManager.IMPORTANCE_HIGH) { in shouldHeadsUpWhenAwake() 296 if (entry.getImportance() < NotificationManager.IMPORTANCE_DEFAULT) { in shouldHeadsUpWhenDozing()
|
D | HeadsUpViewBinder.java | 78 entry.getSbn(), entry.getImportance()); in bindHeadsUpView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | NotificationChannels.java | 127 screenshotChannel.setImportance(legacySS.getImportance()); in createScreenshotChannel()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | RankingBuilder.java | 69 mImportance = ranking.getImportance(); in RankingBuilder()
|