Home
last modified time | relevance | path

Searched refs:getImportance (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java52 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()
DNotificationChannelLogger.java236 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
DNotificationChannelLoggerImpl.java60 /* int old_importance*/ NotificationChannelLogger.getImportance(wasBlocked), in logNotificationChannelGroup()
61 /* int importance*/ NotificationChannelLogger.getImportance(channelGroup), in logNotificationChannelGroup()
DNotificationRecordExtractorData.java92 || mImportance != r.getImportance() in hasDiffForRankingLocked()
113 || mImportance != r.getImportance() in hasDiffForLoggingLocked()
DNotificationRecordLogger.java384 && (r.getImportance() == old.getImportance()) in shouldLogReported()
458 final int importance = r.getImportance(); in getLoggingImportance()
DNotificationIntrusivenessExtractor.java51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
DPreferencesHelper.java953 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 …]
DRankingHelper.java146 && record.getImportance() > NotificationManager.IMPORTANCE_MIN in sort()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DImportanceExtractorTest.java89 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()
DNotificationRecordTest.java383 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 …]
DNotificationListenerServiceTest.java109 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()
DNotificationRecordExtractorDataTest.java65 r.getImportance(), in testHasDiffs_noDiffs()
92 r.getImportance(), in testHasDiffs_proposedImportanceChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DAppOpsCoordinator.java121 && entry.getImportance() > IMPORTANCE_MIN;
126 return entry.getImportance() > IMPORTANCE_MIN
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServiceNotificationListener.java58 addNotification(entry, entry.getImportance()); in init()
63 updateNotification(entry, entry.getImportance()); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DAssistantFeedbackController.java117 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/
DNotificationConversationInfoTest.java727 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 …]
DNotificationInfoTest.java1026 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/
DNotificationChannel.java684 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/
DFeedbackInfo.java149 mRanking.getChannel().getImportance(), mRanking.getImportance(), in getPrompt()
DNotificationConversationInfo.java512 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/
DHighPriorityProvider.java76 return notifEntry.getRanking().getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DNotificationInterruptStateProviderImpl.java262 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()
DHeadsUpViewBinder.java79 entry.getSbn(), entry.getImportance()); in bindHeadsUpView()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java73 mImportance = ranking.getImportance(); in RankingBuilder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntry.java303 public int getImportance() { in getImportance() method in NotificationEntry
304 return mRanking.getImportance(); in getImportance()

12