Home
last modified time | relevance | path

Searched refs:grantPermission (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DSplitPermissionTest.java30 import static android.permission.cts.PermissionUtils.grantPermission;
252 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in inheritGrantedPermissionState()
268 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in inheritGrantedPermissionStateSharedUidApp()
371 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in grantNewSplitPermissionState()
372 grantPermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in grantNewSplitPermissionState()
387 grantPermission(APP_PKG, READ_CALL_LOG); in grantNewSplitPermissionStatePreM()
400 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in revokeNewSplitPermissionState()
401 grantPermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in revokeNewSplitPermissionState()
431 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in newPermissionGetRevokedOnUpgrade()
432 grantPermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in newPermissionGetRevokedOnUpgrade()
[all …]
DSharedUidPermissionsTest.java21 import static android.permission.cts.PermissionUtils.grantPermission;
64 grantPermission(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS); in packageGainsRuntimePermissionsWhenJoiningSharedUid()
84 grantPermission(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS); in grantingRuntimePermissionAffectsAllPackageInSharedUid()
94 grantPermission(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS); in revokingRuntimePermissionAffectsAllPackageInSharedUid()
106 grantPermission(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS); in runtimePermissionsCannotBeRevokedOnPackageThatDoesNotDeclarePermission()
117 grantPermission(APK_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS); in runtimePermissionsCannotBeGrantedOnPackageThatDoesNotDeclarePermission()
125 grantPermission(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS); in sharedUidLoosesRuntimePermissionWhenLastAppDeclaringItGetsUninstalled()
DBackgroundPermissionsTest.java28 import static android.permission.cts.PermissionUtils.grantPermission;
124 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpGetsDowngradedWhenBgPermIsNotRequestedAnymore()
DPermissionControllerTest.java394 PermissionUtils.grantPermission(APP2, BODY_SENSORS); in runtimePermissionPresentationInfoCustomApp()
395 PermissionUtils.grantPermission(APP2, READ_CONTACTS); in runtimePermissionPresentationInfoCustomApp()
396 PermissionUtils.grantPermission(APP2, WRITE_CALENDAR); in runtimePermissionPresentationInfoCustomApp()
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java105 grantPermission(Manifest.permission.BRIGHTNESS_SLIDER_USAGE); in testBrightnessSliderTracking()
155 grantPermission(Manifest.permission.BRIGHTNESS_SLIDER_USAGE); in testNoTrackingForManualBrightness()
212 grantPermission(Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS); in testSetGetSimpleCurve()
245 grantPermission(Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS); in testGetDefaultCurve()
288 grantPermission(Manifest.permission.BRIGHTNESS_SLIDER_USAGE); in testSliderEventsReflectCurves()
289 grantPermission(Manifest.permission.CONFIGURE_DISPLAY_BRIGHTNESS); in testSliderEventsReflectCurves()
412 private void grantPermission(String permission) { in grantPermission() method in BrightnessTest
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DShellCommandBuilder.java77 public ShellCommandBuilder grantPermission(String packageName, String permission) { in grantPermission() method in ShellCommandBuilder
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DUsePermissionTest23.java76 grantPermission(Manifest.permission.READ_CALENDAR); in testGranted()
318 grantPermission(Manifest.permission.READ_CALENDAR); in testRevokeAffectsWholeGroup_part1()
382 grantPermission(Manifest.permission.READ_CALENDAR); in testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1()
DBasePermissionsTest.java342 protected void grantPermission(String permission) throws Exception { in grantPermission() method in BasePermissionsTest
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java185 public static void grantPermission(@NonNull String packageName, @NonNull String permission) in grantPermission() method in PermissionUtils