Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
DAppOpPermissions.java58 String appOp = AppOpsManager.permissionToOp(appOpPermission); in grant() local
60 Integer currentMode = Permissions.getAppOpMode(packageName, appOp, context); in grant()
61 if (currentMode != null && currentMode != Permissions.getDefaultAppOpMode(appOp)) { in grant()
65 boolean changed = setAppOpMode(packageName, appOp, AppOpsManager.MODE_ALLOWED, context); in grant()
86 String appOp = AppOpsManager.permissionToOp(appOpPermission); in revoke() local
87 int defaultMode = Permissions.getDefaultAppOpMode(appOp); in revoke()
88 boolean changed = setAppOpMode(packageName, appOp, defaultMode, context); in revoke()
93 private static boolean setAppOpMode(@NonNull String packageName, @NonNull String appOp, in setAppOpMode() argument
95 switch (appOp) { in setAppOpMode()
106 return Permissions.setAppOpPackageMode(packageName, appOp, mode, context); in setAppOpMode()
[all …]
DPermissions.java291 String appOp = getPermissionAppOp(permission); in isPermissionAndAppOpGranted() local
292 if (appOp == null) { in isPermissionAndAppOpGranted()
295 Integer appOpMode = getAppOpMode(packageName, appOp, context); in isPermissionAndAppOpGranted()
341 String appOp = getPermissionAppOp(permission); in grantPermissionAndAppOp() local
342 if (appOp != null) { in grantPermissionAndAppOp()
358 permissionOrAppOpChanged |= setAppOpUidMode(packageName, appOp, appOpMode, context); in grantPermissionAndAppOp()
514 String appOp = getPermissionAppOp(permission); in revokePermissionAndAppOp() local
515 if (appOp != null) { in revokePermissionAndAppOp()
518 int appOpMode = getDefaultAppOpMode(appOp); in revokePermissionAndAppOp()
519 boolean appOpModeChanged = setAppOpUidMode(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()
DRoleParser.java819 AppOp appOp = new AppOp(name, maxTargetSdkVersion, mode); in parseAppOps() local
820 appOps.add(appOp); in parseAppOps()
1062 AppOp appOp = appOps.get(i); in validateResult() local
1064 validateAppOp(appOp); in validateResult()
1143 private void validateAppOp(@NonNull AppOp appOp) { in validateAppOp() argument
1145 String permission = AppOpsManager.opToPermission(appOp.getName()); in validateAppOp()
1156 + appOp.getName()); in validateAppOp()
DRole.java887 AppOp appOp = mAppOps.get(i); in grant() local
888 appOp.grant(packageName, context); in grant()
953 AppOp appOp = appOpsToRevoke.get(i); in revoke() local
954 appOp.revoke(packageName, context); in revoke()
/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/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DPermission.java48 String appOp, boolean appOpAllowed, int flags) { in Permission() argument
53 mAppOp = appOp; in Permission()
DAppPermissionGroup.java332 final String appOp = PLATFORM_PACKAGE_NAME.equals(requestedPermissionInfo.packageName) in create() local
336 if (appOp == null) { in create()
339 int appOpsMode = appOpsManager.unsafeCheckOpRaw(appOp, in create()
348 granted, appOp, appOpAllowed, flags); in create()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java391 String receiverPermission, int appOp, BroadcastReceiver resultReceiver, in sendOrderedBroadcastAsUser() argument
397 String receiverPermission, int appOp, Bundle options, in sendOrderedBroadcastAsUser() argument