Home
last modified time | relevance | path

Searched refs:badgeInfo (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java72 BadgeInfo badgeInfo = mPackageUserToBadgeInfos.get(postedPackageUserKey); in onNotificationPosted() local
74 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() local
121 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 …]
DPopupContainerWithArrow.java579 BadgeInfo badgeInfo = mLauncher.getPopupDataProvider().getBadgeInfoForItem(itemInfo); in updateNotificationHeader() local
580 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() local
592 if (badgeInfo == null || badgeInfo.getNotificationKeys().size() == 0) { in trimNotifications()
637 badgeInfo.getNotificationKeys())); in trimNotifications()
/packages/apps/Launcher3/src/com/android/launcher3/badge/
DBadgeRenderer.java96 public void draw(Canvas canvas, IconPalette palette, @Nullable BadgeInfo badgeInfo, in draw() argument
99 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()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java405 public void setBadgeInfo(FolderBadgeInfo badgeInfo) {
406 updateBadgeScale(mBadgeInfo.hasBadge(), badgeInfo.hasBadge());
407 mBadgeInfo = badgeInfo;