/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/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 80 public static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp() 113 public static void setAppOp(@NonNull String packageName, @NonNull String permission, int mode) { in setAppOp() 141 @NonNull String permission) throws Exception { in isPermissionGranted() 159 public static boolean isGranted(@NonNull String packageName, @NonNull String permission) in isGranted() 185 public static void grantPermission(@NonNull String packageName, @NonNull String permission) in grantPermission() 219 public static void revokePermission(@NonNull String packageName, @NonNull String permission) in revokePermission() 251 public static int getPermissionFlags(@NonNull String packageName, @NonNull String permission) { in getPermissionFlags() 269 public static void setPermissionFlags(@NonNull String packageName, @NonNull String permission, in setPermissionFlags()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 358 private void setFlag(String app, String permission, int flag) { in setFlag() 364 private void clearFlag(String app, String permission, int flag) { in clearFlag() 370 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet() 380 private int checkPermission(String app, String permission) { in checkPermission() 384 private void grantRuntimePermission(String app, String permission) { in grantRuntimePermission() 391 private void setAppOp(String app, String permission, int mode) { in setAppOp() 398 private int getAppOp(String app, String permission) { in getAppOp()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/ |
D | UsePermissionTest29.java | 39 private static void assertGranted(String permission) { in assertGranted() 44 private static void assertDenied(String permission) { in assertDenied()
|
/cts/tests/tests/display/src/android/display/cts/ |
D | BrightnessTest.java | 348 private int numberOfSystemAppsWithPermission(String permission) { in numberOfSystemAppsWithPermission() 412 private void grantPermission(String permission) { in grantPermission() 414 .grantRuntimePermission(mContext.getPackageName(), permission); in grantPermission() local 417 private void revokePermission(String permission) { in revokePermission() 419 .revokeRuntimePermission(mContext.getPackageName(), permission); in revokePermission() local
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | BackgroundPermissionsTest.java | 87 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties() local 96 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties() local
|
D | SplitPermissionsSystemTest.java | 121 private void assertSplit(SplitPermissionInfo split, String permission, int targetSdk) { in assertSplit()
|
D | RemovePermissionTest.java | 100 private void grantPermission(String pkg, String permission) { in grantPermission()
|
D | ProviderPermissionTest.java | 174 final String permission = android.Manifest.permission.WRITE_SETTINGS; in testWriteSettings() local
|
D | LocationAccessCheckTest.java | 329 private void grantPermissionToTestApp(@NonNull String permission) { in grantPermissionToTestApp()
|
D | PermissionControllerTest.java | 158 @NonNull String permission) { in buildRequest()
|
/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/UsePermissionApp22/src/com/android/cts/usepermission/ |
D | PermissionCheckerService.java | 51 String permission = bundle.getString(getPackageName() + ".PERMISSION"); in onHandleIntent() local
|
/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/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 105 private int checkPermission(String permission, int uid, String packageName) { in checkPermission() 298 private void assertPermissionRequest(int expected, String buttonResource, String permission) in assertPermissionRequest() 336 private void assertSetPermissionGrantState(int value, String permission) throws Exception { in assertSetPermissionGrantState()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | ShellCommandBuilder.java | 77 public ShellCommandBuilder grantPermission(String packageName, String permission) { in grantPermission()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyLocationTests.java | 266 private void withRevokedPermission(String packageName, Runnable r, String permission) { in withRevokedPermission()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PrivappPermissionsTest.java | 128 String permission = pkg.requestedPermissions[i]; in privappPermissionsNeedToBeWhitelisted() local
|
D | RestrictedPermissionsTest.java | 1023 final String permission = packageInfo.requestedPermissions[i]; in assertAllRestrictedPermissionGranted() local 1046 final String permission = packageInfo.requestedPermissions[i]; in assertRestrictedPermissionGranted() local
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | BasePermissionsTest.java | 410 protected void grantPermission(String permission) throws Exception { in grantPermission() 418 protected void revokePermission(String permission) throws Exception { in revokePermission() 560 private String getPermissionLabel(String permission) throws Exception { in getPermissionLabel()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | EnterprisePrivacyTestListActivity.java | 115 String permission) { in buildAdminGrantedPermissionTest()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContentProviderTest.java | 296 public void setReadPermissionWrapper(String permission) { in setReadPermissionWrapper() 300 public void setWritePermissionWrapper(String permission) { in setWritePermissionWrapper()
|