Home
last modified time | relevance | path

Searched refs:COMPONENT_NAME_VALIDATOR (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DComponentNameListValidator.java19 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
38 return COMPONENT_NAME_VALIDATOR.validate(item); in isItemValid()
DAccessibilityShortcutTargetListValidator.java19 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
44 return (COMPONENT_NAME_VALIDATOR.validate(item) || PACKAGE_NAME_VALIDATOR.validate(item)); in isItemValid()
DSettingsValidators.java88 public static final Validator COMPONENT_NAME_VALIDATOR = new Validator() { field in SettingsValidators
101 return value == null || COMPONENT_NAME_VALIDATOR.validate(value);
DSystemSettingsValidators.java20 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
179 VALIDATORS.put(System.MEDIA_BUTTON_RECEIVER, COMPONENT_NAME_VALIDATOR); in VALIDATORS.put() argument
DSecureSettingsValidators.java25 import static android.provider.settings.validators.SettingsValidators.COMPONENT_NAME_VALIDATOR;
153 VALIDATORS.put(Secure.NFC_PAYMENT_DEFAULT_COMPONENT, COMPONENT_NAME_VALIDATOR); in VALIDATORS.put() argument
/frameworks/base/packages/SettingsProvider/test/src/android/provider/settings/validators/
DSettingsValidatorsTest.java83 assertTrue(SettingsValidators.COMPONENT_NAME_VALIDATOR.validate( in testComponentNameValidator()
85 assertFalse(SettingsValidators.COMPONENT_NAME_VALIDATOR.validate("rectangle")); in testComponentNameValidator()
90 assertFalse(SettingsValidators.COMPONENT_NAME_VALIDATOR.validate(null)); in testComponentNameValidator_onNullValue_returnsFalse()