/cts/tests/tests/content/BinderPermissionTestService/aidl/com/android/cts/ |
D | IBinderPermissionTestService.aidl | 21 void doEnforceCallingPermission(String permission); in doEnforceCallingPermission() 22 int doCheckCallingPermission(String permission); in doCheckCallingPermission() 23 void doEnforceCallingOrSelfPermission(String permission); in doEnforceCallingOrSelfPermission() 24 int doCheckCallingOrSelfPermission(String permission); in doCheckCallingOrSelfPermission()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | PermissionGrantTest.java | 187 public void denyPermission_setsGrantState(@DeniablePermissionTestParameter String permission) { in denyPermission_setsGrantState() 207 permission, existingGrantState); in denyPermission_setsGrantState() local 239 public void denyPermission_permissionIsDenied( in denyPermission_permissionIsDenied() 245 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in denyPermission_permissionIsDenied() local 248 permission, PERMISSION_GRANT_STATE_DENIED); in denyPermission_permissionIsDenied() local 257 permission, existingGrantState); in denyPermission_permissionIsDenied() local 258 sTestApp.pkg().denyPermission(TestApis.users().instrumented(), permission); in denyPermission_permissionIsDenied() local 287 public void denyPermission_doesNotApply_permissionIsNotDenied( in denyPermission_doesNotApply_permissionIsNotDenied() 290 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in denyPermission_doesNotApply_permissionIsNotDenied() local 294 permission, PERMISSION_GRANT_STATE_DENIED); in denyPermission_doesNotApply_permissionIsNotDenied() local [all …]
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 76 String permission, int expected, String packageName, String activityName) in launchActivityAndCheckPermission() 93 String permission, int expected, String packageName, String activityName) in launchActivityAndRequestPermission() 101 receiver, UiDevice device, String permission, int expected, in launchActivityAndRequestPermission() 129 private static void launchActivityWithAction(String permission, String action, in launchActivityWithAction() 141 public static void checkPermission(String permission, int expected, String packageName) { in checkPermission() 142 checkPermission(getContext(), permission, expected, packageName); in checkPermission() local 145 public static void checkPermission(Context context, String permission, int expected, in checkPermission() 154 private static void assertPermission(String permission, String packageName, int actual, in assertPermission() 165 public static void checkPermissionAndAppOps(String permission, int expected, String packageName) in checkPermissionAndAppOps() 167 checkPermissionAndAppOps(getContext(), permission, expected, packageName); in checkPermissionAndAppOps() local [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 167 private void assertCannotSetPermissionGrantStatePreMApp(String permission, int value) in assertCannotSetPermissionGrantStatePreMApp() 187 private void assertCanSetPermissionGrantStatePreMApp(String permission, int value) in assertCanSetPermissionGrantStatePreMApp() 355 private boolean setPermissionGrantState(String permission, int grantState) { in setPermissionGrantState() 359 private boolean setPermissionGrantState(DevicePolicyManager dpm, String permission, in setPermissionGrantState() 370 private void assertPermissionGrantState(String permission, int expectedState) { in assertPermissionGrantState() 374 private void assertPermissionGrantState(DevicePolicyManager dpm, String permission, in assertPermissionGrantState() 380 String permission, int expectedState) { in assertPermissionGrantState() 402 private void assertCanRequestPermissionFromActivity(String permission) throws Exception { in assertCanRequestPermissionFromActivity() 408 private void assertCannotRequestPermissionFromActivity(String permission) throws Exception { in assertCannotRequestPermissionFromActivity()
|
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/ |
D | AnnotationLogicExtensions.kt | 52 val permission = arrayOf(policies[0].permissions[0].appliedWith) in logic() constant 77 val permission = arrayOf(policies[0].permissions[0].appliedWith) in MostRestrictiveCoexistenceTest() constant
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PermissionUtils.java | 70 @NonNull String permission) throws Exception { in isPermissionAndAppOpGranted() 87 @NonNull String permission) { in grantPermissionAndAppOp() 103 @NonNull String permission) { in revokePermissionAndAppOp() 138 private static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp() 158 @NonNull String permission, int mode) { in setAppOpByPermission() 187 @NonNull String permission) { in isPermissionGranted()
|
D | BaseDefaultPermissionGrantPolicyTest.java | 265 String permission, String message) { in addViolation() 389 String permission = entry.getKey(); in addException() local 416 public static ArrayList<String> extendBySplitPermissions(String permission, int appTargetSdk) { in extendBySplitPermissions() 437 public void setPermissionGrantState(String packageName, String permission, in setPermissionGrantState() 610 String permission = uidState.grantedPermissions.keyAt(i); in checkDefaultGrantsInCorrectState() local 822 public void addGrantedPermission(PackageInfo packageInfo, String reason, String permission, in addGrantedPermission() 835 public void overrideGrantedPermission(String packageName, String reason, String permission, in overrideGrantedPermission() 840 public void mergeGrantedPermission(String packageName, String reason, String permission, in mergeGrantedPermission()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 403 private void setFlag(String app, String permission, int flag) { in setFlag() 409 private void clearFlag(String app, String permission, int flag) { in clearFlag() 415 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() 425 private int checkPermission(String app, String permission) { in checkPermission() 429 private void setAppOp(String app, String permission, int mode) { in setAppOp() 436 private int getAppOp(String app, String permission) { in getAppOp()
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/ |
D | ActivityInfo.java | 59 Set<IntentFilter> intentFilters, String permission) { in ActivityInfo() 84 public String permission() { in permission() method in ActivityInfo 134 public Builder permission(String permission) { in permission() method in ActivityInfo.Builder
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestUtils.java | 164 public static List<String> getPackagesWithPermissions(String permission) { in getPackagesWithPermissions() 204 public static List<String> revokePermissions(String permission) { in revokePermissions() 214 public static void grantLocationPermissions(String permission, List<String> packages) { in grantLocationPermissions()
|
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/ |
D | PermissionTestActivity.java | 36 String permission = getIntent().getStringExtra(Intent.EXTRA_PERMISSION_NAME); in onCreate() local
|
/cts/common/device-side/bedstead/testapp/src/library/main/proto/ |
D | testapp_protos.proto | 39 string permission = 4; field 46 string permission = 4; field 67 string permission = 2; field
|
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/ |
D | ActivityQuery.java | 37 StringQuery<E> permission(); in permission() method
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2021_39738.java | 56 String permission = pm.getActivityInfo(component, 0 /* flags */).permission; in testPocCVE_2021_39738() local
|
D | CVE_2021_0922.java | 59 String permission = packageInfo.requestedPermissions[i]; in testPocCVE_2021_0922() local
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/wifi/ |
D | CarWifiManagerPermissionTest.java | 57 private void expectPermissionException(String permission, ThrowingRunnable runnable) { in expectPermissionException()
|
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/ |
D | VerifyDuplicatePermissionTest.java | 43 private PermissionInfo getDeclaredPermission(String pkg, String permission) throws Exception { in getDeclaredPermission()
|
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerPermissionRequestApp/src/com/android/cts/packageinstallerpermissionrequestapp/ |
D | PermissionRequestTest.kt | 40 private val permission = arguments.getString(PackageSetInstallerConstants.PERMISSION_KEY)!! constant in com.android.cts.packageinstallerpermissionrequestapp.PermissionRequestTest
|
/cts/tests/tests/display/src/android/display/cts/ |
D | BrightnessTest.java | 511 private int numberOfSystemAppsWithPermission(String permission) { in numberOfSystemAppsWithPermission() 588 private void grantPermission(String permission) { in grantPermission() 590 .grantRuntimePermission(mContext.getPackageName(), permission); in grantPermission() local 593 private void revokePermission(String permission) { in revokePermission() 595 .revokeRuntimePermission(mContext.getPackageName(), permission); in revokePermission() local 693 PermissionClosable(String permission) { in PermissionClosable()
|
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/ |
D | PermissionsAnnotationExecutor.kt | 53 for (permission in annotation.value) { in applyAnnotation() method 88 for (permission: String in annotation.value) { in applyAnnotation() method
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Package.java | 373 public Package grantPermission(UserReference user, String permission) { in grantPermission() 404 public Package grantPermission(String permission) { in grantPermission() 409 public Package denyPermission(String permission) { in denyPermission() 422 public Package denyPermission(UserReference user, String permission) { in denyPermission() 435 sUiAutomation.revokeRuntimePermissionAsUser(packageName(), permission, user.userHandle()); in denyPermission() local 446 void checkCanGrantOrRevokePermission(UserReference user, String permission) { in checkCanGrantOrRevokePermission() 552 public boolean hasPermission(UserReference user, String permission) { in hasPermission() 558 public boolean hasPermission(UserHandle user, String permission) { in hasPermission() 563 public boolean hasPermission(String permission) { in hasPermission()
|
/cts/tests/tests/telecom/ThirdPtyInCallServiceTestApp/aidl/android/telecom/cts/thirdptyincallservice/ |
D | ICtsThirdPartyInCallServiceControl.aidl | 29 boolean checkPermissionGrant(String permission); in checkPermissionGrant()
|
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/ |
D | PermissionWhitelistTest.kt | 39 private val permission = arguments.getString(PERMISSION_KEY)!! constant
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpDefinitionTest.kt | 39 val permission = AppOpsManager.opToPermission(opCode) ?: continue in ensureRuntimeAppOpMappingIsCorrect() constant
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | OnDeviceIntelligenceServiceTest.java | 102 final String permission = serviceInfo.permission; in validateSandboxedService() local
|