Home
last modified time | relevance | path

Searched refs:appOp (Results 1 – 8 of 8) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DPermissions.java270 String appOp = getPermissionAppOp(permission); in isPermissionAndAppOpGranted() local
271 if (appOp == null) { in isPermissionAndAppOpGranted()
274 Integer appOpMode = getAppOpMode(packageName, appOp, context); in isPermissionAndAppOpGranted()
320 String appOp = getPermissionAppOp(permission); in grantPermissionAndAppOp() local
321 if (appOp == null) { in grantPermissionAndAppOp()
339 permissionOrAppOpChanged = setAppOpMode(packageName, appOp, appOpMode, context); in grantPermissionAndAppOp()
494 String appOp = getPermissionAppOp(permission); in revokePermissionAndAppOp() local
495 if (appOp == null) { in revokePermissionAndAppOp()
501 int appOpMode = getDefaultAppOpMode(appOp); in revokePermissionAndAppOp()
502 boolean appOpModeChanged = setAppOpMode(packageName, appOp, appOpMode, context); in revokePermissionAndAppOp()
[all …]
DAppOp.java130 AppOp appOp = (AppOp) object; in equals() local
131 return mMode == appOp.mMode in equals()
132 && Objects.equals(mName, appOp.mName) in equals()
133 && Objects.equals(mMaxTargetSdkVersion, appOp.mMaxTargetSdkVersion); in equals()
DRole.java561 AppOp appOp = mAppOps.get(i); in grant() local
562 appOp.grant(packageName, context); in grant()
614 AppOp appOp = appOpsToRevoke.get(i); in revoke() local
615 appOp.revoke(packageName, context); in revoke()
DRoles.java714 AppOp appOp = new AppOp(name, maxTargetSdkVersion, mode); in parseAppOps() local
715 appOps.add(appOp); in parseAppOps()
962 AppOp appOp = appOps.get(i); in validateParseResult() local
964 String permission = AppOpsManager.opToPermission(appOp.getName()); in validateParseResult()
967 + appOp.getName()); in validateParseResult()
/packages/apps/Contacts/src/com/android/contacts/util/
DPermissionsUtil.java60 public static boolean hasAppOp(Context context, String appOp) { in hasAppOp() argument
63 final int mode = appOpsManager.checkOpNoThrow(appOp, Process.myUid(), in hasAppOp()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DPermission.java47 String appOp, boolean appOpAllowed, int flags) { in Permission() argument
52 mAppOp = appOp; in Permission()
DAppPermissionGroup.java273 final String appOp = PLATFORM_PACKAGE_NAME.equals(requestedPermissionInfo.packageName) in create() local
277 if (appOp == null) { in create()
280 int appOpsMode = appOpsManager.unsafeCheckOpRaw(appOp, in create()
289 granted, appOp, appOpAllowed, flags); in create()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java316 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
322 String receiverPermission, int appOp, Bundle options, in sendOrderedBroadcastAsUser() argument