Home
last modified time | relevance | path

Searched refs:getRoleHoldersAsUser (Results 1 – 25 of 30) sorted by relevance

12

/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DSatelliteAccessControllerTest.kt154 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/
DButtonRoleHolderControllerTest.java103 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/
DWalletRoleObserverTest.java100 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/
DRoleManagerAdapterImpl.java138 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()
DCallStreamingController.java204 List<String> holders = roleManager.getRoleHoldersAsUser( in processTransaction()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DDefaultAppShortcutPreferenceTest.kt125 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/
DSatelliteAccessController.java102 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/
Dmodule-lib-lint-baseline.txt28 RequiresPermission: android.app.role.RoleManager#getRoleHoldersAsUser(String, android.os.UserHandle…
29 …Method 'getRoleHoldersAsUser' documentation mentions permissions already declared by @RequiresPerm…
Dsystem-lint-baseline.txt28 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/
DRoleHoldersLiveData.kt52 postValue(roleManager.getRoleHoldersAsUser(roleName, user)) in loadDataAndPostValue()
/packages/modules/Permission/framework-s/java/android/app/role/
DIRoleManager.aidl32 List<String> getRoleHoldersAsUser(in String roleName, int userId); in getRoleHoldersAsUser() method
DRoleManager.java365 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/
DWalletRoleObserver.java80 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(RoleManager.ROLE_WALLET, in getDefaultWalletRoleHolder()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DRoleLiveData.java82 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(mRole.getName(), mUser); in loadValueInBackground()
DRoleListLiveData.java108 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(role.getName(), in loadValueInBackground()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/behavior/
DHomeRoleUiBehavior.java56 String packageName = CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser( in preparePreferenceAsUser()
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java502 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()
DRoleShellCommand.java120 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(roleName, userId); in runGetRoleHolders()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DButtonRoleHolderController.java122 List<String> holders = mRoleManager.getRoleHoldersAsUser(button.getRoleName(), in updateIcon()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DDefaultAppShortcutPreference.kt106 val defaultApp = roleManager.getRoleHoldersAsUser(roleName, app.userHandle).firstOrNull() in getSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesControllerTest.java146 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/
DAssistantRoleBehavior.java64 List<String> packageNames = roleManager.getRoleHoldersAsUser(role.getName(), user); in onRoleAddedAsUser()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DDeviceManagementRoleHolderHelper.java75 if (mRoleManager.getRoleHoldersAsUser(roleName, user).contains(packageName)) { in DeviceManagementRoleHolderHelper()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DRoleManagerTest.java1344 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/
DStylusDevicesController.java133 List<String> roleHolders = rm.getRoleHoldersAsUser(RoleManager.ROLE_NOTES, user); in createOrUpdateDefaultNotesPreference()

12