/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ |
D | BaseUserRestrictionsTest.java | 103 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 …]
|
D | ProfileGlobalRestrictionsTest.java | 23 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/ |
D | PolicyTransparencyTest.java | 73 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()
|
D | CustomizationRestrictionsTest.java | 51 RestrictionApplicator(String restriction) { in RestrictionApplicator() argument 52 mRestriction = restriction; in RestrictionApplicator()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | UserRestrictions.java | 148 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 …]
|
D | PolicyTransparencyTestListActivity.java | 143 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()
|
D | ByodHelperActivity.java | 324 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
|
D | DeviceOwnerPositiveTestActivity.java | 368 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/ |
D | UserRestrictionTest.java | 52 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/ |
D | BluetoothRestrictionTest.java | 125 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/ |
D | DeviceOwnerPasswordTest.java | 362 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/ |
D | ManagedProfileTest.java | 434 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/ |
D | LICENSE.TXT | 20 the Software without restriction, including without limitation the rights to
|
D | Rationale | 283 restriction does not hold for the string functions of the C version
|
/cts/tests/libcore/javautilcollections/libs/ |
D | guava-20.0.jar | META-INF/MANIFEST.MF
META-INF/
META-INF/maven/
META- ... |