Home
last modified time | relevance | path

Searched refs:PERMISSION_GRANT_STATE_GRANTED (Results 1 – 8 of 8) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPermissionGrantTest.java31 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
140 READ_SMS, PERMISSION_GRANT_STATE_GRANTED); in getPermissionGrantState_smsPermission_notAbleToSetState_alsoCantReadState() local
170 permission, PERMISSION_GRANT_STATE_GRANTED); in getPermissionGrantState_sensorPermission_notAbleToSetState_alsoCantReadState() local
231 GRANTABLE_PERMISSION, PERMISSION_GRANT_STATE_GRANTED); in grantPermission_setsGrantState()
239 .isEqualTo(PERMISSION_GRANT_STATE_GRANTED); in grantPermission_setsGrantState()
285 GRANTABLE_PERMISSION, PERMISSION_GRANT_STATE_GRANTED); in grantPermission_permissionIsGranted() local
328 permission, PERMISSION_GRANT_STATE_GRANTED); in grantPermission_doesNotApply_permissionIsNotGranted() local
350 DEVELOPMENT_PERMISSION, PERMISSION_GRANT_STATE_GRANTED); in grantDevelopmentPermission_cannotGrant()
358 .isNotEqualTo(PERMISSION_GRANT_STATE_GRANTED); in grantDevelopmentPermission_cannotGrant()
426 READ_SMS, PERMISSION_GRANT_STATE_GRANTED); in grantSmsPermission_setsGrantState()
[all …]
DAdminPermissionControlParamsTests.java35 private static final int GRANT_STATE = DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java22 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
155 setPermissionGrantState(CUSTOM_PERM_A_NAME, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantStateDenied_otherPermissionIsGranted()
158 assertPermissionGrantState(CUSTOM_PERM_A_NAME, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantStateDenied_otherPermissionIsGranted()
177 setPermissionGrantState(READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantStateGranted()
179 assertPermissionGrantState(READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantStateGranted()
188 setPermissionGrantState(READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantStateGranted_mixedPolicies()
216 assertCannotSetPermissionGrantStatePreMApp(READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantState_preMApp_preQDeviceAdmin()
236 assertCanSetPermissionGrantStatePreMApp(READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testPermissionGrantState_preMApp()
252 case PERMISSION_GRANT_STATE_GRANTED: in assertCanSetPermissionGrantStatePreMApp()
DDevicePolicyLoggingTest.java28 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
148 PACKAGE_NAME, READ_CONTACTS, PERMISSION_GRANT_STATE_GRANTED); in testSetPermissionGrantStateLogged()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DPermissionLockdownTestActivity.java126 if (readPermissionState == DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED || in buildLayout()
127 writePermissionState == DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED) { in buildLayout()
128 currentPermissionState = DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED; in buildLayout()
137 case DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED: { in buildLayout()
192 permissionGrantState = DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED; in onCheckedChanged()
DEnterprisePrivacyTestListActivity.java125 DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED)), in buildAdminGrantedPermissionTest()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DPermissionGrantDelegateTest.java20 import static android.app.admin.DevicePolicyManager.PERMISSION_GRANT_STATE_GRANTED;
56 PERMISSION_GRANT_STATE_GRANTED); in testCannotAccessApis()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java186 private static final int PERMISSION_GRANT_STATE_GRANTED = 1; field in DeviceAndProfileOwnerTest
1519 .setInt(PERMISSION_GRANT_STATE_GRANTED) in testSetPermissionGrantStateLogged()