Lines Matching refs:permission
850 * Grants a runtime permission to a package for a user.
852 * @param permission The permission to grant.
857 public boolean grantRuntimePermission(String packageName, String permission,
864 Log.i(LOG_TAG, "Granting runtime permission");
868 permission, userHandle.getIdentifier());
872 Log.e(LOG_TAG, "Error granting runtime permission", re);
878 * Revokes a runtime permission from a package for a user.
880 * @param permission The permission to revoke.
885 public boolean revokeRuntimePermission(String packageName, String permission,
892 Log.i(LOG_TAG, "Revoking runtime permission");
896 permission, userHandle.getIdentifier());
900 Log.e(LOG_TAG, "Error revoking runtime permission", re);