/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerServiceLoggingDecorator.java | 97 public PermissionInfo getPermissionInfo(@NonNull String permName, int flags, in getPermissionInfo() argument 99 Log.i(LOG_TAG, "getPermissionInfo(permName = " + permName + ", flags = " + flags in getPermissionInfo() 101 return mService.getPermissionInfo(permName, flags, opPackageName); in getPermissionInfo() 118 public void removePermission(String permName) { in removePermission() argument 119 Log.i(LOG_TAG, "removePermission(permName = " + permName + ")"); in removePermission() 120 mService.removePermission(permName); in removePermission() 124 public int getPermissionFlags(String packageName, String permName, String deviceId, in getPermissionFlags() argument 127 + permName + ", deviceId = " + deviceId + ", userId = " + userId + ")"); in getPermissionFlags() 128 return mService.getPermissionFlags(packageName, permName, deviceId, userId); in getPermissionFlags() 132 public void updatePermissionFlags(String packageName, String permName, int flagMask, in updatePermissionFlags() argument [all …]
|
D | PermissionManagerServiceTestingShim.java | 114 public PermissionInfo getPermissionInfo(@NonNull String permName, int flags, in getPermissionInfo() argument 116 PermissionInfo oldVal = mOldImplementation.getPermissionInfo(permName, flags, in getPermissionInfo() 118 PermissionInfo newVal = mNewImplementation.getPermissionInfo(permName, flags, in getPermissionInfo() 151 public void removePermission(String permName) { in removePermission() argument 152 mOldImplementation.removePermission(permName); in removePermission() 153 mNewImplementation.removePermission(permName); in removePermission() 157 public int getPermissionFlags(String packageName, String permName, String deviceId, in getPermissionFlags() argument 159 int oldVal = mOldImplementation.getPermissionFlags(packageName, permName, deviceId, userId); in getPermissionFlags() 160 int newVal = mNewImplementation.getPermissionFlags(packageName, permName, deviceId, userId); in getPermissionFlags() 169 public void updatePermissionFlags(String packageName, String permName, int flagMask, in updatePermissionFlags() argument [all …]
|
D | PermissionManagerServiceTracingDecorator.java | 120 public PermissionInfo getPermissionInfo(@NonNull String permName, int flags, in getPermissionInfo() argument 124 return mService.getPermissionInfo(permName, flags, opPackageName); in getPermissionInfo() 152 public void removePermission(String permName) { in removePermission() argument 155 mService.removePermission(permName); in removePermission() 162 public int getPermissionFlags(String packageName, String permName, String deviceId, in getPermissionFlags() argument 166 return mService.getPermissionFlags(packageName, permName, deviceId, userId); in getPermissionFlags() 173 public void updatePermissionFlags(String packageName, String permName, int flagMask, in updatePermissionFlags() argument 178 mService.updatePermissionFlags(packageName, permName, flagMask, flagValues, in updatePermissionFlags() 221 @NonNull String permName, int flags, int userId) { in addAllowlistedRestrictedPermission() argument 225 return mService.addAllowlistedRestrictedPermission(packageName, permName, flags, in addAllowlistedRestrictedPermission() [all …]
|
D | PermissionManagerServiceInterface.java | 80 PermissionInfo getPermissionInfo(@NonNull String permName, in getPermissionInfo() argument 137 void removePermission(String permName); in removePermission() argument 148 int getPermissionFlags(String packageName, String permName, String deviceId, in getPermissionFlags() argument 162 void updatePermissionFlags(String packageName, String permName, int flagMask, int flagValues, in updatePermissionFlags() argument 190 @NonNull String permName, @PackageManager.PermissionWhitelistFlags int flags, in addAllowlistedRestrictedPermission() argument 283 @NonNull String permName, @PackageManager.PermissionWhitelistFlags int flags, in removeAllowlistedRestrictedPermission() argument 303 void grantRuntimePermission(String packageName, String permName, String deviceId, in grantRuntimePermission() argument 325 void revokeRuntimePermission(String packageName, String permName, String deviceId, in revokeRuntimePermission() argument 349 boolean shouldShowRequestPermissionRationale(String packageName, String permName, in shouldShowRequestPermissionRationale() argument 364 boolean isPermissionRevokedByPolicy(String packageName, String permName, in isPermissionRevokedByPolicy() argument [all …]
|
D | PermissionManagerServiceImpl.java | 568 public PermissionInfo getPermissionInfo(@NonNull String permName, in getPermissionInfo() argument 580 final Permission bp = mRegistry.getPermission(permName); in getPermissionInfo() 590 EventLog.writeEvent(0x534e4554, "183122164", callingUid, permName); in getPermissionInfo() 678 public void removePermission(String permName) { in removePermission() argument 684 mRegistry.enforcePermissionTree(permName, callingUid); in removePermission() 685 final Permission bp = mRegistry.getPermission(permName); in removePermission() 692 + permName); in removePermission() 695 mRegistry.removePermission(permName); in removePermission() 701 public int getPermissionFlags(String packageName, String permName, String deviceId, in getPermissionFlags() argument 704 return getPermissionFlagsInternal(packageName, permName, callingUid, userId); in getPermissionFlags() [all …]
|
D | PermissionManagerServiceInternal.java | 165 Permission getPermissionTEMP(@NonNull String permName); in getPermissionTEMP() argument
|
D | PermissionManagerService.java | 830 public Permission getPermissionTEMP(String permName) { in getPermissionTEMP() argument 831 return mPermissionManagerServiceImpl.getPermissionTEMP(permName); in getPermissionTEMP()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/app/ |
D | MockPackageManager.java | 145 public PermissionInfo getPermissionInfo(@NonNull String permName, int flags) in getPermissionInfo() argument 242 public int checkPermission(@NonNull String permName, @NonNull String packageName) { in checkPermission() argument 247 public boolean isPermissionRevokedByPolicy(@NonNull String permName, in isPermissionRevokedByPolicy() argument 263 public void removePermission(@NonNull String permName) { in removePermission() argument 268 public void grantRuntimePermission(@NonNull String packageName, @NonNull String permName, in grantRuntimePermission() argument 274 public void revokeRuntimePermission(@NonNull String packageName, @NonNull String permName, in revokeRuntimePermission() argument 280 public int getPermissionFlags(@NonNull String permName, @NonNull String packageName, in getPermissionFlags() argument 286 public void updatePermissionFlags(@NonNull String permName, @NonNull String packageName, in updatePermissionFlags() argument 292 public boolean shouldShowRequestPermissionRationale(@NonNull String permName) { in shouldShowRequestPermissionRationale() argument
|
/frameworks/base/core/java/android/permission/ |
D | PermissionManager.java | 1862 final String permName; field in PermissionManager.PackageNamePermissionQuery 1868 PackageNamePermissionQuery(@Nullable String permName, @Nullable String pkgName, in PackageNamePermissionQuery() argument 1870 this.permName = permName; in PackageNamePermissionQuery() 1881 pkgName, permName, persistentDeviceId, userId); in toString() 1886 return Objects.hash(permName, pkgName, persistentDeviceId, userId); in hashCode() 1900 return Objects.equals(permName, other.permName) in equals() 1909 String permName, String pkgName, String persistentDeviceId, @UserIdInt int userId) { in checkPackageNamePermissionUncached() argument 1912 pkgName, permName, persistentDeviceId, userId); in checkPackageNamePermissionUncached() 1926 query.permName, query.pkgName, query.persistentDeviceId, query.userId); 1939 public int checkPackageNamePermission(String permName, String pkgName, in checkPackageNamePermission() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | IPackageManagerBase.java | 225 public final int checkPermission(String permName, String pkgName, int userId) { in checkPermission() argument 226 return mService.checkPermission(permName, pkgName, userId); in checkPermission() 237 public final int checkUidPermission(String permName, int uid) { in checkUidPermission() argument 238 return snapshot().checkUidPermission(permName, uid); in checkUidPermission() 865 public final void grantRuntimePermission(String packageName, String permName, in grantRuntimePermission() argument 870 .grantRuntimePermission(packageName, permName, UserHandle.of(userId)); in grantRuntimePermission() 1110 public final void removePermission(String permName) { in removePermission() argument 1113 mContext.getSystemService(PermissionManager.class).removePermission(permName); in removePermission()
|
D | Computer.java | 288 int checkUidPermission(String permName, int uid); in checkUidPermission() argument
|
D | ComputerEngine.java | 2697 public final int checkUidPermission(String permName, int uid) { in checkUidPermission() argument 2698 return mPermissionManager.checkUidPermission(uid, permName, Context.DEVICE_ID_DEFAULT); in checkUidPermission()
|
D | PackageManagerService.java | 2950 public int checkPermission(String permName, String pkgName, int userId) { 2951 return mPermissionManager.checkPermission(pkgName, permName,
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 445 public PermissionInfo getPermissionInfo(String permName, int flags) in getPermissionInfo() argument 447 final PermissionInfo permissionInfo = getPermissionManager().getPermissionInfo(permName, in getPermissionInfo() 450 throw new NameNotFoundException(permName); in getPermissionInfo() 845 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 846 return getPermissionManager().checkPackageNamePermission(permName, pkgName, in checkPermission() 851 public boolean isPermissionRevokedByPolicy(String permName, String pkgName) { in isPermissionRevokedByPolicy() argument 852 return getPermissionManager().isPermissionRevokedByPolicy(pkgName, permName); in isPermissionRevokedByPolicy() 904 public void revokeRuntimePermission(String packageName, String permName, UserHandle user) { in revokeRuntimePermission() argument 905 revokeRuntimePermission(packageName, permName, user, null); in revokeRuntimePermission() 909 public void revokeRuntimePermission(String packageName, String permName, UserHandle user, in revokeRuntimePermission() argument [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverDataProvider.java | 111 public int checkPermission(String permName, String pkgName) { in createPackageManagerMockedInfo()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 6013 public abstract PermissionInfo getPermissionInfo(@NonNull String permName, in getPermissionInfo() argument 6518 public abstract int checkPermission(@NonNull String permName, in checkPermission() argument 6535 public abstract boolean isPermissionRevokedByPolicy(@NonNull String permName, in isPermissionRevokedByPolicy() argument 6626 public abstract void removePermission(@NonNull String permName); in removePermission() argument 6682 @NonNull String permName, @NonNull UserHandle user); in grantRuntimePermission() argument 6710 @NonNull String permName, @NonNull UserHandle user); in revokeRuntimePermission() argument 6738 @NonNull String permName, @NonNull UserHandle user, @NonNull String reason) { in revokeRuntimePermission() argument 6739 revokeRuntimePermission(packageName, permName, user); in revokeRuntimePermission() 6761 public abstract int getPermissionFlags(@NonNull String permName, in getPermissionFlags() argument 6783 public abstract void updatePermissionFlags(@NonNull String permName, in updatePermissionFlags() argument [all …]
|
D | IPackageManager.aidl | 789 int checkPermission(String permName, String pkgName, int userId); in checkPermission() argument 799 int checkUidPermission(String permName, int uid); in checkUidPermission() argument
|
/frameworks/base/services/tests/mockingservicestests/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 | 266 public int checkPermission(String permName, String pkgName) { in checkPermission() argument 271 public boolean isPermissionRevokedByPolicy(String permName, String pkgName) { in isPermissionRevokedByPolicy() argument
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerTests.java | 2193 String permName = "com.android.frameworks.coretests.keysets_permdef.keyset_perm"; in testUpgradeSigPermGained() local 2195 pm.checkPermission(permName, pkgName) in testUpgradeSigPermGained() 2202 pm.checkPermission(permName, pkgName) in testUpgradeSigPermGained() 2223 String permName = "com.android.frameworks.coretests.keysets_permdef.keyset_perm"; in testUpgradeSigPermLost() local 2225 pm.checkPermission(permName, pkgName) in testUpgradeSigPermLost() 2234 pm.checkPermission(permName, pkgName) in testUpgradeSigPermLost()
|
D | AppsFilterImplTest.java | 173 for (String permName : permNames) { in pkgWithCustomPermissions() 175 ((ParsedComponentImpl) permission).setName(permName); in pkgWithCustomPermissions()
|
/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/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 3644 String permName = pkg.requestedPermissions[permNum]; 3649 permissionInfo = pm.getPermissionInfo(permName, 0); 3651 pm.getPermissionFlags(permName, pkg.packageName, user); 3656 if (permName.startsWith(COMMON_PERMISSION_PREFIX)) { 3657 permName = permName.substring(COMMON_PERMISSION_PREFIX.length()); 3662 e = FrameworkStatsLog.buildStatsEvent(atomTag, permName, 3671 e = FrameworkStatsLog.buildStatsEvent(atomTag, permName,
|
/frameworks/base/core/java/android/content/ |
D | Context.java | 7173 public void revokeSelfPermissionOnKill(@NonNull String permName) { in revokeSelfPermissionOnKill() argument 7174 revokeSelfPermissionsOnKill(Collections.singletonList(permName)); in revokeSelfPermissionOnKill()
|