Home
last modified time | relevance | path

Searched refs:canShowBadge (Results 1 – 23 of 23) 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 …]
DNotificationRecordExtractorDataTest.java45 r.canShowBadge(), in testHasDiffs_noDiffs()
73 r.canShowBadge(), in testHasDiffs_proposedImportanceChange()
107 r.canShowBadge(), in testHasDiffs_autoBundled()
142 r.canShowBadge(), in testHasDiffs_sensitiveContentChange()
DPreferencesHelperTest.java624 assertTrue(mXmlHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXml()
701 assertTrue(mXmlHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testChannelXmlForBackup()
783 assertTrue(mXmlHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testReadXml_oldXml_migrates()
862 assertTrue(mXmlHelper.canShowBadge("pkg1", 11)); in testReadXml_oldXml_backup_migratesWhenPkgInstalled()
915 assertTrue(mXmlHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testReadXml_newXml_noMigration_showPermissionNotification()
974 assertTrue(mXmlHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testReadXml_newXml_permissionNotificationOff()
1033 assertTrue(mXmlHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testReadXml_newXml_noMigration_noPermissionNotification()
1548 assertThat(channel.canShowBadge()).isTrue(); in testRestoreXml_delayedRestore()
1603 assertThat(channel.canShowBadge()).isTrue(); in testRestoreXml_delayedRestore_afterReboot()
2061 assertTrue(mHelper.canShowBadge(PKG_N_MR1, UID_N_MR1)); in testUpdate_preUpgrade_updatesAppFields()
[all …]
DNotificationListenerServiceTest.java159 assertEquals(getShowBadge(i), ranking.canShowBadge()); in testRanking()
DNotificationManagerServiceTest.java1199 r.setShowBadge(!r.canShowBadge()); in getSignalExtractorSideEffects()
11136 original.setShowBadge(!original.canShowBadge());
11158 assertEquals(original.canShowBadge(), friendChannel.canShowBadge());
/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.java28 boolean canShowBadge(String packageName, int uid); in canShowBadge() method
DNotificationRecordExtractorData.java83 || mShowBadge != r.canShowBadge() in hasDiffForRankingLocked()
DPreferencesHelper.java770 public boolean canShowBadge(String packageName, int uid) { in canShowBadge() method in PreferencesHelper
1168 r.showBadge = updatedChannel.canShowBadge(); in updateNotificationChannel()
1282 && oldParent.canShowBadge() != updatedParent.canShowBadge()) { in maybeUpdateChildConversationChannel()
1283 conversation.setShowBadge(updatedParent.canShowBadge()); in maybeUpdateChildConversationChannel()
2038 if (original.canShowBadge() != update.canShowBadge()) { in lockFieldsForUpdateLocked()
DNotificationRecord.java1189 public boolean canShowBadge() { in canShowBadge() method in NotificationRecord
DNotificationManagerService.java3987 public boolean canShowBadge(String pkg, int uid) {
3989 return mPreferencesHelper.canShowBadge(pkg, uid);
9404 r.canShowBadge(),
10643 record.canShowBadge(),
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DRankingBuilder.java80 mCanShowBadge = ranking.canShowBadge(); in RankingBuilder()
175 public RankingBuilder setCanShowBadge(boolean canShowBadge) { in setCanShowBadge() argument
176 mCanShowBadge = canShowBadge; in setCanShowBadge()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryBuilder.java300 public NotificationEntryBuilder setCanShowBadge(boolean canShowBadge) { in setCanShowBadge() argument
301 mRankingBuilder.setCanShowBadge(canShowBadge); in setCanShowBadge()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DNotificationRankingUpdateTest.java382 Assert.assertEquals(comment, a.canShowBadge(), b.canShowBadge()); in detailedAssertEquals()
539 tweak.canShowBadge(), in testRankingUpdate_equals_legacy()
/frameworks/base/core/java/android/app/
DNotificationChannel.java926 public boolean canShowBadge() { in canShowBadge() method in NotificationChannel
1342 if (canShowBadge()) { in writeXml()
1343 out.attributeBoolean(null, ATT_SHOW_BADGE, canShowBadge()); in writeXml()
1419 record.put(ATT_SHOW_BADGE, Boolean.toString(canShowBadge())); in toJson()
DINotificationManager.aidl66 boolean canShowBadge(String pkg, int uid); in canShowBadge() method
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java2057 public boolean canShowBadge() { in canShowBadge() method in NotificationListenerService.Ranking
/frameworks/base/config/
Dboot-profile.txt645 Landroid/app/NotificationChannel;->canShowBadge()Z
Dboot-image-profile.txt2308 HSPLandroid/app/NotificationChannel;->canShowBadge()Z
/frameworks/base/services/
Dart-wear-profile16235 HPLcom/android/server/notification/NotificationRecord;->canShowBadge()Z
16376 PLcom/android/server/notification/PreferencesHelper;->canShowBadge(Ljava/lang/String;I)Z
/frameworks/base/core/api/
Dcurrent.txt6933 method public boolean canShowBadge();
41238 method public boolean canShowBadge();
/frameworks/base/boot/
Dboot-image-profile.txt2308 HSPLandroid/app/NotificationChannel;->canShowBadge()Z
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt6422 Landroid/app/INotificationManager$Stub$Proxy;->canShowBadge(Ljava/lang/String;I)Z
6616 Landroid/app/INotificationManager;->canShowBadge(Ljava/lang/String;I)Z