/frameworks/base/core/java/com/android/internal/util/ |
H A D | NotificationMessagingUtil.java | 51 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { argument 52 final int userId = sbn.getUserId(); 57 return Objects.equals(mDefaultSmsApp.get(userId), sbn.getPackageName()); 76 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { argument 81 Class<? extends Notification.Style> style = sbn.getNotification().getNotificationStyle(); 86 if (Notification.CATEGORY_MESSAGE.equals(sbn.getNotification().category) 87 && isDefaultMessagingApp(sbn)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ForegroundServiceController.java | 21 * @param sbn notification that was just posted 24 void addNotification(StatusBarNotification sbn, int importance); argument 27 * @param sbn notification that was just changed in some way 30 void updateNotification(StatusBarNotification sbn, int newImportance); argument 33 * @param sbn notification that was just canceled 35 boolean removeNotification(StatusBarNotification sbn); argument 45 * @param sbn 46 * @return true if sbn is the system-provided "dungeon" (list of running foreground services). 48 boolean isDungeonNotification(StatusBarNotification sbn); argument
|
H A D | ForegroundServiceControllerImpl.java | 60 public void addNotification(StatusBarNotification sbn, int importance) { argument 61 updateNotification(sbn, importance); 65 public boolean removeNotification(StatusBarNotification sbn) { argument 67 final UserServices userServices = mUserServices.get(sbn.getUserId()); 72 sbn.getUserId(), sbn)); 76 if (isDungeonNotification(sbn)) { 83 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey()); 89 public void updateNotification(StatusBarNotification sbn, in argument 114 isDungeonNotification(StatusBarNotification sbn) argument [all...] |
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | NotificationListenerController.java | 33 default boolean onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument 36 default boolean onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { argument 58 void addNotification(StatusBarNotification sbn); argument 59 void removeNotification(StatusBarNotification sbn); argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationListenerWithPlugins.java | 83 public boolean onPluginNotificationPosted(StatusBarNotification sbn, argument 86 if (plugin.onNotificationPosted(sbn, rankingMap)) { 97 public boolean onPluginNotificationRemoved(StatusBarNotification sbn, argument 100 if (plugin.onNotificationRemoved(sbn, rankingMap)) { 137 public void addNotification(StatusBarNotification sbn) { 138 onNotificationPosted(sbn, getRankingMap()); 142 public void removeNotification(StatusBarNotification sbn) { 143 onNotificationRemoved(sbn, getRankingMap());
|
H A D | NotificationGroupManager.java | 53 public boolean isGroupExpanded(StatusBarNotification sbn) { argument 54 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 61 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { argument 62 NotificationGroup group = mGroupMap.get(getGroupKey(sbn)); 85 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal 89 final StatusBarNotification sbn) { 90 String groupKey = getGroupKey(sbn); 99 if (isGroupChild(sbn)) { 116 final StatusBarNotification sbn = added.notification; 117 boolean isGroupChild = isGroupChild(sbn); 88 onEntryRemovedInternal(NotificationData.Entry removed, final StatusBarNotification sbn) argument 225 isSummaryOfSuppressedGroup(StatusBarNotification sbn) argument 229 isOnlyChild(StatusBarNotification sbn) argument 234 isOnlyChildInGroup(StatusBarNotification sbn) argument 243 getTotalNumberOfChildren(StatusBarNotification sbn) argument 282 isChildInGroupWithSummary(StatusBarNotification sbn) argument 302 isSummaryOfGroup(StatusBarNotification sbn) argument 317 getGroupSummary(StatusBarNotification sbn) argument 326 getLogicalGroupSummary( StatusBarNotification sbn) argument 340 toggleGroupExpansion(StatusBarNotification sbn) argument 349 isIsolated(StatusBarNotification sbn) argument 353 isGroupSummary(StatusBarNotification sbn) argument 360 isGroupChild(StatusBarNotification sbn) argument 367 getGroupKey(StatusBarNotification sbn) argument 448 shouldIsolate(StatusBarNotification sbn) argument [all...] |
H A D | StatusBar.java | 1763 StatusBarNotification sbn = entry.notification; 1766 .recoverBuilder(mContext, sbn.getNotification().clone()); 1767 CharSequence[] oldHistory = sbn.getNotification().extras 1784 newNotification.contentView = sbn.getNotification().contentView; 1785 newNotification.bigContentView = sbn.getNotification().bigContentView; 1786 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView; 1788 StatusBarNotification newSbn = new StatusBarNotification(sbn.getPackageName(), 1789 sbn.getOpPkg(), 1790 sbn.getId(), sbn 2823 isSnoozedPackage(StatusBarNotification sbn) argument 6363 setNotificationSnoozed(StatusBarNotification sbn, SnoozeOption snoozeOption) argument 6801 bindRow(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 6839 updateNotification(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument 7129 shouldAutoCancel(StatusBarNotification sbn) argument 7140 register(ExpandableNotificationRow row, StatusBarNotification sbn) argument 7216 createNotificationViews(StatusBarNotification sbn) argument 7331 shouldShowOnKeyguard(StatusBarNotification sbn) argument 7434 shouldPeek(Entry entry, StatusBarNotification sbn) argument [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | NotificationAssistantService.java | 75 * @param sbn the notification to snooze 78 abstract public void onNotificationSnoozedUntilContext(StatusBarNotification sbn, argument 84 * @param sbn the new notification 87 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn); argument 144 StatusBarNotification sbn; 146 sbn = sbnHolder.get(); 153 args.arg1 = sbn; 162 StatusBarNotification sbn; 164 sbn = sbnHolder.get(); 171 args.arg1 = sbn; [all...] |
H A D | NotificationListenerService.java | 299 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 303 public void onNotificationPosted(StatusBarNotification sbn) { argument 310 * @param sbn A data structure encapsulating the original {@link android.app.Notification} 316 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument 317 onNotificationPosted(sbn); 333 * @param sbn A data structure encapsulating at least the original information (tag and id) 337 public void onNotificationRemoved(StatusBarNotification sbn) { argument 354 * @param sbn A data structure encapsulating at least the original information (tag and id) 361 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { argument 362 onNotificationRemoved(sbn); 386 onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, int reason) argument [all...] |
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/ |
H A D | NotificationSwipeActionHelper.java | 47 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption); argument
|
H A D | NotificationMenuRowPlugin.java | 81 public void createMenu(ViewGroup parent, StatusBarNotification sbn); argument 93 public void onNotificationUpdated(StatusBarNotification sbn); argument
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | GroupHelper.java | 48 public void onNotificationPosted(StatusBarNotification sbn, boolean autogroupSummaryExists) { argument 49 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey()); 52 if (!sbn.isAppGroup()) { 57 = mUngroupedNotifications.get(sbn.getUserId()); 61 mUngroupedNotifications.put(sbn.getUserId(), ungroupedNotificationsByUser); 63 = ungroupedNotificationsByUser.get(sbn.getPackageName()); 68 notificationsForPackage.add(sbn.getKey()); 69 ungroupedNotificationsByUser.put(sbn.getPackageName(), notificationsForPackage); 77 adjustAutogroupingSummary(sbn.getUserId(), sbn 90 onNotificationRemoved(StatusBarNotification sbn) argument 101 maybeUngroup(StatusBarNotification sbn, boolean notificationGone, int userId) argument [all...] |
H A D | NotificationRecord.java | 81 final StatusBarNotification sbn; field in class:NotificationRecord 141 public NotificationRecord(Context context, StatusBarNotification sbn, argument 144 this.sbn = sbn; 145 mOriginalFlags = sbn.getNotification().flags; 147 mCreationTimeMs = sbn.getPostTime(); 165 mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(), 166 0, UserHandle.getUserId(sbn.getUid())); 178 final Notification n = sbn.getNotification(); 214 final Notification notification = sbn [all...] |
H A D | NotificationManagerService.java | 652 StatusBarNotification sbn = r.sbn; 653 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 654 sbn.getId(), Notification.FLAG_AUTO_CANCEL, 852 cancelNotification(record.sbn.getUid(), record.sbn.getInitialPid(), 853 record.sbn.getPackageName(), record.sbn.getTag(), 854 record.sbn 3101 hasAutoGroupSummaryLocked(StatusBarNotification sbn) argument 5311 isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) argument 5336 TrimCache(StatusBarNotification sbn) argument 5420 notifyEnqueued(final ManagedServiceInfo info, final StatusBarNotification sbn) argument 5436 notifyAssistantSnoozedLocked(final StatusBarNotification sbn, final String snoozeCriterionId) argument 5542 notifyPostedLocked(StatusBarNotification sbn, StatusBarNotification oldSbn) argument 5581 notifyRemovedLocked(StatusBarNotification sbn, int reason) argument 5687 notifyPosted(final ManagedServiceInfo info, final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) argument 5698 notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate, int reason) argument 5823 matches(StatusBarNotification sbn) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
H A D | CarStatusBar.java | 388 protected boolean shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) { argument 396 return super.shouldPeek(entry, sbn);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationInfo.java | 103 final StatusBarNotification sbn, 114 mSbn = sbn; 129 mAppUid = sbn.getUid(); 98 bindNotification(final PackageManager pm, final INotificationManager iNotificationManager, final String pkg, final List<NotificationChannel> notificationChannels, int startingUserImportance, final StatusBarNotification sbn, OnSettingsClickListener onSettingsClick, OnAppSettingsClickListener onAppSettingsClick, OnClickListener onDoneClick, CheckSaveListener checkSaveListener, final Set<String> nonBlockablePkgs) argument
|
H A D | NotificationData.java | 136 * @param sbn the notification 139 public void createIcons(Context context, StatusBarNotification sbn) argument 141 Notification n = sbn.getNotification(); 145 + sbn.getPackageName()); 150 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 155 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn); 191 updateIcons(Context context, StatusBarNotification sbn) argument 511 shouldFilterOut(StatusBarNotification sbn) argument 546 showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) argument 551 showNotificationEvenIfUnprovisioned(IPackageManager packageManager, StatusBarNotification sbn) argument 603 isSystemNotification(StatusBarNotification sbn) argument 616 isNotificationForCurrentProfiles(StatusBarNotification sbn) argument [all...] |
H A D | NotificationMenuRow.java | 133 public void createMenu(ViewGroup parent, StatusBarNotification sbn) { argument 154 public void onNotificationUpdated(StatusBarNotification sbn) { argument
|
H A D | NotificationSnooze.java | 219 public void setStatusBarNotification(StatusBarNotification sbn) { argument 220 mSbn = sbn;
|
H A D | StatusBarIconView.java | 148 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn) { argument 149 this(context, slot, sbn, false); 152 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn, argument 162 setNotification(sbn);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | NotificationStackScrollLayout.java | 4458 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption) { argument 4459 mStatusBar.setNotificationSnoozed(sbn, snoozeOption);
|