HomeSort by relevance Sort by last modified time
    Searched refs:sbn (Results 1 - 17 of 17) sorted by null

  /cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
CrossProfileNotificationListenerService.java 34 public void onNotificationPosted(StatusBarNotification sbn) {
35 Log.i(TAG, "onNotificationPosted(" + sbn + ")");
36 sendBroadcastForNotification(sbn, ACTION_NOTIFICATION_POSTED);
40 public void onNotificationRemoved(StatusBarNotification sbn) {
41 Log.i(TAG, "onNotificationRemoved(" + sbn + ")");
42 sendBroadcastForNotification(sbn, ACTION_NOTIFICATION_REMOVED);
57 private void sendBroadcastForNotification(StatusBarNotification sbn, String action) {
58 if (NOTIFICATION_CHANNEL.equals(sbn.getNotification().getChannelId())) {
62 + sbn.getNotification().getChannelId());
  /cts/tests/app/app/src/android/app/stubs/
TestNotificationListener.java 76 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
77 if (sbn == null || !mTestPackages.contains(sbn.getPackageName())) { return; }
79 mPosted.add(sbn);
83 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
84 if (sbn == null || !mTestPackages.contains(sbn.getPackageName())) { return; }
86 mRemoved.add(sbn);
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
MockListener.java 149 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
150 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
151 Log.d(TAG, "posted: " + sbn.getTag());
152 mPosted.add(sbn.getTag());
153 mPostedNotifications.add(sbn.getNotification());
156 notification.put(JSON_TAG, sbn.getTag());
157 notification.put(JSON_ID, sbn.getId());
158 notification.put(JSON_PACKAGE, sbn.getPackageName());
159 notification.put(JSON_WHEN, sbn.getNotification().when);
160 notification.put(JSON_ICON, sbn.getNotification().icon)
    [all...]
NotificationListenerVerifierActivity.java     [all...]
  /cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
TestNotificationListener.java 76 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
77 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
79 mPosted.add(sbn);
83 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
84 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
86 mRemoved.add(sbn);
LegacyNotificationManager20Test.java 110 StatusBarNotification sbn = findPostedNotification(notificationId); local
112 mListener.cancelNotification(sbn.getPackageName(), sbn.getTag(), sbn.getId());
123 mListener.cancelNotifications(new String[]{ sbn.getKey() });
214 for (StatusBarNotification sbn : sbns) {
215 Log.d(TAG, "Found " + sbn.getKey());
216 if (sbn.getId() == id) {
238 for (StatusBarNotification sbn : sbns) {
239 Log.d(TAG, "Found " + sbn.getKey())
    [all...]
  /cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
SecondaryNotificationListener.java 75 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
76 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
77 mPosted.add(sbn);
81 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
82 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
83 mRemoved.add(sbn);
TestNotificationListener.java 76 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
77 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
79 mPosted.add(sbn);
83 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
84 if (!mTestPackages.contains(sbn.getPackageName())) { return; }
86 mRemoved.add(sbn);
  /cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
TestNotificationListener.java 78 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) {
79 if (!PKG.equals(sbn.getPackageName())) {
83 mPosted.add(sbn);
87 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {
88 if (!mTestPackages.contains(sbn.getPackageName())) {
92 mRemoved.add(sbn);
TestNotificationAssistant.java 75 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) {
78 return new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "",
79 sbn.getUser());
NotificationAssistantServiceTest.java 113 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); local
115 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out);
127 sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG);
128 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out);
147 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); local
149 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out);
157 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "",
158 sbn.getUser());
163 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out)
181 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); local
219 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); local
265 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); local
310 StatusBarNotification sbn = getFirstNotificationFromPackage( local
443 StatusBarNotification sbn = mNotificationListenerService.mPosted.poll(SLEEP_TIME, local
    [all...]
NotificationManager29Test.java 85 for (StatusBarNotification sbn : sbns) {
86 Log.d(TAG, "Found " + sbn.getKey());
87 if (sbn.getId() == id) {
88 n = sbn;
  /cts/tests/app/src/android/app/cts/
StatusBarNotificationTest.java 99 StatusBarNotification sbn = local
102 assertFalse(sbn.isClearable());
120 StatusBarNotification sbn = local
123 assertTrue(sbn.isGroup());
132 StatusBarNotification sbn = local
135 assertTrue(sbn.isGroup());
148 StatusBarNotification sbn = local
151 assertTrue(sbn.isOngoing());
NotificationManagerTest.java 268 for (StatusBarNotification sbn : sbns) {
269 Log.d(TAG, "Found " + sbn.getKey());
270 if (sbn.getId() == id) {
271 n = sbn;
303 for (StatusBarNotification sbn : sbns) {
304 if (isGroupSummary(sbn.getNotification())
305 || autoGroupedIds.contains(sbn.getId())) {
306 assertTrue(sbn.getKey() + " is unexpectedly not autogrouped",
307 sbn.getOverrideGroupKey() != null);
309 expectedGroupKey = sbn.getGroupKey()
1290 StatusBarNotification sbn = findPostedNotification(notificationId); local
2341 StatusBarNotification sbn = findPostedNotification(notificationId); local
    [all...]
ServiceTest.java 460 for (StatusBarNotification sbn : sbns) {
461 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) {
463 sbn.getNotification().extras.getString(Notification.EXTRA_TITLE);
493 for (StatusBarNotification sbn : sbns) {
494 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) {
495 found = sbn;
    [all...]
  /cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/
NotificationManager28Test.java 85 for (StatusBarNotification sbn : sbns) {
86 Log.d(TAG, "Found " + sbn.getKey());
87 if (sbn.getId() == id) {
88 n = sbn;
  /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();

Completed in 133 milliseconds