Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionRegistry.java61 public Permission getPermission(@NonNull String permissionName) { in getPermission() argument
62 return mPermissions.get(permissionName); in getPermission()
69 public void removePermission(@NonNull String permissionName) { in removePermission() argument
70 mPermissions.remove(permissionName); in removePermission()
120 public ArraySet<String> getAppOpPermissionPackages(@NonNull String permissionName) { in getAppOpPermissionPackages() argument
121 return mAppOpPermissionPackages.get(permissionName); in getAppOpPermissionPackages()
124 public void addAppOpPermissionPackage(@NonNull String permissionName, in addAppOpPermissionPackage() argument
126 ArraySet<String> packageNames = mAppOpPermissionPackages.get(permissionName); in addAppOpPermissionPackage()
129 mAppOpPermissionPackages.put(permissionName, packageNames); in addAppOpPermissionPackage()
134 public void removeAppOpPermissionPackage(@NonNull String permissionName, in removeAppOpPermissionPackage() argument
[all …]
DPermissionManagerService.java469 public PermissionInfo getPermissionInfo(String permissionName, String packageName, int flags) { in getPermissionInfo() argument
470 return mPermissionManagerServiceImpl.getPermissionInfo(permissionName, packageName, flags); in getPermissionInfo()
490 public void removePermission(String permissionName) { in removePermission() argument
491 mPermissionManagerServiceImpl.removePermission(permissionName); in removePermission()
495 public int getPermissionFlags(String packageName, String permissionName, int userId) { in getPermissionFlags() argument
497 .getPermissionFlags(packageName, permissionName, userId); in getPermissionFlags()
501 public void updatePermissionFlags(String packageName, String permissionName, int flagMask, in updatePermissionFlags() argument
503 mPermissionManagerServiceImpl.updatePermissionFlags(packageName, permissionName, flagMask, in updatePermissionFlags()
530 public boolean addAllowlistedRestrictedPermission(String packageName, String permissionName, in addAllowlistedRestrictedPermission() argument
533 permissionName, flags, userId); in addAllowlistedRestrictedPermission()
[all …]
DLegacyPermissionState.java116 public PermissionState getPermissionState(@NonNull String permissionName, in getPermissionState() argument
123 return userState.getPermissionState(permissionName); in getPermissionState()
155 for (final String permissionName : permissionNames) { in hasPermissionState()
156 if (userState.getPermissionState(permissionName) != null) { in hasPermissionState()
237 public PermissionState getPermissionState(@NonNull String permissionName) { in getPermissionState() argument
238 return mPermissionStates.get(permissionName); in getPermissionState()
DPermissionManagerServiceImpl.java339 @Nullable String permissionName) {
349 if (POST_NOTIFICATIONS.equals(permissionName)
500 private String[] getAppOpPermissionPackagesInternal(@NonNull String permissionName) { in getAppOpPermissionPackagesInternal() argument
503 permissionName); in getAppOpPermissionPackagesInternal()
942 @NonNull String permissionName, @UserIdInt int userId) { in checkPermissionInternal() argument
965 if (checkSinglePermissionInternalLocked(uidState, permissionName, isInstantApp)) { in checkPermissionInternal()
969 final String fullerPermissionName = FULLER_PERMISSION_MAP.get(permissionName); in checkPermissionInternal()
981 @NonNull String permissionName, boolean isInstantApp) { in checkSinglePermissionInternalLocked() argument
982 if (!uidState.isPermissionGranted(permissionName)) { in checkSinglePermissionInternalLocked()
987 final Permission permission = mRegistry.getPermission(permissionName); in checkSinglePermissionInternalLocked()
[all …]
DPermissionManagerServiceInternal.java51 int checkPermission(@NonNull String packageName, @NonNull String permissionName, in checkPermission() argument
63 int checkUidPermission(int uid, @NonNull String permissionName); in checkUidPermission() argument
141 int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId); in getPermissionGids() argument
151 String[] getAppOpPermissionPackages(@NonNull String permissionName); in getAppOpPermissionPackages() argument
DPermission.java495 @NonNull String permissionName, int callingUid) { in enforcePermissionTree() argument
496 if (permissionName != null) { in enforcePermissionTree()
498 permissionName); in enforcePermissionTree()
511 @NonNull String permissionName) { in findPermissionTree() argument
514 if (permissionName.startsWith(permissionTreeName) in findPermissionTree()
515 && permissionName.length() > permissionTreeName.length() in findPermissionTree()
516 && permissionName.charAt(permissionTreeName.length()) == '.') { in findPermissionTree()
DPermissionManagerServiceInterface.java465 int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId); in getPermissionGids() argument
474 String[] getAppOpPermissionPackages(@NonNull String permissionName); in getAppOpPermissionPackages() argument
DDefaultPermissionGrantPolicy.java287 public @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName) {
288 if (permissionName == null) {
293 return mContext.getPackageManager().getPermissionInfo(permissionName, 0);
295 Slog.w(TAG, "Permission not found: " + permissionName);
1642 abstract @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName); in getPermissionInfo() argument
1851 public @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName) { in getPermissionInfo() argument
1852 int index = mPermissionInfos.indexOfKey(permissionName); in getPermissionInfo()
1857 PermissionInfo pi = NO_PM_CACHE.getPermissionInfo(permissionName); in getPermissionInfo()
1858 mPermissionInfos.put(permissionName, pi); in getPermissionInfo()
/frameworks/base/core/java/android/permission/
DIPermissionManager.aidl37 PermissionInfo getPermissionInfo(String permissionName, String packageName, int flags); in getPermissionInfo() argument
43 void removePermission(String permissionName); in removePermission() argument
45 int getPermissionFlags(String packageName, String permissionName, int userId); in getPermissionFlags() argument
47 void updatePermissionFlags(String packageName, String permissionName, int flagMask, in updatePermissionFlags() argument
59 boolean addAllowlistedRestrictedPermission(String packageName, String permissionName, in addAllowlistedRestrictedPermission() argument
62 boolean removeAllowlistedRestrictedPermission(String packageName, String permissionName, in removeAllowlistedRestrictedPermission() argument
65 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument
67 void revokeRuntimePermission(String packageName, String permissionName, int userId, in revokeRuntimePermission() argument
72 boolean shouldShowRequestPermissionRationale(String packageName, String permissionName, in shouldShowRequestPermissionRationale() argument
75 boolean isPermissionRevokedByPolicy(String packageName, String permissionName, int userId); in isPermissionRevokedByPolicy() argument
DPermissionManager.java395 public PermissionInfo getPermissionInfo(@NonNull String permissionName, in getPermissionInfo() argument
399 return mPermissionManager.getPermissionInfo(permissionName, packageName, flags); in getPermissionInfo()
483 public void removePermission(@NonNull String permissionName) { in removePermission() argument
485 mPermissionManager.removePermission(permissionName); in removePermission()
551 @NonNull String permissionName) { in isPermissionRevokedByPolicy() argument
553 return mPermissionManager.isPermissionRevokedByPolicy(packageName, permissionName, in isPermissionRevokedByPolicy()
562 @NonNull String packageName, @NonNull String permissionName, int userId) { in shouldTraceGrant() argument
589 @NonNull String permissionName, @NonNull UserHandle user) { in grantRuntimePermission() argument
591 && shouldTraceGrant(packageName, permissionName, user.getIdentifier())) { in grantRuntimePermission()
594 + permissionName + " for user " + user.getIdentifier(), new RuntimeException()); in grantRuntimePermission()
[all …]
DPermissionControllerService.java193 @NonNull String permissionName, @NonNull Runnable callback); in onRevokeRuntimePermission() argument
324 public void onGetGroupOfPlatformPermission(@NonNull String permissionName, in onGetGroupOfPlatformPermission() argument
523 public void revokeRuntimePermission(String packageName, String permissionName) { in onBind() argument
525 checkNotNull(permissionName, "permissionName"); in onBind()
532 permissionName, latch::countDown); in onBind()
650 @NonNull String permissionName, in onBind()
653 Objects.requireNonNull(permissionName); in onBind()
656 permissionName, callback::complete); in onBind()
DIPermissionController.aidl39 void revokeRuntimePermission(String packageName, String permissionName); in revokeRuntimePermission() argument
55 in String permissionName, in getGroupOfPlatformPermission() argument
DPermissionControllerManager.java593 @NonNull String permissionName) { in revokeRuntimePermission() argument
595 checkNotNull(permissionName); in revokeRuntimePermission()
597 mRemoteService.run(service -> service.revokeRuntimePermission(packageName, permissionName)); in revokeRuntimePermission()
815 public void getGroupOfPlatformPermission(@NonNull String permissionName, in getGroupOfPlatformPermission() argument
819 service.getGroupOfPlatformPermission(permissionName, future); in getGroupOfPlatformPermission()
825 Log.e(TAG, "Failed to get group of " + permissionName, err); in getGroupOfPlatformPermission()
/frameworks/base/core/java/android/os/
DSystemConfigManager.java126 public int[] getSystemPermissionUids(@NonNull String permissionName) { in getSystemPermissionUids() argument
128 return mInterface.getSystemPermissionUids(permissionName); in getSystemPermissionUids()
DISystemConfig.aidl44 int[] getSystemPermissionUids(String permissionName); in getSystemPermissionUids() argument
/frameworks/base/services/java/com/android/server/
DSystemConfigService.java75 public int[] getSystemPermissionUids(String permissionName) {
83 if (permissions != null && permissions.contains(permissionName)) {
/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/policy/
DPermissionPolicyService.java897 @NonNull String permissionName) { in addAppOps() argument
898 PermissionInfo permissionInfo = mRuntimeAndTheirBgPermissionInfos.get(permissionName); in addAppOps()
912 String permissionName = permissionInfo.name; in addPermissionAppOp() local
915 int permissionFlags = mPackageManager.getPermissionFlags(permissionName, in addPermissionAppOp()
924 int appOpCode = getSwitchOp(permissionName); in addPermissionAppOp()
963 String permissionName = permissionInfo.name; in shouldGrantAppOp() local
965 boolean isGranted = mPackageManager.checkPermission(permissionName, packageName) in shouldGrantAppOp()
971 int permissionFlags = mPackageManager.getPermissionFlags(permissionName, packageName, in shouldGrantAppOp()
988 permissionName); in shouldGrantAppOp()
1001 String permissionName = permissionInfo.name; in addExtraAppOp() 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/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java173 final String permissionName = Manifest.permission.INTERACT_ACROSS_PROFILES; in mockCrossProfileAppRequestsInteractAcrossProfiles() local
174 when(mIPackageManager.getAppOpPermissionPackages(permissionName)) in mockCrossProfileAppRequestsInteractAcrossProfiles()
490 final String permissionName = Manifest.permission.INTERACT_ACROSS_PROFILES; in mockCrossProfileAppDoesNotRequestInteractAcrossProfiles() local
491 when(mIPackageManager.getAppOpPermissionPackages(permissionName)) in mockCrossProfileAppDoesNotRequestInteractAcrossProfiles()
/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/services/usage/java/com/android/server/usage/
DBroadcastResponseStatsTracker.java311 final String permissionName = exemptedPermissions.get(i); in doesPackageHoldExemptedPermission() local
312 if (PermissionManager.checkPackageNamePermission(permissionName, packageName, in doesPackageHoldExemptedPermission()
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl753 String[] getAppOpPermissionPackages(String permissionName); in getAppOpPermissionPackages() argument
771 void grantRuntimePermission(String packageName, String permissionName, int userId); in grantRuntimePermission() argument
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerInternalBase.java539 public final int[] getPermissionGids(String permissionName, int userId) { in getPermissionGids() argument
540 return getPermissionManager().getPermissionGids(permissionName, userId); in getPermissionGids()

12