/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionSettings.java | 87 public @Nullable BasePermission getPermission(@NonNull String permName) { in getPermission() argument 89 return getPermissionLocked(permName); in getPermission() 93 public void addAppOpPackage(String permName, String packageName) { in addAppOpPackage() argument 94 ArraySet<String> pkgs = mAppOpPermissionPackages.get(permName); in addAppOpPackage() 97 mAppOpPermissionPackages.put(permName, pkgs); in addAppOpPackage() 117 public boolean canPropagatePermissionToInstantApp(String permName) { in canPropagatePermissionToInstantApp() argument 119 final BasePermission bp = mPermissions.get(permName); in canPropagatePermissionToInstantApp() 201 @Nullable BasePermission getPermissionLocked(@NonNull String permName) { in getPermissionLocked() argument 202 return mPermissions.get(permName); in getPermissionLocked() 206 @Nullable BasePermission getPermissionTreeLocked(@NonNull String permName) { in getPermissionTreeLocked() argument [all …]
|
D | PermissionManagerServiceInternal.java | 73 @NonNull String permName, @NonNull String packageName, boolean overridePolicy, in grantRuntimePermission() 90 public abstract void revokeRuntimePermission(@NonNull String permName, in revokeRuntimePermission() argument 127 public abstract void removeDynamicPermission(@NonNull String permName, int callingUid, in removeDynamicPermission() argument 130 public abstract @Nullable String[] getAppOpPermissionPackages(@NonNull String permName); in getAppOpPermissionPackages() argument 132 public abstract int getPermissionFlags(@NonNull String permName, in getPermissionFlags() argument 147 public abstract @Nullable PermissionInfo getPermissionInfo(@NonNull String permName, in getPermissionInfo() argument 159 public abstract void updatePermissionFlags(@NonNull String permName, in updatePermissionFlags() argument 170 public abstract int checkPermission(@NonNull String permName, @NonNull String packageName, in checkPermission() argument 172 public abstract int checkUidPermission(@NonNull String permName, in checkUidPermission() argument 197 public abstract @Nullable BasePermission getPermissionTEMP(@NonNull String permName); in getPermissionTEMP() argument
|
D | PermissionManagerService.java | 289 @Nullable BasePermission getPermission(String permName) { in getPermission() argument 291 return mSettings.getPermissionLocked(permName); in getPermission() 295 private int checkPermission(String permName, String pkgName, int callingUid, int userId) { in checkPermission() argument 308 if (permissionsState.hasPermission(permName, userId)) { in checkPermission() 311 BasePermission bp = mSettings.getPermissionLocked(permName); in checkPermission() 320 if (isImpliedPermissionGranted(permissionsState, permName, userId)) { in checkPermission() 328 private int checkUidPermission(String permName, PackageParser.Package pkg, int uid, in checkUidPermission() argument 350 if (permissionsState.hasPermission(permName, userId)) { in checkUidPermission() 352 if (mSettings.isPermissionInstant(permName)) { in checkUidPermission() 359 if (isImpliedPermissionGranted(permissionsState, permName, userId)) { in checkUidPermission() [all …]
|
D | PermissionsState.java | 633 final String permName = permission.getName(); in revokePermission() local 634 if (!hasPermission(permName, userId)) { in revokePermission() 643 permissionData = mPermissions.get(permName); in revokePermission() 651 ensureNoPermissionData(permName); in revokePermission() 681 final String permName = permission.getName(); in ensurePermissionData() local 687 PermissionData permissionData = mPermissions.get(permName); in ensurePermissionData() 690 mPermissions.put(permName, permissionData); in ensurePermissionData()
|
D | BasePermission.java | 405 Collection<BasePermission> permissionTrees, String permName, int callingUid) { in enforcePermissionTree() argument 406 if (permName != null) { in enforcePermissionTree() 407 BasePermission bp = findPermissionTree(permissionTrees, permName); in enforcePermissionTree() 417 throw new SecurityException("No permission tree found for " + permName); in enforcePermissionTree() 435 Collection<BasePermission> permissionTrees, String permName) { in findPermissionTree() argument 437 if (permName.startsWith(bp.name) && in findPermissionTree() 438 permName.length() > bp.name.length() && in findPermissionTree() 439 permName.charAt(bp.name.length()) == '.') { in findPermissionTree()
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 1054 String permName = parser.getAttributeValue(null, "name"); in readPrivAppPermissions() local 1055 if (TextUtils.isEmpty(permName)) { in readPrivAppPermissions() 1060 permissions.add(permName); in readPrivAppPermissions() 1062 String permName = parser.getAttributeValue(null, "name"); in readPrivAppPermissions() local 1063 if (TextUtils.isEmpty(permName)) { in readPrivAppPermissions() 1071 denyPermissions.add(permName); in readPrivAppPermissions() 1096 final String permName = parser.getAttributeValue(null, "name"); in readOemPermissions() local 1097 if (TextUtils.isEmpty(permName)) { in readOemPermissions() 1102 permissions.put(permName, Boolean.TRUE); in readOemPermissions() 1104 String permName = parser.getAttributeValue(null, "name"); in readOemPermissions() local [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManagerInternal.java | 100 int checkPermission(String permName, String pkgName, int userId, in checkPermission() argument 111 int checkUidPermission(String permName, int uid, in checkUidPermission() argument 750 public abstract @Nullable int getPermissionFlagsTEMP(@NonNull String permName, in getPermissionFlagsTEMP() argument 753 public abstract void updatePermissionFlagsTEMP(@NonNull String permName, in updatePermissionFlagsTEMP() argument
|
D | IPackageManager.aidl | 109 int checkPermission(String permName, String pkgName, int userId); in checkPermission() argument 111 int checkUidPermission(String permName, int uid); in checkUidPermission() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 435 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 436 assertNotNull(permName); in checkPermission() 440 return mRealPackageManager.checkPermission(permName, pkgName); in checkPermission()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | FrameworkFacade.java | 175 public int checkUidPermission(String permName, int uid) throws RemoteException { in checkUidPermission() argument 176 return AppGlobals.getPackageManager().checkUidPermission(permName, uid); in checkUidPermission()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverDataProvider.java | 100 public int checkPermission(String permName, String pkgName) { in createPackageManagerMockedInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/ |
D | PackageManagerStub.java | 209 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 214 public boolean isPermissionRevokedByPolicy(String permName, String pkgName) { in isPermissionRevokedByPolicy() argument
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 227 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 232 public boolean isPermissionRevokedByPolicy(String permName, String pkgName) { in isPermissionRevokedByPolicy() argument
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockPackageManager.java | 236 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 246 public boolean isPermissionRevokedByPolicy(String permName, String pkgName) { in isPermissionRevokedByPolicy() argument
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 2168 String permName = "com.android.frameworks.coretests.keysets_permdef.keyset_perm"; in testUpgradeSigPermGained() local 2170 pm.checkPermission(permName, pkgName) in testUpgradeSigPermGained() 2177 pm.checkPermission(permName, pkgName) in testUpgradeSigPermGained() 2198 String permName = "com.android.frameworks.coretests.keysets_permdef.keyset_perm"; in testUpgradeSigPermLost() local 2200 pm.checkPermission(permName, pkgName) in testUpgradeSigPermLost() 2209 pm.checkPermission(permName, pkgName) in testUpgradeSigPermLost()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 5609 public int checkPermission(String permName, String pkgName, int userId) { in checkPermission() argument 5613 return checkPermissionImpl(permName, pkgName, userId); in checkPermission() 5617 return checkPermissionDelegate.checkPermission(permName, pkgName, userId, in checkPermission() 5621 private int checkPermissionImpl(String permName, String pkgName, int userId) { in checkPermissionImpl() argument 5622 return mPermissionManager.checkPermission(permName, pkgName, getCallingUid(), userId); in checkPermissionImpl() 5626 public int checkUidPermission(String permName, int uid) { in checkUidPermission() argument 5630 return checkUidPermissionImpl(permName, uid); in checkUidPermission() 5634 return checkPermissionDelegate.checkUidPermission(permName, uid, in checkUidPermission() 5638 private int checkUidPermissionImpl(String permName, int uid) { in checkUidPermissionImpl() argument 5646 return mPermissionManager.checkUidPermission(permName, pkg, uid, getCallingUid()); in checkUidPermissionImpl() [all …]
|
D | Settings.java | 422 public boolean canPropagatePermissionToInstantApp(String permName) { in canPropagatePermissionToInstantApp() argument 423 return mPermissions.canPropagatePermissionToInstantApp(permName); in canPropagatePermissionToInstantApp() 542 void addAppOpPackage(String permName, String packageName) { in addAppOpPackage() argument 543 mPermissions.addAppOpPackage(permName, packageName); in addAppOpPackage()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 619 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 621 return mPM.checkPermission(permName, pkgName, getUserId()); in checkPermission() 628 public boolean isPermissionRevokedByPolicy(String permName, String pkgName) { in isPermissionRevokedByPolicy() argument 630 return mPM.isPermissionRevokedByPolicy(permName, pkgName, getUserId()); in isPermissionRevokedByPolicy()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 1997 String permName = pkg.requestedPermissions[permNum]; in pullDangerousPermissionState() local 2002 permissionInfo = pm.getPermissionInfo(permName, 0); in pullDangerousPermissionState() 2004 pm.getPermissionFlags(permName, pkg.packageName, user); in pullDangerousPermissionState() 2017 e.writeString(permName); in pullDangerousPermissionState()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 18957 public int checkPermission(String permName, String pkgName, int userId, in checkPermission() argument 18959 if (mTargetPackageName.equals(pkgName) && isTargetPermission(permName)) { in checkPermission() 18962 return superImpl.apply(permName, "com.android.shell", userId); in checkPermission() 18967 return superImpl.apply(permName, pkgName, userId); in checkPermission() 18971 public int checkUidPermission(String permName, int uid, in checkUidPermission() argument 18973 if (uid == mTargetUid && isTargetPermission(permName)) { in checkUidPermission() 18976 return superImpl.apply(permName, Process.SHELL_UID); in checkUidPermission() 18981 return superImpl.apply(permName, uid); in checkUidPermission()
|