Home
last modified time | relevance | path

Searched refs:showBadge (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DRankingHelper.java199 r.showBadge = XmlUtils.readBooleanAttribute( in readXml()
269 int visibility, boolean showBadge) { in getOrCreateRecord() argument
281 r.showBadge = showBadge; in getOrCreateRecord()
372 || r.showBadge != DEFAULT_SHOW_BADGE || r.channels.size() > 0 in writeXml()
386 out.attribute(null, ATT_SHOW_BADGE, Boolean.toString(r.showBadge)); in writeXml()
495 return getOrCreateRecord(packageName, uid).showBadge; in canShowBadge()
499 public void setShowBadge(String packageName, int uid, boolean showBadge) { in setShowBadge() argument
500 getOrCreateRecord(packageName, uid).showBadge = showBadge; in setShowBadge()
587 if (!r.showBadge) { in createNotificationChannel()
629 r.showBadge = updatedChannel.canShowBadge(); in updateNotificationChannel()
[all …]
DRankingConfig.java29 void setShowBadge(String packageName, int uid, boolean showBadge); in setShowBadge() argument
DNotificationRecord.java846 public void setShowBadge(boolean showBadge) { in setShowBadge() argument
847 mShowBadge = showBadge; in setShowBadge()
DNotificationManagerService.java1797 public void setShowBadge(String pkg, int uid, boolean showBadge) {
1799 mRankingHelper.setShowBadge(pkg, uid, showBadge);
5257 Bundle showBadge = new Bundle();
5282 showBadge.putBoolean(key, record.canShowBadge());
5293 channels, overridePeople, snoozeCriteria, showBadge);
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationListenerServiceTest.java75 Bundle showBadge = new Bundle(); in generateUpdate() local
91 showBadge.putBoolean(key, getShowBadge(i)); in generateUpdate()
96 channels, overridePeople, snoozeCriteria, showBadge); in generateUpdate()
DBadgeExtractorTest.java61 private NotificationRecord getNotificationRecord(boolean showBadge, int importanceHigh) { in getNotificationRecord() argument
63 channel.setShowBadge(showBadge); in getNotificationRecord()
/frameworks/base/core/java/android/service/notification/
DNotificationRankingUpdate.java43 Bundle showBadge) { in NotificationRankingUpdate() argument
54 mShowBadge = showBadge; in NotificationRankingUpdate()
DNotificationListenerService.java1474 ArrayList<SnoozeCriterion> snoozeCriteria, boolean showBadge) { in populate() argument
1487 mShowBadge = showBadge; in populate()
1676 Boolean showBadge = mShowBadge.get(key); in getShowBadge() local
1677 return showBadge == null ? false : showBadge.booleanValue(); in getShowBadge()
1772 Bundle showBadge = mRankingUpdate.getShowBadge(); in buildShowBadgeLocked() local
1773 mShowBadge = new ArrayMap<>(showBadge.size()); in buildShowBadgeLocked()
1774 for (String key : showBadge.keySet()) { in buildShowBadgeLocked()
1775 mShowBadge.put(key, showBadge.getBoolean(key)); in buildShowBadgeLocked()
/frameworks/base/core/java/android/app/
DINotificationManager.aidl52 void setShowBadge(String pkg, int uid, boolean showBadge); in setShowBadge() argument
DNotificationChannel.java342 public void setShowBadge(boolean showBadge) { in setShowBadge() argument
343 this.mShowBadge = showBadge; in setShowBadge()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java572 private RemoteViews createMaskedWidgetRemoteViews(Bitmap icon, boolean showBadge, in createMaskedWidgetRemoteViews() argument
579 if (!showBadge) { in createMaskedWidgetRemoteViews()
603 final boolean showBadge; in maskWidgetsViewsLocked()
609 showBadge = userInfo.isManagedProfile(); in maskWidgetsViewsLocked()
613 showBadge = true; in maskWidgetsViewsLocked()
617 showBadge = true; in maskWidgetsViewsLocked()
633 RemoteViews views = createMaskedWidgetRemoteViews(iconBitmap, showBadge, intent); in maskWidgetsViewsLocked()