Home
last modified time | relevance | path

Searched refs:revokePermission (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DRevokeSelfPermissionTest.java144 revokePermission(HIGH_SAMPLING_RATE_SENSORS); in testNormalPermission()
163 revokePermission(ACCESS_FINE_LOCATION); in testKillTriggersRevocation()
176 revokePermission(ACCESS_FINE_LOCATION); in testNoRevocationWhileForeground()
201 revokePermission(ACCESS_BACKGROUND_LOCATION); in testRevokeLocationPermission()
212 revokePermission(ACCESS_FINE_LOCATION); in testRevokeLocationPermission()
220 revokePermission(ACCESS_COARSE_LOCATION); in testRevokeLocationPermission()
237 revokePermission(ACCESS_FINE_LOCATION); in testNoRepromptWhenUserFixed()
299 private void revokePermission(String permName) { in revokePermission() method in RevokeSelfPermissionTest
DSplitPermissionTest.java31 import static android.permission.cts.PermissionUtils.revokePermission;
378 revokePermission(APP_PKG, READ_CONTACTS); in inheritRevokedPermissionStatePreM()
419 revokePermission(APP_PKG, READ_CONTACTS); in grantNewSplitPermissionStatePreM()
437 revokePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in revokeNewSplitPermissionState()
451 revokePermission(APP_PKG, READ_CALL_LOG); in revokeNewSplitPermissionStatePreM()
578 revokePermission(APP_PKG, READ_CONTACTS); in oldPermissionStaysRevokedOnUpgradePreM()
DSharedUidPermissionsTest.java24 import static android.permission.cts.PermissionUtils.revokePermission;
99 revokePermission(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS); in revokingRuntimePermissionAffectsAllPackageInSharedUid()
111 revokePermission(PKG_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS); in runtimePermissionsCanBeRevokedOnPackageThatDoesNotDeclarePermission()
DNearbyDevicesPermissionTest.java25 import static android.permission.cts.PermissionUtils.revokePermission;
280 revokePermission(TEST_APP_PKG, BLUETOOTH_CONNECT); in testRequestBluetoothPermission_Downgrade()
281 revokePermission(TEST_APP_PKG, BLUETOOTH_SCAN); in testRequestBluetoothPermission_Downgrade()
/packages/modules/Permission/PermissionController/tests/permissionui/src/com/android/permissioncontroller/permissionui/ui/handheld/
DManageCustomPermissionsFragmentTest.kt22 import android.permission.cts.PermissionUtils.revokePermission
91 revokePermission(USER_PKG, PERM) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
DManageStandardPermissionsFragmentTest.kt24 import android.permission.cts.PermissionUtils.revokePermission
176 revokePermission(LOCATION_USER_PKG, ACCESS_COARSE_LOCATION) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DAppPermissionViewModel.kt213 revokePermission(dataTypePermission, packageName) in <lambda>()
231 private fun revokePermission(fitnessPermission: FitnessPermission, packageName: String) { in <lambda>() method in com.android.healthconnect.controller.permissions.app.AppPermissionViewModel
291 revokePermission(fromPermissionString(READ_EXERCISE), packageName) in <lambda>()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNotAllPermissionsAreGrantedTest.java33 import static android.healthconnect.cts.utils.PermissionHelper.revokePermission;
159 revokePermission(packageName, READ_DISTANCE); in testGetChangeLogs_somePermissionsAreNotGranted_expectError()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/rkpd/vm_attestation/testapp/
DRkpdVmAttestationTest.java97 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setUp()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyCenterQsFragment.java299 revokePermission(usage); in configurePrimaryActionButton()
374 private void revokePermission(PermissionGroupUsage usage) { in revokePermission() method in SafetyCenterQsFragment
375 mViewModel.revokePermission(usage); in revokePermission()
/packages/services/Telephony/tests/src/com/android/
DTestContext.java269 public void revokePermission(String permission) { in revokePermission() method in TestContext
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DPermissionHelper.java125 public static void revokePermission(String pkgName, String permission) { in revokePermission() method in PermissionHelper
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java39 import static android.healthconnect.cts.utils.PermissionHelper.revokePermission;
744 revokePermission(APP_A_WITH_READ_WRITE_PERMS.getPackageName(), healthPerms.get(0)); in testRevokingOnlyOneCorrectPermissionDoesntRemoveAppFromPriorityList()
784 revokePermission(APP_A_WITH_READ_WRITE_PERMS.getPackageName(), perm); in testRevokingAllCorrectPermissionsRemovesAppFromPriorityList()
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/
DMicrodroidTests.java162 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setup()
168 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in tearDown()
896 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in createVmWithConfigRequiresPermission()
2344 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in configuringNetworkSupportedRequiresCustomPermission()
2395 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in configuringVendorDiskImageRequiresCustomPermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt127 fun revokePermission(usage: PermissionGroupUsage) { in revokePermission() method
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java240 public static void revokePermission(@NonNull String packageName, @NonNull String permission) in revokePermission() method in PermissionUtils
/packages/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/device/
DMicrodroidDeviceTestBase.java105 protected final void revokePermission(String permission) { in revokePermission() method in MicrodroidDeviceTestBase