Home
last modified time | relevance | path

Searched refs:validators (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/core/java/android/service/autofill/
DValidators.java42 public static Validator and(@NonNull Validator...validators) { in and() argument
43 return new RequiredValidators(getInternalValidators(validators)); in and()
55 public static Validator or(@NonNull Validator...validators) { in or() argument
56 return new OptionalValidators(getInternalValidators(validators)); in or()
74 private static InternalValidator[] getInternalValidators(Validator[] validators) { in getInternalValidators() argument
75 Preconditions.checkArrayElementsNotNull(validators, "validators"); in getInternalValidators()
77 final InternalValidator[] internals = new InternalValidator[validators.length]; in getInternalValidators()
79 for (int i = 0; i < validators.length; i++) { in getInternalValidators()
80 Preconditions.checkArgument((validators[i] instanceof InternalValidator), in getInternalValidators()
81 "element " + i + " not provided by Android System: " + validators[i]); in getInternalValidators() local
[all …]
DOptionalValidators.java42 OptionalValidators(@NonNull InternalValidator[] validators) { in OptionalValidators() argument
43 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in OptionalValidators()
DRequiredValidators.java42 RequiredValidators(@NonNull InternalValidator[] validators) { in RequiredValidators() argument
43 mValidators = Preconditions.checkArrayElementsNotNull(validators, "validators"); in RequiredValidators()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSecureSettingsValidators.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.ACCESSIBILITY_SHORTCUT_TARGET…
20 import static android.provider.settings.validators.SettingsValidators.ANY_INTEGER_VALIDATOR;
21 import static android.provider.settings.validators.SettingsValidators.BOOLEAN_VALIDATOR;
22 import static android.provider.settings.validators.SettingsValidators.COLON_SEPARATED_COMPONENT_LIS…
23 import static android.provider.settings.validators.SettingsValidators.COLON_SEPARATED_PACKAGE_LIST_…
24 import static android.provider.settings.validators.SettingsValidators.COMMA_SEPARATED_COMPONENT_LIS…
25 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
26 import static android.provider.settings.validators.SettingsValidators.JSON_OBJECT_VALIDATOR;
27 import static android.provider.settings.validators.SettingsValidators.LOCALE_VALIDATOR;
[all …]
DAccessibilityShortcutTargetListValidator.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
20 import static android.provider.settings.validators.SettingsValidators.PACKAGE_NAME_VALIDATOR;
DTTSListValidator.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;
20 import static android.provider.settings.validators.SettingsValidators.LOCALE_VALIDATOR;
DGlobalSettingsValidators.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.ANY_INTEGER_VALIDATOR;
20 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;
21 import static android.provider.settings.validators.SettingsValidators.BOOLEAN_VALIDATOR;
22 import static android.provider.settings.validators.SettingsValidators.PACKAGE_NAME_VALIDATOR;
23 import static android.provider.settings.validators.SettingsValidators.PERCENTAGE_INTEGER_VALIDATOR;
DSystemSettingsValidators.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.BOOLEAN_VALIDATOR;
20 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
21 import static android.provider.settings.validators.SettingsValidators.DATE_FORMAT_VALIDATOR;
22 import static android.provider.settings.validators.SettingsValidators.LENIENT_IP_ADDRESS_VALIDATOR;
23 import static android.provider.settings.validators.SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATO…
24 import static android.provider.settings.validators.SettingsValidators.URI_VALIDATOR;
25 import static android.provider.settings.validators.SettingsValidators.VIBRATION_INTENSITY_VALIDATOR;
DTileListValidator.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.ANY_STRING_VALIDATOR;
DComponentNameListValidator.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
DPackageNameListValidator.java17 package android.provider.settings.validators;
19 import static android.provider.settings.validators.SettingsValidators.PACKAGE_NAME_VALIDATOR;
DValidator.java17 package android.provider.settings.validators;
DDiscreteValueValidator.java17 package android.provider.settings.validators;
DInclusiveIntegerRangeValidator.java17 package android.provider.settings.validators;
DInclusiveFloatRangeValidator.java17 package android.provider.settings.validators;
DListValidator.java17 package android.provider.settings.validators;
DSettingsValidators.java17 package android.provider.settings.validators;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java41 import android.provider.settings.validators.GlobalSettingsValidators;
42 import android.provider.settings.validators.SecureSettingsValidators;
43 import android.provider.settings.validators.SystemSettingsValidators;
44 import android.provider.settings.validators.Validator;
848 Map<String, Validator> validators = null; in getBackupWhitelist() local
853 validators = SecureSettingsValidators.VALIDATORS; in getBackupWhitelist()
857 validators = SystemSettingsValidators.VALIDATORS; in getBackupWhitelist()
861 validators = GlobalSettingsValidators.VALIDATORS; in getBackupWhitelist()
866 return new SettingsBackupWhitelist(whitelist, validators); in getBackupWhitelist()
888 Map<String, Validator> validators) { in isValidSettingValue() argument
[all …]
DSettingsProvider.java81 import android.provider.settings.validators.SystemSettingsValidators;
82 import android.provider.settings.validators.Validator;
/frameworks/base/packages/SettingsProvider/test/src/android/provider/settings/validators/
DSettingsValidatorsTest.java17 package android.provider.settings.validators;
355 private String getOffenders(String[] settingsToBackup, Map<String, Validator> validators) { in getOffenders() argument
358 if (validators.get(setting) == null) { in getOffenders()
/frameworks/base/packages/SettingsProvider/
DAndroid.bp29 "src/android/provider/settings/validators/*",
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DSettingsBackupAgentTest.java35 import android.provider.settings.validators.SettingsValidators;
36 import android.provider.settings.validators.Validator;