/frameworks/base/core/java/android/app/role/ |
D | RoleControllerService.java | 93 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 …]
|
D | RoleManager.java | 200 public Intent createRequestRoleIntent(@NonNull String roleName) { in createRequestRoleIntent() argument 201 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in createRequestRoleIntent() 204 intent.putExtra(Intent.EXTRA_ROLE_NAME, roleName); in createRequestRoleIntent() 215 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() argument 216 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleAvailable() 218 return mService.isRoleAvailable(roleName); in isRoleAvailable() 231 public boolean isRoleHeld(@NonNull String roleName) { in isRoleHeld() argument 232 Preconditions.checkStringNotEmpty(roleName, "roleName cannot be null or empty"); in isRoleHeld() 234 return mService.isRoleHeld(roleName, mContext.getPackageName()); in isRoleHeld() 258 public List<String> getRoleHolders(@NonNull String roleName) { in getRoleHolders() argument [all …]
|
D | IRoleManager.aidl | 28 boolean isRoleAvailable(in String roleName); in isRoleAvailable() argument 30 boolean isRoleHeld(in String roleName, in String packageName); in isRoleHeld() argument 32 List<String> getRoleHoldersAsUser(in String roleName, int userId); in getRoleHoldersAsUser() argument 34 void addRoleHolderAsUser(in String roleName, in String packageName, int flags, int userId, in addRoleHolderAsUser() argument 37 void removeRoleHolderAsUser(in String roleName, in String packageName, int flags, int userId, in removeRoleHolderAsUser() argument 40 void clearRoleHoldersAsUser(in String roleName, int flags, int userId, in clearRoleHoldersAsUser() argument 50 boolean addRoleHolderFromController(in String roleName, in String packageName); in addRoleHolderFromController() argument 52 boolean removeRoleHolderFromController(in String roleName, in String packageName); in removeRoleHolderFromController() argument
|
D | IRoleController.aidl | 28 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
|
D | RoleControllerManager.java | 130 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 …]
|
D | IOnRoleHoldersChangedListener.aidl | 24 void onRoleHoldersChanged(String roleName, int userId); in onRoleHoldersChanged() argument
|
D | OnRoleHoldersChangedListener.java | 39 void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user); in onRoleHoldersChanged() argument
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | RoleUserState.java | 183 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 …]
|
D | RoleManagerService.java | 115 List<String> getRoleHolders(@NonNull String roleName, @UserIdInt int userId); in getRoleHolders() argument 381 public void onRoleHoldersChanged(@NonNull String roleName, @UserIdInt int userId, in onRoleHoldersChanged() argument 384 RoleManagerService::notifyRoleHoldersChanged, this, roleName, userId, in onRoleHoldersChanged() 389 private void notifyRoleHoldersChanged(@NonNull String roleName, @UserIdInt int userId, in notifyRoleHoldersChanged() argument 393 notifyRoleHoldersChangedForListeners(listeners, roleName, userId); in notifyRoleHoldersChanged() 399 notifyRoleHoldersChangedForListeners(allUsersListeners, roleName, userId); in notifyRoleHoldersChanged() 403 if (RoleManager.ROLE_SMS.equals(roleName)) { in notifyRoleHoldersChanged() 412 @NonNull String roleName, @UserIdInt int userId) { in notifyRoleHoldersChangedForListeners() argument 418 listener.onRoleHoldersChanged(roleName, userId); in notifyRoleHoldersChangedForListeners() 431 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() argument [all …]
|
D | RoleManagerShellCommand.java | 110 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/av/media/libstagefright/xmlparser/test/ |
D | XMLParserTest.cpp | 40 string roleName; member 65 void setRoleProperties(string roleName, bool isEncoder, int32_t order, string typeName, 199 void XMLParseTest::setRoleProperties(string roleName, bool isEncoder, int32_t order, in setRoleProperties() argument 203 roleProperty.roleName = roleName; in setRoleProperties() 337 const string &roleName = mRole.first; in TEST_F() local 338 ALOGV("Role map:name = %s\n", roleName.c_str()); in TEST_F()
|
/frameworks/base/services/core/java/com/android/server/policy/role/ |
D | LegacyRoleResolutionPolicy.java | 64 public List<String> getRoleHolders(@NonNull String roleName, @UserIdInt int userId) { in getRoleHolders() argument 65 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/ |
D | MediaCodecsXmlParser.cpp | 1472 const char* roleName = GetComponentRole(isEncoder, typeName.data()); in generateRoleMap() local 1473 if (roleName == nullptr) { in generateRoleMap() 1481 auto roleIterator = mRoleMap.find(roleName); in generateRoleMap() 1488 std::make_pair(roleName, roleProperties)); in generateRoleMap() 1490 ALOGE("Cannot add role %s", roleName); in generateRoleMap() 1497 roleName, in generateRoleMap() 1504 roleName); in generateRoleMap()
|
/frameworks/base/services/core/java/com/android/server/telecom/ |
D | TelecomLoaderService.java | 222 (roleName, user) -> updateSimCallManagerPermissions(permissionPolicy, in registerDefaultAppNotifier()
|
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
D | VoiceInteractionManagerService.java | 1337 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument 1338 if (!roleName.equals(RoleManager.ROLE_ASSISTANT)) { in onRoleHoldersChanged() 1342 List<String> roleHolders = mRm.getRoleHoldersAsUser(roleName, user); in onRoleHoldersChanged()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 2147 String roleName = roles.keyAt(roleNum); in pullRoleHolders() local 2166 e.writeString(roleName); in pullRoleHolders()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 8565 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { 8569 if (NON_BLOCKABLE_DEFAULT_ROLES[i].equals(roleName)) { 8579 ArraySet<String> roleHolders = new ArraySet<>(mRm.getRoleHoldersAsUser(roleName, user)); 8583 mNonBlockableDefaultApps.getOrDefault(roleName, new ArrayMap<>()); 8604 mNonBlockableDefaultApps.put(roleName, prevApprovedForRole);
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 928 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument 929 if (RoleManager.ROLE_ASSISTANT.equals(roleName)) { in onRoleHoldersChanged()
|