HomeSort by relevance Sort by last modified time
    Searched refs:sbn (Results 26 - 50 of 79) sorted by null

12 3 4

  /platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
NotificationSecurityTests.java 67 for (StatusBarNotification sbn : sbns) {
68 Log.i(LOG_TAG, sbn.getNotification().extras.getString(Notification.EXTRA_TITLE));
69 if (sbn.getId() == NOTIFICATION_ID_PUBLIC) {
70 String sentTitle = sbn.getNotification().extras.getString(Notification.EXTRA_TITLE);
  /frameworks/base/services/core/java/com/android/server/notification/
BadgeExtractor.java 46 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser());
48 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid());
NotificationRecord.java 97 final StatusBarNotification sbn; field in class:NotificationRecord
173 public NotificationRecord(Context context, StatusBarNotification sbn,
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.getNotification()
    [all...]
NotificationManagerService.java 714 StatusBarNotification sbn = r.sbn;
715 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
716 sbn.getId(), Notification.FLAG_AUTO_CANCEL,
    [all...]
NotificationComparator.java 109 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());
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...]
ZenModeFiltering.java 111 return record != null && record.sbn != null && record.sbn.getNotification() != null
112 ? record.sbn.getNotification().extras : null;
125 && "android".equals(record.sbn.getPackageName())
126 && SystemMessageProto.SystemMessage.NOTE_ZEN_UPGRADE == record.sbn.getId()) {
232 return record != null && (isDefaultPhoneApp(record.sbn.getPackageName())
260 return mMessagingUtil.isMessaging(record.sbn);
  /packages/apps/Launcher3/src/com/android/launcher3/notification/
NotificationKeyData.java 43 public static NotificationKeyData fromNotification(StatusBarNotification sbn) {
44 Notification notif = sbn.getNotification();
45 return new NotificationKeyData(sbn.getKey(), notif.getShortcutId(), notif.number);
  /packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
StatusBarNotificationListener.java 40 public void onNotificationPosted(StatusBarNotification sbn) {
41 if (MessagingConverter.canConvert(sbn) && mHandler != null) {
43 msg.obj = sbn;
  /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/src/com/android/systemui/statusbar/
NotificationEntryManager.java 152 final StatusBarNotification sbn = row.getStatusBarNotification(); local
153 if (sbn == null) {
168 mCallback.onNotificationClicked(sbn, row);
171 public void register(ExpandableNotificationRow row, StatusBarNotification sbn) {
172 Notification notification = sbn.getNotification();
328 final StatusBarNotification sbn = entry.notification; local
331 updateNotification(entry, pmUser, sbn, entry.row);
335 bindRow(entry, pmUser, sbn, row);
336 updateNotification(entry, pmUser, sbn, row);
342 StatusBarNotification sbn, ExpandableNotificationRow row)
577 StatusBarNotification sbn = entry.notification; local
    [all...]
NotificationData.java 175 * @param sbn the notification
178 public void createIcons(Context context, StatusBarNotification sbn)
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);
440 final StatusBarNotification sbn = entry.notification; local
693 final StatusBarNotification sbn = entry.notification; local
    [all...]
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/services/tests/uiservicestests/src/com/android/server/notification/
SnoozeHelperTest.java 80 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
90 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
100 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
102 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
104 mSnoozeHelper.cancel(UserHandle.USER_SYSTEM, r.sbn.getPackageName(), "one", 1);
108 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
110 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
122 UserHandle.USER_SYSTEM, r.sbn.getPackageName(), r.getKey()));
124 UserHandle.USER_SYSTEM, r2.sbn.getPackageName(), r2.getKey()));
126 UserHandle.USER_ALL, r3.sbn.getPackageName(), r3.getKey()))
    [all...]
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...]
NotificationChannelExtractorTest.java 62 StatusBarNotification sbn = new StatusBarNotification("", "", 0, "", 0, local
64 NotificationRecord r = new NotificationRecord(getContext(), sbn, channel);
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
TestNotificationService.java 104 public void onNotificationPosted(StatusBarNotification sbn) {
105 String pkgName = sbn.getPackageName();
111 mCancelled = doCancel(sbn.getNotification());
116 public void onNotificationRemoved(StatusBarNotification sbn) {
117 String pkgName = sbn.getPackageName();
129 boolean isStartProgress = isStartProgress(sbn.getNotification());
  /cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
MyNotificationListenerService.java 41 public void onNotificationPosted(StatusBarNotification sbn) {
42 Log.d(TAG, "onNotificationPosted(): " + sbn);
43 if (!sbn.getPackageName().startsWith(getPackageName())) {
48 final Notification notification = sbn.getNotification();
  /packages/experimental/NotificationListenerSample/src/com/android/example/notificationlistener/
NotificationListenerActivity.java 186 StatusBarNotification sbn = (StatusBarNotification) tag; local
187 Log.d(TAG, " on " + sbn.getKey());
190 .putExtra(Listener.EXTRA_KEY, sbn.getKey()));
198 StatusBarNotification sbn = (StatusBarNotification) tag; local
199 Log.d(TAG, " on " + sbn.getKey());
202 .putExtra(Listener.EXTRA_KEY, sbn.getKey()));
241 final StatusBarNotification sbn = mNotifications.get(position); local
242 final String key = sbn.getKey();
259 StatusBarNotification sbn = mNotifications.get(position); local
264 if (sbn.getKey().equals(mUpdateKey))
    [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/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);
  /frameworks/base/core/java/android/service/notification/
NotificationListenerService.java 320 * @param sbn A data structure encapsulating the original {@link android.app.Notification}
324 public void onNotificationPosted(StatusBarNotification sbn) {
331 * @param sbn A data structure encapsulating the original {@link android.app.Notification}
337 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
338 onNotificationPosted(sbn);
354 * @param sbn A data structure encapsulating at least the original information (tag and id)
358 public void onNotificationRemoved(StatusBarNotification sbn) {
375 * @param sbn A data structure encapsulating at least the original information (tag and id)
382 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
383 onNotificationRemoved(sbn);
903 StatusBarNotification sbn = list.get(i); local
1224 StatusBarNotification sbn; local
1265 StatusBarNotification sbn; local
1982 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
1990 StatusBarNotification sbn = (StatusBarNotification) args.arg1; local
    [all...]
  /cts/tests/app/src/android/app/cts/
NotificationManagerTest.java 464 for (StatusBarNotification sbn : sbns) {
465 if (sbn.getId() != id) {
467 + sbn.getKey());
584 for (StatusBarNotification sbn : sbns) {
585 Log.d(TAG, " " + sbn);
    [all...]
  /frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/statusbar/
NotificationMenuRowPlugin.java 91 public void createMenu(ViewGroup parent, StatusBarNotification sbn);
103 public void onNotificationUpdated(StatusBarNotification sbn);

Completed in 863 milliseconds

12 3 4