Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/role/
DRoleControllerService.java93 public void onAddRoleHolder(String roleName, String packageName, int flags, in onBind() argument
97 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
104 roleName, packageName, flags, callback)); in onBind()
108 public void onRemoveRoleHolder(String roleName, String packageName, int flags, in onBind() argument
112 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
119 roleName, packageName, flags, callback)); in onBind()
123 public void onClearRoleHolders(String roleName, int flags, RemoteCallback callback) { in onBind() argument
126 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in onBind()
131 roleName, flags, callback)); in onBind()
142 public void isApplicationQualifiedForRole(String roleName, String packageName, in onBind() argument
[all …]
DRoleManager.java201 public Intent createRequestRoleIntent(@NonNull String roleName) { in createRequestRoleIntent() argument
202 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in createRequestRoleIntent()
205 intent.putExtra(Intent.EXTRA_ROLE_NAME, roleName); in createRequestRoleIntent()
216 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() argument
217 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleAvailable()
219 return mService.isRoleAvailable(roleName); in isRoleAvailable()
232 public boolean isRoleHeld(@NonNull String roleName) { in isRoleHeld() argument
233 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleHeld()
235 return mService.isRoleHeld(roleName, mContext.getPackageName()); in isRoleHeld()
259 public List<String> getRoleHolders(@NonNull String roleName) { in getRoleHolders() argument
[all …]
DIRoleManager.aidl29 boolean isRoleAvailable(in String roleName); in isRoleAvailable() argument
31 boolean isRoleHeld(in String roleName, in String packageName); in isRoleHeld() argument
33 List<String> getRoleHoldersAsUser(in String roleName, int userId); in getRoleHoldersAsUser() argument
35 void addRoleHolderAsUser(in String roleName, in String packageName, int flags, int userId, in addRoleHolderAsUser() argument
38 void removeRoleHolderAsUser(in String roleName, in String packageName, int flags, int userId, in removeRoleHolderAsUser() argument
41 void clearRoleHoldersAsUser(in String roleName, int flags, int userId, in clearRoleHoldersAsUser() argument
51 boolean addRoleHolderFromController(in String roleName, in String packageName); in addRoleHolderFromController() argument
53 boolean removeRoleHolderFromController(in String roleName, in String packageName); in removeRoleHolderFromController() argument
DIRoleController.aidl28 void onAddRoleHolder(in String roleName, in String packageName, int flags, in onAddRoleHolder() argument
31 void onRemoveRoleHolder(in String roleName, in String packageName, int flags, in onRemoveRoleHolder() argument
34 void onClearRoleHolders(in String roleName, int flags, in RemoteCallback callback); in onClearRoleHolders() argument
36 void isApplicationQualifiedForRole(in String roleName, in String packageName, in isApplicationQualifiedForRole() argument
39 void isRoleVisible(in String roleName, in RemoteCallback callback); in isRoleVisible() argument
DRoleControllerManager.java130 public void onAddRoleHolder(@NonNull String roleName, @NonNull String packageName, in onAddRoleHolder() argument
132 mRemoteService.scheduleRequest(new OnAddRoleHolderRequest(mRemoteService, roleName, in onAddRoleHolder()
139 public void onRemoveRoleHolder(@NonNull String roleName, @NonNull String packageName, in onRemoveRoleHolder() argument
141 mRemoteService.scheduleRequest(new OnRemoveRoleHolderRequest(mRemoteService, roleName, in onRemoveRoleHolder()
148 public void onClearRoleHolders(@NonNull String roleName, in onClearRoleHolders() argument
150 mRemoteService.scheduleRequest(new OnClearRoleHoldersRequest(mRemoteService, roleName, in onClearRoleHolders()
158 public void isApplicationQualifiedForRole(@NonNull String roleName, @NonNull String packageName, in isApplicationQualifiedForRole() argument
161 roleName, packageName, executor, callback)); in isApplicationQualifiedForRole()
168 public void isRoleVisible(@NonNull String roleName, in isRoleVisible() argument
170 mRemoteService.scheduleRequest(new IsRoleVisibleRequest(mRemoteService, roleName, executor, in isRoleVisible()
[all …]
DIOnRoleHoldersChangedListener.aidl24 void onRoleHoldersChanged(String roleName, int userId); in onRoleHoldersChanged() argument
DOnRoleHoldersChangedListener.java39 void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user); in onRoleHoldersChanged() argument
/frameworks/base/services/core/java/com/android/server/role/
DRoleUserState.java183 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() argument
187 return mRoles.containsKey(roleName); in isRoleAvailable()
199 public ArraySet<String> getRoleHolders(@NonNull String roleName) { in getRoleHolders() argument
203 ArraySet<String> packageNames = mRoles.get(roleName); in getRoleHolders()
218 public boolean addRoleName(@NonNull String roleName) { in addRoleName() argument
222 if (!mRoles.containsKey(roleName)) { in addRoleName()
223 mRoles.put(roleName, new ArraySet<>()); in addRoleName()
224 Slog.i(LOG_TAG, "Added new role: " + roleName); in addRoleName()
245 String roleName = mRoles.keyAt(i); in setRoleNames() local
247 if (!roleNames.contains(roleName)) { in setRoleNames()
[all …]
DRoleManagerService.java117 List<String> getRoleHolders(@NonNull String roleName, @UserIdInt int userId); in getRoleHolders() argument
382 public void onRoleHoldersChanged(@NonNull String roleName, @UserIdInt int userId, in onRoleHoldersChanged() argument
385 RoleManagerService::notifyRoleHoldersChanged, this, roleName, userId, in onRoleHoldersChanged()
390 private void notifyRoleHoldersChanged(@NonNull String roleName, @UserIdInt int userId, in notifyRoleHoldersChanged() argument
394 notifyRoleHoldersChangedForListeners(listeners, roleName, userId); in notifyRoleHoldersChanged()
400 notifyRoleHoldersChangedForListeners(allUsersListeners, roleName, userId); in notifyRoleHoldersChanged()
404 if (RoleManager.ROLE_SMS.equals(roleName)) { in notifyRoleHoldersChanged()
413 @NonNull String roleName, @UserIdInt int userId) { in notifyRoleHoldersChangedForListeners() argument
419 listener.onRoleHoldersChanged(roleName, userId); in notifyRoleHoldersChangedForListeners()
432 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() argument
[all …]
DRoleManagerShellCommand.java110 String roleName = getNextArgRequired(); in runAddRoleHolder() local
115 mRoleManager.addRoleHolderAsUser(roleName, packageName, flags, userId, in runAddRoleHolder()
122 String roleName = getNextArgRequired(); in runRemoveRoleHolder() local
127 mRoleManager.removeRoleHolderAsUser(roleName, packageName, flags, userId, in runRemoveRoleHolder()
134 String roleName = getNextArgRequired(); in runClearRoleHolders() local
138 mRoleManager.clearRoleHoldersAsUser(roleName, flags, userId, future.createCallback()); in runClearRoleHolders()
/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java67 public List<String> getRoleHolders(@NonNull String roleName, @UserIdInt int userId) { in getRoleHolders() argument
68 switch (roleName) { in getRoleHolders()
140 Slog.e(LOG_TAG, "Don't know how to find legacy role holders for " + roleName); in getRoleHolders()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp1456 const char* roleName = GetComponentRole(isEncoder, typeName.data()); in generateRoleMap() local
1457 if (roleName == nullptr) { in generateRoleMap()
1465 auto roleIterator = mRoleMap.find(roleName); in generateRoleMap()
1472 std::make_pair(roleName, roleProperties)); in generateRoleMap()
1474 ALOGE("Cannot add role %s", roleName); in generateRoleMap()
1481 roleName, in generateRoleMap()
1488 roleName); in generateRoleMap()
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java222 (roleName, user) -> updateSimCallManagerPermissions(permissionPolicy, in registerDefaultAppNotifier()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java1311 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
1312 if (!roleName.equals(RoleManager.ROLE_ASSISTANT)) { in onRoleHoldersChanged()
1316 List<String> roleHolders = mRm.getRoleHoldersAsUser(roleName, user); in onRoleHoldersChanged()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java2107 String roleName = roles.keyAt(roleNum); in pullRoleHolders() local
2126 e.writeString(roleName); in pullRoleHolders()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java8303 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) {
8307 if (NON_BLOCKABLE_DEFAULT_ROLES[i].equals(roleName)) {
8317 ArraySet<String> roleHolders = new ArraySet<>(mRm.getRoleHoldersAsUser(roleName, user));
8321 mNonBlockableDefaultApps.getOrDefault(roleName, new ArrayMap<>());
8342 mNonBlockableDefaultApps.put(roleName, prevApprovedForRole);
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java924 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
925 if (RoleManager.ROLE_ASSISTANT.equals(roleName)) { in onRoleHoldersChanged()