/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() 149 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantColorized() 156 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantOngoing() 169 if (record.getImportance() < NotificationManager.IMPORTANCE_LOW) { in isImportantPeople() 179 return mMessagingUtil.isImportantMessaging(record.getSbn(), record.getImportance()); in isImportantMessaging() 183 if (record.getImportance() < NotificationManager.IMPORTANCE_HIGH) { in isSystemMax()
|
D | NotificationChannelLogger.java | 236 return getLoggingImportance(channel, channel.getImportance()); in getLoggingImportance() 255 static int getImportance(@NonNull NotificationChannelGroup channelGroup) { in getImportance() method 256 return getImportance(channelGroup.isBlocked()); in getImportance() 262 static int getImportance(boolean isBlocked) { in getImportance() method
|
D | NotificationChannelLoggerImpl.java | 60 /* int old_importance*/ NotificationChannelLogger.getImportance(wasBlocked), in logNotificationChannelGroup() 61 /* int importance*/ NotificationChannelLogger.getImportance(channelGroup), in logNotificationChannelGroup()
|
D | NotificationRecordExtractorData.java | 92 || mImportance != r.getImportance() in hasDiffForRankingLocked() 113 || mImportance != r.getImportance() in hasDiffForLoggingLocked()
|
D | NotificationRecordLogger.java | 384 && (r.getImportance() == old.getImportance()) in shouldLogReported() 458 final int importance = r.getImportance(); in getLoggingImportance()
|
D | NotificationIntrusivenessExtractor.java | 51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
|
D | PreferencesHelper.java | 953 final int previousExistingImportance = existing.getImportance(); in createNotificationChannel() 957 channel.getImportance() < existing.getImportance()) { in createNotificationChannel() 958 existing.setImportance(channel.getImportance()); in createNotificationChannel() 971 || previousExistingImportance != existing.getImportance()) { in createNotificationChannel() 978 existing.setOriginalImportance(channel.getImportance()); in createNotificationChannel() 994 if (channel.getImportance() < IMPORTANCE_NONE in createNotificationChannel() 995 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) { in createNotificationChannel() 1022 channel.setOriginalImportance(channel.getImportance()); in createNotificationChannel() 1096 && !(channel.isBlockable() || channel.getImportance() == IMPORTANCE_NONE)) { in updateNotificationChannel() 1097 updatedChannel.setImportance(channel.getImportance()); in updateNotificationChannel() [all …]
|
D | RankingHelper.java | 146 && record.getImportance() > NotificationManager.IMPORTANCE_MIN in sort()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ImportanceExtractorTest.java | 89 int notificationImportance = r.getImportance(); in testAppPreferenceChannelNone() 93 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, r.getImportance()); in testAppPreferenceChannelNone() 94 assertEquals(notificationImportance, r.getImportance()); in testAppPreferenceChannelNone() 109 assertEquals(r.getImportance(), NotificationManager.IMPORTANCE_HIGH); in testAppPreferenceChannelPreference()
|
D | NotificationRecordTest.java | 383 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_preUpgrade() 395 assertEquals(IMPORTANCE_LOW, record.getImportance()); in testImportance_locked_preUpgrade() 407 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_locked_unspecified_preUpgrade() 416 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance()); in testImportance_upgrade() 505 assertEquals(channel.getImportance(), in testLogMaker() 535 assertEquals(channel.getImportance(), in testLogMakerImportanceApp() 563 assertEquals(channel.getImportance(), in testLogMakerImportanceAsst() 589 assertEquals(channel.getImportance(), in testLogMakerImportanceSystem() 610 assertEquals(channel.getImportance(), in testLogMakerImportanceUser() 641 assertEquals(channel.getImportance(), in testLogMakerImportanceMulti() [all …]
|
D | NotificationListenerServiceTest.java | 109 assertEquals(getImportance(i), ranking.getImportance()); in testRanking() 178 tweak.getImportance(), in testRankingUpdate_equals() 260 getImportance(i), in generateUpdate() 303 private int getImportance(int index) { in getImportance() method in NotificationListenerServiceTest 312 return new NotificationChannel(key, key, getImportance(index)); in getChannel() 435 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
|
D | NotificationRecordExtractorDataTest.java | 65 r.getImportance(), in testHasDiffs_noDiffs() 92 r.getImportance(), in testHasDiffs_proposedImportanceChange()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | AppOpsCoordinator.java | 121 && entry.getImportance() > IMPORTANCE_MIN; 126 return entry.getImportance() > IMPORTANCE_MIN
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceNotificationListener.java | 58 addNotification(entry, entry.getImportance()); in init() 63 updateNotification(entry, entry.getImportance()); in init()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | AssistantFeedbackController.java | 117 int oldImportance = ranking.getChannel().getImportance(); in getFeedbackStatus() 118 int newImportance = ranking.getImportance(); in getFeedbackStatus()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationConversationInfoTest.java | 727 assertEquals(IMPORTANCE_LOW, mConversationChannel.getImportance()); in testFavorite() 770 assertEquals(IMPORTANCE_LOW, mConversationChannel.getImportance()); in testDefault() 813 assertEquals(IMPORTANCE_DEFAULT, mConversationChannel.getImportance()); in testSilence() 851 assertEquals(IMPORTANCE_DEFAULT, captor.getValue().getImportance()); in testFavorite_andSave() 887 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testFavorite_andSave_doesNotLowerImportance() 925 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testFavorite_thenDefaultThenFavorite_andSave_nothingChanged() 1024 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testDefault_andSave() 1061 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testDefault_andSave_doesNotChangeNonImportantBubbling() 1095 assertEquals(IMPORTANCE_HIGH, captor.getValue().getImportance()); in testDefault_andSave_doesNotDemoteImportance() 1133 assertEquals(IMPORTANCE_LOW, captor.getValue().getImportance()); in testSilence_andSave() [all …]
|
D | NotificationInfoTest.java | 1026 int originalImportance = mNotificationChannel.getImportance(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 1049 assertEquals(originalImportance, mNotificationChannel.getImportance()); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 1086 assertEquals(IMPORTANCE_UNSPECIFIED, mNotificationChannel.getImportance()); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified() 1121 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel() 1163 assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance()); in testUnSilenceCallsUpdateNotificationChannel() 1197 assertEquals(IMPORTANCE_DEFAULT, mNotificationChannel.getImportance()); in testAutomaticUnlocksUserImportance() 1234 assertEquals(IMPORTANCE_LOW, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel_channelImportanceUnspecified() 1274 assertEquals(IMPORTANCE_MIN, updated.getValue().getImportance()); in testSilenceCallsUpdateNotificationChannel_channelImportanceMin() 1305 assertEquals(IMPORTANCE_DEFAULT, mNotificationChannel.getImportance()); in testSilence_closeGutsThenTryToSave() 1345 assertEquals(IMPORTANCE_DEFAULT, updated.getValue().getImportance()); in testAlertCallsUpdateNotificationChannel_channelImportanceMin() [all …]
|
/frameworks/base/core/java/android/app/ |
D | NotificationChannel.java | 684 public int getImportance() { in getImportance() method in NotificationChannel 1040 if (getImportance() != DEFAULT_IMPORTANCE) { in writeXml() 1041 out.attributeInt(null, ATT_IMPORTANCE, getImportance()); in writeXml() 1125 if (getImportance() != DEFAULT_IMPORTANCE) { in toJson() 1127 NotificationListenerService.Ranking.importanceToString(getImportance())); in toJson() 1234 return getImportance() == that.getImportance() in equals() 1264 int result = Objects.hash(getId(), getName(), mDesc, getImportance(), mBypassDnd, in hashCode()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | FeedbackInfo.java | 149 mRanking.getChannel().getImportance(), mRanking.getImportance(), in getPrompt()
|
D | NotificationConversationInfo.java | 512 if (mNotificationChannel.getImportance() <= IMPORTANCE_LOW in getPriority() 513 && mNotificationChannel.getImportance() > IMPORTANCE_UNSPECIFIED) { in getPriority() 650 if (mChannelToUpdate.getImportance() == IMPORTANCE_UNSPECIFIED in run() 651 || mChannelToUpdate.getImportance() >= IMPORTANCE_DEFAULT) { in run()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/ |
D | HighPriorityProvider.java | 76 return notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImpl.java | 262 if (entry.getImportance() < NotificationManager.IMPORTANCE_HIGH) { in getFullScreenIntentDecision() 445 if (entry.getImportance() < NotificationManager.IMPORTANCE_HIGH) { in shouldHeadsUpWhenAwake() 517 if (entry.getImportance() < NotificationManager.IMPORTANCE_DEFAULT) { in shouldHeadsUpWhenDozing()
|
D | HeadsUpViewBinder.java | 79 entry.getSbn(), entry.getImportance()); in bindHeadsUpView()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/ |
D | RankingBuilder.java | 73 mImportance = ranking.getImportance(); in RankingBuilder()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationEntry.java | 303 public int getImportance() { in getImportance() method in NotificationEntry 304 return mRanking.getImportance(); in getImportance()
|