OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:BadgeInfo
(Results
1 - 6
of
6
) sorted by null
/packages/apps/Launcher3/src/com/android/launcher3/badge/
FolderBadgeInfo.java
22
* Subclass of
BadgeInfo
that only contains the badge count, which is
25
public class FolderBadgeInfo extends
BadgeInfo
{
35
public void addBadgeInfo(
BadgeInfo
badgeToAdd) {
41
mNumNotifications, MIN_COUNT,
BadgeInfo
.MAX_COUNT);
44
public void subtractBadgeInfo(
BadgeInfo
badgeToSubtract) {
50
mNumNotifications, MIN_COUNT,
BadgeInfo
.MAX_COUNT);
BadgeInfo.java
37
public class
BadgeInfo
{
41
/** Used to link this
BadgeInfo
to icons on the workspace and all apps */
65
public
BadgeInfo
(PackageUserKey packageUserKey) {
159
public boolean shouldBeInvalidated(
BadgeInfo
newBadge) {
BadgeRenderer.java
37
* @see
BadgeInfo
for the data to draw
89
* {@link
BadgeInfo
#getNotificationCount()} on top of the circle.
91
* @param
badgeInfo
Contains data to draw on the badge. Could be null if we are animating out.
96
public void draw(Canvas canvas, IconPalette palette, @Nullable
BadgeInfo
badgeInfo
,
99
IconDrawer iconDrawer =
badgeInfo
!= null &&
badgeInfo
.isIconLarge()
101
Shader icon =
badgeInfo
== null ? null :
badgeInfo
.getNotificationIconForBadge(
103
String notificationCount =
badgeInfo
== null ? "0
[
all
...]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
PopupDataProvider.java
27
import com.android.launcher3.badge.
BadgeInfo
;
62
/** Maps packages to their
BadgeInfo
's . */
63
private Map<PackageUserKey,
BadgeInfo
> mPackageUserToBadgeInfos = new HashMap<>();
72
BadgeInfo
badgeInfo
= mPackageUserToBadgeInfos.get(postedPackageUserKey);
74
if (
badgeInfo
== null) {
76
BadgeInfo
newBadgeInfo = new
BadgeInfo
(postedPackageUserKey);
85
?
badgeInfo
.removeNotificationKey(notificationKey)
86
:
badgeInfo
.addOrUpdateNotificationKey(notificationKey)
[
all
...]
PopupContainerWithArrow.java
62
import com.android.launcher3.badge.
BadgeInfo
;
579
BadgeInfo
badgeInfo
= mLauncher.getPopupDataProvider().getBadgeInfoForItem(itemInfo);
580
if (mNotificationItemView != null &&
badgeInfo
!= null) {
582
mNotificationItemView.updateHeader(
badgeInfo
.getNotificationCount(), palette);
586
public void trimNotifications(Map<PackageUserKey,
BadgeInfo
> updatedBadges) {
591
BadgeInfo
badgeInfo
= updatedBadges.get(PackageUserKey.fromItemInfo(originalInfo));
592
if (
badgeInfo
== null ||
badgeInfo
.getNotificationKeys().size() == 0)
[
all
...]
/packages/apps/Launcher3/src/com/android/launcher3/
BubbleTextView.java
44
import com.android.launcher3.badge.
BadgeInfo
;
97
private
BadgeInfo
mBadgeInfo;
Completed in 130 milliseconds