Home
last modified time | relevance | path

Searched refs:getRoleHolders (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTest.kt78 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
86 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
116 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
124 assertContains(getRoleHolders(DEVICE_PROFILE_WATCH), in <lambda>()
132 getRoleHolders(DEVICE_PROFILE_WATCH).contains(packageName) in <lambda>()
DAssociationRevokedTestBase.kt72 protected fun getRoleHolders(profile: String): List<String> { in getRoleHolders() method
74 roleManager.getRoleHolders(profile) in getRoleHolders()
DUiAutomationTestBase.kt364 roleManager.getRoleHolders(roleName) in <lambda>()
/cts/tests/tests/security/src/android/security/cts/
DRolePermissionOverrideTest.kt106 private fun getRoleHolders(roleName: String): List<String> = in getRoleHolders() method
107 callWithShellPermissionIdentity { roleManager.getRoleHolders(roleName) } in getRoleHolders()
109 private fun getRoleHolder(roleName: String): String? = getRoleHolders(roleName).firstOrNull() in getRoleHolder()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/roles/
DRoles.java75 public Set<String> getRoleHolders(String role) { in getRoleHolders() method in Roles
78 return new HashSet<>(sContext.getSystemService(RoleManager.class).getRoleHolders(role)); in getRoleHolders()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPermissionUtils.java212 public static List<String> getRoleHolders(String roleName) throws Exception { in getRoleHolders() method in PermissionUtils
214 .getSystemService(RoleManager.class).getRoleHolders(roleName), in getRoleHolders()
227 List<String> packageNames = getRoleHolders(roleName); in getRoleHolder()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java403 List<String> packageNames = getRoleHolders(roleName, roleManager); in getPackageRolesData()
413 …public static List<String> getRoleHolders(String roleName, RoleManager roleManager) throws Excepti… in getRoleHolders() method in PackageDeviceInfo
415 () -> roleManager.getRoleHolders(roleName), in getRoleHolders()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java98 List<String> previousHolders = mRoleManager.getRoleHolders(roleName); in getRoleHolder()
DCallRedirectionServiceTest.java307 List<String> callRedirectionApps = mRoleManager.getRoleHolders(ROLE_CALL_REDIRECTION); in rememberPreviousCallRedirectionApp()
DThirdPartyCallScreeningServiceTest.java571 List<String> callScreeningApps = mRoleManager.getRoleHolders(ROLE_CALL_SCREENING); in rememberPreviousCallScreeningApp()
DSelfManagedConnectionTest.java697 String result = mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER).get(0); in getDefaultDialer()
/cts/tests/tests/activityrecognition/src/android/activityrecognition/cts/
DActivityRecognizerAttributionTags.kt47 oldActivityRecognizers = roleManager.getRoleHolders( in makeSelfActivityRecognizer()
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/
DDefaultSmsAppHelper.java123 (m) -> m.getRoleHolders(RoleManager.ROLE_SMS)); in getDefaultSmsApp()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionRoleTest.java140 () -> sRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)); in getAssistRoleHolders()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCheckFinancedTest.java172 List<String> roleHolders = sRoleManager.getRoleHolders(ROLE_FINANCED_DEVICE_KIOSK); in clearFinancedDeviceKioskRole()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceConnector.java382 (m) -> m.getRoleHolders(RoleManager.ROLE_SMS)); in getDefaultSmsApp()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java1224 return TestApis.roles().getRoleHolders(role).contains(this.mPackageName); in isRoleHolder()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DSmsManagerTest.java620 .getRoleHolders(RoleManager.ROLE_SMS) in getSmsApp()
DTelephonyManagerTest.java7327 (rm) -> rm.getRoleHolders(RoleManager.ROLE_EMERGENCY)); in testGetEmergencyAssistancePackageName()
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java1044 assertThat(TestApis.roles().getRoleHolders(RoleManager.ROLE_BROWSER)).isNotEmpty(); in requireHasDefaultBrowser_onDifferentUser_defaultContentSuggestionsServiceIsEnabled()