Home
last modified time | relevance | path

Searched refs:canShowBadge (Results 1 – 18 of 18) 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()
179 tweak.canShowBadge(), in testRankingUpdate_equals()
399 assertEquals(comment, a.canShowBadge(), b.canShowBadge()); in detailedAssertEquals()
DPreferencesHelperTest.java354 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXml()
425 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXmlForBackup()
791 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
809 assertFalse(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
822 assertTrue(mHelper.canShowBadge(PKG_O, UID_O)); in testUpdate_postUpgrade_noUpdateAppFields()
835 assertTrue(mHelper.canShowBadge(PKG_O, UID_O)); in testUpdate_postUpgrade_noUpdateAppFields()
849 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
872 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
910 assertEquals(channel.canShowBadge(), savedChannel.canShowBadge()); in testCreateChannel_CannotChangeHiddenFields()
941 assertEquals(channel.canShowBadge(), savedChannel.canShowBadge()); in testCreateChannel_CannotChangeHiddenFieldsAssistant()
[all …]
DNotificationManagerServiceTest.java518 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.java551 public boolean canShowBadge(String packageName, int uid) { in canShowBadge() method in PreferencesHelper
799 r.showBadge = updatedChannel.canShowBadge(); in updateNotificationChannel()
1429 if (original.canShowBadge() != update.canShowBadge()) { in lockFieldsForUpdateLocked()
DNotificationRecord.java987 public boolean canShowBadge() { in canShowBadge() method in NotificationRecord
DNotificationManagerService.java2631 public boolean canShowBadge(String pkg, int uid) {
2633 return mPreferencesHelper.canShowBadge(pkg, uid);
6431 showBadges[i] = r.canShowBadge();
6449 || showBadges[i] != r.canShowBadge()
7512 record.canShowBadge(),
/frameworks/base/core/java/android/app/
DNotificationChannel.java600 public boolean canShowBadge() { in canShowBadge() method in NotificationChannel
842 if (canShowBadge()) { in writeXml()
843 out.attribute(null, ATT_SHOW_BADGE, Boolean.toString(canShowBadge())); in writeXml()
898 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.java675 overrides.getBoolean(OVERRIDE_BADGE, outRanking.canShowBadge()), in getRanking()
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java1734 public boolean canShowBadge() { in canShowBadge() method in NotificationListenerService.Ranking
/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
/frameworks/base/non-updatable-api/
Dcurrent.txt5759 method public boolean canShowBadge();
41990 method public boolean canShowBadge();
/frameworks/base/api/
Dcurrent.txt5759 method public boolean canShowBadge();
42134 method public boolean canShowBadge();
/frameworks/base/config/
Dboot-image-profile.txt42427 HSPLandroid/service/notification/NotificationListenerService$Ranking;->canShowBadge()Z
Dhiddenapi-greylist-max-o.txt6425 Landroid/app/INotificationManager$Stub$Proxy;->canShowBadge(Ljava/lang/String;I)Z
6619 Landroid/app/INotificationManager;->canShowBadge(Ljava/lang/String;I)Z