/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | FakePermissionEnforcer.java | 42 public void grant(String permission) { in grant() 46 public void revoke(String permission) { in revoke() 54 private boolean granted(String permission) { in granted() 59 protected int checkPermission(@NonNull String permission, in checkPermission() 65 protected int checkPermission(@NonNull String permission, int pid, int uid) { in checkPermission()
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 151 @NonNull String permission, int pid, int uid, @Nullable String packageName, in checkPermissionForDataDelivery() 194 @NonNull String permission, int pid, int uid, @Nullable String packageName, in checkPermissionForDataDelivery() 232 @NonNull String permission, int pid, @NonNull AttributionSource attributionSource, in checkPermissionForDataDeliveryFromDataSource() 269 @NonNull String permission, int pid, @NonNull AttributionSource attributionSource, in checkPermissionForDataDelivery() 307 @NonNull String permission, int pid, @NonNull AttributionSource attributionSource, in checkPermissionForDataDelivery() 315 @NonNull String permission, @NonNull AttributionSource attributionSource, in checkPermissionForDataDeliveryCommon() 353 @NonNull String permission, @NonNull AttributionSource attributionSource, in checkPermissionAndStartDataDelivery() 539 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForPreflight() 575 @NonNull String permission, @NonNull AttributionSource attributionSource) { in checkPermissionForPreflight() 612 @NonNull String permission, @Nullable String message) { in checkSelfPermissionForDataDelivery() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
D | ShadowPermissionChecker.java | 36 public static void setResult(String packageName, String permission, int result) { in setResult() 46 String permission, in checkCallingPermissionForDataDelivery() 59 String permission, in checkPermissionForDataDelivery() 73 @NonNull String permission, int pid, int uid, @Nullable String packageName) { in checkPermissionForPreflight() 80 @NonNull String permission, @NonNull AttributionSource attributionSource) { in checkPermissionForPreflight()
|
/frameworks/native/libs/permission/android/permission/ |
D | PermissionChecker.cpp | 32 namespace android::permission { namespace 69 const String16& permission, const AttributionSourceState& attributionSource, in checkPermissionForDataDeliveryFromDatasource() 78 const String16& permission, const AttributionSourceState& attributionSource, in checkPermissionForStartDataDeliveryFromDatasource() 86 const String16& permission, const AttributionSourceState& attributionSource, in checkPermissionForPreflight() 94 const String16& permission, const AttributionSourceState& attributionSource, in checkPermissionForPreflightFromDatasource() 114 PermissionChecker::PermissionResult PermissionChecker::checkPermission(const String16& permission, in checkPermission()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastSenderTest.kt | 71 val permission = "Permission" in sendBroadcastWithPermission_dispatchesWithWakelock() constant 92 val permission = "Permission" in sendBroadcastAsUserWithPermission_dispatchesWithWakelock() constant 103 val permission = "Permission" in sendBroadcastAsUserWithPermissionAndOptions_dispatchesWithWakelock() constant 117 val permission = "Permission" in sendBroadcastAsUserWithPermissionAndAppOp_dispatchesWithWakelock() constant
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestablePermissions.java | 38 public void setPermission(String permission, int value) { in setPermission() 52 boolean wantsCall(String permission) { in wantsCall() 60 int check(String permission) { in check() 69 public void enforce(String permission) { in enforce()
|
D | TestableContext.java | 387 public int checkCallingOrSelfPermission(String permission) { in checkCallingOrSelfPermission() 395 public int checkCallingPermission(String permission) { in checkCallingPermission() 403 public int checkPermission(String permission, int pid, int uid) { in checkPermission() 411 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { in checkPermission() 419 public int checkSelfPermission(String permission) { in checkSelfPermission() 427 public void enforceCallingOrSelfPermission(String permission, String message) { in enforceCallingOrSelfPermission() 436 public void enforceCallingPermission(String permission, String message) { in enforceCallingPermission() 445 public void enforcePermission(String permission, int pid, int uid, String message) { in enforcePermission()
|
/frameworks/native/libs/binder/ |
D | PermissionCache.cpp | 38 const String16& permission, uid_t uid) const { in check() argument 51 void PermissionCache::cache(const String16& permission, in cache() 77 bool PermissionCache::checkCallingPermission(const String16& permission) { in checkCallingPermission() 82 const String16& permission, int32_t* outPid, int32_t* outUid) { in checkCallingPermission() 92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission()
|
D | IPermissionController.cpp | 37 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission() 82 virtual bool isRuntimePermission(const String16& permission) in isRuntimePermission() 117 String16 permission = data.readString16(); in onTransact() local 153 String16 permission = data.readString16(); in onTransact() local
|
/frameworks/base/core/java/android/os/ |
D | PermissionEnforcer.java | 96 protected int checkPermission(@NonNull String permission, @NonNull AttributionSource source) { in checkPermission() 103 protected int checkPermission(@NonNull String permission, int pid, int uid) { in checkPermission() 112 private static int permissionToOpCode(String permission) { in permissionToOpCode() 116 private static int permissionToOpCode$ravenwood(String permission) { in permissionToOpCode$ravenwood() 129 public void enforcePermission(@NonNull String permission, @NonNull in enforcePermission() 137 public void enforcePermission(@NonNull String permission, int pid, int uid) in enforcePermission()
|
D | IPermissionController.aidl | 22 boolean checkPermission(String permission, int pid, int uid); in checkPermission() 25 boolean isRuntimePermission(String permission); in isRuntimePermission()
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedPermissionUtils.java | 55 ParsedPermissionImpl permission = new ParsedPermissionImpl(); in parsePermission() local 172 ParsedPermissionImpl permission = new ParsedPermissionImpl(); in parsePermissionTree() local 258 public static boolean isRuntime(@NonNull ParsedPermission permission) { in isRuntime() 262 public static boolean isAppOp(@NonNull ParsedPermission permission) { in isAppOp() 267 public static int getProtection(@NonNull ParsedPermission permission) { in getProtection() 271 public static int getProtectionFlags(@NonNull ParsedPermission permission) { in getProtectionFlags() 275 public static int calculateFootprint(@NonNull ParsedPermission permission) { in calculateFootprint()
|
D | ParsedServiceImpl.java | 41 private String permission; field in ParsedServiceImpl 49 public ParsedMainComponent setPermission(String permission) { in setPermission() 118 @Nullable String permission) { in ParsedServiceImpl()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/ |
D | FakeLocationPermissionsHelper.java | 38 public void grantPermission(String packageName, String permission) { in grantPermission() 43 public void revokePermission(String packageName, String permission) { in revokePermission() 49 protected boolean hasPermission(String permission, CallerIdentity identity) { in hasPermission()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | UidPermissionState.java | 128 private PermissionState getOrCreatePermissionState(@NonNull Permission permission) { in getOrCreatePermissionState() 161 public void putPermissionState(@NonNull Permission permission, boolean granted, int flags) { in putPermissionState() 233 public boolean grantPermission(@NonNull Permission permission) { in grantPermission() 244 public boolean revokePermission(@NonNull Permission permission) { in revokePermission() 279 public boolean updatePermissionFlags(@NonNull Permission permission, int flagMask, in updatePermissionFlags() 317 final PermissionState permission = mPermissions.valueAt(i); in isPermissionsReviewRequired() local
|
D | LegacyPermissionSettings.java | 83 final LegacyPermission permission = permissions.get(i); in replacePermissions() local 84 mPermissions.put(permission.getPermissionInfo().name, permission); in replacePermissions() local 156 final LegacyPermission permission = permissions.get(i); in dumpPermissions() local
|
/frameworks/base/test-base/src/android/test/ |
D | AndroidTestCase.java | 99 String packageName, String className, String permission) { in assertActivityRequiresPermission() 122 public void assertReadingContentUriRequiresPermission(Uri uri, String permission) { in assertReadingContentUriRequiresPermission() 141 public void assertWritingContentUriRequiresPermission(Uri uri, String permission) { in assertWritingContentUriRequiresPermission()
|
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodPermissionEnforcer.java | 26 protected int checkPermission(String permission, AttributionSource source) { in checkPermission() 33 protected int checkPermission(String permission, int pid, int uid) { in checkPermission()
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | ChipsUtil.java | 32 void onPermissionCheck(String permission, boolean granted); in onPermissionCheck() 62 public static int checkPermission(Context context, String permission) { in checkPermission()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 203 public String permission; field in ActivityInfo 278 public static boolean isRequiredContentUriPermissionRead( in isRequiredContentUriPermissionRead() 289 public static boolean isRequiredContentUriPermissionWrite( in isRequiredContentUriPermissionWrite()
|
/frameworks/base/core/java/android/app/ |
D | IUiAutomationConnection.aidl | 56 void grantRuntimePermission(String packageName, String permission, int userId); in grantRuntimePermission() 57 void revokeRuntimePermission(String packageName, String permission, int userId); in revokeRuntimePermission() 65 void addOverridePermissionState(int uid, String permission, int result); in addOverridePermissionState() 66 void removeOverridePermissionState(int uid, String permission); in removeOverridePermissionState()
|
/frameworks/base/media/java/android/media/permission/ |
D | PermissionUtil.java | 177 @NonNull String permission, in checkPermissionForDataDelivery() 197 @NonNull String permission) { in checkPermissionForPreflight()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | AppIdPermissionMigration.kt | 52 val permission = in <lambda>() constant 90 val permission = state.systemState.permissions[permissionName] in <lambda>() constant
|
D | PermissionService.kt | 233 val permission: Permission in <lambda>() constant 311 return permissions.mapNotNullIndexedTo(ArrayList()) { _, _, permission -> in <lambda>() method 325 getPermissionsWithProtectionOrProtectionFlags { permission -> in <lambda>() method 330 getPermissionsWithProtectionOrProtectionFlags { permission -> in <lambda>() method 339 return permissions.mapNotNullIndexedTo(ArrayList()) { _, _, permission -> in <lambda>() method 349 val permission = in <lambda>() constant 360 return permissions.mapNotNullIndexedTo(ArraySet()) { _, _, permission -> in <lambda>() method 413 val permission = with(policy) { getPermissions()[permissionName] } ?: return@mutateState in <lambda>() constant 458 getPermissions().forEachIndexed { _, _, permission -> in <lambda>() method 598 val permission = with(policy) { getPermissions()[permissionName] } ?: return false in <lambda>() constant [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | PermissionHelperTest.java | 143 final String permission = "correct"; in testHasRequestedPermission_otherPermission() local 159 final String permission = "correct"; in testHasRequestedPermission_noPermissions() local 173 final String permission = "correct"; in testHasRequestedPermission_singlePermissions() local 189 final String permission = "correct"; in testHasRequestedPermission_twoPermissions() local
|