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.java217 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument
218 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted()
219 Log.d(TAG, "posted: " + sbn.getTag()); in onNotificationPosted()
220 mPosted.add(sbn.getTag()); in onNotificationPosted()
223 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted()
224 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted()
225 notification.put(JSON_PACKAGE, sbn.getPackageName()); in onNotificationPosted()
226 notification.put(JSON_WHEN, sbn.getNotification().when); in onNotificationPosted()
227 notification.put(JSON_ICON, sbn.getNotification().icon); in onNotificationPosted()
228 notification.put(JSON_FLAGS, sbn.getNotification().flags); in onNotificationPosted()
[all …]
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java63 for (StatusBarNotification sbn : sbns) { in testNotify()
64 if (sbn.getId() != id) { in testNotify()
66 + sbn.getKey()); in testNotify()
89 for (StatusBarNotification sbn : sbns) { in testCancelAll()
90 Log.d(TAG, " " + sbn); in testCancelAll()
131 for (StatusBarNotification sbn : sbns) { in checkNotificationExistence()
132 if (sbn.getId() == id) { in checkNotificationExistence()
DServiceTest.java193 for (StatusBarNotification sbn : sbns) { in assertNotification()
194 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) { in assertNotification()
196 sbn.getNotification().extras.getString(Notification.EXTRA_TITLE); in assertNotification()
226 for (StatusBarNotification sbn : sbns) { in assertNoNotification()
227 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) { in assertNoNotification()
228 found = sbn; in assertNoNotification()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DMyNotificationListenerService.java37 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument
38 Log.d(TAG, "onNotificationPosted(): " + sbn); in onNotificationPosted()
39 if (!sbn.getPackageName().startsWith(getPackageName())) { in onNotificationPosted()
43 final Notification notification = sbn.getNotification(); in onNotificationPosted()