Home
last modified time | relevance | path

Searched refs:revokeRuntimePermission (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DRevokePermissionTest.kt138 pm.revokeRuntimePermission(packageName, permission, Process.myUserHandle()) in testRevoke()
140 pm.revokeRuntimePermission( in testRevoke()
150 pm.revokeRuntimePermission(packageName, permission, Process.myUserHandle()) in testRevoke()
152 pm.revokeRuntimePermission( in testRevoke()
DPermissionControllerTest.java242 sUiAutomation.revokeRuntimePermission(APP, ACCESS_BACKGROUND_LOCATION); in revokePermissionsDoNotAlreadyRevokedPermission()
437 sController.revokeRuntimePermission(APP2, READ_CALENDAR); in revokePermissionAutomaticallyExtendsToWholeGroup()
453 sController.revokeRuntimePermission(APP2, CUSTOM_PERMISSION); in revokePermissionCustom()
465 () -> sController.revokeRuntimePermission("invalid.package", READ_CALENDAR)); in revokePermissionWithInvalidPkg()
472 () -> sController.revokeRuntimePermission(APP2, "invalid.permission")); in revokePermissionWithInvalidPermission()
477 sController.revokeRuntimePermission(null, READ_CALENDAR); in revokePermissionWithNullPkg()
482 sController.revokeRuntimePermission(APP2, null); in revokePermissionWithNullPermission()
DDevicePermissionsTest.kt232 permissionManager.revokeRuntimePermission( in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId()
328 permissionManager.revokeRuntimePermission( in testAllPermissionStatesApiGrantForVirtualDevice()
420 permissionManager.revokeRuntimePermission( in testAllPermissionStatesApiGrantForDefaultDevice()
527 context.packageManager.revokeRuntimePermission( in revokePermissionAndAssertDenied()
DPermissionUpdateListenerTest.java190 packageManager.revokeRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, in testRevokePermissionNotifyListener()
/packages/services/Telecomm/src/com/android/server/telecom/
DEmergencyCallHelper.java184 mContext.getPackageManager().revokeRuntimePermission(systemDialerPackage, in revokeLocationPermission()
194 mContext.getPackageManager().revokeRuntimePermission(systemDialerPackage, in revokeLocationPermission()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DRevokedHealthPermissionRule.java46 .revokeRuntimePermission(mPackageName, mPermission); in before()
DPermissionHelper.java196 packageManager.revokeRuntimePermission(packageName, permission, user); in revokeHealthPermissionsPrivileged()
256 permission -> uiAutomation.revokeRuntimePermission(packageName, permission)); in runWithRevokedPermissions()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowPermissionControllerManager.java46 protected void revokeRuntimePermission(String packageName, String permissionName) { in revokeRuntimePermission() method in ShadowPermissionControllerManager
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DEmergencyCallHelperTest.java104 verify(mPackageManager, times(1)).revokeRuntimePermission(eq(SYSTEM_DIALER_PACKAGE), in verifyRevokeInvokedFor()
109 verify(mPackageManager, never()).revokeRuntimePermission(eq(SYSTEM_DIALER_PACKAGE), in verifyRevokeNotInvokedFor()
DInCallControllerTests.java589 verify(mMockPackageManager).revokeRuntimePermission(eq(SYS_PKG), in testBindToService_SystemDialer_Emergency()
795 verify(mMockPackageManager).revokeRuntimePermission(eq(SYS_PKG), in testBindToService_SystemDialer_Crash()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthConnectPermissionHelper.java142 mPackageManager.revokeRuntimePermission( in revokeHealthPermission()
378 mPackageManager.revokeRuntimePermission(packageName, perm, user, reason); in revokeAllHealthPermissionsUnchecked()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v35/
DMultiDeviceUtils.kt317 permissionManager.revokeRuntimePermission( in <lambda>()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DUiTestUtils.kt339 { pm.revokeRuntimePermission(packageName, permName, context.user, /* reason= */ "") }, in revokePermissionViaPackageManager()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/
DBackgroundReadTest.java273 mPackageManager.revokeRuntimePermission( in revokeBackgroundReadPermissionForTestApp()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt1160 revokeRuntimePermission( in <lambda>()
1276 private fun revokeRuntimePermission( in <lambda>() method
1312 context.packageManager.revokeRuntimePermission( in <lambda>()
/packages/modules/Permission/tests/cts/permission/permissionTestUtilLib/src/android/permission/cts/
DPermissionUtils.java242 sUiAutomation.revokeRuntimePermission(packageName, permission); in revokePermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java1578 mPackageManager.revokeRuntimePermission(mPackageInfo.packageName,
1581 mPackageManager.revokeRuntimePermission(mPackageInfo.packageName,
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/utils/
DGrantRevokeTests.kt334 verify(pm).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState()
338 verify(pm, never()).revokeRuntimePermission(TEST_PACKAGE_NAME, permName, TEST_USER) in verifyPermissionState()
/packages/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/device/
DMicrodroidDeviceTestBase.java108 uiAutomation.revokeRuntimePermission(instrumentation.getContext().getPackageName(), in revokePermission()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/permissions/
DHealthConnectWithManagePermissionsTest.java631 .revokeRuntimePermission( in revokePermissionViaPackageManager()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/model/
DPermissions.java700 packageManager.revokeRuntimePermission(packageName, permission, user); in revokePermissionWithoutAppOpAsUser()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java1119 packageManager.revokeRuntimePermission(packageName, permission, user); in revokeHealthPermissionsPrivileged()