public class NotificationGroupManager extends Object implements HeadsUpManager.OnHeadsUpChangedListener
Modifier and Type | Class and Description |
---|---|
static class |
NotificationGroupManager.NotificationGroup |
static interface |
NotificationGroupManager.OnGroupChangeListener |
Constructor and Description |
---|
NotificationGroupManager() |
Modifier and Type | Method and Description |
---|---|
void |
collapseAllGroups() |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
com.android.systemui.statusbar.ExpandableNotificationRow |
getGroupSummary(StatusBarNotification sbn)
Get the summary of a specified status bar notification.
|
com.android.systemui.statusbar.ExpandableNotificationRow |
getLogicalGroupSummary(StatusBarNotification sbn)
Similar to
getGroupSummary(StatusBarNotification) but doesn't get the visual summary
but the logical summary, i.e when a child is isolated, it still returns the summary as if
it wasn't isolated. |
boolean |
isChildInGroupWithSummary(StatusBarNotification sbn) |
boolean |
isGroupExpanded(StatusBarNotification sbn) |
boolean |
isOnlyChildInGroup(StatusBarNotification sbn) |
boolean |
isSummaryOfGroup(StatusBarNotification sbn) |
boolean |
isSummaryOfSuppressedGroup(StatusBarNotification sbn) |
void |
onEntryAdded(com.android.systemui.statusbar.NotificationData.Entry added) |
void |
onEntryRemoved(com.android.systemui.statusbar.NotificationData.Entry removed) |
void |
onEntryUpdated(com.android.systemui.statusbar.NotificationData.Entry entry,
StatusBarNotification oldNotification) |
void |
onHeadsUpPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
A notification was just pinned to the top.
|
void |
onHeadsUpPinnedModeChanged(boolean inPinnedMode)
The state whether there exist pinned heads-ups or not changed.
|
void |
onHeadsUpStateChanged(com.android.systemui.statusbar.NotificationData.Entry entry,
boolean isHeadsUp)
A notification just became a heads up or turned back to its normal state.
|
void |
onHeadsUpUnPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
A notification was just unpinned from the top.
|
void |
setGroupExpanded(StatusBarNotification sbn,
boolean expanded) |
void |
setHeadsUpManager(HeadsUpManager headsUpManager) |
void |
setOnGroupChangeListener(NotificationGroupManager.OnGroupChangeListener listener) |
void |
setStatusBarState(int newState) |
boolean |
toggleGroupExpansion(StatusBarNotification sbn) |
public void setOnGroupChangeListener(NotificationGroupManager.OnGroupChangeListener listener)
public boolean isGroupExpanded(StatusBarNotification sbn)
public void setGroupExpanded(StatusBarNotification sbn, boolean expanded)
public void onEntryRemoved(com.android.systemui.statusbar.NotificationData.Entry removed)
public void onEntryAdded(com.android.systemui.statusbar.NotificationData.Entry added)
public void onEntryUpdated(com.android.systemui.statusbar.NotificationData.Entry entry, StatusBarNotification oldNotification)
public boolean isSummaryOfSuppressedGroup(StatusBarNotification sbn)
public boolean isOnlyChildInGroup(StatusBarNotification sbn)
public void setStatusBarState(int newState)
public void collapseAllGroups()
public boolean isChildInGroupWithSummary(StatusBarNotification sbn)
public boolean isSummaryOfGroup(StatusBarNotification sbn)
public com.android.systemui.statusbar.ExpandableNotificationRow getGroupSummary(StatusBarNotification sbn)
public com.android.systemui.statusbar.ExpandableNotificationRow getLogicalGroupSummary(StatusBarNotification sbn)
getGroupSummary(StatusBarNotification)
but doesn't get the visual summary
but the logical summary, i.e when a child is isolated, it still returns the summary as if
it wasn't isolated.public boolean toggleGroupExpansion(StatusBarNotification sbn)
public void onHeadsUpPinnedModeChanged(boolean inPinnedMode)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpPinnedModeChanged
in interface HeadsUpManager.OnHeadsUpChangedListener
inPinnedMode
- whether there are any pinned heads-upspublic void onHeadsUpPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpPinned
in interface HeadsUpManager.OnHeadsUpChangedListener
public void onHeadsUpUnPinned(com.android.systemui.statusbar.ExpandableNotificationRow headsUp)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpUnPinned
in interface HeadsUpManager.OnHeadsUpChangedListener
public void onHeadsUpStateChanged(com.android.systemui.statusbar.NotificationData.Entry entry, boolean isHeadsUp)
HeadsUpManager.OnHeadsUpChangedListener
onHeadsUpStateChanged
in interface HeadsUpManager.OnHeadsUpChangedListener
entry
- the entry of the changed notificationisHeadsUp
- whether the notification is now a headsUp notificationpublic void setHeadsUpManager(HeadsUpManager headsUpManager)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)