Home
last modified time | relevance | path

Searched refs:listenerComponent (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0704/test-app/src/android/security/cts/CVE_2021_0704_test/
DDeviceTest.java57 ComponentName listenerComponent = new ComponentName(context, ListenerService.class); in testAccountsObtainable() local
58 listenerName = listenerComponent.flattenToString(); in testAccountsObtainable()
68 .isNotificationListenerAccessGranted(listenerComponent)) { in testAccountsObtainable()
72 notificationManager.isNotificationListenerAccessGranted(listenerComponent)); in testAccountsObtainable()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestNotificationListener.java109 final ComponentName listenerComponent = getComponentName(); in toggleListenerAccess() local
111 assertEquals(listenerComponent + " has not been " + (on ? "allowed" : "disallowed"), in toggleListenerAccess()
112 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleListenerAccess()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java393 final ComponentName listenerComponent = SecondaryNotificationListener.getComponentName(); in toggleSecondaryListenerAccess() local
394 Assert.assertTrue(listenerComponent + " has not been granted access", in toggleSecondaryListenerAccess()
395 nm.isNotificationListenerAccessGranted(listenerComponent) == on); in toggleSecondaryListenerAccess()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DBaseNotificationManagerTest.java208 protected void toggleExternalListenerAccess(ComponentName listenerComponent, boolean on) in toggleExternalListenerAccess() argument
211 + listenerComponent.flattenToString(); in toggleExternalListenerAccess()
DNotificationManagerZenTest.java1454 final ComponentName listenerComponent = in testMatchesCallFilter_listenerPermissionOnly() local
1462 toggleExternalListenerAccess(listenerComponent, true); in testMatchesCallFilter_listenerPermissionOnly()
1479 toggleExternalListenerAccess(listenerComponent, false); in testMatchesCallFilter_listenerPermissionOnly()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsDelegateTest.java799 ComponentName listenerComponent = getNotificationListenerComponentName(); in toggleNotificationListenerAccess() local
800 assertEquals(listenerComponent + " has incorrect listener access", in toggleNotificationListenerAccess()
801 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleNotificationListenerAccess()