Home
last modified time | relevance | path

Searched refs:roleName (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/usage/java/com/android/server/usage/
DBroadcastResponseStatsTracker.java296 final String roleName = exemptedRoles.get(i); in doesPackageHoldExemptedRole() local
297 final List<String> roleHolders = getRoleHoldersLocked(roleName, user); in doesPackageHoldExemptedRole()
322 private List<String> getRoleHoldersLocked(@NonNull String roleName, @NonNull UserHandle user) { in getRoleHoldersLocked() argument
329 List<String> roleHolders = roleHoldersForUser.get(roleName); in getRoleHoldersLocked()
331 roleHolders = mRoleManager.getRoleHoldersAsUser(roleName, user); in getRoleHoldersLocked()
332 roleHoldersForUser.put(roleName, roleHolders); in getRoleHoldersLocked()
337 private void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
344 roleHoldersForUser.remove(roleName); in onRoleHoldersChanged()
527 final String roleName = roleHoldersForUser.keyAt(roleIdx); in dumpRoleHoldersLocked() local
529 ipw.print(roleName + ": "); in dumpRoleHoldersLocked()
/frameworks/av/media/libstagefright/xmlparser/test/
DXMLParserTest.cpp40 string roleName; member
65 void setRoleProperties(string roleName, bool isEncoder, int32_t order, string typeName,
228 void XMLParseTest::setRoleProperties(string roleName, bool isEncoder, int32_t order, in setRoleProperties() argument
232 roleProperty.roleName = roleName; in setRoleProperties()
366 const string &roleName = mRole.first; in TEST_F() local
367 ALOGV("Role map:name = %s\n", roleName.c_str()); in TEST_F()
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultAppProvider.java169 private String getRoleHolder(@NonNull String roleName, @NonNull int userId) { in getRoleHolder() argument
176 return CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser(roleName, in getRoleHolder()
DShortcutService.java567 public void onRoleHoldersChanged(String roleName, UserHandle user) {
568 if (RoleManager.ROLE_HOME.equals(roleName)) {
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp1577 const char* roleName = GetComponentRole(isEncoder, typeName.data()); in generateRoleMap() local
1578 if (roleName == nullptr) { in generateRoleMap()
1586 auto roleIterator = mRoleMap.find(roleName); in generateRoleMap()
1593 std::make_pair(roleName, roleProperties)); in generateRoleMap()
1595 ALOGE("Cannot add role %s", roleName); in generateRoleMap()
1602 roleName, in generateRoleMap()
1609 roleName); in generateRoleMap()
/frameworks/base/services/core/java/com/android/server/policy/role/
DRoleServicePlatformHelperImpl.java148 String roleName = parser.getAttributeValue(null, ATTRIBUTE_NAME); in parseRoles() local
150 roles.put(roleName, roleHolders); in parseRoles()
/frameworks/base/services/core/java/com/android/server/policy/
DAppOpsPolicy.java180 (String roleName, UserHandle user) -> { in AppOpsPolicy()
181 if (RoleManager.ROLE_SYSTEM_ACTIVITY_RECOGNIZER.equals(roleName)) { in AppOpsPolicy()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java239 (roleName, user) -> updateSimCallManagerPermissions(user.getIdentifier()), in registerDefaultAppNotifier()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java580 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
581 if (RoleManager.ROLE_HOME.equals(roleName)) { in onRoleHoldersChanged()
/frameworks/base/services/core/java/com/android/server/am/
DAppRestrictionController.java2892 private boolean isRoleHeldByUid(@NonNull String roleName, int uid) { in isRoleHeldByUid() argument
2895 return roles != null && roles.indexOf(roleName) >= 0; in isRoleHeldByUid()
2911 private void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
2913 roleName, user); in onRoleHoldersChanged()
2929 final int index = roles.indexOf(roleName); in onRoleHoldersChanged()
2939 roles.add(roleName); in onRoleHoldersChanged()
2945 roles.add(roleName); in onRoleHoldersChanged()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java2037 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
2038 if (!roleName.equals(RoleManager.ROLE_ASSISTANT)) { in onRoleHoldersChanged()
2042 List<String> roleHolders = mRm.getRoleHoldersAsUser(roleName, user); in onRoleHoldersChanged()
2045 Slogf.d(TAG, "onRoleHoldersChanged(%s, %s): roleHolders=%s", roleName, user, in onRoleHoldersChanged()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsApplication.java879 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
880 if (!Objects.equals(roleName, RoleManager.ROLE_SMS)) { in onRoleHoldersChanged()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java11494 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) {
11495 onRoleHoldersChangedForNonBlockableDefaultApps(roleName, user);
11496 onRoleHoldersChangedForTrampolines(roleName, user);
11499 private void onRoleHoldersChangedForNonBlockableDefaultApps(@NonNull String roleName,
11504 if (NON_BLOCKABLE_DEFAULT_ROLES[i].equals(roleName)) {
11514 ArraySet<String> roleHolders = new ArraySet<>(mRm.getRoleHoldersAsUser(roleName, user));
11518 mNonBlockableDefaultApps.getOrDefault(roleName, new ArrayMap<>());
11539 mNonBlockableDefaultApps.put(roleName, prevApprovedForRole);
11548 private void onRoleHoldersChangedForTrampolines(@NonNull String roleName,
11550 if (!RoleManager.ROLE_BROWSER.equals(roleName)) {
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java3313 String roleName = roleEntry.getKey();
3326 atomTag, pkg.applicationInfo.uid, packageName, roleName));
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1568 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
1569 if (RoleManager.ROLE_ASSISTANT.equals(roleName)) { in onRoleHoldersChanged()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java18824 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) {
18825 if (!RoleManager.ROLE_DEVICE_POLICY_MANAGEMENT.equals(roleName)) {