Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationGroupManager.java51 public boolean isGroupExpanded(StatusBarNotification sbn) { in isGroupExpanded() argument
52 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); in isGroupExpanded()
59 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { in setGroupExpanded() argument
60 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); in setGroupExpanded()
87 final StatusBarNotification sbn) { in onEntryRemovedInternal() argument
88 String groupKey = getGroupKey(sbn); in onEntryRemovedInternal()
97 if (isGroupChild(sbn)) { in onEntryRemovedInternal()
111 final StatusBarNotification sbn = added.notification; in onEntryAdded() local
112 boolean isGroupChild = isGroupChild(sbn); in onEntryAdded()
113 String groupKey = getGroupKey(sbn); in onEntryAdded()
[all …]
DPhoneStatusBar.java1486 StatusBarNotification sbn = entry.notification; in removeNotification() local
1489 .recoverBuilder(mContext, sbn.getNotification().clone()); in removeNotification()
1490 CharSequence[] oldHistory = sbn.getNotification().extras in removeNotification()
1507 newNotification.contentView = sbn.getNotification().contentView; in removeNotification()
1508 newNotification.bigContentView = sbn.getNotification().bigContentView; in removeNotification()
1509 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in removeNotification()
1511 StatusBarNotification newSbn = new StatusBarNotification(sbn.getPackageName(), in removeNotification()
1512 sbn.getOpPkg(), in removeNotification()
1513 sbn.getId(), sbn.getTag(), sbn.getUid(), sbn.getInitialPid(), in removeNotification()
1514 0, newNotification, sbn.getUser(), sbn.getPostTime()); in removeNotification()
[all …]
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
DRanker.java52 public Adjustment onNotificationEnqueued(StatusBarNotification sbn, int importance, in onNotificationEnqueued() argument
54 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey()); in onNotificationEnqueued()
59 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument
60 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); in onNotificationPosted()
63 if (!sbn.isAppGroup()) { in onNotificationPosted()
68 = mUnbundledNotifications.get(sbn.getUserId()); in onNotificationPosted()
72 mUnbundledNotifications.put(sbn.getUserId(), unbundledNotificationsByUser); in onNotificationPosted()
74 = unbundledNotificationsByUser.get(sbn.getPackageName()); in onNotificationPosted()
79 notificationsForPackage.add(sbn.getKey()); in onNotificationPosted()
80 unbundledNotificationsByUser.put(sbn.getPackageName(), notificationsForPackage); in onNotificationPosted()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java60 final StatusBarNotification sbn; field in NotificationRecord
105 public NotificationRecord(Context context, StatusBarNotification sbn) in NotificationRecord() argument
107 this.sbn = sbn; in NotificationRecord()
108 mOriginalFlags = sbn.getNotification().flags; in NotificationRecord()
110 mCreationTimeMs = sbn.getPostTime(); in NotificationRecord()
118 final Notification n = sbn.getNotification(); in defaultImportance()
179 if (previous.sbn.getOverrideGroupKey() != null && !sbn.isAppGroup()) { in copyRankingInformation()
180 sbn.setOverrideGroupKey(previous.sbn.getOverrideGroupKey()); in copyRankingInformation()
185 public Notification getNotification() { return sbn.getNotification(); } in getNotification()
186 public int getFlags() { return sbn.getNotification().flags; } in getFlags()
[all …]
DNotificationManagerService.java533 StatusBarNotification sbn = r.sbn;
534 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
535 sbn.getId(), Notification.FLAG_AUTO_CANCEL,
1490 tmp[i] = mNotificationList.get(i).sbn;
1516 final StatusBarNotification sbn = mNotificationList.get(i).sbn;
1517 if (sbn.getPackageName().equals(pkg) && sbn.getUserId() == userId
1518 && (sbn.getNotification().flags
1524 sbn.getPackageName(),
1525 sbn.getOpPkg(),
1526 sbn.getId(), sbn.getTag(), sbn.getUid(), sbn.getInitialPid(),
[all …]
DVisibilityExtractor.java46 mConfig.getVisibilityOverride(record.sbn.getPackageName(), record.sbn.getUid())); in process()
DImportanceExtractor.java46 mConfig.getImportance(record.sbn.getPackageName(), record.sbn.getUid())); in process()
DPriorityExtractor.java46 mConfig.getPriority(record.sbn.getPackageName(), record.sbn.getUid())); in process()
DNotificationComparator.java43 final int leftPriority = left.sbn.getNotification().priority; in compare()
44 final int rightPriority = right.sbn.getNotification().priority; in compare()
DZenModeFiltering.java96 return record != null && record.sbn != null && record.sbn.getNotification() != null in extras()
97 ? record.sbn.getNotification().extras : null; in extras()
193 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName()) in isCall()
214 return Objects.equals(defaultApp, record.sbn.getPackageName()); in isDefaultMessagingApp()
DNotificationUsageStats.java254 return getAggregatedStatsLocked(record.sbn.getPackageName()); in getAggregatedStatsLocked()
1065 writeEvent(r.sbn.getPostTime(), EVENT_TYPE_POST, r); in SQLiteLog()
1203 cv.put(COL_EVENT_USER_ID, r.sbn.getUser().getIdentifier()); in writeEvent()
1235 outCv.put(COL_KEY, r.sbn.getKey()); in putNotificationIdentifiers()
1236 outCv.put(COL_PKG, r.sbn.getPackageName()); in putNotificationIdentifiers()
1240 outCv.put(COL_NOTIFICATION_ID, r.sbn.getId()); in putNotificationDetails()
1241 if (r.sbn.getTag() != null) { in putNotificationDetails()
1242 outCv.put(COL_TAG, r.sbn.getTag()); in putNotificationDetails()
1244 outCv.put(COL_WHEN_MS, r.sbn.getPostTime()); in putNotificationDetails()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBaseStatusBar.java595 for (StatusBarNotification sbn : notifications) {
596 addNotification(sbn, currentRanking, null /* oldEntry */);
603 public void onNotificationPosted(final StatusBarNotification sbn,
605 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn);
606 if (sbn != null) {
610 processForRemoteInput(sbn.getNotification());
611 String key = sbn.getKey();
619 && mGroupManager.isChildInGroupWithSummary(sbn)) {
621 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn);
633 updateNotification(sbn, rankingMap);
[all …]
DNotificationData.java362 StatusBarNotification sbn = entry.notification; in filterAndSort() local
364 if (shouldFilterOut(sbn)) { in filterAndSort()
375 boolean shouldFilterOut(StatusBarNotification sbn) { in shouldFilterOut() argument
377 showNotificationEvenIfUnprovisioned(sbn))) { in shouldFilterOut()
381 if (!mEnvironment.isNotificationForCurrentProfiles(sbn)) { in shouldFilterOut()
386 (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET in shouldFilterOut()
387 || mEnvironment.shouldHideNotifications(sbn.getUserId()) in shouldFilterOut()
388 || mEnvironment.shouldHideNotifications(sbn.getKey()))) { in shouldFilterOut()
393 && mGroupManager.isChildInGroupWithSummary(sbn)) { in shouldFilterOut()
416 public static boolean showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) { in showNotificationEvenIfUnprovisioned() argument
[all …]
DNotificationGuts.java175 void bindImportance(final PackageManager pm, final StatusBarNotification sbn, in bindImportance() argument
182 mINotificationManager.getImportance(sbn.getPackageName(), sbn.getUid()); in bindImportance()
188 pm.getPackageInfo(sbn.getPackageName(), PackageManager.GET_SIGNATURES); in bindImportance()
212 void saveImportance(final StatusBarNotification sbn) { in saveImportance() argument
217 mINotificationManager.setImportance(sbn.getPackageName(), sbn.getUid(), progress); in saveImportance()
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java223 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument
236 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument
237 onNotificationPosted(sbn); in onNotificationPosted()
257 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved() argument
281 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument
282 onNotificationRemoved(sbn); in onNotificationRemoved()
566 StatusBarNotification sbn = list.get(i); in getActiveNotifications() local
567 Notification notification = sbn.getNotification(); in getActiveNotifications()
577 corruptNotifications.add(sbn); in getActiveNotifications()
579 sbn.getPackageName()); in getActiveNotifications()
[all …]
DNotificationRankerService.java139 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn, in onNotificationEnqueued() argument
224 StatusBarNotification sbn; in onNotificationEnqueued() local
226 sbn = sbnHolder.get(); in onNotificationEnqueued()
233 args.arg1 = sbn; in onNotificationEnqueued()
296 StatusBarNotification sbn = (StatusBarNotification) args.arg1; in handleMessage() local
300 Adjustment adjustment = onNotificationEnqueued(sbn, importance, user); in handleMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/
DTvStatusBar.java205 protected boolean isSnoozedPackage(StatusBarNotification sbn) { in isSnoozedPackage() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/
DBuzzBeepBlinkTest.java156 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, id, mTag, mUid, mPid, in getNotificationRecord() local
158 return new NotificationRecord(getContext(), sbn); in getNotificationRecord()