/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 | 170 permission, PERMISSION_GRANT_STATE_GRANTED); in getPermissionGrantState_sensorPermission_notAbleToSetState_alsoCantReadState() local 172 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in getPermissionGrantState_sensorPermission_notAbleToSetState_alsoCantReadState() local 184 permission, existingGrantState); in getPermissionGrantState_sensorPermission_notAbleToSetState_alsoCantReadState() local 185 sTestApp.pkg().denyPermission(TestApis.users().instrumented(), permission); in getPermissionGrantState_sensorPermission_notAbleToSetState_alsoCantReadState() local 215 permission, existingGrantState); in denyPermission_setsGrantState() local 256 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in denyPermission_permissionIsDenied() local 259 permission, PERMISSION_GRANT_STATE_DENIED); in denyPermission_permissionIsDenied() local 268 permission, existingGrantState); in denyPermission_permissionIsDenied() local 269 sTestApp.pkg().denyPermission(TestApis.users().instrumented(), permission); in denyPermission_permissionIsDenied() local 304 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in denyPermission_doesNotApply_permissionIsNotDenied() local [all …]
|
D | AdminPermissionControlParamsTests.java | 67 String packageName, String permission, int grantState, boolean canAdminGrant) { in createViaParcel()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 84 public static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp() 121 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp() 150 @NonNull String permission) throws Exception { in isPermissionGranted() 168 public static boolean isGranted(@NonNull String packageName, @NonNull String permission) in isGranted() 194 public static void grantPermission(@NonNull String packageName, @NonNull String permission) in grantPermission() 230 public static void revokePermission(@NonNull String packageName, @NonNull String permission) in revokePermission() 264 public static int getPermissionFlags(@NonNull String packageName, @NonNull String permission) { in getPermissionFlags() 283 public static void setPermissionFlags(@NonNull String packageName, @NonNull String permission, in setPermissionFlags()
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 75 String permission, int expected, String packageName, String activityName) in launchActivityAndCheckPermission() 92 String permission, int expected, String packageName, String activityName) in launchActivityAndRequestPermission() 100 receiver, UiDevice device, String permission, int expected, in launchActivityAndRequestPermission() 127 private static void launchActivityWithAction(String permission, String action, in launchActivityWithAction() 139 public static void checkPermission(String permission, int expected, String packageName) { in checkPermission() 144 private static void assertPermission(String permission, String packageName, int actual, in assertPermission() 153 public static void checkPermissionAndAppOps(String permission, int expected, String packageName) in checkPermissionAndAppOps() 159 private static int checkPermissionAndAppOps(String permission, String packageName) in checkPermissionAndAppOps() 282 public static String permissionToString(int permission) { in permissionToString()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 219 private void assertCannotSetPermissionGrantStatePreMApp(String permission, int value) in assertCannotSetPermissionGrantStatePreMApp() 239 private void assertCanSetPermissionGrantStatePreMApp(String permission, int value) in assertCanSetPermissionGrantStatePreMApp() 433 private boolean setPermissionGrantState(String permission, int grantState) { in setPermissionGrantState() 437 private boolean setPermissionGrantState(DevicePolicyManager dpm, String permission, in setPermissionGrantState() 447 private void assertPermissionGrantState(String permission, int expectedState) { in assertPermissionGrantState() 451 private void assertPermissionGrantState(DevicePolicyManager dpm, String permission, in assertPermissionGrantState() 474 private void assertCanRequestPermissionFromActivity(String permission) throws Exception { in assertCanRequestPermissionFromActivity() 480 private void assertCannotRequestPermissionFromActivity(String permission) throws Exception { in assertCannotRequestPermissionFromActivity()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 400 private void setFlag(String app, String permission, int flag) { in setFlag() 406 private void clearFlag(String app, String permission, int flag) { in clearFlag() 412 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() 422 private int checkPermission(String app, String permission) { in checkPermission() 426 private void setAppOp(String app, String permission, int mode) { in setAppOp() 433 private int getAppOp(String app, String permission) { in getAppOp()
|
/cts/tests/tests/permission3/UsePermissionApp22CalendarOnly/src/android/permission3/cts/usepermission/ |
D | CheckPermissionService.kt | 39 val permission = extras.getString("$packageName.PERMISSION")!! in onHandleIntent() constant
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/permissions/ |
D | Permissions.java | 299 String permission, UserReference user) { in checkCanGrantOnAllSupportedVersions() 320 String permission, UserReference user) { in checkCanDenyOnAllSupportedVersions() 329 String message, String permission, UserReference user) { in throwPermissionException() 375 private boolean canGrantPermission(String permission) { in canGrantPermission()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | BackgroundPermissionsTest.java | 89 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties() local 101 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties() local
|
D | SplitPermissionsSystemTest.java | 134 private void assertSplit(SplitPermissionInfo split, int targetSdk, String... permission) { in assertSplit()
|
D | ProviderPermissionTest.java | 174 final String permission = android.Manifest.permission.WRITE_SETTINGS; in testWriteSettings() local
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Package.java | 322 public Package grantPermission(UserReference user, String permission) { in grantPermission() 347 public Package grantPermission(String permission) { in grantPermission() 352 public Package denyPermission(String permission) { in denyPermission() 364 public Package denyPermission(UserReference user, String permission) { in denyPermission() 396 private void checkCanGrantOrRevokePermission(UserReference user, String permission) { in checkCanGrantOrRevokePermission() 499 public boolean hasPermission(UserReference user, String permission) { in hasPermission() 505 public boolean hasPermission(UserHandle user, String permission) { in hasPermission() 510 public boolean hasPermission(String permission) { in hasPermission()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2021_0922.java | 58 String permission = packageInfo.requestedPermissions[i]; in testPocCVE_2021_0922() local
|
/cts/tests/tests/display/src/android/display/cts/ |
D | BrightnessTest.java | 508 private int numberOfSystemAppsWithPermission(String permission) { in numberOfSystemAppsWithPermission() 573 private void grantPermission(String permission) { in grantPermission() 575 .grantRuntimePermission(mContext.getPackageName(), permission); in grantPermission() local 578 private void revokePermission(String permission) { in revokePermission() 580 .revokeRuntimePermission(mContext.getPackageName(), permission); in revokePermission() local
|
/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BaseDefaultPermissionGrantPolicyTest.java | 254 String permission, String message) { in addViolation() 376 String permission = entry.getKey(); in addException() local 403 public static ArrayList<String> extendBySplitPermissions(String permission, int appTargetSdk) { in extendBySplitPermissions() 424 public void setPermissionGrantState(String packageName, String permission, in setPermissionGrantState() 559 String permission = uidState.grantedPermissions.keyAt(i); in checkDefaultGrantsInCorrectState() local 746 public void addGrantedPermission(String packageName, String reason, String permission, in addGrantedPermission() 765 public void overrideGrantedPermission(String packageName, String reason, String permission, in overrideGrantedPermission() 770 public void mergeGrantedPermission(String packageName, String reason, String permission, in mergeGrantedPermission()
|
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/ |
D | PermissionWhitelistTest.kt | 39 private val permission = arguments.getString(PERMISSION_KEY)!! constant in com.android.cts.packageinstallerpermissionwhitelistapp.PermissionWhitelistTest
|
/cts/tests/filesystem/src/android/filesystem/cts/ |
D | CarTestUtil.java | 86 protected static void executeShellCommandWithPermission(String command, String permission) in executeShellCommandWithPermission()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | StepSensorPermissionTestActivity.java | 149 private boolean hasPermission(String permission) { in hasPermission() 154 private void checkPermission(String permission, boolean expected) { in checkPermission()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PrivappPermissionsTest.java | 134 String permission = pkg.requestedPermissions[i]; in privappPermissionsNeedToBeWhitelisted() local
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarApiTestBase.java | 110 protected static String executeShellCommandWithPermission(String permission, in executeShellCommandWithPermission()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | ShellCommandBuilder.java | 79 public ShellCommandBuilder grantPermission(String packageName, String permission) { in grantPermission()
|