/system/media/camera/docs/ |
metadata-validate | 28 schema=$thisdir/metadata_properties.xsd 31 xmllint --noout --schema $schema $doc || exit 1
|
/external/chromium_org/chrome/common/json_schema/ |
json_schema_validator_unittest_base.cc | 22 namespace schema = json_schema_constants; 88 scoped_ptr<base::DictionaryValue> schema( 92 ASSERT_TRUE(schema.get()); 95 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); 97 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); 99 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, "1", 102 schema::kNumber, 103 schema::kObject)); 110 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, 121 scoped_ptr<base::DictionaryValue> schema(new base::DictionaryValue()) [all...] |
json_schema_validator.cc | 19 namespace schema = json_schema_constants; 32 schema::kAny, 33 schema::kArray, 34 schema::kBoolean, 35 schema::kInteger, 36 schema::kNull, 37 schema::kNumber, 38 schema::kObject, 39 schema::kString, 45 // Maps a schema attribute name to its expected type 436 schema, local 440 schema, path); local [all...] |
json_schema_validator.h | 23 // This class implements a subset of JSON Schema. 24 // See: http://www.json.com/json-schema-proposal/ for more details. 29 // The following features of JSON Schema are not implemented: 48 // There are also these departures from the JSON Schema proposal: 52 // - by default an "object" typed schema does not allow additional properties. 53 // if present, "additionalProperties" is to be a schema against which all 90 // Classifies a Value as one of the JSON schema primitive types. 102 // Verifies if |schema| is a valid JSON v3 schema. When this validation passes 103 // then |schema| is valid JSON that can be parsed into a DictionaryValue [all...] |
/external/chromium_org/tools/json_schema_compiler/ |
idl_schema_test.py | 9 def getFunction(schema, name): 10 for item in schema['functions']: 15 def getParams(schema, name): 16 function = getFunction(schema, name) 19 def getType(schema, id): 20 for item in schema['types']: 32 schema = self.idl_basics 34 self.assertEquals(expected, getParams(schema, 'function4')) 38 self.assertEquals(expected, getParams(schema, 'function5')) 42 self.assertEquals(expected, getParams(schema, 'function6') [all...] |
json_schema_test.py | 79 schema = json_schema.CachedLoad('test/json_schema_test.json') 80 self.assertEquals(compiled, json_schema.DeleteNodes(schema, 'nocompile'))
|
schema_loader.py | 39 def LoadSchema(self, schema): 40 schema_filename, schema_extension = os.path.splitext(schema) 43 api_defs = json_schema.Load(schema) 45 api_defs = idl_schema.Load(schema) 47 sys.exit('Did not recognize file extension %s for schema %s' % 48 (schema_extension, schema)) 51 'a single schema.' % schema)
|
/external/chromium/chrome/common/ |
json_schema_validator_unittest_base.cc | 85 scoped_ptr<DictionaryValue> schema(LoadDictionary("complex_schema.json")); 88 ASSERT_TRUE(schema.get()); 91 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); 93 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); 95 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, "1", 104 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, 115 scoped_ptr<DictionaryValue> schema(new DictionaryValue()); 116 schema->SetString("type", "string"); 117 schema->SetString("pattern", "foo+"); 121 schema.get(), NULL) [all...] |
json_schema_validator.h | 21 // This class implements a subset of JSON Schema. 22 // See: http://www.json.com/json-schema-proposal/ for more details. 27 // The following features of JSON Schema are not implemented: 46 // There are also these departures from the JSON Schema proposal: 50 // - by default an "object" typed schema does not allow additional properties. 51 // if present, "additionalProperties" is to be a schema against which all 87 // Classifies a Value as one of the JSON schema primitive types. 99 // Creates a validator for the specified schema. 101 // NOTE: This constructor assumes that |schema| is well formed and valid. 104 explicit JSONSchemaValidator(DictionaryValue* schema); [all...] |
json_schema_validator_unittest.cc | 18 Value* instance, DictionaryValue* schema, 20 JSONSchemaValidator validator(schema, types); 32 Value* instance, DictionaryValue* schema, 36 JSONSchemaValidator validator(schema, types);
|
json_schema_validator.cc | 62 "Unknown schema reference: *."; 140 JSONSchemaValidator::JSONSchemaValidator(DictionaryValue* schema) 141 : schema_root_(schema), default_allow_additional_properties_(false) { 144 JSONSchemaValidator::JSONSchemaValidator(DictionaryValue* schema, 146 : schema_root_(schema), default_allow_additional_properties_(false) { 171 DictionaryValue* schema, 173 // If this schema defines itself as reference type, save it in this.types. 175 if (schema->GetString("id", &id)) { 178 types_[id] = schema; 180 CHECK(iter->second == schema); 224 ValidateArray(static_cast<ListValue*>(instance), schema, path); local 226 ValidateString(static_cast<StringValue*>(instance), schema, path); local [all...] |
/external/chromium_org/chrome/common/policy/ |
policy_schema_unittest.cc | 13 #define SCHEMA_VERSION "\"$schema\":\"http://json-schema.org/draft-03/schema#\"" 18 scoped_ptr<PolicySchema> schema = PolicySchema::Parse(content, &error); local 19 EXPECT_TRUE(schema || !error.empty()); 20 return !schema; 82 scoped_ptr<PolicySchema> schema = PolicySchema::Parse( local 123 ASSERT_TRUE(schema) << error; 125 ASSERT_EQ(base::Value::TYPE_DICTIONARY, schema->type()); 126 EXPECT_FALSE(schema->GetSchemaForProperty("invalid")) [all...] |
/external/chromium_org/chrome/renderer/resources/extensions/ |
json_schema.js | 11 // This file contains a class that implements a subset of JSON Schema. 12 // See: http://www.json.com/json-schema-proposal/ for more details. 14 // The following features of JSON Schema are not implemented: 31 // There are also these departures from the JSON Schema proposal: 36 // - by default an "object" typed schema does not allow additional properties. 37 // if present, "additionalProperties" is to be a schema against which all 57 * Validates an instance against a schema and accumulates errors. Usage: 60 * validator.validate(inst, schema); 96 schemaRequired: "Schema value required.", 97 unknownSchemaReference: "Unknown schema reference: *." [all...] |
/external/chromium_org/tools/json_to_struct/ |
json_to_struct.py | 6 # Format for the JSON schema file: 12 # "schema": [ // Fields of the generated structure. 70 // GENERATED FROM THE SCHEMA DEFINITION AND DESCRIPTION IN 83 def _GenerateH(basepath, fileroot, head, namespace, schema, description): 85 by the schema. 93 schema: A dict containing the schema. See comment at the top of this file. 110 for header in schema.get('headers', []): 119 schema['type_name'], schema['schema']) 206 schema = _Load(opts.schema) variable [all...] |
struct_generator.py | 34 def GenerateStruct(type_name, schema): 36 the schema list. 40 for field_info in schema:
|
struct_generator_test.py | 37 schema = [ 55 self.assertEquals(struct, GenerateStruct('MyTypeName', schema))
|
/external/chromium_org/chrome/browser/policy/ |
policy_domain_descriptor.cc | 18 bool Matches(const PolicySchema* schema, const base::Value& value) { 19 if (!schema) { 20 // Schema not found, invalid entry. 24 if (!value.IsType(schema->type())) 32 if (!Matches(schema->GetSchemaForProperty(it.key()), it.value())) 38 if (!*it || !Matches(schema->GetSchemaForItems(), **it)) 53 scoped_ptr<PolicySchema> schema) { 56 entry = schema.release(); 76 // TODO(joaodasilva): if a component is registered but doesn't have a schema
|
registry_dict_win.cc | 17 namespace schema = json_schema_constants; 36 // Returns the Value type described in |schema|, or |default_type| if not found. 37 base::Value::Type GetValueTypeForSchema(const base::DictionaryValue* schema, 39 // JSON-schema types to base::Value::Type mapping. 41 // JSON schema type. 46 { schema::kArray, base::Value::TYPE_LIST }, 47 { schema::kBoolean, base::Value::TYPE_BOOLEAN }, 48 { schema::kInteger, base::Value::TYPE_INTEGER }, 49 { schema::kNull, base::Value::TYPE_NULL }, 50 { schema::kNumber, base::Value::TYPE_DOUBLE } [all...] |
/external/chromium_org/third_party/libxml/src/ |
check-relaxng-test-suite.py | 70 def handle_valid(node, schema): 95 ctxt = schema.relaxNGNewValidCtxt() 111 def handle_invalid(node, schema): 135 ctxt = schema.relaxNGNewValidCtxt() 156 schema = "" 160 schema = schema + child.serialize() 164 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 169 log.write("\nFailed to compile correct schema:\n-----\n" [all...] |
check-relaxng-test-suite2.py | 57 def handle_valid(node, schema): 88 ctxt = schema.relaxNGNewValidCtxt() 110 def handle_invalid(node, schema): 141 ctxt = schema.relaxNGNewValidCtxt() 170 schema = "" 174 schema = schema + child.serialize() 178 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 183 log.write("\nFailed to compile correct schema:\n-----\n" [all...] |
testRelax.c | 60 xmlRelaxNGPtr schema = NULL; local 84 if (schema == NULL) { 107 schema = xmlRelaxNGParse(ctxt); 118 schema = xmlRelaxNGParse(ctxt); 121 if (schema == NULL) { 122 printf("Relax-NG schema %s failed to compile\n", argv[i]); 129 xmlRelaxNGDump(stdout, schema); 132 xmlRelaxNGDumpTree(stdout, schema); 145 ctxt = xmlRelaxNGNewValidCtxt(schema); 166 if (schema != NULL [all...] |
testSchemas.c | 2 * testSchemas.c : a small tester program for Schema validation 60 xmlSchemaPtr schema = NULL; local 80 if (schema == NULL) { 103 schema = xmlSchemaParse(ctxt); 114 schema = xmlSchemaParse(ctxt); 120 xmlSchemaDump(stdout, schema); 123 if (schema == NULL) 136 ctxt = xmlSchemaNewValidCtxt(schema); 157 if (schema != NULL) 158 xmlSchemaFree(schema); [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
Utils.java | 154 * @param schema 155 * a schema namespace 161 static boolean isInternalProperty(String schema, String prop) 165 if (NS_DC.equals(schema)) 172 else if (NS_XMP.equals(schema)) 181 else if (NS_PDF.equals(schema)) 190 else if (NS_TIFF.equals(schema)) 199 else if (NS_EXIF.equals(schema)) 207 else if (NS_EXIF_AUX.equals(schema)) 211 else if (NS_PHOTOSHOP.equals(schema)) [all...] |
/external/chromium_org/chrome/common/extensions/api/storage/ |
storage_schema_manifest_handler_unittest.cc | 38 scoped_refptr<Extension> CreateExtension(const std::string& schema) { 45 base::FilePath schema_path = temp_dir_.path().AppendASCII("schema.json"); 46 if (schema.empty()) { 49 if (file_util::WriteFile(schema_path, schema.data(), schema.size()) != 50 static_cast<int>(schema.size())) { 57 testing::AssertionResult Validates(const std::string& schema) { 58 scoped_refptr<Extension> extension = CreateExtension(schema); 84 manifest_.SetString("storage.managed_schema", "schema.json"); 107 manifest_.SetString("storage.managed_schema", "schema.json") [all...] |
/libcore/luni/src/main/java/javax/xml/validation/ |
SchemaFactory.java | 33 * Factory that creates {@link Schema} objects. Entry-point to 37 * {@link SchemaFactory} is a schema compiler. It reads external 53 * <h2><a name="schemaLanguage"></a>Schema Language</h2> 55 * This spec uses a namespace URI to designate a schema language. 59 * is only required to support W3C XML Schema 1.0. However, 60 * if it chooses to support other schema languages listed here, 64 * Schema languages not listed here are expected to 67 * implementations for other schema languages at run-time. 89 * <td><a href="http://www.w3.org/TR/xmlschema-1">W3C XML Schema 1.0</a></td> 118 * schema language and return it.</p [all...] |