Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DDefaultAppsPreferenceControllerTest.java90 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_allAvailable_shouldReturnAll()
92 when(mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER)).thenReturn( in getSummary_allAvailable_shouldReturnAll()
94 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_allAvailable_shouldReturnAll()
102 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer()
104 when(mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER)).thenReturn( in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer()
106 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer()
113 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms()
115 when(mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms()
117 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms()
125 when(mRoleManager.getRoleHolders(RoleManager.ROLE_BROWSER)).thenReturn( in getSummary_dialerAndSmsAvailable_shouldReturnDialerAndSms()
[all …]
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleShellCommandTest.kt48 roleHolder = getRoleHolders().firstOrNull() in saveRoleHolder()
159 private fun getRoleHolders(): List<String> = in getRoleHolders() method in android.app.role.cts.RoleShellCommandTest
165 callWithShellPermissionIdentity { roleManager.getRoleHolders(ROLE_NAME) } in <lambda>()
169 val packageNames = getRoleHolders() in assertIsRoleHolder()
DRoleManagerTest.java187 List<String> roleHolders = getRoleHolders(ROLE_NAME); in saveRoleHolder()
552 getRoleHolders(RoleManager.ROLE_DIALER).contains(APP_28_PACKAGE_NAME)); in targetSdk28AndChangeDefaultDialerAndAllowThenIsDefaultDialer()
625 getRoleHolders(RoleManager.ROLE_DIALER).contains(APP_PACKAGE_NAME)); in targetSdk28AndChangeDefaultDialerForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultDialer()
1138 assertThat(getRoleHolders(RoleManager.ROLE_SMS)).isNotEmpty(); in smsRoleHasHolder()
1155 String smsRoleHolder = getRoleHolders(RoleManager.ROLE_SMS).get(0); in removeSmsRoleHolderThenPermissionIsRevoked()
1169 String smsRoleHolder = getRoleHolders(RoleManager.ROLE_SMS).get(0); in removeSmsRoleHolderThenDialerRolePermissionIsRetained()
1209 List<String> emergencyRoleHolders = getRoleHolders(RoleManager.ROLE_EMERGENCY); in telephonyManagerGetEmergencyAssistancePackageNameBackedByRole()
1251 assertThat(getRoleHolders(RoleManager.ROLE_SYSTEM_ACTIVITY_RECOGNIZER)) in bypassRoleQualificationThenCanAddUnqualifiedRoleHolder()
1321 assertThat(sRoleManager.getRoleHolders(RoleManager.ROLE_SMS)) in setDefaultApplicationSetsRole()
1339 private List<String> getRoleHolders(@NonNull String roleName) throws Exception { in getRoleHolders() method in RoleManagerTest
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceControllerTest.java101 when(mMockRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)) in getCurrentDefaultAppInfo_noAssistant_returnsNull()
111 when(mMockRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)) in getCurrentDefaultAppInfo_hasService_returnsDefaultAppInfo()
124 when(mMockRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)) in getSettingIntent_noAssistant_returnsNull()
136 when(mMockRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)) in getSettingIntent_hasAssistant_noAssistSupport_returnsNull()
150 when(mMockRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)) in getSettingIntent_hasAssistant_supportsAssist_hasSettingsActivity_returnsIntent()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/specialaccess/
DMediaRoutingControlTest.kt163 whenever(mockRoleManager.getRoleHolders(AssociationRequest.DEVICE_PROFILE_WATCH)) in isChangeable_permissionRequestedByAppAndWatchCompanionRoleAssigned_shouldReturnTrue()
181 whenever(mockRoleManager.getRoleHolders(AssociationRequest.DEVICE_PROFILE_WATCH)) in isChangeable_permissionNotRequestedByAppButWatchCompanionRoleAssigned_shouldReturnFalse()
199 whenever(mockRoleManager.getRoleHolders(AssociationRequest.DEVICE_PROFILE_WATCH)) in isChangeable_permissionRequestedByAppButWatchCompanionRoleNotAssigned_shouldReturnFalse()
217 whenever(mockRoleManager.getRoleHolders(AssociationRequest.DEVICE_PROFILE_WATCH)) in isChangeable_withFlagDisabled_shouldReturnFalse()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/service/
DRoleControllerServiceImpl.java126 List<String> currentPackageNames = mUserRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles()
149 currentPackageNames = mUserRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles()
188 currentPackageNames = mUserRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles()
235 List<String> currentPackageNames = mUserRoleManager.getRoleHolders(roleName); in onAddRoleHolder()
384 List<String> packageNames = mUserRoleManager.getRoleHolders(roleName); in clearRoleHoldersInternal()
405 List<String> currentPackageNames = mUserRoleManager.getRoleHolders(roleName); in addFallbackRoleHolderMaybe()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRequestRoleActivity.java151 List<String> currentPackageNames = roleManager.getRoleHolders(mRoleName); in onCreate()
250 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleChangeDefaultDialerDialogCompatibility()
302 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleSmsDefaultDialogCompatibility()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DWalletRoleObserverTest.java125 when(mRoleManager.getRoleHolders(eq(RoleManager.ROLE_WALLET))).thenReturn(roleHolders); in testCallbackFiringOnRoleChange_roleWallet()
129 verify(mRoleManager).getRoleHolders(mRoleNameCaptor.capture()); in testCallbackFiringOnRoleChange_roleWallet()
/packages/modules/Permission/framework-s/api/
Dmodule-lib-lint-baseline.txt26 RequiresPermission: android.app.role.RoleManager#getRoleHolders(String):
27 … Method 'getRoleHolders' documentation mentions permissions already declared by @RequiresPermission
Dsystem-lint-baseline.txt26 RequiresPermission: android.app.role.RoleManager#getRoleHolders(String):
27 … Method 'getRoleHolders' documentation mentions permissions already declared by @RequiresPermission
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBaseTest.java169 when(mRoleManager.getRoleHolders(eq(TEST_ROLE_NAME))).thenReturn(Collections.singletonList( in updateState_isRoleHolder_shouldSetSummaryToYes()
179 when(mRoleManager.getRoleHolders(eq(TEST_ROLE_NAME))).thenReturn(Collections.emptyList()); in updateState_notRoleHoler_shouldSetSummaryToNo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/data/repository/v31/
DRoleRepository.kt52 addAll(EXEMPTED_ROLES.map { role -> roleManager.getRoleHolders(role) }.flatten()) in getExemptedPackages()
/packages/services/Telephony/src/com/android/phone/
DRcsProvisioningMonitor.java882 return CollectionUtils.firstOrNull(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)); in getDmaPackageName()
936 List<String> getRoleHolders(String roleName); in getRoleHolders() method
953 public List<String> getRoleHolders(String roleName) { in getRoleHolders() method in RcsProvisioningMonitor.RoleManagerAdapterImpl
954 return mRoleManager.getRoleHolders(roleName); in getRoleHolders()
DEmergencyAssistanceHelper.java122 .getRoleHolders(RoleManager.ROLE_EMERGENCY); in getDefaultEmergencyPackage()
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/
DMediaRoutingControl.kt57 && (this.roleManager?.getRoleHolders(AssociationRequest.DEVICE_PROFILE_WATCH) in createModel()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DSipTransportController.java108 List<String> getRoleHolders(String roleName); in getRoleHolders() method
164 public List<String> getRoleHolders(String roleName) { in getRoleHolders() method in SipTransportController.RoleManagerAdapterImpl
165 return mRoleManager.getRoleHolders(roleName); in getRoleHolders()
902 newSmsRolePackageName = mRoleManagerAdapter.getRoleHolders(RoleManager.ROLE_SMS) in updateRoleCache()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBase.java120 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultAppsPreferenceController.java88 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DWalletRoleObserver.java57 List<String> roleHolders = roleManager.getRoleHolders(RoleManager.ROLE_WALLET); in WalletRoleObserver()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/
DDefaultAssistantPickerEntryPreferenceController.java94 mRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)); in getComponentName()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DPermGroupsPackagesUiInfoLiveData.kt160 return roleManager.getRoleHolders(SYSTEM_SHELL).contains(packageName) in <lambda>()
/packages/apps/Settings/src/com/android/settings/privatespace/
DSetupSuccessFragment.java109 .getRoleHolders(RoleManager.ROLE_HOME); in onClickNext()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/
DHibernationPolicy.kt627 .getRoleHolders(RoleManager.ROLE_EMERGENCY) in isPackageHibernationExemptBySystem()
663 .getRoleHolders(RoleManager.ROLE_SYSTEM_WELLBEING) in isPackageHibernationExemptBySystem()
676 .getRoleHolders(RoleManager.ROLE_DEVICE_POLICY_MANAGEMENT) in isPackageHibernationExemptBySystem()
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java493 ArraySet<String> roleHolders = getOrCreateUserState(userId).getRoleHolders(roleName); in isRoleHeldAsUser()
515 ArraySet<String> roleHolders = getOrCreateUserState(userId).getRoleHolders(roleName); in getRoleHoldersAsUser()
602 userId).getRoleHolders(roleName); in getDefaultApplicationAsUser()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/wear/
DWearRequestRoleFragment.kt73 context.getSystemService(RoleManager::class.java)!!.getRoleHolders(roleName) in <lambda>()

12