Home
last modified time | relevance | path

Searched refs:notificationId (Results 1 – 25 of 28) sorted by relevance

12

/cts/tests/tests/app.usage/TestApp1/src/android/app/usage/cts/test1/
DTestService.java52 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/
DNotificationTest.java83 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/
DNotificationTrampolineTestService.java100 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/
DITestReceiver.aidl23 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/
DNotificationUtils.java69 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()
DCallResources.java45 int notificationId) { in CallResources() argument
48 mNotificationId = notificationId; in CallResources()
/cts/tests/app/src/android/app/cts/
DCloseSystemDialogsTest.java237 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/
DCloseSystemDialogsTestService.java114 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()
DICloseSystemDialogsTestsService.aidl40 void postNotification(int notificationId, in ResultReceiver receiver, boolean usePendingIntent); in postNotification() argument
DNotificationHelper.java91 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/
DTestNotificationActivity.java57 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/
DDeviceTest.java127 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/
DDeviceTest.java122 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/
DDeviceTest.java112 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/
DNotificationManagerTest.java440 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/
DDeviceTest.java148 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/
DStatsdCtsForegroundActivity.java175 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/
DUtils.java89 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/
DPocService.java67 startForeground(getIntegerRes(R.integer.notificationId), notification); in showNotification()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutMessage.java171 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/
DShortFgsMessage.java187 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/
DMockJobService.java637 public void setNotificationAtStart(int notificationId, in setNotificationAtStart() argument
640 mJobStartNotificationId = notificationId; in setNotificationAtStart()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DActivityManagerShortFgsTest.java1152 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/
DKeyboardVisibilityControlTest.java1762 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/
DBroadcastResponseStatsTest.java2034 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()

12