Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/policy/
DModifierShortcutManager.java120 (String roleName, UserHandle user) -> { in ModifierShortcutManager()
121 mRoleIntents.remove(roleName); in ModifierShortcutManager()
221 String roleName = parser.getAttributeValue(null, ATTRIBUTE_ROLE); in loadShortcuts() local
226 + " role=" + roleName + "shiftName=" + shiftName); in loadShortcuts()
234 if (roleName != null || categoryName != null) { in loadShortcuts()
266 if (roleName != null) { in loadShortcuts()
273 } else if (roleName != null) { in loadShortcuts()
277 mShiftRoleShortcuts.put(shortcutChar, roleName); in loadShortcuts()
279 mRoleShortcuts.put(shortcutChar, roleName); in loadShortcuts()
DAppOpsPolicy.java187 (String roleName, UserHandle user) -> { in AppOpsPolicy()
188 if (RoleManager.ROLE_SYSTEM_ACTIVITY_RECOGNIZER.equals(roleName)) { in AppOpsPolicy()
/frameworks/base/services/usage/java/com/android/server/usage/
DBroadcastResponseStatsTracker.java312 final String roleName = exemptedRoles.get(i); in doesPackageHoldExemptedRole() local
313 final List<String> roleHolders = getRoleHoldersLocked(roleName, user); in doesPackageHoldExemptedRole()
345 private List<String> getRoleHoldersLocked(@NonNull String roleName, @NonNull UserHandle user) { in getRoleHoldersLocked() argument
352 List<String> roleHolders = roleHoldersForUser.get(roleName); in getRoleHoldersLocked()
354 roleHolders = mRoleManager.getRoleHoldersAsUser(roleName, user); in getRoleHoldersLocked()
355 roleHoldersForUser.put(roleName, roleHolders); in getRoleHoldersLocked()
360 private void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
367 roleHoldersForUser.remove(roleName); in onRoleHoldersChanged()
550 final String roleName = roleHoldersForUser.keyAt(roleIdx); in dumpRoleHoldersLocked() local
552 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,
271 void XMLParseTest::setRoleProperties(string roleName, bool isEncoder, int32_t order, in setRoleProperties() argument
275 roleProperty.roleName = roleName; in setRoleProperties()
409 const string &roleName = mRole.first; in TEST_F() local
410 ALOGV("Role map:name = %s\n", roleName.c_str()); in TEST_F()
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultAppProvider.java147 private String getRoleHolder(@NonNull String roleName, @NonNull int userId) { in getRoleHolder() argument
154 return CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser(roleName, in getRoleHolder()
DShortcutService.java582 public void onRoleHoldersChanged(String roleName, UserHandle user) {
583 if (RoleManager.ROLE_HOME.equals(roleName)) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskInitializer.kt119 override fun onRoleHoldersChanged(roleName: String, user: UserHandle) { in onRoleHoldersChanged()
120 controller.onRoleHoldersChanged(roleName, user) in onRoleHoldersChanged()
DNoteTaskController.kt367 fun onRoleHoldersChanged(roleName: String, user: UserHandle) { in onRoleHoldersChanged()
368 if (roleName != ROLE_NOTES) return in onRoleHoldersChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/quickaffordance/
DNoteTaskQuickAffordanceConfig.kt186 val callback = OnRoleHoldersChangedListener { roleName, _ -> in createNotesRoleFlow() method
187 if (roleName == RoleManager.ROLE_NOTES) { in createNotesRoleFlow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/controller/
DQuickAccessWalletController.java327 mDefaultWalletAppObserver = (roleName, user) -> { in setupDefaultWalletAppObserver()
328 if (!roleName.equals(RoleManager.ROLE_WALLET)) { in setupDefaultWalletAppObserver()
/frameworks/base/services/tests/servicestests/src/com/android/server/os/
DBugreportManagerServiceImplTest.java346 List<String> getRoleHolders(@NonNull String roleName) { in TestInjector()
347 return roleName.equals(grantedRole) in TestInjector()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp1644 const char* roleName = GetComponentRole(isEncoder, typeName.data()); in generateRoleMap() local
1645 if (roleName == nullptr) { in generateRoleMap()
1653 auto roleIterator = mRoleMap.find(roleName); in generateRoleMap()
1660 std::make_pair(roleName, roleProperties)); in generateRoleMap()
1662 ALOGE("Cannot add role %s", roleName); in generateRoleMap()
1669 roleName, in generateRoleMap()
1676 roleName); in generateRoleMap()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DEnforcingAdmin.java135 static String getRoleAuthorityOf(String roleName) { in getRoleAuthorityOf() argument
136 return ROLE_AUTHORITY_PREFIX + roleName; in getRoleAuthorityOf()
DDevicePolicyEngine.java1335 void handleRoleChanged(@NonNull String roleName, int userId) { in handleRoleChanged() argument
1337 if (!DEVICE_LOCK_CONTROLLER_ROLE.equals(roleName)) { in handleRoleChanged()
1341 String roleAuthority = EnforcingAdmin.getRoleAuthorityOf(roleName); in handleRoleChanged()
DDevicePolicyManagerService.java22761 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) {
22762 mDevicePolicyEngine.handleRoleChanged(roleName, user.getIdentifier());
22763 if (RoleManager.ROLE_DEVICE_POLICY_MANAGEMENT.equals(roleName)) {
22767 if (RoleManager.ROLE_FINANCED_DEVICE_KIOSK.equals(roleName)) {
/frameworks/base/services/core/java/com/android/server/policy/role/
DRoleServicePlatformHelperImpl.java149 String roleName = parser.getAttributeValue(null, ATTRIBUTE_NAME); in parseRoles() local
151 roles.put(roleName, roleHolders); in parseRoles()
/frameworks/base/services/companion/java/com/android/server/companion/securechannel/
DSecureChannel.java567 String roleName = role == Role.INITIATOR ? "Initiator" : "Responder"; in constructToken() local
568 byte[] roleUtf8 = roleName.getBytes(StandardCharsets.UTF_8); in constructToken()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java237 (roleName, user) -> updateSimCallManagerPermissions(user.getIdentifier()), in registerDefaultAppNotifier()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java586 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
587 if (RoleManager.ROLE_HOME.equals(roleName)) { in onRoleHoldersChanged()
/frameworks/base/services/core/java/com/android/server/am/
DAppRestrictionController.java3048 private boolean isRoleHeldByUid(@NonNull String roleName, int uid) {
3051 return roles != null && roles.indexOf(roleName) >= 0;
3067 private void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) {
3069 roleName, user);
3085 final int index = roles.indexOf(roleName);
3095 roles.add(roleName);
3101 roles.add(roleName);
/frameworks/base/services/core/java/com/android/server/os/
DBugreportManagerServiceImpl.java412 List<String> getRoleHolders(@NonNull String roleName) { in getRoleHolders() argument
413 return mContext.getSystemService(RoleManager.class).getRoleHolders(roleName); in getRoleHolders()
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsApplication.java887 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
888 if (!Objects.equals(roleName, RoleManager.ROLE_SMS)) { in onRoleHoldersChanged()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java2413 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
2414 if (!roleName.equals(RoleManager.ROLE_ASSISTANT)) { in onRoleHoldersChanged()
2418 List<String> roleHolders = mRm.getRoleHoldersAsUser(roleName, user); in onRoleHoldersChanged()
2421 Slogf.d(TAG, "onRoleHoldersChanged(%s, %s): roleHolders=%s", roleName, user, in onRoleHoldersChanged()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java12612 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) {
12613 onRoleHoldersChangedForNonBlockableDefaultApps(roleName, user);
12614 onRoleHoldersChangedForTrampolines(roleName, user);
12617 private void onRoleHoldersChangedForNonBlockableDefaultApps(@NonNull String roleName,
12622 if (NON_BLOCKABLE_DEFAULT_ROLES[i].equals(roleName)) {
12632 ArraySet<String> roleHolders = new ArraySet<>(mRm.getRoleHoldersAsUser(roleName, user));
12636 mNonBlockableDefaultApps.getOrDefault(roleName, new ArrayMap<>());
12657 mNonBlockableDefaultApps.put(roleName, prevApprovedForRole);
12666 private void onRoleHoldersChangedForTrampolines(@NonNull String roleName,
12668 if (!RoleManager.ROLE_BROWSER.equals(roleName)) {
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java3567 String roleName = roleEntry.getKey();
3581 atomTag, pkg.applicationInfo.uid, packageName, roleName));
3586 atomTag, INVALID_UID, "", roleName));

12