Searched defs:sbn (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/car/
H A DCarNotificationEntryManager.java44 public boolean shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) { argument
52 return super.shouldPeek(entry, sbn);
/frameworks/base/core/java/com/android/internal/util/
H A DNotificationMessagingUtil.java49 public boolean isImportantMessaging(StatusBarNotification sbn, int importance) { argument
54 return hasMessagingStyle(sbn) || (isCategoryMessage(sbn) && isDefaultMessagingApp(sbn));
57 public boolean isMessaging(StatusBarNotification sbn) { argument
58 return hasMessagingStyle(sbn) || isDefaultMessagingApp(sbn) || isCategoryMessage(sbn);
62 private boolean isDefaultMessagingApp(StatusBarNotification sbn) { argument
63 final int userId = sbn
87 hasMessagingStyle(StatusBarNotification sbn) argument
92 isCategoryMessage(StatusBarNotification sbn) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationListener.java64 for (StatusBarNotification sbn : notifications) {
65 mEntryManager.addNotification(sbn, currentRanking);
71 public void onNotificationPosted(final StatusBarNotification sbn, argument
73 if (DEBUG) Log.d(TAG, "onNotificationPosted: " + sbn);
74 if (sbn != null && !onPluginNotificationPosted(sbn, rankingMap)) {
76 processForRemoteInput(sbn.getNotification(), mContext);
77 String key = sbn.getKey();
86 && mPresenter.getGroupManager().isChildInGroupWithSummary(sbn)) {
88 Log.d(TAG, "Ignoring group child due to existing summary: " + sbn);
110 onNotificationRemoved(StatusBarNotification sbn, final RankingMap rankingMap) argument
[all...]
H A DAppOpsInfo.java70 final StatusBarNotification sbn,
72 mPkg = sbn.getPackageName();
73 mSbn = sbn;
68 bindGuts(final PackageManager pm, final OnSettingsClickListener onSettingsClick, final StatusBarNotification sbn, ArraySet<Integer> activeOps) argument
H A DNotificationLockscreenUserManager.java302 public boolean shouldShowOnKeyguard(StatusBarNotification sbn) { argument
308 && !mEntryManager.getNotificationData().isAmbient(sbn.getKey());
H A DNotificationInfo.java124 void checkSave(Runnable saveImportance, StatusBarNotification sbn); argument
142 final StatusBarNotification sbn,
149 numUniqueChannelsInRow, sbn, checkSaveListener, onSettingsClick,
160 StatusBarNotification sbn,
172 mSbn = sbn;
136 bindNotification( final PackageManager pm, final INotificationManager iNotificationManager, final String pkg, final NotificationChannel notificationChannel, final int numUniqueChannelsInRow, final StatusBarNotification sbn, final CheckSaveListener checkSaveListener, final OnSettingsClickListener onSettingsClick, final OnAppSettingsClickListener onAppSettingsClick, boolean isNonblockable) argument
154 bindNotification( PackageManager pm, INotificationManager iNotificationManager, String pkg, NotificationChannel notificationChannel, int numUniqueChannelsInRow, StatusBarNotification sbn, CheckSaveListener checkSaveListener, OnSettingsClickListener onSettingsClick, OnAppSettingsClickListener onAppSettingsClick, boolean isNonblockable, boolean isForBlockingHelper, boolean isUserSentimentNegative) argument
H A DNotificationMenuRow.java147 public void createMenu(ViewGroup parent, StatusBarNotification sbn) { argument
168 public void onNotificationUpdated(StatusBarNotification sbn) { argument
H A DNotificationSnooze.java218 public void setStatusBarNotification(StatusBarNotification sbn) { argument
219 mSbn = sbn;
H A DNotificationData.java175 * @param sbn the notification
178 public void createIcons(Context context, StatusBarNotification sbn) argument
180 Notification n = sbn.getNotification();
184 + sbn.getPackageName());
189 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn);
194 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn);
230 updateIcons(Context context, StatusBarNotification sbn) argument
748 showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) argument
753 showNotificationEvenIfUnprovisioned(IPackageManager packageManager, StatusBarNotification sbn) argument
805 isSystemNotification(StatusBarNotification sbn) argument
818 isNotificationForCurrentProfiles(StatusBarNotification sbn) argument
[all...]
H A DNotificationEntryManager.java152 final StatusBarNotification sbn = row.getStatusBarNotification();
153 if (sbn == null) {
168 mCallback.onNotificationClicked(sbn, row);
171 public void register(ExpandableNotificationRow row, StatusBarNotification sbn) { argument
172 Notification notification = sbn.getNotification();
328 final StatusBarNotification sbn = entry.notification;
331 updateNotification(entry, pmUser, sbn, entry.row);
335 bindRow(entry, pmUser, sbn, row);
336 updateNotification(entry, pmUser, sbn, row);
342 StatusBarNotification sbn, ExpandableNotificationRo
341 bindRow(NotificationData.Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument
697 updateNotification(NotificationData.Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument
743 createNotificationViews(StatusBarNotification sbn) argument
917 shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) argument
991 isSnoozedPackage(StatusBarNotification sbn) argument
1063 onNotificationClicked(StatusBarNotification sbn, ExpandableNotificationRow row) argument
1073 onBindRow(NotificationData.Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument
1090 shouldPeek(NotificationData.Entry entry, StatusBarNotification sbn) argument
[all...]
H A DStatusBarIconView.java157 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn) { argument
158 this(context, slot, sbn, false);
161 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn, argument
171 setNotification(sbn);
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DNotificationListenerController.java33 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/
H A DForegroundServiceController.java23 * @param sbn notification that was just posted
26 void addNotification(StatusBarNotification sbn, int importance); argument
29 * @param sbn notification that was just changed in some way
32 void updateNotification(StatusBarNotification sbn, int newImportance); argument
35 * @param sbn notification that was just canceled
37 boolean removeNotification(StatusBarNotification sbn); argument
47 * @param sbn
48 * @return true if sbn is the system-provided "dungeon" (list of running foreground services).
50 boolean isDungeonNotification(StatusBarNotification sbn); argument
53 * @return true if sbn i
55 isSystemAlertNotification(StatusBarNotification sbn) argument
[all...]
H A DForegroundServiceControllerImpl.java109 public void addNotification(StatusBarNotification sbn, int importance) { argument
110 updateNotification(sbn, importance);
114 public boolean removeNotification(StatusBarNotification sbn) { argument
116 final UserServices userServices = mUserServices.get(sbn.getUserId());
121 sbn.getUserId(), sbn));
125 if (isDungeonNotification(sbn)) {
132 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey());
138 public void updateNotification(StatusBarNotification sbn, in argument
170 isDungeonNotification(StatusBarNotification sbn) argument
177 isSystemAlertNotification(StatusBarNotification sbn) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationListenerWithPlugins.java83 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 DNotificationGroupManager.java59 public boolean isGroupExpanded(StatusBarNotification sbn) { argument
60 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
67 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { argument
68 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
91 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal
95 final StatusBarNotification sbn) {
96 String groupKey = getGroupKey(sbn);
105 if (isGroupChild(sbn)) {
122 final StatusBarNotification sbn = added.notification;
123 boolean isGroupChild = isGroupChild(sbn);
94 onEntryRemovedInternal(NotificationData.Entry removed, final StatusBarNotification sbn) argument
328 isSummaryOfSuppressedGroup(StatusBarNotification sbn) argument
332 isOnlyChild(StatusBarNotification sbn) argument
337 isOnlyChildInGroup(StatusBarNotification sbn) argument
346 getTotalNumberOfChildren(StatusBarNotification sbn) argument
385 isChildInGroupWithSummary(StatusBarNotification sbn) argument
405 isSummaryOfGroup(StatusBarNotification sbn) argument
420 getGroupSummary(StatusBarNotification sbn) argument
429 getLogicalGroupSummary( StatusBarNotification sbn) argument
443 toggleGroupExpansion(StatusBarNotification sbn) argument
452 isIsolated(StatusBarNotification sbn) argument
456 isGroupSummary(StatusBarNotification sbn) argument
463 isGroupChild(StatusBarNotification sbn) argument
470 getGroupKey(StatusBarNotification sbn) argument
591 shouldIsolate(StatusBarNotification sbn) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DNotificationAssistantService.java75 * @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
103 ** @param sbn A data structure encapsulating at least the original information (tag and id)
112 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, argument
114 onNotificationRemoved(sbn, rankingMap, reason);
172 StatusBarNotification sbn;
174 sbn = sbnHolder.get();
181 args.arg1 = sbn;
[all...]
H A DNotificationListenerService.java320 * @param sbn A data structure encapsulating the original {@link android.app.Notification}
324 public void onNotificationPosted(StatusBarNotification sbn) { argument
331 * @param sbn A data structure encapsulating the original {@link android.app.Notification}
337 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument
338 onNotificationPosted(sbn);
354 * @param sbn A data structure encapsulating at least the original information (tag and id)
358 public void onNotificationRemoved(StatusBarNotification sbn) { argument
375 * @param sbn A data structure encapsulating at least the original information (tag and id)
382 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { argument
383 onNotificationRemoved(sbn);
407 onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, int reason) argument
419 onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, NotificationStats stats, int reason) argument
[all...]
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
H A DNotificationSwipeActionHelper.java47 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption); argument
H A DNotificationMenuRowPlugin.java91 public void createMenu(ViewGroup parent, StatusBarNotification sbn); argument
103 public void onNotificationUpdated(StatusBarNotification sbn); argument
/frameworks/base/services/core/java/com/android/server/notification/
H A DGroupHelper.java48 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 DNotificationRecord.java97 final StatusBarNotification sbn; field in class:NotificationRecord
173 public NotificationRecord(Context context, StatusBarNotification sbn, argument
175 this.sbn = sbn;
177 .getPackageTargetSdkVersion(sbn.getPackageName());
179 mOriginalFlags = sbn.getNotification().flags;
181 mCreationTimeMs = sbn.getPostTime();
208 final Notification n = sbn.getNotification();
244 final Notification notification = sbn.getNotification();
275 final Notification notification = sbn
[all...]
H A DNotificationManagerService.java714 StatusBarNotification sbn = r.sbn;
715 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
716 sbn.getId(), Notification.FLAG_AUTO_CANCEL,
990 cancelNotification(record.sbn.getUid(), record.sbn.getInitialPid(),
991 record.sbn.getPackageName(), record.sbn.getTag(),
992 record.sbn
3601 hasAutoGroupSummaryLocked(StatusBarNotification sbn) argument
6263 isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) argument
6306 TrimCache(StatusBarNotification sbn) argument
6395 notifyEnqueued(final ManagedServiceInfo info, final StatusBarNotification sbn) argument
6411 notifyAssistantSnoozedLocked(final StatusBarNotification sbn, final String snoozeCriterionId) argument
6805 notifyPosted(final ManagedServiceInfo info, final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) argument
6816 notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate, NotificationStats stats, int reason) argument
6958 matches(StatusBarNotification sbn) argument
[all...]
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/
H A DAssistantTest.java130 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, 0, tag, uid, uid, n,
133 return sbn;
136 private Ranking generateRanking(StatusBarNotification sbn, NotificationChannel channel) { argument
140 when(mockRanking.getKey()).thenReturn(sbn.getKey());
153 StatusBarNotification sbn = generateSbn(pkg, uid, channel, tag, null);
154 mAssistant.setFakeRanking(generateRanking(sbn, channel));
155 mAssistant.onNotificationPosted(sbn, mock(RankingMap.class));
161 sbn, mock(RankingMap.class), stats, NotificationListenerService.REASON_CANCEL);
166 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, null, null);
168 mAssistant.setFakeRanking(generateRanking(sbn, P1C
[all...]
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
H A DAssistant.java188 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) { argument
189 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey());
194 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { argument
195 if (DEBUG) Log.i(TAG, "POSTED " + sbn.getKey());
197 Ranking ranking = getRanking(sbn.getKey(), rankingMap);
200 sbn.getPackageName(), sbn.getUserId(), ranking.getChannel().getId());
205 sbn.getPackageName(), sbn.getKey(), sbn
216 onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, NotificationStats stats, int reason) argument
257 onNotificationSnoozedUntilContext(StatusBarNotification sbn, String snoozeCriterionId) argument
[all...]

Completed in 1784 milliseconds

12