/cts/tests/tests/app.usage/TestApp1/src/android/app/usage/cts/test1/ |
D | TestService.java | 52 public void postNotification(int notificationId, Notification notification) { in postNotification() argument 53 getNotificationManager().notify(notificationId, notification); in postNotification() 57 public void cancelNotification(int notificationId) { in cancelNotification() argument 58 getNotificationManager().cancel(notificationId); in cancelNotification()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | NotificationTest.java | 83 final int notificationId = 123; in testNotificationJobEndDetach() local 94 kTestEnvironment.setNotificationAtStart(notificationId, notification, in testNotificationJobEndDetach() 104 && activeNotifications[0].getId() == notificationId; in testNotificationJobEndDetach() 115 assertEquals(notificationId, activeNotifications[0].getId()); in testNotificationJobEndDetach() 120 final int notificationId = 123; in testNotificationJobEndRemove() local 131 kTestEnvironment.setNotificationAtStart(notificationId, notification, in testNotificationJobEndRemove() 141 && activeNotifications[0].getId() == notificationId; in testNotificationJobEndRemove() 404 final int notificationId = 123; in testUserInitiatedJobNotificationBehavior() local 418 kTestEnvironment.setNotificationAtStart(notificationId, notification, in testUserInitiatedJobNotificationBehavior() 429 && activeNotifications[0].getId() == notificationId; in testUserInitiatedJobNotificationBehavior() [all …]
|
/cts/tests/tests/notification/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/ |
D | NotificationTrampolineTestService.java | 100 for (int notificationId : mPostedNotifications) { in onDestroy() 101 mNotificationManager.cancel(notificationId); in onDestroy() 113 int notificationId = message.arg1; in handleMessage() local 126 postNotification(notificationId, in handleMessage() 135 postNotification(notificationId, in handleMessage() 141 .filter(sb -> sb.getId() == notificationId) in handleMessage() 172 private void postNotification(int notificationId, PendingIntent intent) { in postNotification() argument 204 mNotificationManager.notify(notificationId, notification); in postNotification() 205 mPostedNotifications.add(notificationId); in postNotification()
|
/cts/tests/tests/app.usage/TestApp1/aidl/android/app/usage/cts/ |
D | ITestReceiver.aidl | 23 void postNotification(int notificationId, in Notification notification); in postNotification() argument 24 void cancelNotification(int notificationId); in cancelNotification() argument
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | NotificationUtils.java | 69 int notificationId) { in updateNotificationToOngoing() argument 88 notificationManager.notify(notificationId, callStyleNotification); in updateNotificationToOngoing() 96 public static void clearNotification(Context c, int notificationId) { in clearNotification() argument 99 notificationManager.cancel(notificationId); in clearNotification()
|
D | CallResources.java | 45 int notificationId) { in CallResources() argument 48 mNotificationId = notificationId; in CallResources()
|
/cts/tests/app/src/android/app/cts/ |
D | CloseSystemDialogsTest.java | 237 int notificationId = 42; in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() local 241 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() 244 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdkCurrent_isBlockedAndThrows() 253 int notificationId = 43; in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() local 257 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() 260 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineWhenTargetSdk30_isSent() 270 int notificationId = 44; in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() local 274 mService.postNotification(notificationId, new FutureReceiver(result), in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() 277 mNotificationHelper.clickNotification(notificationId, /* searchAll */ true); in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdkCurrent_isBlocked() 285 int notificationId = 45; in testCloseSystemDialogs_inTrampolineViaPendingIntentWhenTargetSdk30_isSent() local [all …]
|
/cts/tests/app/shared/src/android/app/stubs/shared/ |
D | CloseSystemDialogsTestService.java | 114 public void postNotification(int notificationId, ResultReceiver receiver, in postNotification() argument 144 notificationId, in postNotification() 172 private void notify(int notificationId, PendingIntent intent) { in notify() argument 181 mNotificationManager.notify(notificationId, notification); in notify()
|
D | ICloseSystemDialogsTestsService.aidl | 40 void postNotification(int notificationId, in ResultReceiver receiver, boolean usePendingIntent); in postNotification() argument
|
D | NotificationHelper.java | 91 public void clickNotification(int notificationId, boolean searchAll) throws CanceledException { in clickNotification() argument 92 findPostedNotification(null, notificationId, in clickNotification()
|
/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/hostsidetests/securitybulletin/test-apps/CVE-2023-21244/src/android/security/cts/CVE_2023_21244/ |
D | DeviceTest.java | 127 final int notificationId = 1; in testCVE_2023_21244() local 132 nmgr.notify(notificationId, builder.build()); in testCVE_2023_21244() 157 if (notification.getId() == notificationId in testCVE_2023_21244()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-35668/src/android/security/cts/CVE_2023_35668/ |
D | DeviceTest.java | 122 int notificationId = 0; in testWearableExtenderUri() local 124 notificationManager.notify(notificationId, callNotification); in testWearableExtenderUri() 152 && notification.getId() == notificationId) { in testWearableExtenderUri()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21288/src/android/security/cts/CVE_2023_21288/ |
D | DeviceTest.java | 112 int notificationId = 1; in testPocCVE_2023_21288() local 114 notificationManager.notify(notificationId, notif); in testPocCVE_2023_21288() 138 if (notification.getId() == notificationId in testPocCVE_2023_21288()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerTest.java | 440 int notificationId, Handler callback) throws Exception { in sendTrampolineMessage() argument 449 service.send(Message.obtain(null, message, notificationId, -1, new Messenger(callback))); in sendTrampolineMessage() 998 int notificationId, Handler callback) throws Exception { in sendMessage() argument 1000 service.send(Message.obtain(null, MESSAGE_SERVICE_NOTIFICATION, notificationId, -1, in sendMessage() 1098 int notificationId = 6500; in testRankingUpdateSentWithPressure() local 1103 sendMessage(pressureService00, notificationId++, callback); in testRankingUpdateSentWithPressure() 1104 sendMessage(pressureService01, notificationId++, callback); in testRankingUpdateSentWithPressure() 1105 sendMessage(pressureService02, notificationId++, callback); in testRankingUpdateSentWithPressure() 1106 sendMessage(pressureService03, notificationId++, callback); in testRankingUpdateSentWithPressure() 1107 sendMessage(pressureService04, notificationId++, callback); in testRankingUpdateSentWithPressure() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21239/src/android/security/cts/CVE_2023_21239/ |
D | DeviceTest.java | 148 int notificationId = 0; in testCallStyleNotification() local 150 notificationManager.notify(notificationId, callNotification); in testCallStyleNotification() 172 if (notification.getId() == notificationId in testCallStyleNotification()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | StatsdCtsForegroundActivity.java | 175 final int notificationId = R.layout.activity_main; in doShowNotification() local 185 notificationId, in doShowNotification() 191 nm.cancel(notificationId); in doShowNotification()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | Utils.java | 89 static void showBugreportNotification(Context context, String msg, int notificationId) { in showBugreportNotification() argument 103 Log.d(TAG, "Sending notification: id=" + notificationId + ", title='" + title in showBugreportNotification() 105 notificationManager.notify(notificationId, notification); in showBugreportNotification()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20116/src/android/security/cts/CVE_2022_20116/ |
D | PocService.java | 67 startForeground(getIntegerRes(R.integer.notificationId), notification); in showNotification()
|
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/ |
D | FgsTimeoutMessage.java | 171 int notificationId) { in FgsTimeoutMessage() argument 192 this.mNotificationId = notificationId; in FgsTimeoutMessage() 570 int notificationId = in.readInt(); in FgsTimeoutMessage() local 592 this.mNotificationId = notificationId; in FgsTimeoutMessage()
|
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/ |
D | ShortFgsMessage.java | 187 int notificationId) { in ShortFgsMessage() 212 this.mNotificationId = notificationId; in ShortFgsMessage() 670 int notificationId = in.readInt(); in ShortFgsMessage() local 696 this.mNotificationId = notificationId; in ShortFgsMessage()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 637 public void setNotificationAtStart(int notificationId, in setNotificationAtStart() argument 640 mJobStartNotificationId = notificationId; in setNotificationAtStart()
|
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/ |
D | ActivityManagerShortFgsTest.java | 1152 int notificationId = 10; in testTimeoutExtension() local 1164 .setNotificationId(++notificationId)); in testTimeoutExtension() 1185 assertThat(sr.foreground.id).isEqualTo(notificationId); in testTimeoutExtension()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | KeyboardVisibilityControlTest.java | 1762 final int notificationId = 12345; in testIMEVisibleWhenNotificationComes() local 1790 notificationId, in testIMEVisibleWhenNotificationComes() 1803 notificationManager.cancel(notificationId); in testIMEVisibleWhenNotificationComes() 1808 notificationManager.cancel(notificationId); in testIMEVisibleWhenNotificationComes()
|
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/ |
D | BroadcastResponseStatsTest.java | 2034 private Notification buildNotification(String channelId, int notificationId, in buildNotification() argument 2038 .setContentTitle(String.format(TEST_NOTIFICATION_TITLE_FMT, notificationId)) in buildNotification() 2043 private Notification buildMediaNotification(String channelId, int notificationId, in buildMediaNotification() argument 2051 .setContentTitle(String.format(TEST_NOTIFICATION_TITLE_FMT, notificationId)) in buildMediaNotification()
|