Lines Matching refs:sbn
56 public void addNotification(StatusBarNotification sbn, int importance) {
57 updateNotification(sbn, importance);
61 public boolean removeNotification(StatusBarNotification sbn) {
63 final UserServices userServices = mUserServices.get(sbn.getUserId());
68 sbn.getUserId(), sbn));
72 if (isDungeonNotification(sbn)) {
79 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey());
85 public void updateNotification(StatusBarNotification sbn, int newImportance) {
87 UserServices userServices = mUserServices.get(sbn.getUserId());
90 mUserServices.put(sbn.getUserId(), userServices);
93 if (isDungeonNotification(sbn)) {
94 final Bundle extras = sbn.getNotification().extras;
100 userServices.removeNotification(sbn.getPackageName(), sbn.getKey());
101 if (0 != (sbn.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE)
103 userServices.addNotification(sbn.getPackageName(), sbn.getKey());
110 public boolean isDungeonNotification(StatusBarNotification sbn) {
111 return sbn.getId() == SystemMessageProto.SystemMessage.NOTE_FOREGROUND_SERVICES
112 && sbn.getTag() == null
113 && sbn.getPackageName().equals("android");