Home | History | Annotate | Download | only in phone

Lines Matching refs:sbn

59     public boolean isGroupExpanded(StatusBarNotification sbn) {
60 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
67 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) {
68 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
91 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal
95 final StatusBarNotification sbn) {
96 String groupKey = getGroupKey(sbn);
105 if (isGroupChild(sbn)) {
122 final StatusBarNotification sbn = added.notification;
123 boolean isGroupChild = isGroupChild(sbn);
124 String groupKey = getGroupKey(sbn);
287 for (StatusBarNotification sbn : mIsolatedEntries.values()) {
288 if (sbn.getGroupKey().equals(groupKey) && isIsolated(sbn)) {
296 for (StatusBarNotification sbn : mIsolatedEntries.values()) {
297 if (sbn.getGroupKey().equals(groupKey) && isIsolated(sbn)) {
298 return mGroupMap.get(sbn.getKey()).summary;
328 public boolean isSummaryOfSuppressedGroup(StatusBarNotification sbn) {
329 return isGroupSuppressed(getGroupKey(sbn)) && sbn.getNotification().isGroupSummary();
332 private boolean isOnlyChild(StatusBarNotification sbn) {
333 return !sbn.getNotification().isGroupSummary()
334 && getTotalNumberOfChildren(sbn) == 1;
337 public boolean isOnlyChildInGroup(StatusBarNotification sbn) {
338 if (!isOnlyChild(sbn)) {
341 ExpandableNotificationRow logicalGroupSummary = getLogicalGroupSummary(sbn);
343 && !logicalGroupSummary.getStatusBarNotification().equals(sbn);
346 private int getTotalNumberOfChildren(StatusBarNotification sbn) {
347 int isolatedChildren = getNumberOfIsolatedChildren(sbn.getGroupKey());
348 NotificationGroup group = mGroupMap.get(sbn.getGroupKey());
385 public boolean isChildInGroupWithSummary(StatusBarNotification sbn) {
386 if (!isGroupChild(sbn)) {
389 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
405 public boolean isSummaryOfGroup(StatusBarNotification sbn) {
406 if (!isGroupSummary(sbn)) {
409 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
420 public ExpandableNotificationRow getGroupSummary(StatusBarNotification sbn) {
421 return getGroupSummary(getGroupKey(sbn));
430 StatusBarNotification sbn) {
431 return getGroupSummary(sbn.getGroupKey());
443 public boolean toggleGroupExpansion(StatusBarNotification sbn) {
444 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
452 private boolean isIsolated(StatusBarNotification sbn) {
453 return mIsolatedEntries.containsKey(sbn.getKey());
456 private boolean isGroupSummary(StatusBarNotification sbn) {
457 if (isIsolated(sbn)) {
460 return sbn.getNotification().isGroupSummary();
463 private boolean isGroupChild(StatusBarNotification sbn) {
464 if (isIsolated(sbn)) {
467 return sbn.isGroup() && !sbn.getNotification().isGroupSummary();
470 private String getGroupKey(StatusBarNotification sbn) {
471 if (isIsolated(sbn)) {
472 return sbn.getKey();
474 return sbn.getGroupKey();
491 final StatusBarNotification sbn = entry.notification;
493 if (shouldIsolate(sbn)) {
497 mIsolatedEntries.put(sbn.getKey(), sbn);
510 if (mIsolatedEntries.containsKey(sbn.getKey())) {
513 mIsolatedEntries.remove(sbn.getKey());
521 StatusBarNotification sbn = entry.notification;
522 if (!isGroupSuppressed(sbn.getGroupKey())
523 || !sbn.getNotification().isGroupSummary()
529 NotificationGroup notificationGroup = mGroupMap.get(sbn.getGroupKey());
542 child = getIsolatedChild(sbn.getGroupKey());
591 private boolean shouldIsolate(StatusBarNotification sbn) {
592 NotificationGroup notificationGroup = mGroupMap.get(sbn.getGroupKey());
593 return (sbn.isGroup() && !sbn.getNotification().isGroupSummary())
594 && (sbn.getNotification().fullScreenIntent != null