Home
last modified time | relevance | path

Searched refs:sbn (Results 1 – 4 of 4) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java180 for (StatusBarNotification sbn : snoozed) { in onCreate()
181 mSnoozed.add(sbn.getTag()); in onCreate()
266 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument
267 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted()
268 Log.d(TAG, "posted: " + sbn.getTag()); in onNotificationPosted()
269 mPosted.add(sbn.getTag()); in onNotificationPosted()
270 mPostedNotifications.add(sbn.getNotification()); in onNotificationPosted()
273 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted()
274 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted()
275 notification.put(JSON_PACKAGE, sbn.getPackageName()); in onNotificationPosted()
[all …]
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java40 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument
41 Log.d(TAG, "onNotificationPosted(): " + sbn); in onNotificationPosted()
42 if (!sbn.getPackageName().startsWith(getPackageName())) { in onNotificationPosted()
47 final Notification notification = sbn.getNotification(); in onNotificationPosted()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java311 for (StatusBarNotification sbn : sbns) { in testNotify()
312 if (sbn.getId() != id) { in testNotify()
314 + sbn.getKey()); in testNotify()
337 for (StatusBarNotification sbn : sbns) { in testCancelAll()
338 Log.d(TAG, " " + sbn); in testCancelAll()
410 for (StatusBarNotification sbn : sbns) { in checkNotificationExistence()
411 if (sbn.getId() == id) { in checkNotificationExistence()
DServiceTest.java206 for (StatusBarNotification sbn : sbns) { in assertNotification()
207 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) { in assertNotification()
209 sbn.getNotification().extras.getString(Notification.EXTRA_TITLE); in assertNotification()
239 for (StatusBarNotification sbn : sbns) { in assertNoNotification()
240 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) { in assertNoNotification()
241 found = sbn; in assertNoNotification()