Home
last modified time | relevance | path

Searched refs:sbn (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java47 final StatusBarNotification sbn; field in NotificationRecord
74 public NotificationRecord(StatusBarNotification sbn, int score) in NotificationRecord() argument
76 this.sbn = sbn; in NotificationRecord()
78 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
93 public Notification getNotification() { return sbn.getNotification(); } in getNotification()
94 public int getFlags() { return sbn.getNotification().flags; } in getFlags()
95 public UserHandle getUser() { return sbn.getUser(); } in getUser()
96 public String getKey() { return sbn.getKey(); } in getKey()
98 public int getUserId() { return sbn.getUserId(); } in getUserId()
101 final Notification notification = sbn.getNotification(); in dump()
[all …]
DNotificationManagerService.java549 StatusBarNotification sbn = r.sbn;
550 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
551 sbn.getId(), Notification.FLAG_AUTO_CANCEL,
1245 tmp[i] = mNotificationList.get(i).sbn;
1318 final int userId = r.sbn.getUserId();
1325 r.sbn.getPackageName(), r.sbn.getTag(), r.sbn.getId(),
1400 StatusBarNotification sbn = r.sbn;
1401 if (!isVisibleToListener(sbn, info)) continue;
1403 (trim == TRIM_FULL) ? sbn : sbn.cloneLight();
1574 final StatusBarNotification sbn = mNotificationList.get(i).sbn; in getActiveNotificationKeys() local
[all …]
DNotificationComparator.java35 final int leftScore = left.sbn.getScore(); in compare()
36 final int rightScore = right.sbn.getScore(); in compare()
DPackagePriorityExtractor.java43 record.sbn.getPackageName(), record.sbn.getUid()); in process()
DPackageVisibilityExtractor.java43 record.sbn.getPackageName(), record.sbn.getUid()); in process()
DNotificationUsageStats.java159 StatusBarNotification n = record.sbn; in getAggregatedStatsLocked()
538 writeEvent(r.sbn.getPostTime(), EVENT_TYPE_POST, r); in SQLiteLog()
640 cv.put(COL_EVENT_USER_ID, r.sbn.getUser().getIdentifier()); in writeEvent()
672 outCv.put(COL_KEY, r.sbn.getKey()); in putNotificationIdentifiers()
673 outCv.put(COL_PKG, r.sbn.getPackageName()); in putNotificationIdentifiers()
677 outCv.put(COL_NOTIFICATION_ID, r.sbn.getId()); in putNotificationDetails()
678 if (r.sbn.getTag() != null) { in putNotificationDetails()
679 outCv.put(COL_TAG, r.sbn.getTag()); in putNotificationDetails()
681 outCv.put(COL_WHEN_MS, r.sbn.getPostTime()); in putNotificationDetails()
DZenModeHelper.java435 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName()) in isCall()
455 return Objects.equals(defaultApp, record.sbn.getPackageName()); in isDefaultMessagingApp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationData.java211 StatusBarNotification sbn = entry.notification; in filterAndSort() local
213 if (shouldFilterOut(sbn)) { in filterAndSort()
217 if (sbn.getNotification().isGroupSummary()) { in filterAndSort()
218 mGroupsWithSummaries.add(sbn.getGroupKey()); in filterAndSort()
228 StatusBarNotification sbn = ent.notification; in filterAndSort() local
229 if (sbn.getNotification().isGroupChild() && in filterAndSort()
230 mGroupsWithSummaries.contains(sbn.getGroupKey())) { in filterAndSort()
243 boolean shouldFilterOut(StatusBarNotification sbn) { in shouldFilterOut() argument
245 showNotificationEvenIfUnprovisioned(sbn))) { in shouldFilterOut()
249 if (!mEnvironment.isNotificationForCurrentProfiles(sbn)) { in shouldFilterOut()
[all …]
DBaseStatusBar.java415 for (StatusBarNotification sbn : notifications) {
416 addNotification(sbn, currentRanking);
423 public void onNotificationPosted(final StatusBarNotification sbn,
425 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn);
429 Notification n = sbn.getNotification();
430 boolean isUpdate = mNotificationData.get(sbn.getKey()) != null
431 || isHeadsUp(sbn.getKey());
437 mNotificationData.isGroupWithSummary(sbn.getGroupKey())) {
439 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn);
444 removeNotification(sbn.getKey(), rankingMap);
[all …]
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java140 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument
153 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument
154 onNotificationPosted(sbn); in onNotificationPosted()
174 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved() argument
198 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument
199 onNotificationRemoved(sbn); in onNotificationRemoved()
608 StatusBarNotification sbn; in onNotificationPosted() local
610 sbn = sbnHolder.get(); in onNotificationPosted()
615 Notification.Builder.rebuild(getContext(), sbn.getNotification()); in onNotificationPosted()
621 NotificationListenerService.this.onNotificationPosted(sbn, mRankingMap); in onNotificationPosted()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBar.java2238 final StatusBarNotification sbn = mHeadsUpNotificationView.getEntry().notification;
2240 final Notification notification = sbn.getNotification();
2246 sbn.getKey());