Searched refs:sbn (Results 1 - 25 of 33) sorted by path

12

/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
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 DNotificationListenerService.java299 * @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/core/java/com/android/internal/util/
H A DNotificationMessagingUtil.java51 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/plugin/src/com/android/systemui/plugins/statusbar/
H A DNotificationSwipeActionHelper.java46 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption); argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DForegroundServiceController.java21 * @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 DForegroundServiceControllerImpl.java56 public void addNotification(StatusBarNotification sbn, int importance) { argument
57 updateNotification(sbn, importance);
61 public boolean removeNotification(StatusBarNotification sbn) { argument
63 final UserServices userServices = mUserServices.get(sbn.getUserId());
68 sbn.getUserId(), sbn));
72 if (isDungeonNotification(sbn)) {
79 return userServices.removeNotification(sbn.getPackageName(), sbn.getKey());
85 public void updateNotification(StatusBarNotification sbn, in argument
110 isDungeonNotification(StatusBarNotification sbn) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationData.java135 * @param sbn the notification
138 public void createIcons(Context context, StatusBarNotification sbn) argument
140 Notification n = sbn.getNotification();
144 + sbn.getPackageName());
149 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn);
154 sbn.getPackageName() + "/0x" + Integer.toHexString(sbn.getId()), sbn);
190 updateIcons(Context context, StatusBarNotification sbn) argument
481 shouldFilterOut(StatusBarNotification sbn) argument
516 showNotificationEvenIfUnprovisioned(StatusBarNotification sbn) argument
521 showNotificationEvenIfUnprovisioned(IPackageManager packageManager, StatusBarNotification sbn) argument
573 isSystemNotification(StatusBarNotification sbn) argument
586 isNotificationForCurrentProfiles(StatusBarNotification sbn) argument
[all...]
H A DNotificationInfo.java103 final StatusBarNotification sbn,
114 mSbn = sbn;
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 DNotificationSnooze.java114 public void setStatusBarNotification(StatusBarNotification sbn) { argument
115 mSbn = sbn;
H A DStatusBarIconView.java135 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn) { argument
136 this(context, slot, sbn, false);
139 public StatusBarIconView(Context context, String slot, StatusBarNotification sbn, argument
149 setNotification(sbn);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationInflater.java139 StatusBarNotification sbn = mRow.getEntry().notification;
140 new AsyncInflationTask(sbn, reInflateFlags, mRow, mIsLowPriority,
608 StatusBarNotification sbn = mRow.getStatusBarNotification();
609 final String ident = sbn.getPackageName() + "/0x"
610 + Integer.toHexString(sbn.getId());
612 mCallback.handleInflationException(sbn,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationGroupManager.java52 public boolean isGroupExpanded(StatusBarNotification sbn) { argument
53 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
60 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) { argument
61 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
84 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal
88 final StatusBarNotification sbn) {
89 String groupKey = getGroupKey(sbn);
98 if (isGroupChild(sbn)) {
112 final StatusBarNotification sbn = added.notification;
113 boolean isGroupChild = isGroupChild(sbn);
87 onEntryRemovedInternal(NotificationData.Entry removed, final StatusBarNotification sbn) argument
211 isSummaryOfSuppressedGroup(StatusBarNotification sbn) argument
215 isOnlyChild(StatusBarNotification sbn) argument
220 isOnlyChildInGroup(StatusBarNotification sbn) argument
229 getTotalNumberOfChildren(StatusBarNotification sbn) argument
268 isChildInGroupWithSummary(StatusBarNotification sbn) argument
288 isSummaryOfGroup(StatusBarNotification sbn) argument
303 getGroupSummary(StatusBarNotification sbn) argument
312 getLogicalGroupSummary( StatusBarNotification sbn) argument
326 toggleGroupExpansion(StatusBarNotification sbn) argument
335 isIsolated(StatusBarNotification sbn) argument
339 isGroupSummary(StatusBarNotification sbn) argument
346 isGroupChild(StatusBarNotification sbn) argument
353 getGroupKey(StatusBarNotification sbn) argument
433 shouldIsolate(StatusBarNotification sbn) argument
[all...]
H A DStatusBar.java1690 StatusBarNotification sbn = entry.notification;
1693 .recoverBuilder(mContext, sbn.getNotification().clone());
1694 CharSequence[] oldHistory = sbn.getNotification().extras
1711 newNotification.contentView = sbn.getNotification().contentView;
1712 newNotification.bigContentView = sbn.getNotification().bigContentView;
1713 newNotification.headsUpContentView = sbn.getNotification().headsUpContentView;
1715 StatusBarNotification newSbn = new StatusBarNotification(sbn.getPackageName(),
1716 sbn.getOpPkg(),
1717 sbn.getId(), sbn
2737 isSnoozedPackage(StatusBarNotification sbn) argument
5855 setNotificationSnoozed(StatusBarNotification sbn, SnoozeOption snoozeOption) argument
6270 bindRow(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument
6306 updateNotification(Entry entry, PackageManager pmUser, StatusBarNotification sbn, ExpandableNotificationRow row) argument
6582 shouldAutoCancel(StatusBarNotification sbn) argument
6593 register(ExpandableNotificationRow row, StatusBarNotification sbn) argument
6669 createNotificationViews(StatusBarNotification sbn) argument
6761 shouldShowOnKeyguard(StatusBarNotification sbn) argument
6848 updatePublicContentView(Entry entry, StatusBarNotification sbn) argument
6879 shouldPeek(Entry entry, StatusBarNotification sbn) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java4354 public void snooze(StatusBarNotification sbn, SnoozeOption snoozeOption) { argument
4355 mStatusBar.setNotificationSnoozed(sbn, snoozeOption);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DForegroundServiceControllerTest.java271 final StatusBarNotification sbn = mock(StatusBarNotification.class);
272 when(sbn.getNotification()).thenReturn(n);
273 when(sbn.getId()).thenReturn(id);
274 when(sbn.getPackageName()).thenReturn(pkg);
275 when(sbn.getTag()).thenReturn(null);
276 when(sbn.getUserId()).thenReturn(userid);
277 when(sbn.getUser()).thenReturn(new UserHandle(userid));
278 when(sbn.getKey()).thenReturn("MOCK:"+userid+"|"+pkg+"|"+id+"|"+tag);
279 return sbn;
290 final StatusBarNotification sbn
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationInfoTest.java752 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME,
757 mNotificationChannel.getImportance(), sbn, null,
783 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME,
788 mNotificationChannel.getImportance(), sbn, null, (View v, Intent intent) -> {
804 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME,
809 mNotificationChannel.getImportance(), sbn, null, null, null,
826 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME,
831 mNotificationChannel.getImportance(), sbn, null, null, null,
850 StatusBarNotification sbn = new StatusBarNotification(TEST_PACKAGE_NAME, TEST_PACKAGE_NAME,
855 mNotificationChannel.getImportance(), sbn, nul
[all...]
H A DNotificationTestHelper.java77 StatusBarNotification sbn = new StatusBarNotification("com.android.systemui",
80 NotificationData.Entry entry = new NotificationData.Entry(sbn);
82 entry.createIcons(mContext, sbn);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarTest.java292 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n,
294 NotificationData.Entry entry = new NotificationData.Entry(sbn);
296 assertTrue(mStatusBar.shouldPeek(entry, sbn));
313 StatusBarNotification sbn = new StatusBarNotification("a", "a", 0, "a", 0, 0, n,
315 NotificationData.Entry entry = new NotificationData.Entry(sbn);
317 assertFalse(mStatusBar.shouldPeek(entry, sbn));
/frameworks/base/services/core/java/com/android/server/notification/
H A DBadgeExtractor.java44 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser());
46 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid());
50 record.setShowBadge(mConfig.getNotificationChannel(record.sbn.getPackageName(),
51 record.sbn.getUid(), record.getChannel().getId(), false).canShowBadge()
H A DGroupHelper.java48 public void onNotificationPosted(StatusBarNotification sbn) { 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);
76 adjustAutogroupingSummary(sbn.getUserId(), sbn
89 onNotificationRemoved(StatusBarNotification sbn) argument
100 maybeUngroup(StatusBarNotification sbn, boolean notificationGone, int userId) argument
[all...]
H A DNotificationComparator.java109 final int leftPriority = left.sbn.getNotification().priority;
110 final int rightPriority = right.sbn.getNotification().priority;
150 return mMessagingUtil.isImportantMessaging(record.sbn, record.getImportance());
164 && isDefaultPhoneApp(record.sbn.getPackageName());
H A DNotificationManagerService.java575 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
4922 isVisibleToListener(StatusBarNotification sbn, ManagedServiceInfo listener) argument
4947 TrimCache(StatusBarNotification sbn) argument
5029 notifyEnqueued(final ManagedServiceInfo info, final StatusBarNotification sbn) argument
5045 notifyAssistantSnoozedLocked(final StatusBarNotification sbn, final String snoozeCriterionId) argument
5148 notifyPostedLocked(StatusBarNotification sbn, StatusBarNotification oldSbn) argument
5187 notifyRemovedLocked(StatusBarNotification sbn, int reason) argument
5299 notifyPosted(final ManagedServiceInfo info, final StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate) argument
5310 notifyRemoved(ManagedServiceInfo info, StatusBarNotification sbn, NotificationRankingUpdate rankingUpdate, int reason) argument
5435 matches(StatusBarNotification sbn) argument
[all...]
H A DNotificationRecord.java78 final StatusBarNotification sbn; field in class:NotificationRecord
136 public NotificationRecord(Context context, StatusBarNotification sbn, argument
139 this.sbn = sbn;
140 mOriginalFlags = sbn.getNotification().flags;
142 mCreationTimeMs = sbn.getPostTime();
159 mContext.getPackageManager().getApplicationInfoAsUser(sbn.getPackageName(),
160 0, UserHandle.getUserId(sbn.getUid()));
172 final Notification n = sbn.getNotification();
208 final Notification notification = sbn
[all...]
H A DNotificationUsageStats.java254 return getAggregatedStatsLocked(record.sbn.getPackageName());
1065 writeEvent(r.sbn.getPostTime(), EVENT_TYPE_POST, r);
1203 cv.put(COL_EVENT_USER_ID, r.sbn.getUser().getIdentifier());
1235 outCv.put(COL_KEY, r.sbn.getKey());
1236 outCv.put(COL_PKG, r.sbn.getPackageName());
1240 outCv.put(COL_NOTIFICATION_ID, r.sbn.getId());
1241 if (r.sbn.getTag() != null) {
1242 outCv.put(COL_TAG, r.sbn.getTag());
1244 outCv.put(COL_WHEN_MS, r.sbn.getPostTime());
H A DSnoozeHelper.java133 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration);
149 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName());
154 records.put(record.sbn.getPackageName(), pkgRecords);
156 mPackages.put(record.getKey(), record.sbn.getPackageName());
168 final StatusBarNotification sbn = record.getValue().sbn;
169 if (Objects.equals(sbn.getTag(), tag) && sbn.getId() == id) {
229 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName());
283 if (potentialGroupSummary.sbn
[all...]

Completed in 970 milliseconds

12