Home
last modified time | relevance | path

Searched defs:permission (Results 1 – 22 of 22) sorted by relevance

/cts/tests/tests/content/BinderPermissionTestService/aidl/com/android/cts/
DIBinderPermissionTestService.aidl21 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/
DPermissionUtils.java80 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/
DPermissionTest.java358 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/
DUsePermissionTest29.java39 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/
DBrightnessTest.java348 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/
DBackgroundPermissionsTest.java87 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties() local
96 PermissionInfo permission = pkg.permissions[i]; in verifybackgroundPermissionsProperties() local
DSplitPermissionsSystemTest.java121 private void assertSplit(SplitPermissionInfo split, String permission, int targetSdk) { in assertSplit()
DRemovePermissionTest.java100 private void grantPermission(String pkg, String permission) { in grantPermission()
DProviderPermissionTest.java174 final String permission = android.Manifest.permission.WRITE_SETTINGS; in testWriteSettings() local
DLocationAccessCheckTest.java329 private void grantPermissionToTestApp(@NonNull String permission) { in grantPermissionToTestApp()
DPermissionControllerTest.java158 @NonNull String permission) { in buildRequest()
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/
DVerifyDuplicatePermissionTest.java43 private PermissionInfo getDeclaredPermission(String pkg, String permission) throws Exception { in getDeclaredPermission()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp22/src/com/android/cts/usepermission/
DPermissionCheckerService.java51 String permission = bundle.getString(getPackageName() + ".PERMISSION"); in onHandleIntent() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DStepSensorPermissionTestActivity.java149 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/
DPermissionsTest.java105 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/
DShellCommandBuilder.java77 public ShellCommandBuilder grantPermission(String packageName, String permission) { in grantPermission()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java266 private void withRevokedPermission(String packageName, Runnable r, String permission) { in withRevokedPermission()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPrivappPermissionsTest.java128 String permission = pkg.requestedPermissions[i]; in privappPermissionsNeedToBeWhitelisted() local
DRestrictedPermissionsTest.java1023 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/
DBasePermissionsTest.java410 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/
DEnterprisePrivacyTestListActivity.java115 String permission) { in buildAdminGrantedPermissionTest()
/cts/tests/tests/content/src/android/content/cts/
DContentProviderTest.java296 public void setReadPermissionWrapper(String permission) { in setReadPermissionWrapper()
300 public void setWritePermissionWrapper(String permission) { in setWritePermissionWrapper()