Home
last modified time | relevance | path

Searched refs:restriction (Results 1 – 10 of 10) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java91 protected void assertLayeredRestriction(String restriction, boolean expected) { in assertLayeredRestriction() argument
92 assertEquals("Restriction " + restriction + ": expected=" + expected, in assertLayeredRestriction()
93 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()
96 protected void assertOwnerRestriction(String restriction, boolean expected) { in assertOwnerRestriction() argument
97 assertEquals("Restriction " + restriction + ": expected=" + expected, in assertOwnerRestriction()
99 .getBoolean(restriction)); in assertOwnerRestriction()
111 protected void assertSetClearUserRestriction(String restriction) { in assertSetClearUserRestriction() argument
112 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()
114 assertOwnerRestriction(restriction, false); in assertSetClearUserRestriction()
117 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUserRestrictions.java140 public static String getRestrictionLabel(Context context, String restriction) { in getRestrictionLabel() argument
141 final UserRestrictionItem item = findRestrictionItem(restriction); in getRestrictionLabel()
145 public static String getUserAction(Context context, String restriction) { in getUserAction() argument
146 final UserRestrictionItem item = findRestrictionItem(restriction); in getUserAction()
150 private static UserRestrictionItem findRestrictionItem(String restriction) { in findRestrictionItem() argument
151 final UserRestrictionItem item = USER_RESTRICTION_ITEMS.get(restriction); in findRestrictionItem()
153 throw new IllegalArgumentException("Unknown restriction: " + restriction); in findRestrictionItem()
158 public static boolean isValidForPO(String restriction) { in isValidForPO() argument
159 return ALSO_VALID_FOR_PO.contains(restriction); in isValidForPO()
166 public static Intent getUserRestrictionTestIntent(Context context, String restriction) { in getUserRestrictionTestIntent() argument
[all …]
DPolicyTransparencyTestListActivity.java122 for (String restriction : UserRestrictions.getUserRestrictions()) { in addTestsToAdapter()
123 final Intent intent = UserRestrictions.getUserRestrictionTestIntent(this, restriction); in addTestsToAdapter()
124 if (!mIsDeviceOwner && !UserRestrictions.isValidForPO(restriction)) { in addTestsToAdapter()
127 final String title = UserRestrictions.getRestrictionLabel(this, restriction); in addTestsToAdapter()
DByodHelperActivity.java314 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local
315 if (restriction != null) { in onCreate()
317 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local
320 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local
321 if (restriction != null) { in onCreate()
323 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local
DDeviceOwnerPositiveTestActivity.java317 private Intent createSetUserRestrictionIntent(String restriction) { in createSetUserRestrictionIntent() argument
321 .putExtra(CommandReceiverActivity.EXTRA_USER_RESTRICTION, restriction) in createSetUserRestrictionIntent()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceOwnerPasswordTest.java361 private void assertPasswordFails(String password, String restriction) { in assertPasswordFails() argument
364 assertFalse("Password '" + password + "' should have failed on " + restriction, in assertPasswordFails()
371 private void assertPasswordSucceeds(String password, String restriction) { in assertPasswordSucceeds() argument
373 assertTrue("Password '" + password + "' failed on " + restriction, passwordResetResult); in assertPasswordSucceeds()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCustomizationRestrictionsTest.java51 RestrictionApplicator(String restriction) { in RestrictionApplicator() argument
52 mRestriction = restriction; in RestrictionApplicator()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java327 String restriction = "no_debugging_features"; // UserManager.DISALLOW_DEBUGGING_FEATURES in testNoDebuggingFeaturesRestriction() local
330 changeUserRestrictionForUser(restriction, ADD_RESTRICTION_COMMAND, mProfileUserId); in testNoDebuggingFeaturesRestriction()
337 changeUserRestrictionForUser(restriction, ADD_RESTRICTION_COMMAND, mProfileUserId); in testNoDebuggingFeaturesRestriction()
538 String restriction = "no_outgoing_beam"; // UserManager.DISALLOW_OUTGOING_BEAM in testNfcRestriction() local
542 changeUserRestrictionForUser(restriction, command, mProfileUserId); in testNfcRestriction()
/cts/hostsidetests/sustainedperf/dhrystone/
DLICENSE.TXT20 the Software without restriction, including without limitation the rights to
DRationale283 restriction does not hold for the string functions of the C version