Home
last modified time | relevance | path

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

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionRoleTest.java68 private static RoleManager sRoleManager; field in VoiceInteractionRoleTest
75 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()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCheckFinancedTest.java66 private static final RoleManager sRoleManager = field in CheckFinancedTest
172 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()
/cts/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java133 private static final RoleManager sRoleManager = sContext.getSystemService(RoleManager.class); field in WorkProfileTelephonyTest
595 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()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityDisplayProxyTest.java233 private static RoleManager sRoleManager; field in AccessibilityDisplayProxyTest
301 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()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java102 private static final RoleManager sRoleManager = TestApis.context().instrumentedContext() field in Package
1018 sRoleManager.addRoleHolderAsUser( in setAsRoleHolder()
1076 sRoleManager.removeRoleHolderAsUser( in removeAsRoleHolder()