/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | MockListener.java | 149 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 150 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 151 Log.d(TAG, "posted: " + sbn.getTag()); in onNotificationPosted() 152 mPosted.add(sbn.getTag()); in onNotificationPosted() 153 mPostedNotifications.add(sbn.getNotification()); in onNotificationPosted() 156 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted() 157 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted() 158 notification.put(JSON_PACKAGE, sbn.getPackageName()); in onNotificationPosted() 159 notification.put(JSON_WHEN, sbn.getNotification().when); in onNotificationPosted() 160 notification.put(JSON_ICON, sbn.getNotification().icon); in onNotificationPosted() [all …]
|
D | NotificationListenerVerifierActivity.java | 1240 for (StatusBarNotification sbn : snoozed) { in getSnoozed() 1241 result.add(sbn.getTag()); in getSnoozed() 1316 for (StatusBarNotification sbn : snoozed) { in test() 1317 result.add(sbn.getTag()); in test()
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 113 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued() local 115 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued() 127 sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued() 128 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued() 147 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_userSentimentKey() local 149 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey() 157 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_userSentimentKey() 158 sbn.getUser()); in testAdjustNotification_userSentimentKey() 163 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey() 181 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_importanceKey() local [all …]
|
D | TestNotificationListener.java | 78 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 79 if (!PKG.equals(sbn.getPackageName())) { in onNotificationPosted() 83 mPosted.add(sbn); in onNotificationPosted() 87 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument 88 if (!mTestPackages.contains(sbn.getPackageName())) { in onNotificationRemoved() 92 mRemoved.add(sbn); in onNotificationRemoved()
|
D | TestNotificationAssistant.java | 75 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) { in onNotificationEnqueued() argument 78 return new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in onNotificationEnqueued() 79 sbn.getUser()); in onNotificationEnqueued()
|
D | NotificationManager29Test.java | 85 for (StatusBarNotification sbn : sbns) { in findPostedNotification() 86 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 87 if (sbn.getId() == id) { in findPostedNotification() 88 n = sbn; in findPostedNotification()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileNotificationListenerService.java | 34 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 35 Log.i(TAG, "onNotificationPosted(" + sbn + ")"); in onNotificationPosted() 36 sendBroadcastForNotification(sbn, ACTION_NOTIFICATION_POSTED); in onNotificationPosted() 40 public void onNotificationRemoved(StatusBarNotification sbn) { in onNotificationRemoved() argument 41 Log.i(TAG, "onNotificationRemoved(" + sbn + ")"); in onNotificationRemoved() 42 sendBroadcastForNotification(sbn, ACTION_NOTIFICATION_REMOVED); in onNotificationRemoved() 57 private void sendBroadcastForNotification(StatusBarNotification sbn, String action) { in sendBroadcastForNotification() argument 58 if (NOTIFICATION_CHANNEL.equals(sbn.getNotification().getChannelId())) { in sendBroadcastForNotification() 62 + sbn.getNotification().getChannelId()); in sendBroadcastForNotification()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | TestNotificationListener.java | 76 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 77 if (sbn == null || !mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 79 mPosted.add(sbn); in onNotificationPosted() 83 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument 84 if (sbn == null || !mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationRemoved() 86 mRemoved.add(sbn); in onNotificationRemoved()
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | LegacyNotificationManager20Test.java | 110 StatusBarNotification sbn = findPostedNotification(notificationId); in testNotificationListener_cancelNotifications() local 112 mListener.cancelNotification(sbn.getPackageName(), sbn.getTag(), sbn.getId()); in testNotificationListener_cancelNotifications() 123 mListener.cancelNotifications(new String[]{ sbn.getKey() }); in testNotificationListener_cancelNotifications() 214 for (StatusBarNotification sbn : sbns) { in checkNotificationExistence() 215 Log.d(TAG, "Found " + sbn.getKey()); in checkNotificationExistence() 216 if (sbn.getId() == id) { in checkNotificationExistence() 238 for (StatusBarNotification sbn : sbns) { in findPostedNotification() 239 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 240 if (sbn.getId() == id) { in findPostedNotification() 241 n = sbn; in findPostedNotification()
|
D | TestNotificationListener.java | 76 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 77 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 79 mPosted.add(sbn); in onNotificationPosted() 83 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument 84 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationRemoved() 86 mRemoved.add(sbn); in onNotificationRemoved()
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | SecondaryNotificationListener.java | 75 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 76 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 77 mPosted.add(sbn); in onNotificationPosted() 81 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument 82 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationRemoved() 83 mRemoved.add(sbn); in onNotificationRemoved()
|
D | TestNotificationListener.java | 76 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 77 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 79 mPosted.add(sbn); in onNotificationPosted() 83 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument 84 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationRemoved() 86 mRemoved.add(sbn); in onNotificationRemoved()
|
/cts/tests/app/src/android/app/cts/ |
D | StatusBarNotificationTest.java | 99 StatusBarNotification sbn = in testIsClearable_notClearableOngoingEvent() local 102 assertFalse(sbn.isClearable()); in testIsClearable_notClearableOngoingEvent() 120 StatusBarNotification sbn = in testIsGroup_notifGroup() local 123 assertTrue(sbn.isGroup()); in testIsGroup_notifGroup() 132 StatusBarNotification sbn = in testIsGroup_sortKey() local 135 assertTrue(sbn.isGroup()); in testIsGroup_sortKey() 148 StatusBarNotification sbn = in testIsOngoing_ongoingEvent() local 151 assertTrue(sbn.isOngoing()); in testIsOngoing_ongoingEvent()
|
D | NotificationManagerTest.java | 270 for (StatusBarNotification sbn : sbns) { in findPostedNotification() 271 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 272 if (sbn.getId() == id) { in findPostedNotification() 273 n = sbn; in findPostedNotification() 305 for (StatusBarNotification sbn : sbns) { in assertOnlySomeNotificationsAutogrouped() 306 if (isGroupSummary(sbn.getNotification()) in assertOnlySomeNotificationsAutogrouped() 307 || autoGroupedIds.contains(sbn.getId())) { in assertOnlySomeNotificationsAutogrouped() 308 assertTrue(sbn.getKey() + " is unexpectedly not autogrouped", in assertOnlySomeNotificationsAutogrouped() 309 sbn.getOverrideGroupKey() != null); in assertOnlySomeNotificationsAutogrouped() 311 expectedGroupKey = sbn.getGroupKey(); in assertOnlySomeNotificationsAutogrouped() [all …]
|
D | ServiceTest.java | 503 for (StatusBarNotification sbn : sbns) { in assertNotification() 504 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) { in assertNotification() 506 sbn.getNotification().extras.getString(Notification.EXTRA_TITLE); in assertNotification() 536 for (StatusBarNotification sbn : sbns) { in assertNoNotification() 537 if (sbn.getId() == id && sbn.getPackageName().equals(packageName)) { in assertNoNotification() 538 found = sbn; in assertNoNotification()
|
/cts/tests/tests/notificationlegacy/notificationlegacy28/src/android/app/notification/legacy28/cts/ |
D | NotificationManager28Test.java | 85 for (StatusBarNotification sbn : sbns) { in findPostedNotification() 86 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 87 if (sbn.getId() == id) { in findPostedNotification() 88 n = sbn; in findPostedNotification()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | MyNotificationListenerService.java | 41 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 42 Log.d(TAG, "onNotificationPosted(): " + sbn); in onNotificationPosted() 43 if (!sbn.getPackageName().startsWith(getPackageName())) { in onNotificationPosted() 48 final Notification notification = sbn.getNotification(); in onNotificationPosted()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | NotificationListener.java | 59 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 61 listener.accept(sbn); in onNotificationPosted()
|