/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceControllerTest.java | 90 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/ |
D | RoleShellCommandTest.kt | 48 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()
|
D | RoleManagerTest.java | 187 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/ |
D | DefaultAssistantPickerEntryPreferenceControllerTest.java | 101 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/ |
D | MediaRoutingControlTest.kt | 163 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/ |
D | RoleControllerServiceImpl.java | 126 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/ |
D | RequestRoleActivity.java | 151 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/ |
D | WalletRoleObserverTest.java | 125 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/ |
D | module-lib-lint-baseline.txt | 26 RequiresPermission: android.app.role.RoleManager#getRoleHolders(String): 27 … Method 'getRoleHolders' documentation mentions permissions already declared by @RequiresPermission
|
D | system-lint-baseline.txt | 26 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/ |
D | DefaultAppShortcutPreferenceControllerBaseTest.java | 169 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/ |
D | RoleRepository.kt | 52 addAll(EXEMPTED_ROLES.map { role -> roleManager.getRoleHolders(role) }.flatten()) in getExemptedPackages()
|
/packages/services/Telephony/src/com/android/phone/ |
D | RcsProvisioningMonitor.java | 882 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()
|
D | EmergencyAssistanceHelper.java | 122 .getRoleHolders(RoleManager.ROLE_EMERGENCY); in getDefaultEmergencyPackage()
|
/packages/apps/Settings/src/com/android/settings/spa/app/specialaccess/ |
D | MediaRoutingControl.kt | 57 && (this.roleManager?.getRoleHolders(AssociationRequest.DEVICE_PROFILE_WATCH) in createModel()
|
/packages/services/Telephony/src/com/android/services/telephony/rcs/ |
D | SipTransportController.java | 108 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/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 120 final String packageName = CollectionUtils.firstOrNull(mRoleManager.getRoleHolders( in isDefaultApp()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 88 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | WalletRoleObserver.java | 57 List<String> roleHolders = roleManager.getRoleHolders(RoleManager.ROLE_WALLET); in WalletRoleObserver()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/defaultapps/ |
D | DefaultAssistantPickerEntryPreferenceController.java | 94 mRoleManager.getRoleHolders(RoleManager.ROLE_ASSISTANT)); in getComponentName()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | PermGroupsPackagesUiInfoLiveData.kt | 160 return roleManager.getRoleHolders(SYSTEM_SHELL).contains(packageName) in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/privatespace/ |
D | SetupSuccessFragment.java | 109 .getRoleHolders(RoleManager.ROLE_HOME); in onClickNext()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/ |
D | HibernationPolicy.kt | 627 .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/ |
D | RoleService.java | 493 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/ |
D | WearRequestRoleFragment.kt | 73 context.getSystemService(RoleManager::class.java)!!.getRoleHolders(roleName) in <lambda>()
|