Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DBaseUserRestrictionsTest.java103 protected void assertLayeredRestriction(String restriction, boolean expected) { in assertLayeredRestriction() argument
104 assertEquals("Restriction " + restriction + ": expected=" + expected, in assertLayeredRestriction()
105 expected, mUserManager.hasUserRestriction(restriction)); in assertLayeredRestriction()
108 protected void assertOwnerRestriction(String restriction, boolean expected) { in assertOwnerRestriction() argument
109 assertEquals("Restriction " + restriction + ": expected=" + expected, in assertOwnerRestriction()
111 .getBoolean(restriction)); in assertOwnerRestriction()
123 protected void assertSetClearUserRestriction(String restriction) { in assertSetClearUserRestriction() argument
124 final boolean hadRestriction = mUserManager.hasUserRestriction(restriction); in assertSetClearUserRestriction()
126 assertOwnerRestriction(restriction, false); in assertSetClearUserRestriction()
129 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in assertSetClearUserRestriction()
[all …]
DProfileGlobalRestrictionsTest.java23 private void assertRestriction(String restriction, boolean expected) { in assertRestriction() argument
25 expected, mUserManager.hasUserRestriction(restriction)); in assertRestriction()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPolicyTransparencyTest.java73 private void runTestForRestriction(String restriction) throws Exception { in runTestForRestriction() argument
74 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in runTestForRestriction()
76 Intent intent = mDevicePolicyManager.createAdminSupportIntent(restriction); in runTestForRestriction()
80 assertEquals(restriction, intent.getStringExtra(DevicePolicyManager.EXTRA_RESTRICTION)); in runTestForRestriction()
82 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in runTestForRestriction()
83 intent = mDevicePolicyManager.createAdminSupportIntent(restriction); in runTestForRestriction()
DCustomizationRestrictionsTest.java51 RestrictionApplicator(String restriction) { in RestrictionApplicator() argument
52 mRestriction = restriction; in RestrictionApplicator()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUserRestrictions.java148 public static String getRestrictionLabel(Context context, String restriction) { in getRestrictionLabel() argument
149 final UserRestrictionItem item = findRestrictionItem(restriction); in getRestrictionLabel()
153 public static String getUserAction(Context context, String restriction) { in getUserAction() argument
154 final UserRestrictionItem item = findRestrictionItem(restriction); in getUserAction()
158 private static UserRestrictionItem findRestrictionItem(String restriction) { in findRestrictionItem() argument
159 final UserRestrictionItem item = USER_RESTRICTION_ITEMS.get(restriction); in findRestrictionItem()
161 throw new IllegalArgumentException("Unknown restriction: " + restriction); in findRestrictionItem()
184 public static Intent getUserRestrictionTestIntent(Context context, String restriction) { in getUserRestrictionTestIntent() argument
185 final UserRestrictionItem item = USER_RESTRICTION_ITEMS.get(restriction); in getUserRestrictionTestIntent()
189 .putExtra(CommandReceiverActivity.EXTRA_USER_RESTRICTION, restriction) in getUserRestrictionTestIntent()
[all …]
DPolicyTransparencyTestListActivity.java143 for (String restriction : in addTestsToAdapter()
145 final Intent intent = UserRestrictions.getUserRestrictionTestIntent(this, restriction); in addTestsToAdapter()
146 if (!UserRestrictions.isRestrictionValid(this, restriction)) { in addTestsToAdapter()
149 final String title = UserRestrictions.getRestrictionLabel(this, restriction); in addTestsToAdapter()
DByodHelperActivity.java324 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local
325 if (restriction != null) { in onCreate()
327 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local
330 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local
331 if (restriction != null) { in onCreate()
333 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local
DDeviceOwnerPositiveTestActivity.java368 private Intent createSetUserRestrictionIntent(String restriction) { in createSetUserRestrictionIntent() argument
372 .putExtra(CommandReceiverActivity.EXTRA_USER_RESTRICTION, restriction) in createSetUserRestrictionIntent()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/
DUserRestrictionTest.java52 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction() argument
56 dpm.addUserRestriction(admin, restriction); in setUserRestriction()
58 dpm.clearUserRestriction(admin, restriction); in setUserRestriction()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java125 private void testOppDisabledWhenRestrictionSet(String restriction) { in testOppDisabledWhenRestrictionSet() argument
127 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in testOppDisabledWhenRestrictionSet() local
134 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in testOppDisabledWhenRestrictionSet() local
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceOwnerPasswordTest.java362 private void assertPasswordFails(String password, String restriction) { in assertPasswordFails() argument
365 assertFalse("Password '" + password + "' should have failed on " + restriction, in assertPasswordFails()
372 private void assertPasswordSucceeds(String password, String restriction) { in assertPasswordSucceeds() argument
374 assertTrue("Password '" + password + "' failed on " + restriction, passwordResetResult); in assertPasswordSucceeds()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java434 String restriction = "no_debugging_features"; // UserManager.DISALLOW_DEBUGGING_FEATURES in testNoDebuggingFeaturesRestriction() local
436 changeUserRestrictionOrFail(restriction, true, mProfileUserId); in testNoDebuggingFeaturesRestriction()
442 changeUserRestriction(restriction, true, mProfileUserId); in testNoDebuggingFeaturesRestriction()
/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
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...