Merge "Update permission group mapping API doc according to API review." into sc-dev am: bf8849c1ef

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737737

Change-Id: Ie31a0fc1b99971f00cc5aa6776888b070dcbb572
This commit is contained in:
Hai Zhang
2021-05-26 22:21:19 +00:00
committed by Automerger Merge Worker

View File

@@ -4672,27 +4672,27 @@ public abstract class PackageManager {
@PermissionGroupInfoFlags int flags); @PermissionGroupInfoFlags int flags);
/** /**
* Get the platform permissions which belong to a particular permission group. * Get the platform-defined permissions which belong to a particular permission group.
* *
* @param permissionGroupName The permission group whose permissions are desired * @param permissionGroupName the permission group whose permissions are desired
* @param executor Executor on which to invoke the callback * @param executor the {@link Executor} on which to invoke the callback
* @param callback A callback which will receive a list of the platform permissions in the * @param callback the callback which will receive a list of the platform-defined permissions in
* group, or empty if the group is not a valid platform group, or there * the group, or empty if the group is not a valid platform-defined permission
* was an exception. * group, or there was an exception
*/ */
public void getPlatformPermissionsForGroup(@NonNull String permissionGroupName, public void getPlatformPermissionsForGroup(@NonNull String permissionGroupName,
@NonNull @CallbackExecutor Executor executor, @NonNull @CallbackExecutor Executor executor,
@NonNull Consumer<List<String>> callback) {} @NonNull Consumer<List<String>> callback) {}
/** /**
* Get the platform group of a particular permission, if the permission is a platform * Get the platform-defined permission group of a particular permission, if the permission is a
* permission. * platform-defined permission.
* *
* @param permissionName The permission name whose group is desired * @param permissionName the permission whose group is desired
* @param executor Executor on which to invoke the callback * @param executor the {@link Executor} on which to invoke the callback
* @param callback A callback which will receive the name of the permission group this * @param callback the callback which will receive the name of the permission group this
* permission belongs to, or null if it has no group, is not a platform * permission belongs to, or {@code null} if it has no group, is not a
* permission, or there was an exception. * platform-defined permission, or there was an exception
*/ */
public void getGroupOfPlatformPermission(@NonNull String permissionName, public void getGroupOfPlatformPermission(@NonNull String permissionName,
@NonNull @CallbackExecutor Executor executor, @NonNull Consumer<String> callback) {} @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<String> callback) {}