Home
last modified time | relevance | path

Searched refs:canShowBadge (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBadgeExtractorTest.java92 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelNo()
97 assertFalse(r.canShowBadge()); in testAppYesChannelNo()
106 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelYes()
111 assertFalse(r.canShowBadge()); in testAppNoChannelYes()
120 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelYes()
125 assertTrue(r.canShowBadge()); in testAppYesChannelYes()
134 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelNo()
139 assertFalse(r.canShowBadge()); in testAppNoChannelNo()
148 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelYesUserNo()
153 assertFalse(r.canShowBadge()); in testAppYesChannelYesUserNo()
[all …]
DNotificationListenerServiceTest.java112 assertEquals(getShowBadge(i), ranking.canShowBadge()); in testRanking()
178 tweak.canShowBadge(), in testRankingUpdate_equals()
392 assertEquals(comment, a.canShowBadge(), b.canShowBadge()); in detailedAssertEquals()
DPreferencesHelperTest.java351 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXml()
422 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXmlForBackup()
788 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
806 assertFalse(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
819 assertTrue(mHelper.canShowBadge(PKG_O, UID_O)); in testUpdate_postUpgrade_noUpdateAppFields()
832 assertTrue(mHelper.canShowBadge(PKG_O, UID_O)); in testUpdate_postUpgrade_noUpdateAppFields()
846 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
869 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
907 assertEquals(channel.canShowBadge(), savedChannel.canShowBadge()); in testCreateChannel_CannotChangeHiddenFields()
938 assertEquals(channel.canShowBadge(), savedChannel.canShowBadge()); in testCreateChannel_CannotChangeHiddenFieldsAssistant()
[all …]
DNotificationManagerServiceTest.java508 r.setShowBadge(!r.canShowBadge()); in getSignalExtractorSideEffects()
/frameworks/base/services/core/java/com/android/server/notification/
DBadgeExtractor.java48 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); in process()
53 record.setShowBadge(record.getChannel().canShowBadge() && appCanShowBadge); in process()
DRankingConfig.java30 boolean canShowBadge(String packageName, int uid); in canShowBadge() method
DPreferencesHelper.java539 public boolean canShowBadge(String packageName, int uid) { in canShowBadge() method in PreferencesHelper
783 r.showBadge = updatedChannel.canShowBadge(); in updateNotificationChannel()
1413 if (original.canShowBadge() != update.canShowBadge()) { in lockFieldsForUpdateLocked()
DNotificationRecord.java1017 public boolean canShowBadge() { in canShowBadge() method in NotificationRecord
DNotificationManagerService.java2542 public boolean canShowBadge(String pkg, int uid) {
2544 return mPreferencesHelper.canShowBadge(pkg, uid);
6171 showBadges[i] = r.canShowBadge();
6189 || showBadges[i] != r.canShowBadge()
7263 record.canShowBadge(),
/frameworks/base/core/java/android/app/
DNotificationChannel.java597 public boolean canShowBadge() { in canShowBadge() method in NotificationChannel
838 if (canShowBadge()) { in writeXml()
839 out.attribute(null, ATT_SHOW_BADGE, Boolean.toString(canShowBadge())); in writeXml()
894 record.put(ATT_SHOW_BADGE, Boolean.toString(canShowBadge())); in toJson()
DINotificationManager.aidl59 boolean canShowBadge(String pkg, int uid); in canShowBadge() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationDataTest.java673 overrides.getBoolean(OVERRIDE_BADGE, outRanking.canShowBadge()), in getRanking()
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java1731 public boolean canShowBadge() { in canShowBadge() method in NotificationListenerService.Ranking
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/services/
Dart-profile9360 PLcom/android/server/notification/NotificationManagerService$10;->canShowBadge(Ljava/lang/String;I)Z
9763 HSPLcom/android/server/notification/PreferencesHelper;->canShowBadge(Ljava/lang/String;I)Z