| /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/ |
| D | BaseUserRestrictionsTest.java | 121 protected void assertLayeredRestriction(String restriction, boolean expected) { in assertLayeredRestriction() 126 protected void assertOwnerRestriction(String restriction, boolean expected) { in assertOwnerRestriction() 133 protected boolean hasBaseUserRestriction(String restriction, UserHandle userHandle) { in hasBaseUserRestriction() 155 protected void assertSetClearUserRestriction(String restriction) { in assertSetClearUserRestriction() 178 protected void assertClearUserRestriction(String restriction) { in assertClearUserRestriction() 193 protected void assertCannotSetUserRestriction(String restriction) { in assertCannotSetUserRestriction() 301 final String restriction = UserManager.DISALLOW_CONFIG_WIFI; in testBroadcast() local
|
| D | ProfileGlobalRestrictionsTest.java | 23 private void assertRestriction(String restriction, boolean expected) { in assertRestriction()
|
| /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
| D | OrgOwnedProfileOwnerParentTest.java | 121 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()
|
| D | PolicyTransparencyTest.java | 66 private void runTestForRestriction(String restriction) throws Exception { in runTestForRestriction()
|
| D | CustomizationRestrictionsTest.java | 49 RestrictionApplicator(String restriction) { in RestrictionApplicator()
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
| D | UserRestrictions.java | 221 public static String getRestrictionLabel(Context context, String restriction) { in getRestrictionLabel() 226 public static String getUserAction(Context context, String restriction) { in getUserAction() 231 private static UserRestrictionItem findRestrictionItem(String restriction) { in findRestrictionItem() 261 public static Intent getUserRestrictionTestIntent(Context context, String restriction, in getUserRestrictionTestIntent() 279 public static boolean isRestrictionValid(Context context, String restriction) { in isRestrictionValid() 400 private static boolean isOnlyValidForDeviceOwnerOrPrimaryUser(String restriction) { in isOnlyValidForDeviceOwnerOrPrimaryUser()
|
| D | ByodHelperActivity.java | 353 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local 356 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local 359 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local 362 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local 561 private boolean isRestrictionSet(String restriction) { in isRestrictionSet() 568 private void setRestriction(String restriction, boolean enabled) { in setRestriction() 576 private void setRestrictionAndSaveOriginal(String restriction, boolean enabled) { in setRestrictionAndSaveOriginal() 585 public void restoreOriginalRestriction(String restriction) { in restoreOriginalRestriction()
|
| D | CommandReceiverActivity.java | 786 public static Intent createSetDeviceOwnerUserRestrictionIntent(String restriction, in createSetDeviceOwnerUserRestrictionIntent() 794 public static Intent createSetCurrentUserRestrictionIntent(String restriction, in createSetCurrentUserRestrictionIntent() 799 private static Intent createSetUserRestrictionIntent(String restriction, boolean enforced, in createSetUserRestrictionIntent()
|
| /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
| D | PrivateDnsPolicyTest.java | 61 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
|
| D | BluetoothRestrictionTest.java | 150 private void testOppDisabledWhenRestrictionSet(String restriction, in testOppDisabledWhenRestrictionSet() 326 private void addUserRestriction(String restriction) { in addUserRestriction() 328 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in addUserRestriction() local 331 private void clearUserRestriction(String restriction) { in clearUserRestriction() 333 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in clearUserRestriction() local
|
| /cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/provisioning/ |
| D | UserRestrictionTest.java | 35 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction()
|
| /cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/ |
| D | DeviceAndProfileOwnerTransferOutgoingTest.java | 173 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction()
|
| /cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
| D | ManagedProfileTest.java | 162 String restriction = "no_debugging_features"; // UserManager.DISALLOW_DEBUGGING_FEATURES in testNoDebuggingFeaturesRestriction() local
|
| D | DeviceAndProfileOwnerTest.java | 1703 String restriction = getDevice().executeShellCommand(RESTRICT_BACKGROUND_GET_CMD); in ensureRestrictBackgroundPolicyOff() local
|
| D | BaseDevicePolicyTest.java | 1296 protected boolean isRestrictionSetOnUser(int userId, String restriction) throws Exception { in isRestrictionSetOnUser()
|