Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DBadgeExtractorTest.java152 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelNo()
157 assertFalse(r.canShowBadge()); in testAppYesChannelNo()
166 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelYes()
171 assertFalse(r.canShowBadge()); in testAppNoChannelYes()
180 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelYes()
185 assertTrue(r.canShowBadge()); in testAppYesChannelYes()
194 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelNo()
199 assertFalse(r.canShowBadge()); in testAppNoChannelNo()
208 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelYesUserNo()
213 assertFalse(r.canShowBadge()); in testAppYesChannelYesUserNo()
[all …]
DNotificationListenerServiceTest.java114 assertEquals(getShowBadge(i), ranking.canShowBadge()); in testRanking()
183 tweak.canShowBadge(), in testRankingUpdate_equals()
428 assertEquals(comment, a.canShowBadge(), b.canShowBadge()); in detailedAssertEquals()
DPreferencesHelperTest.java417 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXml()
491 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXmlForBackup()
863 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
881 assertFalse(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
894 assertTrue(mHelper.canShowBadge(PKG_O, UID_O)); in testUpdate_postUpgrade_noUpdateAppFields()
907 assertTrue(mHelper.canShowBadge(PKG_O, UID_O)); in testUpdate_postUpgrade_noUpdateAppFields()
921 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
944 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_noUpdateAppFieldsWithMultipleChannels()
982 assertEquals(channel.canShowBadge(), savedChannel.canShowBadge()); in testCreateChannel_CannotChangeHiddenFields()
1013 assertEquals(channel.canShowBadge(), savedChannel.canShowBadge()); in testCreateChannel_CannotChangeHiddenFieldsAssistant()
[all …]
DNotificationManagerServiceTest.java678 r.setShowBadge(!r.canShowBadge()); in getSignalExtractorSideEffects()
6494 original.setShowBadge(!original.canShowBadge()); in createConversationNotificationChannel()
6516 assertEquals(original.canShowBadge(), friendChannel.canShowBadge()); in createConversationNotificationChannel()
/frameworks/base/services/core/java/com/android/server/notification/
DBadgeExtractor.java49 mConfig.canShowBadge(record.getSbn().getPackageName(), record.getSbn().getUid()); in process()
54 record.setShowBadge(record.getChannel().canShowBadge() && appCanShowBadge); in process()
DRankingConfig.java30 boolean canShowBadge(String packageName, int uid); in canShowBadge() method
DPreferencesHelper.java644 public boolean canShowBadge(String packageName, int uid) { in canShowBadge() method in PreferencesHelper
985 r.showBadge = updatedChannel.canShowBadge(); in updateNotificationChannel()
1785 if (original.canShowBadge() != update.canShowBadge()) { in lockFieldsForUpdateLocked()
DNotificationRecord.java1045 public boolean canShowBadge() { in canShowBadge() method in NotificationRecord
DNotificationManagerService.java3175 public boolean canShowBadge(String pkg, int uid) {
3177 return mPreferencesHelper.canShowBadge(pkg, uid);
7345 showBadges[i] = r.canShowBadge();
7364 || showBadges[i] != r.canShowBadge()
8528 record.canShowBadge(),
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DRankingBuilder.java75 mCanShowBadge = ranking.canShowBadge(); in RankingBuilder()
164 public RankingBuilder setCanShowBadge(boolean canShowBadge) { in setCanShowBadge() argument
165 mCanShowBadge = canShowBadge; in setCanShowBadge()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryBuilder.java231 public NotificationEntryBuilder setCanShowBadge(boolean canShowBadge) { in setCanShowBadge() argument
232 mRankingBuilder.setCanShowBadge(canShowBadge); in setCanShowBadge()
/frameworks/base/core/java/android/app/
DNotificationChannel.java703 public boolean canShowBadge() { in canShowBadge() method in NotificationChannel
1013 if (canShowBadge()) { in writeXml()
1014 out.attribute(null, ATT_SHOW_BADGE, Boolean.toString(canShowBadge())); in writeXml()
1084 record.put(ATT_SHOW_BADGE, Boolean.toString(canShowBadge())); in toJson()
DINotificationManager.aidl60 boolean canShowBadge(String pkg, int uid); in canShowBadge() method
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java1795 public boolean canShowBadge() { in canShowBadge() method in NotificationListenerService.Ranking
/frameworks/base/config/
Dboot-profile.txt645 Landroid/app/NotificationChannel;->canShowBadge()Z
Dboot-image-profile.txt2736 HSPLandroid/app/NotificationChannel;->canShowBadge()Z
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/frameworks/base/services/
Dart-profile21281 PLcom/android/server/notification/NotificationManagerService$10;->canShowBadge(Ljava/lang/String;I)Z
21868 HSPLcom/android/server/notification/NotificationRecord;->canShowBadge()Z
22109 HSPLcom/android/server/notification/PreferencesHelper;->canShowBadge(Ljava/lang/String;I)Z
/frameworks/base/api/
Dcurrent.txt5935 method public boolean canShowBadge();
43865 method public boolean canShowBadge();