Lines Matching refs:sbn

575                 StatusBarNotification sbn = r.sbn;
576 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
577 sbn.getId(), Notification.FLAG_AUTO_CANCEL,
742 cancelNotification(record.sbn.getUid(), record.sbn.getInitialPid(),
743 record.sbn.getPackageName(), record.sbn.getTag(),
744 record.sbn.getId(), 0,
1016 mNotificationsByKey.put(r.sbn.getKey(), r);
1017 if (r.sbn.isGroup()) {
1243 enqueueNotificationInternal(r.sbn.getPackageName(), r.sbn.getOpPkg(),
1244 r.sbn.getUid(), r.sbn.getInitialPid(), r.sbn.getTag(), r.sbn.getId(),
1245 r.sbn.getNotification(), userId);
1328 if (r.sbn.getPackageName().equals(pkg)
1329 && r.sbn.getUid() == uid
1857 tmp[i] = mNotificationList.get(i).sbn;
1884 StatusBarNotification sbn = sanitizeSbn(pkg, userId,
1885 mNotificationList.get(i).sbn);
1886 if (sbn != null) {
1887 map.put(sbn.getKey(), sbn);
1891 StatusBarNotification sbn = sanitizeSbn(pkg, userId, snoozed.sbn);
1892 if (sbn != null) {
1893 map.put(sbn.getKey(), sbn);
1898 StatusBarNotification sbn = sanitizeSbn(pkg, userId,
1899 mEnqueuedNotifications.get(i).sbn);
1900 if (sbn != null) {
1901 map.put(sbn.getKey(), sbn); // pending update overwrites existing post here
1911 StatusBarNotification sbn) {
1912 if (sbn.getPackageName().equals(pkg) && sbn.getUserId() == userId
1913 && (sbn.getNotification().flags
1919 sbn.getPackageName(),
1920 sbn.getOpPkg(),
1921 sbn.getId(), sbn.getTag(), sbn.getUid(), sbn.getInitialPid(),
1922 sbn.getNotification().clone(),
1923 sbn.getUser(), sbn.getOverrideGroupKey(), sbn.getPostTime());
1994 final int userId = r.sbn.getUserId();
2001 r.sbn.getPackageName(), r.sbn.getTag(), r.sbn.getId(),
2059 final int userId = r.sbn.getUserId();
2067 mAppUsageStats.reportEvent(r.sbn.getPackageName(),
2208 StatusBarNotification sbn = r.sbn;
2209 if (!isVisibleToListener(sbn, info)) continue;
2211 (trim == TRIM_FULL) ? sbn : sbn.cloneLight();
2238 StatusBarNotification sbn = r.sbn;
2239 if (!isVisibleToListener(sbn, info)) continue;
2241 (trim == TRIM_FULL) ? sbn : sbn.cloneLight();
2829 final StatusBarNotification adjustedSbn = notificationRecord.sbn;
2875 summaryRecord.sbn.getId(), summaryRecord.sbn.getTag(), summaryRecord)) {
2915 if (filter.filtered && !filter.matches(nr.sbn)) continue;
2924 if (filter.filtered && !filter.matches(nr.sbn)) continue;
2934 if (filter.filtered && !filter.matches(nr.sbn)) continue;
2981 if (filter.filtered && !filter.matches(nr.sbn)) continue;
3014 final StatusBarNotification sbn = iter.next();
3015 if (filter != null && !filter.matches(sbn)) continue;
3016 pw.println(" " + sbn);
3029 if (filter.filtered && !filter.matches(nr.sbn)) continue;
3137 StatusBarNotification sbn = r.sbn;
3142 sbn.getNotification().flags =
3145 mListeners.notifyPostedLocked(sbn, sbn /* oldSbn */);
3146 mGroupHelper.onNotificationPosted(sbn);
3271 final String pkg = r.sbn.getPackageName();
3280 if (mNotificationsByKey.get(r.sbn.getKey()) != null) {
3306 if (existing.sbn.getPackageName().equals(pkg)
3307 && existing.sbn.getUserId() == userId) {
3308 if (existing.sbn.getId() == id
3309 && TextUtils.equals(existing.sbn.getTag(), tag)) {
3347 final String pkg = r.sbn.getPackageName();
3348 final int callingUid = r.sbn.getUid();
3391 if (r.sbn.isGroup()) {
3393 r.sbn.getPackageName(), r.sbn.getGroupKey(), r.sbn.getUserId());
3402 if (mSummaryByGroupKey.containsKey(r.sbn.getGroupKey())) {
3432 mNotificationAssistants.notifyAssistantSnoozedLocked(r.sbn, mSnoozeCriterionId);
3456 final StatusBarNotification n = r.sbn;
3532 final StatusBarNotification n = r.sbn;
3561 StatusBarNotification oldSbn = (old != null) ? old.sbn : null;
3614 StatusBarNotification sbn = r.sbn;
3615 Notification n = sbn.getNotification();
3616 if (n.isGroupSummary() && !sbn.isAppGroup()) {
3622 String group = sbn.getGroupKey();
3625 Notification oldN = old != null ? old.sbn.getNotification() : null;
3626 String oldGroup = old != null ? old.sbn.getGroupKey() : null;
3675 final Notification notification = record.sbn.getNotification();
3684 "pkg=" + record.sbn.getPackageName() + " canInterrupt=" + canInterrupt +
3705 sendAccessibilityEvent(notification, record.sbn.getPackageName());
3787 if (record.sbn.isGroup()) {
3805 player.playAsync(soundUri, record.sbn.getUser(), looping,
3844 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(),
3848 mVibrator.vibrate(record.sbn.getUid(), record.sbn.getOpPkg(),
4040 groupOverrideBefore.add(r.sbn.getGroupKey());
4051 || !groupOverrideBefore.get(i).equals(r.sbn.getGroupKey())
4228 mNotificationsByKey.remove(recordInList.sbn.getKey());
4254 Slog.w(TAG, "canceled PendingIntent for " + r.sbn.getPackageName(), ex);
4266 mListeners.notifyRemovedLocked(r.sbn, reason);
4270 mGroupHelper.onNotificationRemoved(r.sbn);
4326 final ArrayMap<String, String> summaries = mAutobundledSummaries.get(r.sbn.getUserId());
4327 if (summaries != null && r.sbn.getKey().equals(summaries.get(r.sbn.getPackageName()))) {
4328 summaries.remove(r.sbn.getPackageName());
4332 mArchive.record(r.sbn);
4498 if (pkg != null && !r.sbn.getPackageName().equals(pkg)) {
4589 String pkg = r.sbn.getPackageName();
4606 final String pkg = parentNotification.sbn.getPackageName();
4611 final StatusBarNotification childSbn = childR.sbn;
4669 && r.sbn.getPackageName().equals(pkg)) {
4710 if (notificationMatchesUserId(r, userId) && r.sbn.getId() == id &&
4711 TextUtils.equals(r.sbn.getTag(), tag) && r.sbn.getPackageName().equals(pkg)) {
4854 if (!isVisibleToListener(record.sbn, info)) {
4857 final String key = record.sbn.getKey();
4872 overrideGroupKeys.putString(key, record.sbn.getOverrideGroupKey());
4922 private boolean isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) {
4923 if (!listener.enabledAndUserMatches(sbn.getUserId())) {
4947 TrimCache(StatusBarNotification sbn) {
4948 heavy = sbn;
5006 final StatusBarNotification sbn = r.sbn;
5007 TrimCache trimCache = new TrimCache(sbn);
5012 boolean sbnVisible = isVisibleToListener(sbn, info);
5030 final StatusBarNotification sbn) {
5032 StatusBarNotificationHolder sbnHolder = new StatusBarNotificationHolder(sbn);
5045 public void notifyAssistantSnoozedLocked(final StatusBarNotification sbn,
5047 TrimCache trimCache = new TrimCache(sbn);
5148 public void notifyPostedLocked(StatusBarNotification sbn, StatusBarNotification oldSbn) {
5150 TrimCache trimCache = new TrimCache(sbn);
5153 boolean sbnVisible = isVisibleToListener(sbn, info);
5187 public void notifyRemovedLocked(StatusBarNotification sbn, int reason) {
5191 final StatusBarNotification sbnLight = sbn.cloneLight();
5193 if (!isVisibleToListener(sbn, info)) {
5300 final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) {
5302 StatusBarNotificationHolder sbnHolder = new StatusBarNotificationHolder(sbn);
5310 private void notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn,
5312 if (!info.enabledAndUserMatches(sbn.getUserId())) {
5316 StatusBarNotificationHolder sbnHolder = new StatusBarNotificationHolder(sbn);
5435 public boolean matches(StatusBarNotification sbn) {
5437 return zen ? true : sbn != null
5438 && (matches(sbn.getPackageName()) || matches(sbn.getOpPkg()));