Home
last modified time | relevance | path

Searched defs:restriction (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java112 protected void assertLayeredRestriction(String restriction, boolean expected) { in assertLayeredRestriction()
117 protected void assertOwnerRestriction(String restriction, boolean expected) { in assertOwnerRestriction()
124 protected boolean hasBaseUserRestriction(String restriction, UserHandle userHandle) { in hasBaseUserRestriction()
146 protected void assertSetClearUserRestriction(String restriction) { in assertSetClearUserRestriction()
169 protected void assertClearUserRestriction(String restriction) { in assertClearUserRestriction()
184 protected void assertCannotSetUserRestriction(String restriction) { in assertCannotSetUserRestriction()
292 final String restriction = UserManager.DISALLOW_CONFIG_WIFI; in testBroadcast() local
DProfileGlobalRestrictionsTest.java23 private void assertRestriction(String restriction, boolean expected) { in assertRestriction()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DOrgOwnedProfileOwnerParentTest.java121 private void testAddGetAndClearUserRestriction_onParent(String restriction) { in testAddGetAndClearUserRestriction_onParent()
141 private void testUnableToAddBaseUserRestriction(String restriction) { in testUnableToAddBaseUserRestriction()
147 private void testUnableToClearBaseUserRestriction(String restriction) { in testUnableToClearBaseUserRestriction()
DPolicyTransparencyTest.java73 private void runTestForRestriction(String restriction) throws Exception { in runTestForRestriction()
DResetPasswordWithTokenTest.java631 private void assertPasswordFails(String password, String restriction) { in assertPasswordFails()
642 private void assertPasswordSucceeds(String password, String restriction) { in assertPasswordSucceeds()
DCustomizationRestrictionsTest.java49 RestrictionApplicator(String restriction) { in RestrictionApplicator()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPrivateDnsPolicyTest.java61 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction()
63 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in setUserRestriction() local
65 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in setUserRestriction() local
DBluetoothRestrictionTest.java125 private void testOppDisabledWhenRestrictionSet(String restriction) { in testOppDisabledWhenRestrictionSet()
127 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in testOppDisabledWhenRestrictionSet() local
134 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in testOppDisabledWhenRestrictionSet() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUserRestrictions.java187 public static String getRestrictionLabel(Context context, String restriction) { in getRestrictionLabel()
192 public static String getUserAction(Context context, String restriction) { in getUserAction()
197 private static UserRestrictionItem findRestrictionItem(String restriction) { in findRestrictionItem()
224 public static Intent getUserRestrictionTestIntent(Context context, String restriction) { in getUserRestrictionTestIntent()
242 public static boolean isRestrictionValid(Context context, String restriction) { in isRestrictionValid()
DByodHelperActivity.java340 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local
343 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local
346 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local
349 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local
548 private boolean isRestrictionSet(String restriction) { in isRestrictionSet()
555 private void setRestriction(String restriction, boolean enabled) { in setRestriction()
563 private void setRestrictionAndSaveOriginal(String restriction, boolean enabled) { in setRestrictionAndSaveOriginal()
572 public void restoreOriginalRestriction(String restriction) { in restoreOriginalRestriction()
DCommandReceiverActivity.java673 public static Intent createSetDeviceOwnerUserRestrictionIntent(String restriction, in createSetDeviceOwnerUserRestrictionIntent()
681 public static Intent createSetCurrentUserRestrictionIntent(String restriction, in createSetCurrentUserRestrictionIntent()
686 private static Intent createSetUserRestrictionIntent(String restriction, boolean enforced, in createSetUserRestrictionIntent()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DUserRestrictionTest.java35 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction()
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferOutgoingTest.java173 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java151 String restriction = "no_debugging_features"; // UserManager.DISALLOW_DEBUGGING_FEATURES in testNoDebuggingFeaturesRestriction() local
DDeviceAndProfileOwnerTest.java2074 String restriction = getDevice().executeShellCommand(RESTRICT_BACKGROUND_GET_CMD); in ensureRestrictBackgroundPolicyOff() local
DBaseDevicePolicyTest.java1258 protected boolean isRestrictionSetOnUser(int userId, String restriction) throws Exception { in isRestrictionSetOnUser()