Home
last modified time | relevance | path

Searched refs:setPermissionGrantState (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DPermissionGrantDelegateTest.java67 mDpm.setPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION, in testCannotAccessApis()
89 mDpm.setPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION, in testCanAccessApis()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java278 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantState()
287 assertFalse(mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertFailedToSetDevelopmentPermissionGrantState()
299 assertFalse(mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantStatePreMApp()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java351 mDpm.setPermissionGrantState(mAdmin, getPackageName(), in onCreate()
586 mDpm.setPermissionGrantState(mAdmin, getPackageName(), in clearAllPoliciesAndRestrictions()
589 mDpm.setPermissionGrantState(mAdmin, getPackageName(), Manifest.permission.RECORD_AUDIO, in clearAllPoliciesAndRestrictions()
591 mDpm.setPermissionGrantState(mAdmin, getPackageName(), Manifest.permission.CAMERA, in clearAllPoliciesAndRestrictions()
DPermissionLockdownTestActivity.java176 mDevicePolicyManager.setPermissionGrantState(mAdmin, PERMISSION_APP_PACKAGE, in onCheckedChanged()
DByodHelperActivity.java528 mDevicePolicyManager.setPermissionGrantState(mAdminReceiverComponent, getPackageName(), in grantCameraPermissionToSelf()
550 mDevicePolicyManager.setPermissionGrantState(mAdminReceiverComponent, getPackageName(), in grantLocationPermissionToSelf()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionsTest.java317 setPermissionGrantState(permissions, true, false); in grantPermissions()
325 setPermissionGrantState(permissions, false, legacyApp); in revokePermissions()
338 private void setPermissionGrantState(String[] permissions, boolean granted, in setPermissionGrantState() method in BasePermissionsTest