HomeSort by relevance Sort by last modified time
    Searched refs:schema (Results 1 - 25 of 220) sorted by null

1 2 3 4 5 6 7 8 9

  /system/media/camera/docs/
metadata-validate 28 schema=$thisdir/metadata_properties.xsd
31 xmllint --noout --schema $schema $doc || exit 1
  /external/chromium_org/tools/json_schema_compiler/
idl_schema_test.py 11 def getFunction(schema, name):
12 for item in schema['functions']:
18 def getParams(schema, name):
19 function = getFunction(schema, name)
23 def getReturns(schema, name):
24 function = getFunction(schema, name)
28 def getType(schema, id):
29 for item in schema['types']:
43 schema = self.idl_basics
45 self.assertEquals(expected, getParams(schema, 'function4')
    [all...]
json_schema_test.py 78 schema = json_schema.CachedLoad('test/json_schema_test.json')
79 self.assertEquals(compiled, json_schema.DeleteNodes(schema, 'nocompile'))
features_compiler.py 24 schema = os.path.normpath(filename)
25 schema_loader = SchemaLoader(os.path.dirname(os.path.relpath(schema, root)),
26 os.path.dirname(schema))
27 schema_filename = os.path.splitext(schema)[0]
28 feature_defs = schema_loader.LoadSchema(schema)
35 source_file_dir, _ = os.path.split(schema)
37 full_path = os.path.join(relpath, schema)
58 description='Generates a C++ features model from JSON schema',
59 usage='usage: %prog [option]... schema')
61 help='logical include root directory. Path to schema files from
    [all...]
schema_loader.py 54 def LoadSchema(self, schema):
55 '''Load a schema definition. The schema parameter must be a file name
58 schema_filename, schema_extension = os.path.splitext(schema)
60 schema_path = os.path.join(self._real_path, schema);
66 sys.exit('Did not recognize file extension %s for schema %s' %
67 (schema_extension, schema))
  /external/chromium_org/components/json_schema/
json_schema_validator_unittest_base.cc 22 namespace schema = json_schema_constants;
90 scoped_ptr<base::DictionaryValue> schema(
94 ASSERT_TRUE(schema.get());
97 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL);
99 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL);
101 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, "1",
104 schema::kNumber,
105 schema::kObject));
112 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL,
119 scoped_ptr<base::DictionaryValue> schema(new base::DictionaryValue())
    [all...]
json_schema_validator.cc 22 namespace schema = json_schema_constants;
35 schema::kAny,
36 schema::kArray,
37 schema::kBoolean,
38 schema::kInteger,
39 schema::kNull,
40 schema::kNumber,
41 schema::kObject,
42 schema::kString,
48 // Maps a schema attribute name to its expected type
500 schema, local
504 schema, path); local
    [all...]
json_schema_validator_unittest_base.h 30 base::DictionaryValue* schema,
35 base::DictionaryValue* schema,
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:
47 // There are also these departures from the JSON Schema proposal:
51 // - by default an "object" typed schema does not allow additional properties.
52 // if present, "additionalProperties" is to be a schema against which all
76 // attributes will make the schema validation fail.
98 // Classifies a Value as one of the JSON schema primitive types.
110 // Verifies if |schema| is a valid JSON v3 schema. When this validation passe
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/server2/
schema_util_test.py 113 schema = {
172 inlined_schema = deepcopy(schema)
177 schema = {
203 DetectInlineableTypes(schema)
204 InlineDocs(schema)
205 self.assertEqual(expected_schema, schema)
schema_util.py 12 '''Removes nodes that should not be rendered from an API schema.
30 def DetectInlineableTypes(schema):
34 if not schema.get('types'):
40 stack = [schema]
51 for type_ in schema['types']:
57 def InlineDocs(schema):
60 types = schema.get('types')
75 schema['types'] = types_without_inline_doc
89 apply_inline(schema)
95 inlineable types from the parsed schema data
    [all...]
  /external/chromium_org/extensions/renderer/resources/
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
64 * Validates an instance against a schema and accumulates errors. Usage:
67 * validator.validate(inst, schema);
103 schemaRequired: "Schema value required.",
104 unknownSchemaReference: "Unknown schema reference: *."
    [all...]
  /external/chromium_org/components/policy/core/common/
schema_unittest.cc 5 #include "components/policy/core/common/schema.h"
133 Schema schema = Schema::Parse(content, &error); local
134 if (schema.valid())
141 Schema schema,
148 // Test that Schema::Validate() works as expected.
150 bool returned = schema.Validate(value, strategy, NULL, &error);
153 // Test that Schema::Normalize() will return the same value a
257 Schema schema = Schema::Parse( local
294 Schema schema = Schema::Parse(kTestSchema, &error); local
426 Schema schema = Schema::Parse("{ \\"type\\": \\"object\\" }", &error); local
542 Schema schema = Schema::Wrap(&kData); local
601 Schema schema = Schema::Parse(kTestSchema, &error); local
978 Schema schema = Schema::Parse( local
1028 Schema schema = Schema::Parse( local
1059 Schema schema = Schema::Parse( local
1098 Schema schema = Schema::Parse( local
    [all...]
schema.cc 5 #include "components/policy/core/common/schema.h"
23 namespace schema = json_schema_constants;
35 // Maps schema "id" attributes to the corresponding SchemaNode index.
71 { schema::kArray, base::Value::TYPE_LIST },
72 { schema::kBoolean, base::Value::TYPE_BOOLEAN },
73 { schema::kInteger, base::Value::TYPE_INTEGER },
74 { schema::kNull, base::Value::TYPE_NULL },
75 { schema::kNumber, base::Value::TYPE_DOUBLE },
76 { schema::kObject, base::Value::TYPE_DICTIONARY },
77 { schema::kString, base::Value::TYPE_STRING }
156 const SchemaNode* schema(int index) const { function in class:policy::Schema::InternalStorage
745 Schema Schema::Iterator::schema() const { function in class:policy::Schema::Iterator
1040 Schema schema = GetKnownProperty(key); local
    [all...]
generate_policy_source_unittest.cc 12 #include "components/policy/core/common/schema.h"
25 bool IsSameSchema(Schema a, Schema b) {
36 Schema::Iterator a_it = a.GetPropertiesIterator();
37 Schema::Iterator b_it = b.GetPropertiesIterator();
43 if (!IsSameSchema(a_it.schema(), b_it.schema()))
56 Schema schema = Schema::Wrap(GetChromeSchemaData()) local
    [all...]
schema_map_unittest.cc 13 #include "components/policy/core/common/schema.h"
47 Schema CreateTestSchema() {
49 Schema schema = Schema::Parse(kTestSchema, &error); local
50 if (!schema.valid())
52 return schema;
56 Schema schema = CreateTestSchema(); local
58 component_map["extension-1"] = schema;
83 Schema schema = CreateTestSchema(); local
113 const Schema* schema = local
126 Schema schema = Schema::Parse(kTestSchema, &error); local
218 Schema schema = Schema::Parse( local
    [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/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 (base::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);
83 manifest_.SetString("storage.managed_schema", "schema.json");
107 manifest_.SetString("storage.managed_schema", "schema.json")
    [all...]

Completed in 536 milliseconds

1 2 3 4 5 6 7 8 9