Home
last modified time | relevance | path

Searched refs:createListener (Results 1 – 7 of 7) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DBugReportTest.kt57 TestApis.notifications().createListener().use { notifications -> in <lambda>()
70 TestApis.notifications().createListener().use { notifications -> in <lambda>()
91 TestApis.notifications().createListener().use { notifications -> in <lambda>()
152 TestApis.notifications().createListener().use { notifications -> in <lambda>()
169 TestApis.notifications().createListener().use { notifications -> in <lambda>()
186 TestApis.notifications().createListener().use { notifications -> in <lambda>()
217 TestApis.notifications().createListener().use { notifications -> in <lambda>()
DMaximumTimeOffTest.java82 try (NotificationListener notifications = TestApis.notifications().createListener()) { in setManagedProfileMaximumTimeOff_timesOut_personalAppsAreSuspended()
117 try (NotificationListener notifications = TestApis.notifications().createListener()) { in setManagedProfileMaximumTimeOff_timesOut_notificationIsShown()
DPermissionGrantTest.java713 try (NotificationListener notifications = TestApis.notifications().createListener()) { in grantLocationPermission_userNotified()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/notifications/
DNotificationsTest.java92 try (NotificationListener notifications = TestApis.notifications().createListener()) { in query_notificationIsPosted_findsNotification()
103 assertThrows(NeneException.class, () -> TestApis.notifications().createListener()); in createListener_noNotificationsTestAnnotation_throwsException()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAlarmReceiver.java61 static AlarmManager.OnAlarmListener createListener(int id, boolean quotaed) { in createListener() method in AlarmReceiver
DExactAlarmsTest.java405 AlarmReceiver.createListener(alarmId = mIdGenerator.nextInt(), true)); in setExactAwiCallbackQuota()
417 AlarmReceiver.createListener(alarmId = mIdGenerator.nextInt(), true)); in setExactAwiCallbackQuota()
449 "test-tag", Runnable::run, null, AlarmReceiver.createListener(id, false)); in setExactAwiExecutorWithPermissionAndWhitelist()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotifications.kt49 fun createListener(): NotificationListener { in <lambda>() method