Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl120 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument
122 void revokeRuntimePermission(String packageName, String permissionName, int userId); in revokeRuntimePermission() argument
126 int getPermissionFlags(String permissionName, String packageName, int userId); in getPermissionFlags() argument
128 void updatePermissionFlags(String permissionName, String packageName, int flagMask, in updatePermissionFlags() argument
142 boolean shouldShowRequestPermissionRationale(String permissionName, in shouldShowRequestPermissionRationale() argument
174 String[] getAppOpPermissionPackages(String permissionName); in getAppOpPermissionPackages() argument
DPackageManager.java3581 public abstract PermissionInfo getPermissionInfo(@NonNull String permissionName, in getPermissionInfo() argument
3632 public abstract PermissionGroupInfo getPermissionGroupInfo(@NonNull String permissionName, in getPermissionGroupInfo() argument
3872 public abstract int checkPermission(@NonNull String permissionName, in checkPermission() argument
3888 public abstract boolean isPermissionRevokedByPolicy(@NonNull String permissionName, in isPermissionRevokedByPolicy() argument
3958 public abstract void removePermission(@NonNull String permissionName); in removePermission() argument
4011 @NonNull String permissionName, @NonNull UserHandle user); in grantRuntimePermission() argument
4038 @NonNull String permissionName, @NonNull UserHandle user); in revokeRuntimePermission() argument
4058 public abstract int getPermissionFlags(@NonNull String permissionName, in getPermissionFlags() argument
4079 public abstract void updatePermissionFlags(@NonNull String permissionName, in updatePermissionFlags() argument
4252 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()
2013 final String permissionName = pkg.requestedPermissions.get(i); in getWhitelistedRestrictedPermissions() local
2014 final int currentFlags = permissionsState.getPermissionFlags(permissionName, userId); in getWhitelistedRestrictedPermissions()
2019 whitelistedPermissions.add(permissionName); in getWhitelistedRestrictedPermissions()
2329 final String permissionName = pkg.requestedPermissions.get(i); in setWhitelistedRestrictedPermissionsForUser() local
[all …]
/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/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/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.java11873 public boolean isRuntimePermission(String permissionName) throws NameNotFoundException { in isRuntimePermission() argument
11875 PermissionInfo permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in isRuntimePermission()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java6052 public boolean shouldShowRequestPermissionRationale(String permissionName,
6065 if (checkPermission(permissionName, packageName, userId)
6074 flags = getPermissionFlags(permissionName,