/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | UserRestrictionsTest.java | 178 public void getUserRestrictions_allDefaultUserRestrictions_returnFalse( in getUserRestrictions_allDefaultUserRestrictions_returnFalse() 188 public void getUserRestrictions_containsAddedRestriction( in getUserRestrictions_containsAddedRestriction() 195 sDeviceState.dpc().componentName(), restriction); in getUserRestrictions_containsAddedRestriction() local 204 sDeviceState.dpc().componentName(), restriction); in getUserRestrictions_containsAddedRestriction() local 211 public void hasUserRestriction_containsAddedRestriction( in hasUserRestriction_containsAddedRestriction() 218 sDeviceState.dpc().componentName(), restriction); in hasUserRestriction_containsAddedRestriction() local 224 sDeviceState.dpc().componentName(), restriction); in hasUserRestriction_containsAddedRestriction() local 232 public void hasUserRestriction_clearUserRestriction_restrictionIsRemoved( in hasUserRestriction_clearUserRestriction_restrictionIsRemoved() 239 sDeviceState.dpc().componentName(), restriction); in hasUserRestriction_clearUserRestriction_restrictionIsRemoved() local 242 sDeviceState.dpc().componentName(), restriction); in hasUserRestriction_clearUserRestriction_restrictionIsRemoved() local [all …]
|
D | BluetoothTest.java | 148 private void clearUserRestriction(String restriction) { in clearUserRestriction() 151 sDeviceState.dpc().componentName(), restriction); in clearUserRestriction() local
|
/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() 299 final String restriction = UserManager.DISALLOW_CONFIG_WIFI; in testBroadcast() local
|
D | ProfileGlobalRestrictionsTest.java | 23 private void assertRestriction(String restriction, boolean expected) { in assertRestriction()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | UserRestrictionsContext.java | 51 public UserRestrictionsContext set(String restriction) { in set() 60 public UserRestrictionsContext unset(String restriction) { in unset() 85 private void setNoCheck(String restriction) { in setNoCheck() 95 private void unsetNoCheck(String restriction) { in unsetNoCheck()
|
D | UserRestrictions.java | 57 public boolean isSet(String restriction) { in isSet() 67 public void set(String restriction, boolean set) throws AdbException { in set()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | OrgOwnedProfileOwnerParentTest.java | 120 private void testAddGetAndClearUserRestriction_onParent(String restriction) { in testAddGetAndClearUserRestriction_onParent() 140 private void testUnableToAddBaseUserRestriction(String restriction) { in testUnableToAddBaseUserRestriction() 146 private void testUnableToClearBaseUserRestriction(String restriction) { in testUnableToClearBaseUserRestriction()
|
D | CustomizationRestrictionsTest.java | 52 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 | 348 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local 351 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local 354 final String restriction = intent.getStringExtra(EXTRA_PARAMETER_1); in onCreate() local 357 DeviceAdminTestReceiver.getReceiverComponentName(), restriction); in onCreate() local 556 private boolean isRestrictionSet(String restriction) { in isRestrictionSet() 563 private void setRestriction(String restriction, boolean enabled) { in setRestriction() 571 private void setRestrictionAndSaveOriginal(String restriction, boolean enabled) { in setRestrictionAndSaveOriginal() 580 public void restoreOriginalRestriction(String restriction) { in restoreOriginalRestriction()
|
D | CommandReceiverActivity.java | 794 public static Intent createSetDeviceOwnerUserRestrictionIntent(String restriction, in createSetDeviceOwnerUserRestrictionIntent() 802 public static Intent createSetCurrentUserRestrictionIntent(String restriction, in createSetCurrentUserRestrictionIntent() 807 private static Intent createSetUserRestrictionIntent(String restriction, boolean enforced, in createSetUserRestrictionIntent()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BluetoothRestrictionTest.java | 262 private void addUserRestriction(String restriction) { in addUserRestriction() 264 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in addUserRestriction() local 267 private void clearUserRestriction(String restriction) { in clearUserRestriction() 269 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in clearUserRestriction() local
|
D | PrivateDnsPolicyTest.java | 62 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction() 64 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in setUserRestriction() local 66 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in setUserRestriction() local
|
/cts/hostsidetests/multiuser/dpc/src/com/android/cts/multiuser/dpc/ |
D | DpcShellCommand.java | 72 String restriction = mArgs[1]; in runAddUserRestriction() local 78 String restriction = mArgs[1]; in runClearUserRestriction() 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/multiuser/src/android/host/multiuser/ |
D | DpcCommander.java | 61 public void addUserRestriction(String restriction) throws DeviceNotAvailableException { in addUserRestriction() 65 public void clearUserRestriction(String restriction) throws DeviceNotAvailableException { in clearUserRestriction()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerShellCommandUserRestrictionTest.java | 88 private boolean hasUserRestriction(int userId, String restriction) throws Exception { in hasUserRestriction()
|
/cts/hostsidetests/devicepolicy/app/TransferOwnerOutgoingApp/src/com/android/cts/transferowner/ |
D | DeviceAndProfileOwnerTransferOutgoingTest.java | 141 private void setUserRestriction(String restriction, boolean add) { in setUserRestriction()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ManagedProfileTest.java | 124 String restriction = "no_debugging_features"; // UserManager.DISALLOW_DEBUGGING_FEATURES in testNoDebuggingFeaturesRestriction() local
|
D | DeviceAndProfileOwnerTest.java | 1274 String restriction = getDevice().executeShellCommand(RESTRICT_BACKGROUND_GET_CMD); in ensureRestrictBackgroundPolicyOff() local
|
D | BaseDevicePolicyTest.java | 1268 protected boolean isRestrictionSetOnUser(int userId, String restriction) throws Exception { in isRestrictionSetOnUser()
|