Home
last modified time | relevance | path

Searched refs:setUserRestriction (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DUserRestrictionTest.java29 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, true); in testAddDisallowAddManagedProfileRestriction()
33 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false); in testClearDisallowAddManagedProfileRestriction()
37 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, true); in testAddDisallowRemoveManagedProfileRestriction()
41 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, false); in testClearDisallowRemoveManagedProfileRestriction()
45 setUserRestriction(UserManager.DISALLOW_REMOVE_USER, true); in testAddDisallowRemoveUserRestriction()
49 setUserRestriction(UserManager.DISALLOW_REMOVE_USER, false); in testClearDisallowRemoveUserRestriction()
52 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction() method in UserRestrictionTest
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPrivateDnsPolicyTest.java46 setUserRestriction(UserManager.DISALLOW_CONFIG_PRIVATE_DNS, false); in tearDown()
51 setUserRestriction(UserManager.DISALLOW_CONFIG_PRIVATE_DNS, true); in testDisallowPrivateDnsConfigurationRestriction()
57 setUserRestriction(UserManager.DISALLOW_CONFIG_PRIVATE_DNS, false); in testClearDisallowPrivateDnsConfigurationRestriction()
62 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction() method in PrivateDnsPolicyTest
147 setUserRestriction(UserManager.DISALLOW_CONFIG_PRIVATE_DNS, true); in testCanSetModeDespiteUserRestriction()
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java150 setUserRestriction(UserManager.DISALLOW_ADD_MANAGED_PROFILE, false); in testClearDisallowAddManagedProfileRestriction()
155 setUserRestriction(UserManager.DISALLOW_REMOVE_MANAGED_PROFILE, true); in testAddDisallowAddManagedProfileRestriction()
183 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction() method in DeviceAndProfileOwnerTransferOutgoingTest