Home
last modified time | relevance | path

Searched refs:notifications (Results 1 – 25 of 33) sorted by relevance

12

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DBugReportTest.kt35 import com.android.bedstead.nene.notifications.NotificationListener in <lambda>()
57 TestApis.notifications().createListener().use { notifications -> in <lambda>() method
58 cleanupBugreportNotification(notifications) in <lambda>()
70 TestApis.notifications().createListener().use { notifications -> in <lambda>() method
74 val n = notifications.query().whereNotification().extras().key(Notification.EXTRA_TITLE) in <lambda>()
91 TestApis.notifications().createListener().use { notifications -> in <lambda>() method
95 val n = notifications.query().whereNotification().extras().key(Notification.EXTRA_TITLE) in <lambda>()
152 TestApis.notifications().createListener().use { notifications -> in <lambda>() method
158 cleanupBugreportNotification(notifications) in <lambda>()
169 TestApis.notifications().createListener().use { notifications -> in <lambda>() method
[all …]
DMaximumTimeOffTest.java22 import static com.android.bedstead.nene.notifications.NotificationListenerQuerySubject.assertThat;
40 import com.android.bedstead.nene.notifications.NotificationListener;
41 import com.android.bedstead.nene.notifications.NotificationListenerQuerySubject;
82 try (NotificationListener notifications = TestApis.notifications().createListener()) { in setManagedProfileMaximumTimeOff_timesOut_personalAppsAreSuspended() argument
86 assertThat(notifications.query() in setManagedProfileMaximumTimeOff_timesOut_personalAppsAreSuspended()
117 try (NotificationListener notifications = TestApis.notifications().createListener()) { in setManagedProfileMaximumTimeOff_timesOut_notificationIsShown() argument
124 notifications.query() in setManagedProfileMaximumTimeOff_timesOut_notificationIsShown()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/notifications/
DNotificationsTest.java17 package com.android.bedstead.nene.notifications;
21 import static com.android.bedstead.nene.notifications.NotificationListenerQuerySubject.assertThat;
22 import static com.android.bedstead.nene.notifications.Notifications.LISTENER_COMPONENT;
59 TestApis.notifications().setNotificationListenerAccessGranted( in setNotificationListenerAccessGranted_true_notificationListenerAccessIsGranted()
68 TestApis.notifications().setNotificationListenerAccessGranted( in setNotificationListenerAccessGranted_false_notificationListenerAccessIsNotGranted()
77 assertThrows(NullPointerException.class, () -> TestApis.notifications() in setNotificationListenerAccessGranted_nullComponent_throwsException()
84 assertThrows(NullPointerException.class, () -> TestApis.notifications() in setNotificationListenerAccessGranted_nullUser_throwsException()
92 try (NotificationListener notifications = TestApis.notifications().createListener()) { in query_notificationIsPosted_findsNotification() argument
95 assertThat(notifications.query() in query_notificationIsPosted_findsNotification()
103 assertThrows(NeneException.class, () -> TestApis.notifications().createListener()); in createListener_noNotificationsTestAnnotation_throwsException()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListener.kt16 package com.android.bedstead.nene.notifications
26 class NotificationListener internal constructor(private val notifications: Notifications) : constant in com.android.bedstead.nene.notifications.NotificationListener
42 notifications.removeListener(this) in close()
DNotification.kt1 package com.android.bedstead.nene.notifications
DNeneNotificationListenerService.kt16 package com.android.bedstead.nene.notifications
DNotificationListenerQuerySubject.kt16 package com.android.bedstead.nene.notifications in <lambda>()
DNotificationListenerQuery.kt16 package com.android.bedstead.nene.notifications
DNotifications.kt16 package com.android.bedstead.nene.notifications in <lambda>()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/notification/
DOWNERS1 # These atom tests are owned by the notifications team.
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/
DTestApisTest.java112 Truth.assertThat(TestApis.notifications()).isNotNull(); in notifications_returnsInstance()
117 Truth.assertThat(TestApis.notifications()).isEqualTo(TestApis.notifications()); in notifications_multipleCalls_returnsSameInstance()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DShowWhenLockedActivity.java17 package com.android.cts.verifier.notifications;
DAutomaticZenRuleStatusReceiver.java17 package com.android.cts.verifier.notifications;
DToastVerifierActivity.java17 package com.android.cts.verifier.notifications;
DBlockChangeReceiver.java17 package com.android.cts.verifier.notifications;
DMockConditionProvider.java16 package com.android.cts.verifier.notifications;
DActionTriggeredReceiver.java17 package com.android.cts.verifier.notifications;
DAssetsProvider.java17 package com.android.cts.verifier.notifications;
DNotificationListenerVerifierActivity.java17 package com.android.cts.verifier.notifications;
27 import static com.android.cts.verifier.notifications.MockListener.JSON_FLAGS;
28 import static com.android.cts.verifier.notifications.MockListener.JSON_ICON;
29 import static com.android.cts.verifier.notifications.MockListener.JSON_ID;
30 import static com.android.cts.verifier.notifications.MockListener.JSON_LAST_AUDIBLY_ALERTED;
31 import static com.android.cts.verifier.notifications.MockListener.JSON_PACKAGE;
32 import static com.android.cts.verifier.notifications.MockListener.JSON_REASON;
33 import static com.android.cts.verifier.notifications.MockListener.JSON_STATS;
34 import static com.android.cts.verifier.notifications.MockListener.JSON_TAG;
35 import static com.android.cts.verifier.notifications.MockListener.JSON_WHEN;
[all …]
DBubbleActivity.java1 package com.android.cts.verifier.notifications;
DBubblesVerifierActivity.java16 package com.android.cts.verifier.notifications;
31 import static com.android.cts.verifier.notifications.BubbleActivity.EXTRA_INSETS;
32 import static com.android.cts.verifier.notifications.BubbleActivity.EXTRA_TEST_NAME;
33 import static com.android.cts.verifier.notifications.BubbleActivity.TEST_MAX_HEIGHT;
34 import static com.android.cts.verifier.notifications.BubbleActivity.TEST_MIN_HEIGHT;
DShortcutThrottlingResetActivity.java17 package com.android.cts.verifier.notifications;
DNotificationStyleVerifierActivity.java17 package com.android.cts.verifier.notifications;
DMockListener.java16 package com.android.cts.verifier.notifications;
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/
DTestApis.kt36 import com.android.bedstead.nene.notifications.Notifications
93 fun notifications() = Notifications method

12