/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | WalletRoleTestUtils.java | 91 RoleManager roleManager = context.getSystemService(RoleManager.class); in setDefaultWalletRoleHolder() local 95 roleManager.setDefaultApplication(RoleManager.ROLE_WALLET, in setDefaultWalletRoleHolder() 109 RoleManager roleManager = context.getSystemService(RoleManager.class); in removeRoleHolder() local 113 roleManager.removeRoleHolderAsUser(RoleManager.ROLE_WALLET, currentHolder, 0, in removeRoleHolder() 133 RoleManager roleManager = context.getSystemService(RoleManager.class); in getDefaultWalletRoleHolder() local 134 return roleManager.getDefaultApplication(RoleManager.ROLE_WALLET); in getDefaultWalletRoleHolder() 146 RoleManager roleManager = context.getSystemService(RoleManager.class); in runWithRole() local 162 roleManager.addOnRoleHoldersChangedListenerAsUser(context.getMainExecutor(), in runWithRole() 170 roleManager.removeOnRoleHoldersChangedListenerAsUser(onRoleHoldersChangedListener, in runWithRole() 201 RoleManager roleManager = context.getSystemService(RoleManager.class); in runWithRoleNone() local [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/ |
D | DefaultSmsAppHelper.java | 54 RoleManager roleManager = context.getSystemService(RoleManager.class); in ensureDefaultSmsApp() local 62 roleManager.addRoleHolderAsUser( in ensureDefaultSmsApp() 88 RoleManager roleManager = context.getSystemService(RoleManager.class); in stopBeingDefaultSmsApp() local 96 roleManager.removeRoleHolderAsUser( in stopBeingDefaultSmsApp() 121 RoleManager roleManager = context.getSystemService(RoleManager.class); in getDefaultSmsApp() local 122 List<String> result = ShellIdentityUtils.invokeMethodWithShellPermissions(roleManager, in getDefaultSmsApp() 142 RoleManager roleManager = context.getSystemService(RoleManager.class); in setDefaultSmsApp() local 146 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(roleManager, in setDefaultSmsApp() 153 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(roleManager, in setDefaultSmsApp()
|
/cts/tests/tests/activityrecognition/src/android/activityrecognition/cts/ |
D | ActivityRecognizerAttributionTags.kt | 46 val roleManager = context.getSystemService(RoleManager::class.java)!! in makeSelfActivityRecognizer() constant 47 oldActivityRecognizers = roleManager.getRoleHolders( in makeSelfActivityRecognizer() 49 roleManager.isBypassingRoleQualification = true in makeSelfActivityRecognizer() 61 val roleManager = context.getSystemService(RoleManager::class.java)!! in restoreActivityRecognizers() constant 62 roleManager.isBypassingRoleQualification = false in restoreActivityRecognizers() 77 val roleManager = context.getSystemService(RoleManager::class.java)!! in addActivityRecognizer() constant 78 roleManager.addRoleHolderAsUser(RoleManager.ROLE_SYSTEM_ACTIVITY_RECOGNIZER, in addActivityRecognizer()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | RolePermissionOverrideTest.kt | 45 private val roleManager = context.getSystemService(RoleManager::class.java)!! constant in android.security.cts.RolePermissionOverrideTest 68 assumeTrue(roleManager.isRoleAvailable(ROLE_SYSTEM_SPEECH_RECOGNIZER)) in systemRoleDoesNotOverrideUserRevokedPermission() 107 callWithShellPermissionIdentity { roleManager.getRoleHolders(roleName) } in getRoleHolders() 113 roleManager.setBypassingRoleQualification(bypassRoleQualification) in getRoleHolder() 120 roleManager.addRoleHolderAsUser( in addRoleHolder()
|
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/ |
D | DeviceTest.java | 65 final RoleManager roleManager = context.getSystemService(RoleManager.class); in cannotGetSmsRoleHolderForAnotherUser() local 66 final Field serviceField = roleManager.getClass().getDeclaredField("mService"); in cannotGetSmsRoleHolderForAnotherUser() 68 final Object roleService = serviceField.get(roleManager); in cannotGetSmsRoleHolderForAnotherUser()
|
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/ |
D | AssociationRevokedTestBase.kt | 35 private val roleManager: RoleManager by lazy { in <lambda>() constant in android.companion.cts.uiautomation.AssociationRevokedTestBase 74 roleManager.getRoleHolders(profile) in getRoleHolders()
|
D | UiAutomationTestBase.kt | 73 private val roleManager: RoleManager by lazy { in <lambda>() constant in android.companion.cts.uiautomation.UiAutomationTestBase 99 withShellPermissionIdentity { roleManager.isBypassingRoleQualification = true } in <lambda>() 109 withShellPermissionIdentity { roleManager.isBypassingRoleQualification = false } in <lambda>() 364 roleManager.getRoleHolders(roleName) in <lambda>()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/ |
D | DefaultDialerChanger.java | 74 final RoleManager roleManager = mActivity.getSystemService(RoleManager.class); in DefaultDialerChanger() 75 final Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_DIALER); in DefaultDialerChanger()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/capturecontentfornotes/ |
D | CaptureContentForNotesVerifierActivity.java | 187 RoleManager roleManager = getSystemService(RoleManager.class); in isNotesRoleAvailable() local 188 return roleManager != null && roleManager.isRoleAvailable(RoleManager.ROLE_NOTES); in isNotesRoleAvailable()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 399 final RoleManager roleManager = getContext().getSystemService(RoleManager.class); in getPackageRolesData() local 403 List<String> packageNames = getRoleHolders(roleName, roleManager); in getPackageRolesData() 413 …public static List<String> getRoleHolders(String roleName, RoleManager roleManager) throws Excepti… in getRoleHolders() argument 415 () -> roleManager.getRoleHolders(roleName), in getRoleHolders()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsServiceConnector.java | 353 RoleManager roleManager = mInstrumentation.getContext() in setDefaultSmsApp() local 358 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(roleManager, in setDefaultSmsApp() 365 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(roleManager, in setDefaultSmsApp() 379 RoleManager roleManager = mInstrumentation.getContext() in getDefaultSmsApp() local 381 List<String> result = ShellIdentityUtils.invokeMethodWithShellPermissions(roleManager, in getDefaultSmsApp()
|
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/ |
D | QuickAccessWalletClientTest.java | 636 RoleManager roleManager = context.getSystemService(RoleManager.class); in setDefaultWalletRoleHolder() local 637 if (!roleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in setDefaultWalletRoleHolder() 642 roleManager.setDefaultApplication(RoleManager.ROLE_WALLET, in setDefaultWalletRoleHolder()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | SmsManagerTest.java | 627 RoleManager roleManager = context.getSystemService(RoleManager.class); in setSmsApp() local 629 if (roleManager.getRoleHoldersAsUser(RoleManager.ROLE_SMS, in setSmsApp() 633 roleManager.addRoleHolderAsUser(RoleManager.ROLE_SMS, pkg, in setSmsApp()
|