Lines Matching refs:permission

785      * Permission policy to prompt user for new permission requests for runtime permissions.
791 * Permission policy to always grant new permission requests for runtime permissions.
797 * Permission policy to always deny new permission requests for runtime permissions.
803 * Runtime permission state: The user can manage the permission
809 * Runtime permission state: The permission is granted to the app
810 * and the user cannot manage the permission through the UI.
815 * Runtime permission state: The permission is denied to the app
816 * and the user cannot manage the permission through the UI.
2695 * Only apps with the MANAGE_PROFILE_AND_DEVICE_OWNERS permission and the shell uid can call
2798 * MANAGE_DEVICE_ADMINS permission before the device is provisioned or by a device owner app. A
2931 * This method can only be called by system apps that hold MANAGE_USERS permission and
2932 * MANAGE_DEVICE_ADMINS permission.
2994 * Only apps with the MANAGE_PROFILE_AND_DEVICE_OWNERS permission and the shell uid can call
3348 * @param userHandle The user for whom to check the caller-id permission
3430 * @param userHandle The user for whom to check the caller-id permission
4072 * making permission requests of a local or remote administrator of the user.
4086 Log.w(TAG, "Failed to set permission provider on device policy service");
4343 * The caller must hold {@link android.Manifest.permission#NOTIFY_PENDING_SYSTEM_UPDATE}
4344 * permission.
4362 * Called by profile or device owners to set the default response for future runtime permission
4364 * user to grant a permission, or can allow automatic granting or denying of runtime
4365 * permission requests by an application. This also applies to new permissions declared by app
4366 * updates. When a permission is denied or granted this way, the effect is equivalent to setting
4367 * the permission grant state via {@link #setPermissionGrantState}.
4369 * <p/>As this policy only acts on runtime permission requests, it only applies to applications
4387 * Returns the current runtime permission policy set by the device or profile owner. The
4390 * @return the current policy for future permission requests.
4401 * Sets the grant state of a runtime permission for a specific application. The state
4403 * through the UI, {@link #PERMISSION_GRANT_STATE_DENIED denied}, in which the permission
4405 * #PERMISSION_GRANT_STATE_GRANTED granted} in which the permission is granted and the
4407 * group that the runtime permission belongs to. This method can only be called
4411 * revoke the permission. It retains the previous grant, if any.
4417 * @param packageName The application to grant or revoke a permission to.
4418 * @param permission The permission to grant or revoke.
4419 * @param grantState The permission grant state which is one of {@link
4422 * @return whether the permission was successfully granted or revoked.
4429 String permission, int grantState) {
4431 return mService.setPermissionGrantState(admin, packageName, permission, grantState);
4439 * Returns the current grant state of a runtime permission for a specific application.
4443 * @param permission The permission to check for.
4446 * This does not indicate whether or not the permission is currently granted for the package.
4450 * which indicates if the permission is currently denied or granted.
4456 String permission) {
4458 return mService.getPermissionGrantState(admin, packageName, permission);