Home
last modified time | relevance | path

Searched refs:TestNotificationListener (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/tests/functional/safetycenter/singleuser/src/android/safetycenter/functional/
DSafetyCenterNotificationTest.kt61 import com.android.safetycenter.testing.TestNotificationListener
110 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withNoIssue_noNotification()
122 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withoutImmediateNotificationBehavior_noNotification()
134 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withoutNotificationsAllowedSource_noNotification()
146 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withFlagDisabled_noNotification()
165 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withNotificationBehaviorNever_noNotification()
185 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withNotificationBehaviorDelay_noImmediateNotification()
215 TestNotificationListener.waitForZeroNotifications() in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay()
224 TestNotificationListener.waitForSingleNotificationMatching( in setSafetySourceData_withNotificationBehaviorDelay_sendsNotificationAfterDelay()
252 TestNotificationListener.waitForSingleNotificationMatching( in setSafetySourceData_withNotificationBehaviorDelayOfZero_sendsNotificationImmediately()
[all …]
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestRule.kt45 TestNotificationListener.setup(safetyCenterTestHelper.context) in setup()
54 TestNotificationListener.reset(safetyCenterTestHelper.context) in reset()
DTestNotificationListener.kt40 class TestNotificationListener : NotificationListenerService() { in <lambda>() class
93 private var instance: TestNotificationListener? = null in <lambda>()
278 private fun getInstanceOrThrow(): TestNotificationListener { in <lambda>()
337 val componentName = ComponentName(context, TestNotificationListener::class.java) in <lambda>()
/packages/modules/Permission/tests/hostside/safetycenter/helper-app/src/android/safetycenter/hostside/device/
DSafetyCenterNotificationLoggingHelperTests.kt34 import com.android.safetycenter.testing.TestNotificationListener
79 TestNotificationListener.waitForSingleNotificationMatching( in openSafetyCenterFromNotification()
/packages/modules/Permission/tests/functional/safetycenter/multiusers/src/android/safetycenter/functional/multiusers/
DSafetyCenterMultiUsersTest.kt93 import com.android.safetycenter.testing.TestNotificationListener
1538 TestNotificationListener.waitForNotificationsMatching( in setSafetySourceData_notificationsAllowed_workProfile_sendsNotification()