Home
last modified time | relevance | path

Searched refs:setPermissionGrantState (Results 1 – 7 of 7) 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/
DDevicePolicyLoggingTest.java139 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in testSetPermissionGrantStateLogged()
141 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, PACKAGE_NAME, in testSetPermissionGrantStateLogged()
143 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, PACKAGE_NAME, in testSetPermissionGrantStateLogged()
DPermissionsTest.java315 mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertSetPermissionGrantState()
324 assertFalse(mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertFailedToSetDevelopmentPermissionGrantState()
335 assertFalse(mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertCannotSetPermissionGrantStateAppPreM()
351 assertTrue(mDevicePolicyManager.setPermissionGrantState(ADMIN_RECEIVER_COMPONENT, in assertCanSetPermissionGrantStateAppPreM()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java354 mDpm.setPermissionGrantState(mAdmin, getPackageName(), in onCreate()
584 mDpm.setPermissionGrantState(mAdmin, getPackageName(), in clearAllPoliciesAndRestrictions()
587 mDpm.setPermissionGrantState(mAdmin, getPackageName(), Manifest.permission.RECORD_AUDIO, in clearAllPoliciesAndRestrictions()
589 mDpm.setPermissionGrantState(mAdmin, getPackageName(), Manifest.permission.CAMERA, in clearAllPoliciesAndRestrictions()
DPermissionLockdownTestActivity.java176 mDevicePolicyManager.setPermissionGrantState(mAdmin, PERMISSION_APP_PACKAGE, in onCheckedChanged()
DByodHelperActivity.java570 mDevicePolicyManager.setPermissionGrantState(mAdminReceiverComponent, getPackageName(), in grantCameraPermissionToSelf()
592 mDevicePolicyManager.setPermissionGrantState(mAdminReceiverComponent, getPackageName(), in grantLocationPermissionToSelf()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/
DBasePermissionsTest.java347 setPermissionGrantState(permissions, true, false); in grantPermissions()
355 setPermissionGrantState(permissions, false, legacyApp); in revokePermissions()
369 private void setPermissionGrantState(String[] permissions, boolean granted, in setPermissionGrantState() method in BasePermissionsTest