/external/chromium/chrome/common/ |
json_schema_validator_unittest.cc | 20 JSONSchemaValidator validator(schema, types); 21 if (validator.Validate(instance)) 24 for (size_t i = 0; i < validator.errors().size(); ++i) { 26 << validator.errors()[i].path << ": " 27 << validator.errors()[i].message; 36 JSONSchemaValidator validator(schema, types); 37 if (validator.Validate(instance)) { 42 ASSERT_EQ(1u, validator.errors().size()) << test_source; 43 EXPECT_EQ(expected_error_path, validator.errors()[0].path) << test_source; 44 EXPECT_EQ(expected_error_message, validator.errors()[0].message [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
ChipsAddressTextView.java | 25 * This is a MultiAutoCompleteTextView which has a custom validator. 28 /** A noop validator that does not munge invalid texts. */ 29 private class ForwardValidator implements Validator { 30 private Validator mValidator = null; 40 public void setValidator(Validator validator) { 41 mValidator = validator; 53 public void setValidator(Validator validator) { 54 mInternalValidator.setValidator(validator); [all...] |
AddressTextView.java | 30 private class ForwardValidator implements Validator { 31 private Validator mValidator = null; 42 public void setValidator(Validator validator) { 43 mValidator = validator; 56 public void setValidator(Validator validator) { 57 mInternalValidator.setValidator(validator);
|
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/repository/ |
ValidateRepositoryXmlTest.java | 32 import javax.xml.validation.Validator;
37 * Tests local validation of an SDK Repository sample XMLs using an XML Schema validator.
53 * Helper method that returns a validator for our Repository XSD
59 private Validator getRepoValidator(int version, @Nullable CaptureErrorHandler handler)
61 Validator validator = null;
local 66 validator = schema.newValidator();
69 validator.setErrorHandler(handler);
73 return validator;
110 Validator validator = getRepoValidator(1, handler); local 122 Validator validator = getRepoValidator(2, handler); local 134 Validator validator = getRepoValidator(3, handler); local 146 Validator validator = getRepoValidator(4, handler); local 159 Validator validator = getRepoValidator(5, handler); local 178 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, handler); local 201 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, handler); local 216 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, null); local 238 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, null); local 260 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, null); local 288 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, null); local 314 Validator validator = getRepoValidator(SdkRepoConstants.NS_LATEST_VERSION, null); local [all...] |
ValidateAddonXmlTest.java | 32 import javax.xml.validation.Validator;
37 * Tests local validation of an SDK Addon sample XMLs using an XML Schema validator.
50 * Helper method that returns a validator for our Addon XSD
56 private Validator getAddonValidator(int version, @Nullable CaptureErrorHandler handler)
58 Validator validator = null;
local 63 validator = schema.newValidator();
65 validator.setErrorHandler(handler);
69 return validator;
106 Validator validator = getAddonValidator(1, handler); local 118 Validator validator = getAddonValidator(2, handler); local 130 Validator validator = getAddonValidator(3, handler); local 161 Validator validator = getAddonValidator(SdkAddonConstants.NS_LATEST_VERSION, null); local [all...] |
/external/chromium/chrome/common/extensions/docs/examples/extensions/fx/ |
content.js | 20 // |validator| is a function which should return true if the event is 22 function handleEvent(event, type, validator) { 23 if (validator) { 24 if (!validator(event)) { 39 function listenAndCoalesce(target, type, validator) { 41 handleEvent(event, type, validator);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
ResourceNameValidatorTest.java | 30 ResourceNameValidator validator = ResourceNameValidator.create(true, local 32 assertTrue(validator.isValid("foo") == null); 33 assertTrue(validator.isValid("foo.xml") == null); 34 assertTrue(validator.isValid("Foo123_$") == null); 37 assertTrue(validator.isValid("") != null); 38 assertTrue(validator.isValid(" ") != null); 39 assertTrue(validator.isValid("foo.xm") != null); 40 assertTrue(validator.isValid("foo bar") != null); 41 assertTrue(validator.isValid("1foo") != null); 42 assertTrue(validator.isValid("foo%bar") != null) [all...] |
/frameworks/ex/common/tests/src/com/android/common/ |
Rfc822ValidatorTest.java | 30 Rfc822Validator validator = new Rfc822Validator("gmail.com"); local 37 assertTrue(email + " should be a valid email address", validator.isValid(email)); 45 assertFalse(email + " should not be a valid email address", validator.isValid(email)); 55 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); 61 Rfc822Validator validator = new Rfc822Validator(null); local 70 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString()); 76 Rfc822Validator validator = new Rfc822Validator("google.com"); local 77 validator.setRemoveInvalid(true); 86 assertEquals(e.getValue(), validator.fixText(e.getKey()).toString());
|
/libcore/luni/src/main/java/javax/xml/validation/ |
Validator.java | 17 // $Id: Validator.java 888884 2009-12-09 17:36:46Z mrglavas $ 34 * A validator is a thread-unsafe and non-reentrant object. 36 * sure that one {@link Validator} object is not used from 50 public abstract class Validator { 59 * Derived classes must create {@link Validator} objects that have 63 protected Validator() { 67 * <p>Reset this <code>Validator</code> to its original configuration.</p> 69 * <p><code>Validator</code> is reset to the same state as when it was created with 71 * <code>reset()</code> is designed to allow the reuse of existing <code>Validator</code>s 72 * thus saving resources associated with the creation of new <code>Validator</code>s.</p [all...] |
Schema.java | 44 * One is {@link Validator}, which provides highly-level validation 74 * Creates a new {@link Validator} for this {@link Schema}. 77 * A validator enforces/checks the set of constraints this object 83 public abstract Validator newValidator();
|
TypeInfoProvider.java | 28 * Some schema languages, such as W3C XML Schema, encourages a validator 71 * null if the validator is unable to 73 * (for example, if the validator is recovering from 106 * null if the validator is unable to 147 * Returns <tt>false</tt> if the attribute was added by the validator. 162 * false if it was added by the validator. 176 * <tt>true</tt> if the attribute was present before the validator 178 * by the validator.
|
package.html | 69 // create a Validator instance, which can be used to validate an instance document 70 Validator validator = schema.newValidator(); 74 validator.validate(new DOMSource(document));
|
/packages/apps/Email/src/com/android/email/ |
EmailAddressValidator.java | 21 import android.widget.AutoCompleteTextView.Validator; 23 public class EmailAddressValidator implements Validator {
|
/external/llvm/docs/ |
CFEBuildInstrs.html | 19 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img 20 src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a> 21 <a href="http://validator.w3.org/check/referer"><img
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/ |
CyclicDependencyValidator.java | 26 /** A validator which checks for cyclic dependencies */ 42 * Creates a validator which ensures that the chosen id is not for a layout that is 48 * @return a validator which checks whether resource ids are valid or whether they
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/sdk/ |
TestLayoutDevicesXsd.java | 28 import javax.xml.validation.Validator;
33 * Tests local validation of a Layout-Devices sample XMLs using an XML Schema validator.
119 // don't capture the validator errors, we want it to fail and catch the exception
120 Validator validator = LayoutDevicesXsd.getValidator(null);
local 122 validator.validate(source);
128 // If we get here, the validator has not failed as we expected it to.
136 Validator validator = LayoutDevicesXsd.getValidator(null);
local 137 validator.validate(source); 151 Validator validator = LayoutDevicesXsd.getValidator(handler); local [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
CertPathValidator.java | 91 * Returns a new certification path validator for the specified algorithm. 95 * @return a certification path validator for the requested algorithm. 111 * Returns a new certification path validator for the specified algorithm 118 * @return a certification path validator for the requested algorithm. 142 * Returns a new certification path validator for the specified algorithm 149 * @return a certification path validator for the requested algorithm. 176 * the certification path validator algorithm parameters.
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
LayoutDevicesXsd.java | 29 import javax.xml.validation.Validator;
123 /** Helper method that returns a {@link Validator} for our XSD */
124 public static Validator getValidator(ErrorHandler handler) throws SAXException {
128 Validator validator = schema.newValidator();
local 130 validator.setErrorHandler(handler);
133 return validator;
|
/external/webkit/Tools/Scripts/webkitpy/common/config/ |
committervalidator_unittest.py | 36 validator = CommitterValidator(bugzilla=None) 37 self.assertEqual(validator._committers_py_path(), "Tools/Scripts/webkitpy/common/config/committers.py") 43 self.assertEqual(validator._flag_permission_rejection_message("foo@foo.com", "review"), expected_messsage)
|
/external/freetype/include/freetype/internal/ |
ftvalid.h | 79 /* validator structure */ 101 /* Do not use this. It's broken and will cause your validator to crash */ 106 /* Sets the error field in a validator, then calls `longjmp' to return */ 116 /* holds a pointer to the current validator object. */
|
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/ |
LargeAssetTest.java | 39 Validator mValidateThread; 55 mValidateThread = new Validator(); 63 class Validator extends AsyncTask<AssetManager, Integer, Boolean> { 64 static final String TAG = "Validator";
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/resources/uimodel/ |
UiColorValueNode.java | 34 * Displays and edits a color XML element value with a custom validator. 70 // Make sure the validator removes its message(s) when the widget is disposed 77 // Finally call the validator once to make sure the initial value is processed
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/repository/ |
AddonsListFetcher.java | 49 import javax.xml.validation.Validator;
342 * If we can't find a validator, returns null and set validatorFound[0] to false.
353 Validator validator = getValidator(version);
local 355 if (validator == null) {
358 "XML verification failed for %1$s.\nNo suitable XML Schema Validator could be found in your Java environment. Please consider updating your version of Java.",
369 validator.validate(new StreamSource(xml));
390 * Helper method that returns a validator for our XSD, or null if the current Java
396 private Validator getValidator(int version) throws SAXException {
407 Validator validator = schema == null ? null : schema.newValidator(); local [all...] |
/frameworks/base/core/java/android/net/http/ |
CertificateChainValidator.java | 51 * The singleton instance of the certificate chain validator 57 * @return The singleton instance of the certificates chain validator 64 * Creates a new certificate chain validator. This is a private constructor. 65 * If you need a Certificate chain validator, call getInstance().
|
/frameworks/ex/common/java/com/android/common/ |
Rfc822Validator.java | 27 * This class works as a Validator for AutoCompleteTextView for 40 public class Rfc822Validator implements AutoCompleteTextView.Validator { 55 * Constructs a new validator that uses the specified domain name as 74 * Specify if the validator should remove invalid tokens instead of trying
|