HomeSort by relevance Sort by last modified time
    Searched defs:sbn (Results 1 - 25 of 46) sorted by null

1 2

  /frameworks/base/services/core/java/com/android/server/notification/
GroupHelper.java 48 public void onNotificationPosted(StatusBarNotification sbn, boolean autogroupSummaryExists) {
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.getPackageName()
    [all...]
NotificationChannelExtractor.java 45 record.updateNotificationChannel(mConfig.getNotificationChannel(record.sbn.getPackageName(),
46 record.sbn.getUid(), record.getChannel().getId(), false));
SnoozeHelper.java 133 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; local
169 if (Objects.equals(sbn.getTag(), tag) && sbn.getId() == id) {
229 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName());
283 if (potentialGroupSummary.sbn.isGroup(
    [all...]
  /frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
NotificationIntrusivenessExtractorTest.java 49 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
51 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
66 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
69 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
84 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
88 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
NotificationChannelExtractorTest.java 62 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
64 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
ZenModeExtractorTest.java 109 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
111 return new NotificationRecord(getContext(), sbn, channel);
BadgeExtractorTest.java 76 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, local
78 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
GroupHelperTest.java 162 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); local
163 posted.add(sbn);
164 mGroupHelper.onNotificationPosted(sbn, false);
189 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); local
190 posted.add(sbn);
191 mGroupHelper.onNotificationPosted(sbn, false);
201 final StatusBarNotification sbn = local
203 mGroupHelper.onNotificationPosted(sbn, false);
210 final StatusBarNotification sbn = local
212 mGroupHelper.onNotificationPosted(sbn, false)
224 final StatusBarNotification sbn = getSbn(pkg, i, String.valueOf(i), UserHandle.SYSTEM); local
249 final StatusBarNotification sbn = getSbn(pkg, 5, String.valueOf(5), UserHandle.SYSTEM); local
    [all...]
ImportanceExtractorTest.java 71 StatusBarNotification sbn = new StatusBarNotification(mPkg, mPkg, mId, mTag, mUid, local
73 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
ZenModeFilteringTest.java 72 StatusBarNotification sbn = mock(StatusBarNotification.class); local
73 when(sbn.getNotification()).thenReturn(mock(Notification.class));
74 return new NotificationRecord(mContext, sbn, c);
98 r.sbn.getNotification().category = Notification.CATEGORY_ALARM;
105 r.sbn.getNotification().category = Notification.CATEGORY_CALL;
122 when(r.sbn.getPackageName()).thenReturn("android");
123 when(r.sbn.getId()).thenReturn(SystemMessage.NOTE_ZEN_UPGRADE);
134 when(r.sbn.getPackageName()).thenReturn("android");
135 when(r.sbn.getId()).thenReturn(SystemMessage.NOTE_ACCOUNT_CREDENTIAL_PERMISSION);
145 when(r.sbn.getPackageName()).thenReturn("android2")
    [all...]
NotificationAdjustmentExtractorTest.java 113 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
115 return new NotificationRecord(getContext(), sbn, channel);
  /packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
MessagingNotificationHandler.java 47 StatusBarNotification sbn = (StatusBarNotification) msg.obj; local
48 Notification notification = sbn.getNotification();
54 if (MessagingConverter.canConvert(sbn)) {
55 MessageContactDetails data = MessagingConverter.convert(sbn);
59 Log.w(TAG, "Can't convert message: " + sbn);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
ForegroundServiceControllerImpl.java 109 public void addNotification(StatusBarNotification sbn, int importance) {
110 updateNotification(sbn, importance);
114 public boolean removeNotification(StatusBarNotification sbn) {
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, int newImportance)
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
NotificationMenuRowTest.java 80 StatusBarNotification sbn = mock(StatusBarNotification.class); local
81 when(sbn.getNotification()).thenReturn(n);
83 when(parent.getStatusBarNotification()).thenReturn(sbn);
NotificationTestHelper.java 155 StatusBarNotification sbn = new StatusBarNotification( local
166 NotificationData.Entry entry = new NotificationData.Entry(sbn);
168 entry.createIcons(mContext, sbn);
SmartReplyControllerTest.java 72 StatusBarNotification sbn = mock(StatusBarNotification.class); local
73 when(sbn.getNotification()).thenReturn(mNotification);
74 when(sbn.getKey()).thenReturn(TEST_NOTIFICATION_KEY);
75 mEntry = new NotificationData.Entry(sbn);
80 StatusBarNotification sbn = mock(StatusBarNotification.class); local
81 when(sbn.getKey()).thenReturn(TEST_NOTIFICATION_KEY);
84 eq(TEST_CHOICE_TEXT), eq(true))).thenReturn(sbn);
100 StatusBarNotification sbn = mock(StatusBarNotification.class); local
101 when(sbn.getKey()).thenReturn(TEST_NOTIFICATION_KEY);
104 eq(TEST_CHOICE_TEXT), eq(true))).thenReturn(sbn);
    [all...]
NotificationDataTest.java 217 StatusBarNotification sbn = mRow.getEntry().notification; local
220 sbn.getNotification().extras = bundle;
227 StatusBarNotification sbn = mRow.getEntry().notification; local
230 sbn.getNotification().extras = bundle;
255 StatusBarNotification sbn = mRow.getEntry().notification; local
258 sbn.getNotification().extras = bundle;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
MockListener.java 147 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
148 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
149 Log.d(TAG, "posted: " + sbn.getTag());
150 mPosted.add(sbn.getTag());
151 mPostedNotifications.add(sbn.getNotification());
154 notification.put(JSON_TAG, sbn.getTag());
155 notification.put(JSON_ID, sbn.getId());
156 notification.put(JSON_PACKAGE, sbn.getPackageName());
157 notification.put(JSON_WHEN, sbn.getNotification().when);
158 notification.put(JSON_ICON, sbn.getNotification().icon)
    [all...]
  /frameworks/base/core/java/android/service/notification/
NotificationAssistantService.java 75 * @param sbn the notification to snooze
78 abstract public void onNotificationSnoozedUntilContext(StatusBarNotification sbn,
84 * @param sbn the new notification
87 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn);
103 ** @param sbn A data structure encapsulating at least the original information (tag and id)
112 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap,
114 onNotificationRemoved(sbn, rankingMap, reason);
172 StatusBarNotification sbn; local
174 sbn = sbnHolder.get();
181 args.arg1 = sbn;
190 StatusBarNotification sbn; local
219 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
236 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
NotificationGutsManager.java 156 StatusBarNotification sbn = row.getStatusBarNotification(); local
160 row.setTag(sbn.getPackageName());
171 String key = sbn.getKey();
198 StatusBarNotification sbn = row.getStatusBarNotification(); local
201 notificationSnoozeView.setStatusBarNotification(sbn);
218 StatusBarNotification sbn = row.getStatusBarNotification(); local
219 UserHandle userHandle = sbn.getUser();
230 appOpsInfoView.bindGuts(pmUser, onSettingsClick, sbn, row.getEntry().mActiveAppOps);
245 StatusBarNotification sbn = row.getStatusBarNotification(); local
246 String packageName = sbn.getPackageName()
    [all...]
  /frameworks/base/packages/ExtServices/src/android/ext/services/notification/
Assistant.java 87 // SBN key : channel id
188 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) {
189 if (DEBUG) Log.i(TAG, "ENQUEUED " + sbn.getKey());
194 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
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.getUserId()))
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
ForegroundServiceControllerTest.java 449 final StatusBarNotification sbn = mock(StatusBarNotification.class); local
450 when(sbn.getNotification()).thenReturn(n);
451 when(sbn.getId()).thenReturn(id);
452 when(sbn.getPackageName()).thenReturn(pkg);
453 when(sbn.getTag()).thenReturn(tag);
454 when(sbn.getUserId()).thenReturn(userid);
455 when(sbn.getUser()).thenReturn(new UserHandle(userid));
456 when(sbn.getKey()).thenReturn("MOCK:"+userid+"|"+pkg+"|"+id+"|"+tag);
457 return sbn;
462 StatusBarNotification sbn local
485 final StatusBarNotification sbn = makeMockSBN(userid, "android", local
    [all...]
  /frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/
AssistantTest.java 130 StatusBarNotification sbn = new StatusBarNotification(pkg, pkg, 0, tag, uid, uid, n, local
133 return sbn;
136 private Ranking generateRanking(StatusBarNotification sbn, NotificationChannel channel) {
140 when(mockRanking.getKey()).thenReturn(sbn.getKey());
153 StatusBarNotification sbn = generateSbn(pkg, uid, channel, tag, null); local
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); local
168 mAssistant.setFakeRanking(generateRanking(sbn, P1C1))
179 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, "new one!", null); local
195 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C3, "new one!", null); local
206 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, "no", "I HAVE A GROUP"); local
229 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, "no", "I HAVE A GROUP"); local
249 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, "no", null); local
267 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, "no", null); local
287 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C1, "no", null); local
307 StatusBarNotification sbn = generateSbn(PKG2, UID2, P2C1, "new app!", null); local
319 StatusBarNotification sbn = generateSbn(PKG1, UID1, P1C2, "new app!", null); local
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
NotificationGroupManager.java 59 public boolean isGroupExpanded(StatusBarNotification sbn) {
60 NotificationGroup group = mGroupMap.get(getGroupKey(sbn));
67 public void setGroupExpanded(StatusBarNotification sbn, boolean expanded) {
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; local
123 boolean isGroupChild = isGroupChild(sbn);
491 final StatusBarNotification sbn = entry.notification; local
497 mIsolatedEntries.put(sbn.getKey(), sbn); local
521 StatusBarNotification sbn = entry.notification; local
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/notification/
NotificationListener.java 222 public void onNotificationPosted(final StatusBarNotification sbn) {
223 super.onNotificationPosted(sbn);
224 if (sbn == null) {
228 mWorkerHandler.obtainMessage(MSG_NOTIFICATION_POSTED, new NotificationPostedMsg(sbn))
231 sStatusBarNotificationsChangedListener.onNotificationPosted(sbn);
243 NotificationPostedMsg(StatusBarNotification sbn) {
244 packageUserKey = PackageUserKey.fromNotification(sbn);
245 notificationKey = NotificationKeyData.fromNotification(sbn);
246 shouldBeFilteredOut = shouldBeFilteredOut(sbn);
251 public void onNotificationRemoved(final StatusBarNotification sbn) {
    [all...]

Completed in 1792 milliseconds

1 2