Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DImportanceExtractorTest.java85 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()
DNotificationRecordTest.java295 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_preUpgrade()
307 assertEquals(IMPORTANCE_LOW, record.getImportance()); in testImportance_locked_preUpgrade()
319 assertEquals(NotificationManager.IMPORTANCE_HIGH, record.getImportance()); in testImportance_locked_unspecified_preUpgrade()
328 assertEquals(NotificationManager.IMPORTANCE_DEFAULT, record.getImportance()); in testImportance_upgrade()
417 assertEquals(channel.getImportance(), in testLogMaker()
447 assertEquals(channel.getImportance(), in testLogMakerImportanceApp()
475 assertEquals(channel.getImportance(), in testLogMakerImportanceAsst()
501 assertEquals(channel.getImportance(), in testLogMakerImportanceSystem()
522 assertEquals(channel.getImportance(), in testLogMakerImportanceUser()
553 assertEquals(channel.getImportance(), in testLogMakerImportanceMulti()
[all …]
DNotificationListenerServiceTest.java107 assertEquals(getImportance(i), ranking.getImportance()); in testRanking()
172 tweak.getImportance(), in testRankingUpdate_equals()
248 getImportance(i), in generateUpdate()
285 private int getImportance(int index) { in getImportance() method in NotificationListenerServiceTest
294 return new NotificationChannel(key, key, getImportance(index)); in getChannel()
386 assertEquals(comment, a.getImportance(), b.getImportance()); in detailedAssertEquals()
DPreferencesHelperTest.java217 assertEquals(expected.getImportance(), actual.getImportance()); in compareChannels()
421 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG_O, UID_O)); in testChannelXmlForBackup()
612 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, updated.getImportance()); in testChannelXml_defaultChannelLegacyApp_noUserSettings()
632 … PKG_N_MR1, UID_N_MR1, NotificationChannel.DEFAULT_CHANNEL_ID, false).getImportance()); in testChannelXml_defaultChannelUpdatedApp_userSettings()
653 assertEquals(NotificationManager.IMPORTANCE_HIGH, updated1.getImportance()); in testChannelXml_upgradeCreateDefaultChannel()
810 assertEquals(IMPORTANCE_NONE, mHelper.getImportance(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
836 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG_O, in testUpdate_postUpgrade_noUpdateAppFields()
873 assertEquals(NotificationManager.IMPORTANCE_UNSPECIFIED, mHelper.getImportance(PKG_N_MR1, in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
1572 mHelper.getImportance(PKG_N_MR1, user0Uids[i]); in testOnUserRemoved()
1573 mHelper.getImportance(PKG_N_MR1, user1Uids[i]); in testOnUserRemoved()
[all …]
DNotificationManagerServiceTest.java428 when(mPreferencesHelper.getImportance(anyString(), anyInt())).thenReturn( in setUpPrefsForBubbles()
429 mTestNotificationChannel.getImportance()); in setUpPrefsForBubbles()
596 assertEquals(IMPORTANCE_DEFAULT, createdChannel.getImportance()); in testCreateNotificationChannels_SecondCreateDoesNotChangeImportance()
614 assertEquals(NotificationManager.IMPORTANCE_LOW, createdChannel.getImportance()); in testCreateNotificationChannels_SecondCreateAllowedToDowngradeImportance()
637 assertEquals(IMPORTANCE_HIGH, createdChannel.getImportance()); in testCreateNotificationChannels_CannotDowngradeImportanceIfAlreadyUpdated()
651 assertEquals(IMPORTANCE_DEFAULT, createdChannel.getImportance()); in testCreateNotificationChannels_IdenticalChannelsInListIgnoresSecond()
702 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
704 PKG, mContext.getUserId(), PKG, channel.getId()).getImportance()); in testEnqueuedBlockedNotifications_appBlockedChannelForegroundService()
722 PKG, mContext.getUserId(), PKG, channel.getId()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
733 mService.getNotificationRecord(sbn.getKey()).getImportance()); in testEnqueuedBlockedNotifications_userBlockedChannelForegroundService()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationComparator.java53 final int leftImportance = left.getImportance(); in compare()
54 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()
DPreferencesHelper.java520 public int getImportance(String packageName, int uid) { in getImportance() method in PreferencesHelper
667 final int previousExistingImportance = existing.getImportance(); in createNotificationChannel()
669 channel.getImportance() < existing.getImportance()) { in createNotificationChannel()
670 existing.setImportance(channel.getImportance()); in createNotificationChannel()
683 || previousExistingImportance != existing.getImportance()) { in createNotificationChannel()
695 if (channel.getImportance() < IMPORTANCE_NONE in createNotificationChannel()
696 || channel.getImportance() > NotificationManager.IMPORTANCE_MAX) { in createNotificationChannel()
765 updatedChannel.setImportance(channel.getImportance()); in updateNotificationChannel()
770 && updatedChannel.getImportance() == IMPORTANCE_NONE) { in updateNotificationChannel()
771 updatedChannel.setImportance(channel.getImportance()); in updateNotificationChannel()
[all …]
DNotificationIntrusivenessExtractor.java51 && record.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT) { in process()
DRankingConfig.java28 int getImportance(String packageName, int uid); in getImportance() method
DRankingHelper.java144 && record.getImportance() > NotificationManager.IMPORTANCE_MIN in sort()
DNotificationRecord.java339 int importance = getChannel().getImportance(); // Post-channels notifications use this in calculateInitialImportance()
435 proto.write(NotificationRecordProto.IMPORTANCE, getImportance()); in dump()
801 public int getImportance() { in getImportance() method in NotificationRecord
DNotificationManagerService.java1948 if (channel.getImportance() == NotificationManager.IMPORTANCE_NONE) {
1984 if ((preUpdate.getImportance() == IMPORTANCE_NONE
1985 && update.getImportance() != IMPORTANCE_NONE)
1986 || (preUpdate.getImportance() != IMPORTANCE_NONE
1987 && update.getImportance() == IMPORTANCE_NONE)) {
1993 update.getImportance() == IMPORTANCE_NONE)
2491 return mPreferencesHelper.getImportance(pkg, uid) != IMPORTANCE_NONE;
2552 return mPreferencesHelper.getImportance(pkg, Binder.getCallingUid());
4721 boolean appNotificationsOff = mPreferencesHelper.getImportance(pkg, notificationUid)
4742 && (r.getImportance() == IMPORTANCE_MIN
[all …]
DNotificationUsageStats.java464 finalImportance.increment(record.getImportance()); in countApiUse()
1294 final int after = r.getImportance(); in putNotificationDetails()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DNotificationData.java91 aImportance = mRankingA.getImportance();
92 bImportance = mRankingB.getImportance();
254 if (mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_DEFAULT in isHighPriority()
293 && mTmpRanking.getImportance() >= NotificationManager.IMPORTANCE_LOW; in isImportantOngoing()
325 public int getImportance(String key) { in getImportance() method in NotificationData
328 return mTmpRanking.getImportance(); in getImportance()
462 + mTmpRanking.getImportance()); in dumpEntry()
DNotificationEntry.java195 importance = ranking.getImportance(); in populateFromRanking()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DChannelsTest.java93 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/
DNotificationInfoTest.java816 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/
DNotificationChannel.java527 public int getImportance() { in getImportance() method in NotificationChannel
798 if (getImportance() != DEFAULT_IMPORTANCE) { in writeXml()
800 null, ATT_IMPORTANCE, Integer.toString(getImportance())); in writeXml()
869 if (getImportance() != DEFAULT_IMPORTANCE) { in toJson()
871 NotificationListenerService.Ranking.importanceToString(getImportance())); in toJson()
988 return getImportance() == that.getImportance() in equals()
1013 int result = Objects.hash(getId(), getName(), mDesc, getImportance(), mBypassDnd, in hashCode()
DNotificationManager.java1057 public @Importance int getImportance() { in getImportance() method in NotificationManager
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java123 screenshotChannel.setImportance(legacySS.getImportance()); in createScreenshotChannel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationDataTest.java598 overrides.getInt(OVERRIDE_IMPORTANCE, outRanking.getImportance()), in getRanking()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationInfo.java301 mStartingChannelImportance = mSingleNotificationChannel.getImportance(); in bindNotification()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java535 "importance? " + mNM.getImportance(),
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java1646 public @NotificationManager.Importance int getImportance() { in getImportance() method in NotificationListenerService.Ranking
/frameworks/base/config/
Dboot-image-profile.txt1922 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

12