Searched refs:sRoleManager (Results 1 – 5 of 5) sorted by relevance
68 private static RoleManager sRoleManager; field in VoiceInteractionRoleTest75 sRoleManager = sContext.getSystemService(RoleManager.class); in oneTimeSetup()140 () -> sRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)); in getAssistRoleHolders()148 sRoleManager.addRoleHolderAsUser(RoleManager.ROLE_ASSISTANT, packageName, in addAssistRoleHolder()160 () -> sRoleManager.removeRoleHolderAsUser(RoleManager.ROLE_ASSISTANT, packageName, in removeAssistRoleHolder()
66 private static final RoleManager sRoleManager = field in CheckFinancedTest172 List<String> roleHolders = sRoleManager.getRoleHolders(ROLE_FINANCED_DEVICE_KIOSK); in clearFinancedDeviceKioskRole()175 sRoleManager.clearRoleHoldersAsUser( in clearFinancedDeviceKioskRole()204 sRoleManager.clearRoleHoldersAsUser( in resetFinancedDevicesKioskRole()220 sRoleManager.addRoleHolderAsUser( in resetFinancedDevicesKioskRole()
133 private static final RoleManager sRoleManager = sContext.getSystemService(RoleManager.class); field in WorkProfileTelephonyTest595 assumeTrue(sTelephonyManager.isSmsCapable() || (sRoleManager != null in assumeSmsCapableDevice()596 && sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS))); in assumeSmsCapableDevice()600 assumeTrue(sTelephonyManager.isVoiceCapable() || (sRoleManager != null in assumeCallCapableDevice()601 && sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER))); in assumeCallCapableDevice()
233 private static RoleManager sRoleManager; field in AccessibilityDisplayProxyTest301 sRoleManager = sInstrumentation.getContext().getSystemService(RoleManager.class); in oneTimeSetup()302 runWithShellPermissionIdentity(() -> sRoleManager.setBypassingRoleQualification(true)); in oneTimeSetup()310 runWithShellPermissionIdentity(() -> sRoleManager.setBypassingRoleQualification(false)); in postTestTearDown()1770 sRoleManager.addRoleHolderAsUser( in addAppStreamingRole()1784 sRoleManager.removeRoleHolderAsUser( in removeAppStreamingRole()
102 private static final RoleManager sRoleManager = TestApis.context().instrumentedContext() field in Package1018 sRoleManager.addRoleHolderAsUser( in setAsRoleHolder()1076 sRoleManager.removeRoleHolderAsUser( in removeAsRoleHolder()