Lines Matching refs:PermissionsState
105 import static com.android.server.pm.PermissionsState.PERMISSION_OPERATION_FAILURE;
106 import static com.android.server.pm.PermissionsState.PERMISSION_OPERATION_SUCCESS;
107 import static com.android.server.pm.PermissionsState.PERMISSION_OPERATION_SUCCESS_GIDS_CHANGED;
285 import com.android.server.pm.PermissionsState.PermissionState;
2219 PermissionsState permissionsState = ps.getPermissionsState();
2239 final int flags = permissionsState.getPermissionFlags(permission, userId);
3599 final PermissionsState permissionsState = ps.getPermissionsState();
3600 if (permissionsState.hasPermission(Manifest.permission.INSTALL_PACKAGES, 0)) {
3844 final PermissionsState permissionsState = ps.getPermissionsState();
3848 ? EMPTY_INT_ARRAY : permissionsState.computeGids(userId);
3851 ? Collections.<String>emptySet() : permissionsState.getPermissions(userId);
5288 final PermissionsState permissionsState = ps.getPermissionsState();
5289 if (permissionsState.hasPermission(permName, userId)) {
5300 if (Manifest.permission.ACCESS_COARSE_LOCATION.equals(permName) && permissionsState
5335 final PermissionsState permissionsState = settingBase.getPermissionsState();
5336 if (permissionsState.hasPermission(permName, userId)) {
5347 if (Manifest.permission.ACCESS_COARSE_LOCATION.equals(permName) && permissionsState
5683 final PermissionsState permissionsState = ps.getPermissionsState();
5685 final int flags = permissionsState.getPermissionFlags(name, userId);
5698 if (permissionsState
5699 PermissionsState.PERMISSION_OPERATION_FAILURE) {
5715 final int result = permissionsState.grantRuntimePermission(bp, userId);
5717 case PermissionsState.PERMISSION_OPERATION_FAILURE: {
5721 case PermissionsState.PERMISSION_OPERATION_SUCCESS_GIDS_CHANGED: {
5810 final PermissionsState permissionsState = ps.getPermissionsState();
5812 final int flags = permissionsState.getPermissionFlags(name, userId);
5825 if (permissionsState.revokeInstallPermission(bp) !=
5826 PermissionsState.PERMISSION_OPERATION_FAILURE) {
5832 if (permissionsState.revokeRuntimePermission(bp, userId) ==
5833 PermissionsState.PERMISSION_OPERATION_FAILURE) {
5968 PermissionsState permissionsState = ps.getPermissionsState();
5969 return permissionsState.getPermissionFlags(name, userId);
6012 PermissionsState permissionsState = ps.getPermissionsState();
6014 boolean hadState = permissionsState.getRuntimePermissionState(name, userId) != null;
6016 if (permissionsState.updatePermissionFlags(bp, userId, flagMask, flagValues)) {
6019 if (permissionsState.getInstallPermissionState(name) != null) {
6021 } else if (permissionsState.getRuntimePermissionState(name, userId) != null
6060 PermissionsState permissionsState = ps.getPermissionsState();
6061 changed |= permissionsState.updatePermissionFlagsForAllPermissions(
8567 final PermissionsState permissionsState = ps.getPermissionsState();
8570 if (permissionsState.hasPermission(permission, userId)) {
12936 PermissionsState permissionsState = ps.getPermissionsState();
12937 PermissionsState origPermissions = permissionsState;
12949 origPermissions = new PermissionsState(permissionsState);
12950 permissionsState.reset();
12965 permissionsState.setGlobalGids(mGlobalGids);
13097 if (permissionsState.grantInstallPermission(bp) !=
13098 PermissionsState.PERMISSION_OPERATION_FAILURE) {
13126 if (permissionsState.grantRuntimePermission(bp, userId) ==
13127 PermissionsState.PERMISSION_OPERATION_FAILURE) {
13161 if (permissionsState.grantRuntimePermission(bp, userId)
13162 != PermissionsState.PERMISSION_OPERATION_FAILURE) {
13169 permissionsState.updatePermissionFlags(bp, userId, flags, flags);
13180 != PermissionsState.PERMISSION_OPERATION_FAILURE) {
13191 if (permissionsState.grantRuntimePermission(bp, userId) !=
13192 PermissionsState.PERMISSION_OPERATION_FAILURE) {
13194 permissionsState.updatePermissionFlags(bp, userId,
13216 if (permissionsState.revokeInstallPermission(bp) !=
13217 PermissionsState.PERMISSION_OPERATION_FAILURE) {
13219 permissionsState.updatePermissionFlags(bp, UserHandle.USER_ALL,
13277 BasePermission bp, PermissionsState origPermissions) {
18219 PermissionsState permissionsState = su.getPermissionsState();
18221 List<PermissionState> installPermStates = permissionsState.getInstallPermissionStates();
18228 permissionsState.revokeInstallPermission(bp);
18229 permissionsState.updatePermissionFlags(bp, UserHandle.USER_ALL,
18239 List<PermissionState> runtimePermStates = permissionsState
18247 permissionsState.revokeRuntimePermission(bp, userId);
18248 permissionsState.updatePermissionFlags(bp, userId,
19887 @Nullable PermissionsState origPermissionState, boolean writeSettings)
20560 PermissionsState permissionsState = ps.getPermissionsState();
20562 final int oldFlags = permissionsState.getPermissionFlags(bp.name, userId);
20565 final boolean hasInstallState = permissionsState.getInstallPermissionState(
20574 if (permissionsState.updatePermissionFlags(bp, userId, userSettableMask, flags)) {
20594 if (permissionsState.grantRuntimePermission(bp, userId)
20602 final int revokeResult = permissionsState.revokeRuntimePermission(bp, userId);
21445 PermissionsState packagePerms = ps.getPermissionsState();
21537 PermissionsState perms = ps.getPermissionsState();
25342 PermissionsState permissionsState = packageSetting.getPermissionsState();
25343 return permissionsState.isPermissionReviewRequired(userId);