Searched refs:badgeInfo (Results 1 – 4 of 4) sorted by relevance
72 BadgeInfo badgeInfo = mPackageUserToBadgeInfos.get(postedPackageUserKey); in onNotificationPosted() local74 if (badgeInfo == null) { in onNotificationPosted()85 ? badgeInfo.removeNotificationKey(notificationKey) in onNotificationPosted()86 : badgeInfo.addOrUpdateNotificationKey(notificationKey); in onNotificationPosted()87 if (badgeInfo.getNotificationKeys().size() == 0) { in onNotificationPosted()120 BadgeInfo badgeInfo = mPackageUserToBadgeInfos.get(packageUserKey); in onNotificationFullRefresh() local121 if (badgeInfo == null) { in onNotificationFullRefresh()122 badgeInfo = new BadgeInfo(packageUserKey); in onNotificationFullRefresh()123 mPackageUserToBadgeInfos.put(packageUserKey, badgeInfo); in onNotificationFullRefresh()125 badgeInfo.addOrUpdateNotificationKey(NotificationKeyData in onNotificationFullRefresh()[all …]
579 BadgeInfo badgeInfo = mLauncher.getPopupDataProvider().getBadgeInfoForItem(itemInfo); in updateNotificationHeader() local580 if (mNotificationItemView != null && badgeInfo != null) { in updateNotificationHeader()582 mNotificationItemView.updateHeader(badgeInfo.getNotificationCount(), palette); in updateNotificationHeader()591 BadgeInfo badgeInfo = updatedBadges.get(PackageUserKey.fromItemInfo(originalInfo)); in trimNotifications() local592 if (badgeInfo == null || badgeInfo.getNotificationKeys().size() == 0) { in trimNotifications()637 badgeInfo.getNotificationKeys())); in trimNotifications()
96 public void draw(Canvas canvas, IconPalette palette, @Nullable BadgeInfo badgeInfo, in draw() argument99 IconDrawer iconDrawer = badgeInfo != null && badgeInfo.isIconLarge() in draw()101 Shader icon = badgeInfo == null ? null : badgeInfo.getNotificationIconForBadge( in draw()103 String notificationCount = badgeInfo == null ? "0" in draw()104 : String.valueOf(badgeInfo.getNotificationCount()); in draw()117 boolean isText = !DOTS_ONLY && badgeInfo != null && badgeInfo.getNotificationCount() != 0; in draw()130 boolean shouldStack = !isDot && badgeInfo != null in draw()131 && badgeInfo.getNotificationKeys().size() > 1; in draw()
405 public void setBadgeInfo(FolderBadgeInfo badgeInfo) {406 updateBadgeScale(mBadgeInfo.hasBadge(), badgeInfo.hasBadge());407 mBadgeInfo = badgeInfo;