/cts/tests/app/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/ |
D | NotificationTrampolineTestService.java | 96 for (int notificationId : mPostedNotifications) { in onDestroy() 97 mNotificationManager.cancel(notificationId); in onDestroy() 109 int notificationId = message.arg1; in handleMessage() local 121 postNotification(notificationId, in handleMessage() 130 postNotification(notificationId, in handleMessage() 137 .filter(sb -> sb.getId() == notificationId) in handleMessage() 165 private void postNotification(int notificationId, PendingIntent intent) { in postNotification() argument 174 mNotificationManager.notify(notificationId, notification); in postNotification() 175 mPostedNotifications.add(notificationId); in postNotification()
|
/cts/tests/app/src/android/app/cts/ |
D | CloseSystemDialogsTest.java | 208 int notificationId = 42; in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() local 212 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() 215 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() 223 int notificationId = 43; in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() local 227 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() 230 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() 240 int notificationId = 44; in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() local 244 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() 247 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() 255 int notificationId = 45; in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdk30_isSent() local [all …]
|
D | NotificationManagerTest.java | 943 int notificationId, Handler callback) throws Exception { in sendTrampolineMessage() argument 952 service.send(Message.obtain(null, message, notificationId, -1, new Messenger(callback))); in sendTrampolineMessage() 1733 final int notificationId = 1; in testGetSuppressedVisualEffectsOff_ranking() local 1734 sendNotification(notificationId, R.drawable.black); in testGetSuppressedVisualEffectsOff_ranking() 1772 final int notificationId = 1; in testGetSuppressedVisualEffects_ranking() local 1774 sendNotification(notificationId, R.drawable.black); in testGetSuppressedVisualEffects_ranking() 1809 final int notificationId = 1; in testKeyChannelGroupOverrideImportanceExplanation_ranking() local 1810 sendNotification(notificationId, R.drawable.black); in testKeyChannelGroupOverrideImportanceExplanation_ranking() 1817 StatusBarNotification sbn = findPostedNotification(notificationId, false); in testKeyChannelGroupOverrideImportanceExplanation_ranking() 3107 private Uri getNotificationBackgroundImageUri(int notificationId) { in getNotificationBackgroundImageUri() argument [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | LegacyNotificationManager20Test.java | 96 final int notificationId = 1; in testNotificationListener_cancelNotifications() local 98 sendNotification(notificationId, R.drawable.icon_black); in testNotificationListener_cancelNotifications() 101 StatusBarNotification sbn = findPostedNotification(notificationId); in testNotificationListener_cancelNotifications() 105 if (!checkNotificationExistence(notificationId, /*shouldExist=*/ false)) { in testNotificationListener_cancelNotifications() 111 sendNotification(notificationId, R.drawable.icon_black); in testNotificationListener_cancelNotifications() 115 if (!checkNotificationExistence(notificationId, /*shouldExist=*/ false)) { in testNotificationListener_cancelNotifications() 116 fail("Failed to cancel notification id=" + notificationId); in testNotificationListener_cancelNotifications()
|
/cts/tests/app/shared/src/android/app/stubs/shared/ |
D | CloseSystemDialogsTestService.java | 113 public void postNotification(int notificationId, ResultReceiver receiver, in postNotification() argument 137 notificationId, in postNotification() 165 private void notify(int notificationId, PendingIntent intent) { in notify() argument 174 mNotificationManager.notify(notificationId, notification); in notify()
|
D | ICloseSystemDialogsTestsService.aidl | 40 void postNotification(int notificationId, in ResultReceiver receiver, boolean usePendingIntent); in postNotification() argument
|
/cts/hostsidetests/systemui/app/src/android/systemui/cts/ |
D | TestNotificationActivity.java | 57 final int notificationId = R.layout.activity_notification; in doShowNotification() local 67 notificationId, in doShowNotification()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | NotificationHelper.java | 41 public void clickNotification(int notificationId, boolean searchAll) throws CanceledException { in clickNotification() argument 42 findPostedNotification(notificationId, searchAll).getNotification().contentIntent.send(); in clickNotification()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdCtsForegroundActivity.java | 165 final int notificationId = R.layout.activity_main; in doShowNotification() local 175 notificationId, in doShowNotification() 181 nm.cancel(notificationId); in doShowNotification()
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | TestNotificationAssistant.java | 38 int notificationId = 1357; field in TestNotificationAssistant 115 + "|" + notificationId)) { in onNotificationVisibilityChanged()
|
D | NotificationAssistantServiceTest.java | 571 sendConversationNotification(mNotificationAssistantService.notificationId);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | Utils.java | 84 static void showBugreportNotification(Context context, String msg, int notificationId) { in showBugreportNotification() argument 100 mNotificationManager.notify(notificationId, notification); in showBugreportNotification()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 456 final int notificationId = 1; in testTypeNotificationStateChangedAccessibilityEvent() local 491 .notify(notificationId, notification); in testTypeNotificationStateChangedAccessibilityEvent()
|