Home
last modified time | relevance | path

Searched refs:roleHolders (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/companion/java/com/android/server/companion/utils/
DRolesUtils.java46 final List<String> roleHolders = roleManager.getRoleHoldersAsUser( in isRoleHolder() local
48 return roleHolders.contains(packageName); in isRoleHolder()
/frameworks/base/services/usage/java/com/android/server/usage/
DBroadcastResponseStatsTracker.java313 final List<String> roleHolders = getRoleHoldersLocked(roleName, user); in doesPackageHoldExemptedRole() local
314 if (CollectionUtils.contains(roleHolders, packageName)) { in doesPackageHoldExemptedRole()
352 List<String> roleHolders = roleHoldersForUser.get(roleName); in getRoleHoldersLocked() local
353 if (roleHolders == null && mRoleManager != null) { in getRoleHoldersLocked()
354 roleHolders = mRoleManager.getRoleHoldersAsUser(roleName, user); in getRoleHoldersLocked()
355 roleHoldersForUser.put(roleName, roleHolders); in getRoleHoldersLocked()
357 return roleHolders; in getRoleHoldersLocked()
/frameworks/base/services/core/java/com/android/server/policy/role/
DRoleServicePlatformHelperImpl.java150 Set<String> roleHolders = parseRoleHoldersLocked(parser); in parseRoles() local
151 roles.put(roleName, roleHolders); in parseRoles()
161 Set<String> roleHolders = new ArraySet<>(); in parseRoleHoldersLocked() local
174 roleHolders.add(roleHolder); in parseRoleHoldersLocked()
178 return roleHolders; in parseRoleHoldersLocked()
/frameworks/base/core/java/android/service/quickaccesswallet/
DQuickAccessWalletServiceInfo.java108 List<String> roleHolders = roleManager.getRoleHolders(RoleManager.ROLE_WALLET); in getDefaultWalletApp() local
109 return roleHolders.isEmpty() ? null : roleHolders.get(0); in getDefaultWalletApp()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOverlayPackagesProvider.java125 List<String> roleHolders = roleManager.getRoleHolders( in getDevicePolicyManagementRoleHolderPackageName()
127 if (roleHolders.isEmpty()) { in getDevicePolicyManagementRoleHolderPackageName()
130 return roleHolders.get(0); in getDevicePolicyManagementRoleHolderPackageName()
DDevicePolicyManagerService.java21607 List<String> roleHolders = roleManager.getRoleHoldersAsUser(role, user);
21608 if (roleHolders.isEmpty()) {
21611 return roleHolders.get(0);
21665 List<String> roleHolders =
21667 if (!roleHolders.isEmpty()) {
21668 return roleHolders.get(0);
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java244 List<String> roleHolders = callWithShellPermissionIdentity( in getDefaultLauncher() local
246 int size = roleHolders.size(); in getDefaultLauncher()
248 return roleHolders.get(0); in getDefaultLauncher()
253 + RoleManager.ROLE_HOME + ": " + roleHolders); in getDefaultLauncher()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsApplication.java899 final List<String> roleHolders = mRoleManager.getRoleHoldersAsUser( in getSmsPackageName() local
901 return !roleHolders.isEmpty() ? roleHolders.get(0) : null; in getSmsPackageName()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java2418 List<String> roleHolders = mRm.getRoleHoldersAsUser(roleName, user); in onRoleHoldersChanged() local
2422 roleHolders); in onRoleHoldersChanged()
2432 if (roleHolders.isEmpty()) { in onRoleHoldersChanged()
2443 if (roleHolders.isEmpty()) { in onRoleHoldersChanged()
2450 String pkg = roleHolders.get(0); in onRoleHoldersChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutService.java5306 List<String> roleHolders = mRoleManager.getRoleHoldersAsUser(
5308 return roleHolders.isEmpty() ? null : roleHolders.get(0);
DPackageManagerService.java3398 List<String> roleHolders =
3401 if (roleHolders.isEmpty()) {
3404 return roleHolders.get(0);
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java12632 ArraySet<String> roleHolders = new ArraySet<>(mRm.getRoleHoldersAsUser(roleName, user));
12644 if (!roleHolders.contains(previous)) {
12648 for (String nowApproved : roleHolders) {
12656 prevApprovedForRole.put(user.getIdentifier(), roleHolders);