Searched refs:listenerComponent (Results 1 – 6 of 6) sorted by relevance
57 ComponentName listenerComponent = new ComponentName(context, ListenerService.class); in testAccountsObtainable() local58 listenerName = listenerComponent.flattenToString(); in testAccountsObtainable()68 .isNotificationListenerAccessGranted(listenerComponent)) { in testAccountsObtainable()72 notificationManager.isNotificationListenerAccessGranted(listenerComponent)); in testAccountsObtainable()
109 final ComponentName listenerComponent = getComponentName(); in toggleListenerAccess() local111 assertEquals(listenerComponent + " has not been " + (on ? "allowed" : "disallowed"), in toggleListenerAccess()112 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleListenerAccess()
393 final ComponentName listenerComponent = SecondaryNotificationListener.getComponentName(); in toggleSecondaryListenerAccess() local394 Assert.assertTrue(listenerComponent + " has not been granted access", in toggleSecondaryListenerAccess()395 nm.isNotificationListenerAccessGranted(listenerComponent) == on); in toggleSecondaryListenerAccess()
208 protected void toggleExternalListenerAccess(ComponentName listenerComponent, boolean on) in toggleExternalListenerAccess() argument211 + listenerComponent.flattenToString(); in toggleExternalListenerAccess()
1454 final ComponentName listenerComponent = in testMatchesCallFilter_listenerPermissionOnly() local1462 toggleExternalListenerAccess(listenerComponent, true); in testMatchesCallFilter_listenerPermissionOnly()1479 toggleExternalListenerAccess(listenerComponent, false); in testMatchesCallFilter_listenerPermissionOnly()
799 ComponentName listenerComponent = getNotificationListenerComponentName(); in toggleNotificationListenerAccess() local800 assertEquals(listenerComponent + " has incorrect listener access", in toggleNotificationListenerAccess()801 on, nm.isNotificationListenerAccessGranted(listenerComponent)); in toggleNotificationListenerAccess()