/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NotificationGroupManager.java | 52 public boolean isGroupExpanded(StatusBarNotification sbn) { in isGroupExpanded() argument 53 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); in isGroupExpanded() 60 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { in setGroupExpanded() argument 61 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); in setGroupExpanded() 88 final StatusBarNotification sbn) { in onEntryRemovedInternal() argument 89 String groupKey = getGroupKey(sbn); in onEntryRemovedInternal() 98 if (isGroupChild(sbn)) { in onEntryRemovedInternal() 112 final StatusBarNotification sbn = added.notification; in onEntryAdded() local 113 boolean isGroupChild = isGroupChild(sbn); in onEntryAdded() 114 String groupKey = getGroupKey(sbn); in onEntryAdded() [all …]
|
D | PhoneStatusBar.java | 1598 StatusBarNotification sbn = entry.notification; in removeNotification() local 1601 .recoverBuilder(mContext, sbn.getNotification().clone()); in removeNotification() 1602 CharSequence[] oldHistory = sbn.getNotification().extras in removeNotification() 1619 newNotification.contentView = sbn.getNotification().contentView; in removeNotification() 1620 newNotification.bigContentView = sbn.getNotification().bigContentView; in removeNotification() 1621 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; in removeNotification() 1623 StatusBarNotification newSbn = new StatusBarNotification(sbn.getPackageName(), in removeNotification() 1624 sbn.getOpPkg(), in removeNotification() 1625 sbn.getId(), sbn.getTag(), sbn.getUid(), sbn.getInitialPid(), in removeNotification() 1626 0, newNotification, sbn.getUser(), sbn.getPostTime()); in removeNotification() [all …]
|
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/ |
D | Ranker.java | 52 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/ |
D | NotificationRecord.java | 60 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 …]
|
D | NotificationManagerService.java | 536 StatusBarNotification sbn = r.sbn; 537 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 538 sbn.getId(), Notification.FLAG_AUTO_CANCEL, 1509 tmp[i] = mNotificationList.get(i).sbn; 1535 final StatusBarNotification sbn = mNotificationList.get(i).sbn; 1536 if (sbn.getPackageName().equals(pkg) && sbn.getUserId() == userId 1537 && (sbn.getNotification().flags 1543 sbn.getPackageName(), 1544 sbn.getOpPkg(), 1545 sbn.getId(), sbn.getTag(), sbn.getUid(), sbn.getInitialPid(), [all …]
|
D | VisibilityExtractor.java | 46 mConfig.getVisibilityOverride(record.sbn.getPackageName(), record.sbn.getUid())); in process()
|
D | ImportanceExtractor.java | 46 mConfig.getImportance(record.sbn.getPackageName(), record.sbn.getUid())); in process()
|
D | PriorityExtractor.java | 46 mConfig.getPriority(record.sbn.getPackageName(), record.sbn.getUid())); in process()
|
D | NotificationComparator.java | 43 final int leftPriority = left.sbn.getNotification().priority; in compare() 44 final int rightPriority = right.sbn.getNotification().priority; in compare()
|
D | ZenModeFiltering.java | 98 return record != null && record.sbn != null && record.sbn.getNotification() != null in extras() 99 ? record.sbn.getNotification().extras : null; in extras() 199 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName()) in isCall() 220 return Objects.equals(defaultApp, record.sbn.getPackageName()); in isDefaultMessagingApp()
|
D | NotificationUsageStats.java | 254 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/ |
D | BaseStatusBar.java | 612 for (StatusBarNotification sbn : notifications) { 613 addNotification(sbn, currentRanking, null /* oldEntry */); 620 public void onNotificationPosted(final StatusBarNotification sbn, 622 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn); 623 if (sbn != null) { 627 processForRemoteInput(sbn.getNotification()); 628 String key = sbn.getKey(); 636 && mGroupManager.isChildInGroupWithSummary(sbn)) { 638 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn); 650 updateNotification(sbn, rankingMap); [all …]
|
D | NotificationData.java | 360 StatusBarNotification sbn = entry.notification; in filterAndSort() local 362 if (shouldFilterOut(sbn)) { in filterAndSort() 373 boolean shouldFilterOut(StatusBarNotification sbn) { in shouldFilterOut() argument 375 showNotificationEvenIfUnprovisioned(sbn))) { in shouldFilterOut() 379 if (!mEnvironment.isNotificationForCurrentProfiles(sbn)) { in shouldFilterOut() 384 (sbn.getNotification().visibility == Notification.VISIBILITY_SECRET in shouldFilterOut() 385 || mEnvironment.shouldHideNotifications(sbn.getUserId()) in shouldFilterOut() 386 || mEnvironment.shouldHideNotifications(sbn.getKey()))) { in shouldFilterOut() 391 && mGroupManager.isChildInGroupWithSummary(sbn)) { in shouldFilterOut() 400 public static boolean showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) { in showNotificationEvenIfUnprovisioned() argument [all …]
|
D | NotificationGuts.java | 177 void bindImportance(final PackageManager pm, final StatusBarNotification sbn, in bindImportance() argument 184 mINotificationManager.getImportance(sbn.getPackageName(), sbn.getUid()); in bindImportance() 193 (nonBlockablePkgs != null && nonBlockablePkgs.contains(sbn.getPackageName())); in bindImportance() 204 pm.getPackageInfo(sbn.getPackageName(), PackageManager.GET_SIGNATURES); in bindImportance() 226 void saveImportance(final StatusBarNotification sbn) { in saveImportance() argument 231 mINotificationManager.setImportance(sbn.getPackageName(), sbn.getUid(), progress); in saveImportance()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 223 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 …]
|
D | NotificationRankerService.java | 139 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/ |
D | TvStatusBar.java | 194 protected boolean isSnoozedPackage(StatusBarNotification sbn) { in isSnoozedPackage() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/notification/ |
D | BuzzBeepBlinkTest.java | 157 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, id, mTag, mUid, mPid, in getNotificationRecord() local 159 return new NotificationRecord(getContext(), sbn); in getNotificationRecord()
|