Home
last modified time | relevance | path

Searched refs:permissionName (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageBuilder.java109 PackageBuilder addPermissionRequest(String permissionName) { in addPermissionRequest() argument
110 mPkg.requestedPermissions.add(permissionName); in addPermissionRequest()
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl121 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument
123 void revokeRuntimePermission(String packageName, String permissionName, int userId); in revokeRuntimePermission() argument
127 int getPermissionFlags(String permissionName, String packageName, int userId); in getPermissionFlags() argument
129 void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
143 boolean shouldShowRequestPermissionRationale(String permissionName, in shouldShowRequestPermissionRationale() argument
175 String[] getAppOpPermissionPackages(String permissionName); in getAppOpPermissionPackages() argument
DPackageManager.java3638 public abstract PermissionInfo getPermissionInfo(@NonNull String permissionName, in getPermissionInfo() argument
3689 public abstract PermissionGroupInfo getPermissionGroupInfo(@NonNull String permissionName, in getPermissionGroupInfo() argument
3929 public abstract int checkPermission(@NonNull String permissionName, in checkPermission() argument
3945 public abstract boolean isPermissionRevokedByPolicy(@NonNull String permissionName, in isPermissionRevokedByPolicy() argument
4016 public abstract void removePermission(@NonNull String permissionName); in removePermission() argument
4069 @NonNull String permissionName, @NonNull UserHandle user); in grantRuntimePermission() argument
4096 @NonNull String permissionName, @NonNull UserHandle user); in revokeRuntimePermission() argument
4116 public abstract int getPermissionFlags(@NonNull String permissionName, in getPermissionFlags() argument
4137 public abstract void updatePermissionFlags(@NonNull String permissionName, in updatePermissionFlags() argument
4310 public abstract boolean shouldShowRequestPermissionRationale(@NonNull String permissionName); in shouldShowRequestPermissionRationale() argument
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java152 @NonNull String permissionName, @NonNull Runnable callback); in onRevokeRuntimePermission() argument
334 public void revokeRuntimePermission(String packageName, String permissionName) { in onBind() argument
336 checkNotNull(permissionName, "permissionName"); in onBind()
342 permissionName, latch::countDown); in onBind()
DIPermissionController.aidl37 void revokeRuntimePermission(String packageName, String permissionName); in revokeRuntimePermission() argument
DPermissionControllerManager.java410 @NonNull String permissionName) { in revokeRuntimePermission() argument
412 checkNotNull(permissionName); in revokeRuntimePermission()
415 permissionName)); in revokeRuntimePermission()
1060 @NonNull String permissionName) { in PendingRevokeAppPermissionRequest() argument
1062 mPermissionName = permissionName; in PendingRevokeAppPermissionRequest()
/frameworks/base/services/core/java/com/android/server/vr/
DEnabledComponentsObserver.java252 String serviceName, String permissionName) { in loadComponentNames() argument
268 if (!permissionName.equals(info.permission)) { in loadComponentNames()
271 + permissionName); in loadComponentNames()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java628 final String permissionName = newPermission.info.name; in revokeRuntimePermissionsIfGroupChanged() local
632 permissionName); in revokeRuntimePermissionsIfGroupChanged()
645 if (checkPermission(permissionName, packageName, UserHandle.USER_SYSTEM, in revokeRuntimePermissionsIfGroupChanged()
649 "Revoking permission " + permissionName + in revokeRuntimePermissionsIfGroupChanged()
655 revokeRuntimePermission(permissionName, packageName, false, in revokeRuntimePermissionsIfGroupChanged()
658 Slog.e(TAG, "Could not revoke " + permissionName + " from " in revokeRuntimePermissionsIfGroupChanged()
2030 final String permissionName = pkg.requestedPermissions.get(i); in getWhitelistedRestrictedPermissions() local
2031 final int currentFlags = permissionsState.getPermissionFlags(permissionName, userId); in getWhitelistedRestrictedPermissions()
2036 whitelistedPermissions.add(permissionName); in getWhitelistedRestrictedPermissions()
2340 final String permissionName = pkg.requestedPermissions.get(i); in setWhitelistedRestrictedPermissions() local
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java256 public void grantRuntimePermission(String packageName, String permissionName, UserHandle user) { in grantRuntimePermission() argument
260 public void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
265 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { in getPermissionFlags() argument
270 public void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java239 public void grantRuntimePermission(String packageName, String permissionName, in grantRuntimePermission() argument
245 public void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
251 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { in getPermissionFlags() argument
256 public void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java273 public void grantRuntimePermission(String packageName, String permissionName, in grantRuntimePermission() argument
280 public void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
287 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { in getPermissionFlags() argument
293 public void updatePermissionFlags(String permissionName, String packageName, in updatePermissionFlags() argument
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java681 public void grantRuntimePermission(String packageName, String permissionName, in grantRuntimePermission() argument
684 mPM.grantRuntimePermission(packageName, permissionName, user.getIdentifier()); in grantRuntimePermission()
691 public void revokeRuntimePermission(String packageName, String permissionName, in revokeRuntimePermission() argument
694 mPM.revokeRuntimePermission(packageName, permissionName, user.getIdentifier()); in revokeRuntimePermission()
701 public int getPermissionFlags(String permissionName, String packageName, UserHandle user) { in getPermissionFlags() argument
703 return mPM.getPermissionFlags(permissionName, packageName, user.getIdentifier()); in getPermissionFlags()
710 public void updatePermissionFlags(String permissionName, String packageName, in updatePermissionFlags() argument
713 mPM.updatePermissionFlags(permissionName, packageName, flagMask, in updatePermissionFlags()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11882 public boolean isRuntimePermission(String permissionName) throws NameNotFoundException { in isRuntimePermission() argument
11884 PermissionInfo permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in isRuntimePermission()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java5985 public boolean shouldShowRequestPermissionRationale(String permissionName,
5998 if (checkPermission(permissionName, packageName, userId)
6007 flags = getPermissionFlags(permissionName,