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

12

/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/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/services/core/java/com/android/server/notification/
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 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 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 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 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 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...]
H A DZenModeFiltering.java98 return record != null && record.sbn != null && record.sbn.getNotification() != null
99 ? record.sbn.getNotification().extras : null;
199 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName())
220 return Objects.equals(defaultApp, record.sbn.getPackageName());
/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/services/tests/notification/src/com/android/server/notification/
H A DNotificationManagerServiceTest.java174 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, id, "tag", uid, 0,
176 return new NotificationRecord(mContext, sbn, channel);
193 StatusBarNotification sbn = new StatusBarNotification(PKG, PKG, 1, "tag", uid, 0,
195 return new NotificationRecord(mContext, sbn, channel);
293 final StatusBarNotification sbn = generateNotificationRecord(null).sbn;
295 sbn.getId(), sbn.getNotification(), sbn.getUserId());
297 assertEquals(0, mBinderService.getActiveNotifications(sbn
[all...]
H A DNotificationRecordTest.java188 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */,
192 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel);
201 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */,
205 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel);
215 StatusBarNotification sbn = getNotification(true /*preO */, true /* noisy */,
219 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel);
227 StatusBarNotification sbn = getNotification(true /*preO */, false /* noisy */,
231 NotificationRecord record = new NotificationRecord(mMockContext, sbn, defaultChannel);
240 StatusBarNotification sbn = getNotification(false /*preO */, true /* noisy */,
244 NotificationRecord record = new NotificationRecord(mMockContext, sbn, channe
[all...]
H A DSnoozeHelperTest.java79 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
89 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
99 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
101 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
103 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1);
107 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
109 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
121 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
123 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
125 UserHandle.USER_ALL, r3.sbn
[all...]
H A DGroupHelperTest.java152 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM);
153 posted.add(sbn);
154 mGroupHelper.onNotificationPosted(sbn);
179 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM);
180 posted.add(sbn);
181 mGroupHelper.onNotificationPosted(sbn);
191 final StatusBarNotification sbn =
193 mGroupHelper.onNotificationPosted(sbn);
200 final StatusBarNotification sbn =
202 mGroupHelper.onNotificationPosted(sbn);
[all...]
H A DImportanceExtractorTest.java70 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid,
72 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
H A DBadgeExtractorTest.java73 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid,
75 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
/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/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...]
/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 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/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/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,

Completed in 872 milliseconds

12