/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | SatelliteAccessControllerTest.kt | 154 doReturn(listOf<String>()).`when`(mDeps).getRoleHoldersAsUser( in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser() 163 .`when`(mDeps).getRoleHoldersAsUser(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser() 168 doReturn(listOf(SMS_APP2)).`when`(mDeps).getRoleHoldersAsUser( in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser() 176 doReturn(listOf<String>()).`when`(mDeps).getRoleHoldersAsUser( in test_onRoleHoldersChanged_SatelliteFallbackUid_Changed_SingleUser() 187 doReturn(listOf<Any>()).`when`(mDeps).getRoleHoldersAsUser( in test_onRoleHoldersChanged_NoSatelliteCommunicationPermission() 200 .`when`(mDeps).getRoleHoldersAsUser(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_NoSatelliteCommunicationPermission() 209 .`when`(mDeps).getRoleHoldersAsUser(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_RoleSms_NotAvailable() 220 doReturn(listOf<String>()).`when`(mDeps).getRoleHoldersAsUser( in test_onRoleHoldersChanged_SatelliteNetworkFallbackUid_Changed_multiUser() 229 .`when`(mDeps).getRoleHoldersAsUser(RoleManager.ROLE_SMS, PRIMARY_USER_HANDLE) in test_onRoleHoldersChanged_SatelliteNetworkFallbackUid_Changed_multiUser() 234 doReturn(listOf(SMS_APP2)).`when`(mDeps).getRoleHoldersAsUser( in test_onRoleHoldersChanged_SatelliteNetworkFallbackUid_Changed_multiUser() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | ButtonRoleHolderControllerTest.java | 103 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in addAllButtonsWithRoleName_roleAssigned_appIconEnabled_useAssignedAppIcon() 113 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in addAllButtonsWithRoleName_roleUnassigned_appIconEnabled_useDefaultIcon() 123 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_currentUser_appIconEnabled_useAssignedAppIcon() 127 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_currentUser_appIconEnabled_useAssignedAppIcon() 138 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_nonCurrentUser_appIconEnabled_iconIsNotUpdated() 143 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_nonCurrentUser_appIconEnabled_iconIsNotUpdated() 155 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_invalidPackage_useDefaultIcon() 166 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in addAllButtonsWithRoleName_appIconDisabled_useDefaultIcon() 177 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_roleAssigned_appIconDisabled_useDefaultIcon() 182 .getRoleHoldersAsUser(eq(RoleManager.ROLE_ASSISTANT), any())) in onRoleChanged_roleAssigned_appIconDisabled_useDefaultIcon()
|
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/ |
D | WalletRoleObserverTest.java | 100 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_WALLET), in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder() 106 verify(mRoleManager).getRoleHoldersAsUser(mRoleNameCaptor.capture(), in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder() 147 when(mRoleManager.getRoleHoldersAsUser(eq(RoleManager.ROLE_WALLET), in testOnUserSwitched_callsCallback() 152 verify(mRoleManager).getRoleHoldersAsUser(mRoleNameCaptor.capture(), in testOnUserSwitched_callsCallback()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RoleManagerAdapterImpl.java | 138 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(ROLE_CALL_SCREENING, in getRoleManagerCallScreeningApp() 147 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(ROLE_DIALER, in getRoleManagerDefaultDialerApp() 161 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(ROLE_CALL_REDIRECTION_APP, in getRoleManagerCallRedirectionApp()
|
D | CallStreamingController.java | 204 List<String> holders = roleManager.getRoleHoldersAsUser( in processTransaction()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/ |
D | DefaultAppShortcutPreferenceTest.kt | 125 whenever(roleManager.getRoleHoldersAsUser(eq(ROLE), any())).thenReturn(listOf(PACKAGE_NAME)) in isRoleHolder_summaryIsYes() 136 whenever(roleManager.getRoleHoldersAsUser(eq(ROLE), any())).thenReturn(emptyList()) in notRoleHolder_summaryIsNo() 147 whenever(roleManager.getRoleHoldersAsUser(eq(ROLE), any())).thenReturn(emptyList()) in onClick_startManageDefaultAppIntent()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | SatelliteAccessController.java | 102 public List<String> getRoleHoldersAsUser(String roleName, UserHandle userHandle) { in getRoleHoldersAsUser() method in SatelliteAccessController.Dependencies 103 return mRoleManager.getRoleHoldersAsUser(roleName, userHandle); in getRoleHoldersAsUser() 178 mDeps.getRoleHoldersAsUser(RoleManager.ROLE_SMS, userHandle); in onRoleSmsChanged()
|
/packages/modules/Permission/framework-s/api/ |
D | module-lib-lint-baseline.txt | 28 RequiresPermission: android.app.role.RoleManager#getRoleHoldersAsUser(String, android.os.UserHandle… 29 …Method 'getRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPerm…
|
D | system-lint-baseline.txt | 28 RequiresPermission: android.app.role.RoleManager#getRoleHoldersAsUser(String, android.os.UserHandle… 29 …Method 'getRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPerm…
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | RoleHoldersLiveData.kt | 52 postValue(roleManager.getRoleHoldersAsUser(roleName, user)) in loadDataAndPostValue()
|
/packages/modules/Permission/framework-s/java/android/app/role/ |
D | IRoleManager.aidl | 32 List<String> getRoleHoldersAsUser(in String roleName, int userId); in getRoleHoldersAsUser() method
|
D | RoleManager.java | 365 return getRoleHoldersAsUser(roleName, getContextUserIfAppropriate()); in getRoleHolders() 389 public List<String> getRoleHoldersAsUser(@NonNull String roleName, @NonNull UserHandle user) { in getRoleHoldersAsUser() method in RoleManager 393 return mService.getRoleHoldersAsUser(roleName, user.getIdentifier()); in getRoleHoldersAsUser()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | WalletRoleObserver.java | 80 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(RoleManager.ROLE_WALLET, in getDefaultWalletRoleHolder()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
D | RoleLiveData.java | 82 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(mRole.getName(), mUser); in loadValueInBackground()
|
D | RoleListLiveData.java | 108 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(role.getName(), in loadValueInBackground()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/behavior/ |
D | HomeRoleUiBehavior.java | 56 String packageName = CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser( in preparePreferenceAsUser()
|
/packages/modules/Permission/service/java/com/android/role/ |
D | RoleService.java | 502 public List<String> getRoleHoldersAsUser(@NonNull String roleName, @UserIdInt int userId) { in getRoleHoldersAsUser() method in RoleService.Stub 845 return CollectionUtils.firstOrNull(getRoleHoldersAsUser(RoleManager.ROLE_BROWSER, in getBrowserRoleHolder() 926 packageName = CollectionUtils.firstOrNull(getRoleHoldersAsUser(RoleManager.ROLE_SMS, in getSmsRoleHolder() 953 packageName = CollectionUtils.firstOrNull(getRoleHoldersAsUser( in getEmergencyRoleHolder()
|
D | RoleShellCommand.java | 120 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(roleName, userId); in runGetRoleHolders()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | ButtonRoleHolderController.java | 122 List<String> holders = mRoleManager.getRoleHoldersAsUser(button.getRoleName(), in updateIcon()
|
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/ |
D | DefaultAppShortcutPreference.kt | 106 val defaultApp = roleManager.getRoleHoldersAsUser(roleName, app.userHandle).firstOrNull() in getSummary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDevicesControllerTest.java | 146 when(mRm.getRoleHoldersAsUser(eq(RoleManager.ROLE_NOTES), any(UserHandle.class))) in setUp() 347 when(mRm.getRoleHoldersAsUser(eq(RoleManager.ROLE_NOTES), any(UserHandle.class))) in defaultNotesPreference_roleHolderChanges_updatesPreference() 357 when(mRm.getRoleHoldersAsUser(eq(RoleManager.ROLE_NOTES), any(UserHandle.class))) in defaultNotesPreference_noRoleHolder_showNoneInSummary()
|
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/ |
D | AssistantRoleBehavior.java | 64 List<String> packageNames = roleManager.getRoleHoldersAsUser(role.getName(), user); in onRoleAddedAsUser()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | DeviceManagementRoleHolderHelper.java | 75 if (mRoleManager.getRoleHoldersAsUser(roleName, user).contains(packageName)) { in DeviceManagementRoleHolderHelper()
|
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 1344 private List<String> getRoleHoldersAsUser(@NonNull String roleName, UserHandle userHandle) in getRoleHoldersAsUser() method in RoleManagerTest 1347 () -> sRoleManager.getRoleHoldersAsUser(roleName, userHandle)); in getRoleHoldersAsUser() 1363 List<String> packageNames = getRoleHoldersAsUser(roleName, userHandle); in assertIsRoleHolderAsUser()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDevicesController.java | 133 List<String> roleHolders = rm.getRoleHoldersAsUser(RoleManager.ROLE_NOTES, user); in createOrUpdateDefaultNotesPreference()
|