/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | MockListener.java | 81 for (StatusBarNotification sbn : mPosted) { in getPosted() 82 if (sbn.getTag().equals(tag)) { in getPosted() 83 return sbn; in getPosted() 158 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 159 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 160 Log.d(TAG, "posted: " + sbn.getTag()); in onNotificationPosted() 161 mPosted.add(sbn); in onNotificationPosted() 162 mPostedNotifications.add(sbn.getNotification()); in onNotificationPosted() 165 notification.put(JSON_TAG, sbn.getTag()); in onNotificationPosted() 166 notification.put(JSON_ID, sbn.getId()); in onNotificationPosted() [all …]
|
D | NotificationListenerVerifierActivity.java | 325 StatusBarNotification sbn = MockListener.getInstance().getPosted(mTag1); in test() local 326 if (sbn == null) { in test() 334 sbn.getNotification()); in test() 541 StatusBarNotification sbn = MockListener.getInstance().getPosted(mTag1); in test() local 542 if (sbn != null) { in test() 543 MockListener.getInstance().getCurrentRanking().getRanking(sbn.getKey(), rank); in test() 1391 for (StatusBarNotification sbn : snoozed) { in getSnoozed() 1392 result.add(sbn.getTag()); in getSnoozed() 1467 for (StatusBarNotification sbn : snoozed) { in test() 1468 result.add(sbn.getTag()); in test()
|
/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()
|
D | NotificationListener.java | 59 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 61 listener.accept(sbn); in onNotificationPosted()
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | TestNotificationListener.java | 41 for (StatusBarNotification sbn : mRemoved) { in checkRemovedKey() 42 if (sbn.getKey().equals(key)) return true; in checkRemovedKey() 85 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 86 android.util.Log.v(TAG, "notification posted: " + sbn); in onNotificationPosted() 87 if (!PKG.equals(sbn.getPackageName())) { in onNotificationPosted() 91 mPosted.add(sbn); in onNotificationPosted() 95 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationRemoved() argument 96 android.util.Log.v(TAG, "notification removed: " + sbn); in onNotificationRemoved() 97 if (!mTestPackages.contains(sbn.getPackageName())) { in onNotificationRemoved() 100 android.util.Log.v(TAG, "adding to removed: " + sbn); in onNotificationRemoved() [all …]
|
D | NotificationAssistantServiceTest.java | 120 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued() local 122 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued() 134 sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued() 135 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testOnNotificationEnqueued() 153 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_userSentimentKey() local 155 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey() 163 Adjustment adjustment = new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in testAdjustNotification_userSentimentKey() 164 sbn.getUser()); in testAdjustNotification_userSentimentKey() 169 mNotificationListenerService.mRankingMap.getRanking(sbn.getKey(), out); in testAdjustNotification_userSentimentKey() 184 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_importanceKey() local [all …]
|
D | TestNotificationAssistant.java | 87 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) { in onNotificationEnqueued() argument 92 public Adjustment onNotificationEnqueued(StatusBarNotification sbn, NotificationChannel channel, in onNotificationEnqueued() argument 96 rankingMap.getRanking(sbn.getKey(), ranking); in onNotificationEnqueued() 99 return new Adjustment(sbn.getPackageName(), sbn.getKey(), signals, "", in onNotificationEnqueued() 100 sbn.getUser()); in onNotificationEnqueued()
|
D | NotificationManager29Test.java | 113 for (StatusBarNotification sbn : sbns) { in findPostedNotification() 114 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 115 if (sbn.getId() == id) { in findPostedNotification() 116 n = sbn; in findPostedNotification()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | TestNotificationListener.java | 103 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 104 if (sbn == null || !mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 106 mPosted.add(sbn); in onNotificationPosted() 110 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved() argument 112 if (sbn == null || !mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationRemoved() 114 mRemoved.put(sbn.getKey(), reason); 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 | 78 public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMap) { in onNotificationPosted() argument 79 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationPosted() 81 mPosted.add(sbn); in onNotificationPosted() 85 public void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap, in onNotificationRemoved() argument 87 if (!mTestPackages.contains(sbn.getPackageName())) { return; } in onNotificationRemoved() 89 mRemoved.put(sbn.getKey(), reason); in onNotificationRemoved()
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
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()
|
D | LegacyNotificationManager20Test.java | 101 StatusBarNotification sbn = findPostedNotification(notificationId); in testNotificationListener_cancelNotifications() local 103 mListener.cancelNotification(sbn.getPackageName(), sbn.getTag(), sbn.getId()); in testNotificationListener_cancelNotifications() 114 mListener.cancelNotifications(new String[]{ sbn.getKey() }); in testNotificationListener_cancelNotifications() 205 for (StatusBarNotification sbn : sbns) { in checkNotificationExistence() 206 Log.d(TAG, "Found " + sbn.getKey()); in checkNotificationExistence() 207 if (sbn.getId() == id) { in checkNotificationExistence() 229 for (StatusBarNotification sbn : sbns) { in findPostedNotification() 230 Log.d(TAG, "Found " + sbn.getKey()); in findPostedNotification() 231 if (sbn.getId() == id) { in findPostedNotification() 232 n = sbn; in findPostedNotification()
|
/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 | 329 StatusBarNotification sbn = findNotificationNoWait(id, all); in assertNotificationCancelled() local 330 if (sbn == null) return; in assertNotificationCancelled() 450 for (StatusBarNotification sbn : sbns) { in assertOnlySomeNotificationsAutogrouped() 451 if (isGroupSummary(sbn.getNotification()) in assertOnlySomeNotificationsAutogrouped() 452 || autoGroupedIds.contains(sbn.getId())) { in assertOnlySomeNotificationsAutogrouped() 453 assertTrue(sbn.getKey() + " is unexpectedly not autogrouped", in assertOnlySomeNotificationsAutogrouped() 454 sbn.getOverrideGroupKey() != null); in assertOnlySomeNotificationsAutogrouped() 456 expectedGroupKey = sbn.getGroupKey(); in assertOnlySomeNotificationsAutogrouped() 458 assertEquals(expectedGroupKey, sbn.getGroupKey()); in assertOnlySomeNotificationsAutogrouped() 460 assertTrue(sbn.isGroup()); in assertOnlySomeNotificationsAutogrouped() [all …]
|
/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/tests/tests/systemui/src/android/systemui/cts/ |
D | NotificationListener.kt | 26 override fun onNotificationPosted(sbn: StatusBarNotification) { in onNotificationPosted() 27 if (DEBUG) Log.d(TAG, "onNotificationPosted: $sbn") in onNotificationPosted() 30 override fun onNotificationRemoved(sbn: StatusBarNotification) { in onNotificationRemoved() 31 if (DEBUG) Log.d(TAG, "onNotificationRemoved: $sbn") in onNotificationRemoved()
|
/cts/tests/tests/os/CompanionTestApp/src/android/os/cts/companiontestapp/ |
D | NotificationListener.kt | 30 override fun onNotificationPosted(sbn: StatusBarNotification) { in onNotificationPosted() 31 super.onNotificationPosted(sbn) in onNotificationPosted()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | NotificationHelper.java | 64 for (StatusBarNotification sbn : getActiveNotifications(all)) { in findNotificationNoWait() 65 if (sbn.getId() == id) { in findNotificationNoWait() 66 return sbn; in findNotificationNoWait()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | NotificationListener.java | 68 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 69 Log.d(TAG, "Notification posted: " + sbn); in onNotificationPosted() 71 listener.accept(sbn); in onNotificationPosted()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/ |
D | NotificationListener.java | 67 void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 68 mStatusBarNotifications.addLast(sbn); in onNotificationPosted()
|
D | NotificationListenerQuery.java | 105 private boolean matches(StatusBarNotification sbn) { in matches() argument 106 return StringQueryHelper.matches(mPackageName, sbn.getPackageName()) in matches() 107 && NotificationQueryHelper.matches(mNotification, sbn.getNotification()); in matches()
|
D | NeneNotificationListenerService.java | 56 public void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 57 Notifications.sInstance.onNotificationPosted(sbn); in onNotificationPosted()
|
D | Notifications.java | 113 void onNotificationPosted(StatusBarNotification sbn) { in onNotificationPosted() argument 115 notificationListener.onNotificationPosted(sbn); 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()
|