Home | History | Annotate | Download | only in systemui

Lines Matching refs:sbn

109     public void addNotification(StatusBarNotification sbn, int importance) {
110 updateNotification(sbn, importance);
114 public boolean removeNotification(StatusBarNotification sbn) {
116 final UserServices userServices = mUserServices.get(sbn.getUserId());
121 sbn.getUserId(), sbn));
125 if (isDungeonNotification(sbn)) {
132 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey());
138 public void updateNotification(StatusBarNotification sbn, int newImportance) {
140 UserServices userServices = mUserServices.get(sbn.getUserId());
143 mUserServices.put(sbn.getUserId(), userServices);
146 if (isDungeonNotification(sbn)) {
147 final Bundle extras = sbn.getNotification().extras;
150 userServices.setRunningServices(svcs, sbn.getNotification().when);
153 userServices.removeNotification(sbn.getPackageName(), sbn.getKey());
154 if (0 != (sbn.getNotification().flags & Notification.FLAG_FOREGROUND_SERVICE)) {
156 userServices.addImportantNotification(sbn.getPackageName(), sbn.getKey());
159 mContext, sbn.getNotification());
162 sbn.getPackageName(), sbn.getKey());
170 public boolean isDungeonNotification(StatusBarNotification sbn) {
171 return sbn.getId() == SystemMessageProto.SystemMessage.NOTE_FOREGROUND_SERVICES
172 && sbn.getTag() == null
173 && sbn.getPackageName().equals("android");
177 public boolean isSystemAlertNotification(StatusBarNotification sbn) {
178 return sbn.getPackageName().equals("android")
179 && sbn.getTag() != null
180 && sbn.getTag().contains("AlertWindowNotification");