/external/libchrome/components/json_schema/ |
D | json_schema_validator_unittest_base.cc | 22 namespace schema = json_schema_constants; 91 std::unique_ptr<base::DictionaryValue> schema( in TestComplex() local 95 ASSERT_TRUE(schema.get()); in TestComplex() 98 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), nullptr); in TestComplex() 100 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), nullptr); in TestComplex() 103 TEST_SOURCE, instance.get(), schema.get(), nullptr, "1", in TestComplex() 105 JSONSchemaValidator::kInvalidType, schema::kNumber, schema::kObject)); in TestComplex() 112 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), nullptr, "0.url", in TestComplex() 118 std::unique_ptr<base::DictionaryValue> schema(new base::DictionaryValue()); in TestStringPattern() local 119 schema->SetString(schema::kType, schema::kString); in TestStringPattern() [all …]
|
D | json_schema_validator.cc | 26 namespace schema = json_schema_constants; 39 schema::kAny, in IsValidType() 40 schema::kArray, in IsValidType() 41 schema::kBoolean, in IsValidType() 42 schema::kInteger, in IsValidType() 43 schema::kNull, in IsValidType() 44 schema::kNumber, in IsValidType() 45 schema::kObject, in IsValidType() 46 schema::kString, in IsValidType() 82 { schema::kRef, base::Value::Type::STRING }, in IsValidSchema() [all …]
|
/external/python/google-api-python-client/googleapiclient/ |
D | schema.py | 129 def _prettyPrintSchema(self, schema, seen=None, dent=0): argument 144 return _SchemaToStruct(schema, seen, dent=dent).to_str(self._prettyPrintByName) 146 def prettyPrintSchema(self, schema): argument 157 return self._prettyPrintSchema(schema, dent=0)[:-2] 173 def __init__(self, schema, seen, dent=0): argument 189 self.schema = schema 241 def _to_str_impl(self, schema): argument 250 stype = schema.get("type") 252 self.emitEnd("{", schema.get("description", "")) 254 if "properties" in schema: [all …]
|
/external/flatbuffers/src/ |
D | idl_gen_fbs.cpp | 46 auto &schema = *_schema; in GenNameSpace() local 47 schema += "namespace "; in GenNameSpace() 50 if (it != name_space.components.begin()) schema += "."; in GenNameSpace() 51 schema += *it; in GenNameSpace() 53 schema += ";\n\n"; in GenNameSpace() 75 std::string schema; in GenerateFBS() local 76 schema += "// Generated from " + file_name + ".proto\n\n"; in GenerateFBS() 91 schema += "include \"" + basename + ".fbs\";\n"; in GenerateFBS() 94 if (num_includes) schema += "\n"; in GenerateFBS() 105 GenNameSpace(*enum_def.defined_namespace, &schema, &last_namespace); in GenerateFBS() [all …]
|
/external/libchrome/components/policy/core/common/ |
D | schema_unittest.cc | 156 Schema schema = Schema::Parse(content, &error); in ParseFails() local 157 if (schema.valid()) in ParseFails() 164 Schema schema, in TestSchemaValidationHelper() argument 173 bool returned = schema.Validate(value, strategy, nullptr, &error); in TestSchemaValidationHelper() 182 schema.Normalize(cloned_value.get(), strategy, nullptr, &error, &touched); in TestSchemaValidationHelper() 185 bool strictly_valid = schema.Validate(value, SCHEMA_STRICT, nullptr, &error); in TestSchemaValidationHelper() 191 EXPECT_TRUE(schema.Validate(*cloned_value, SCHEMA_STRICT, nullptr, &error)) in TestSchemaValidationHelper() 193 EXPECT_TRUE(schema.Normalize(cloned_value.get(), SCHEMA_STRICT, nullptr, in TestSchemaValidationHelper() 199 void TestSchemaValidationWithPath(Schema schema, in TestSchemaValidationWithPath() argument 205 bool returned = schema.Validate(value, SCHEMA_STRICT, &error_path, &error); in TestSchemaValidationWithPath() [all …]
|
D | schema.cc | 27 namespace schema = json_schema_constants; 82 { schema::kArray, base::Value::Type::LIST }, in SchemaTypeToValueType() 83 { schema::kBoolean, base::Value::Type::BOOLEAN }, in SchemaTypeToValueType() 84 { schema::kInteger, base::Value::Type::INTEGER }, in SchemaTypeToValueType() 85 { schema::kNull, base::Value::Type::NONE }, in SchemaTypeToValueType() 86 { schema::kNumber, base::Value::Type::DOUBLE }, in SchemaTypeToValueType() 87 { schema::kObject, base::Value::Type::DICTIONARY }, in SchemaTypeToValueType() 88 { schema::kString, base::Value::Type::STRING }, in SchemaTypeToValueType() 158 const base::DictionaryValue& schema, 164 return schema(0); in root_node() [all …]
|
/external/perfetto/src/trace_processor/sqlite/ |
D | db_sqlite_table_unittest.cc | 27 Table::Schema schema; in CreateSchema() local 28 schema.columns.push_back({"id", SqlValue::Type::kLong, true /* is_id */, in CreateSchema() 30 schema.columns.push_back({"type", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 32 schema.columns.push_back({"test1", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 34 schema.columns.push_back({"test2", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 36 schema.columns.push_back({"test3", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 38 return schema; in CreateSchema() 42 auto schema = CreateSchema(); in TEST() local 48 auto id_cost = DbSqliteTable::EstimateCost(schema, kRowCount, id_eq); in TEST() 53 auto a_cost = DbSqliteTable::EstimateCost(schema, kRowCount, a_eq); in TEST() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | AbstractSchemaTest.java | 47 private Schema<T> schema; field in AbstractSchemaTest 51 schema = schema(); in setup() 58 Protobuf.getInstance().registerSchemaOverride(schema.newInstance().getClass(), schema); in registerSchemas() local 61 protected abstract Schema<T> schema(); in schema() method in AbstractSchemaTest 80 T newMsg = schema.newInstance(); in invalidUtf8StringParsing() 82 schema.mergeFrom(newMsg, reader, ExtensionRegistryLite.getEmptyRegistry()); in invalidUtf8StringParsing() 100 T message = schema.newInstance(); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 102 schema.mergeFrom(message, truncatedData, 0, i, new ArrayDecoders.Registers()); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 113 String failureMessage, M msg, Schema<M> schema) throws IOException { in roundtrip() argument 114 byte[] serializedBytes = ExperimentalSerializationUtil.toByteArray(msg, schema); in roundtrip() [all …]
|
/external/python/parse_type/tests/ |
D | test_builder.py | 29 schema = "Answer: {answer:YesNo}" 30 parser = parse.Parser(schema, extra_types) 53 schema = "Answer: {number:NumberAsWord}" 54 parser = parse.Parser(schema, extra_types) 84 schema = "Answer: {color:Color}" 85 parser = parse.Parser(schema, dict(Color=parse_color)) 113 schema = "Answer: {answer:PersonChoice}" 114 parser = parse.Parser(schema, extra_types) 134 schema = "Answer: {answer:NumberWordChoice}" 135 parser = parse.Parser(schema, extra_types) [all …]
|
D | test_cfparse.py | 39 schema = "Number: {number:Number}" 40 parser = Parser(schema, existing_types) 53 schema = "OptionalNumber: {number:Number?}" 54 parser = Parser(schema, existing_types) 71 schema = "List: {numbers:Number+}" 72 parser = Parser(schema, existing_types) 94 schema = "List: {numbers:Number+}" 95 parser = Parser(schema, existing_types, type_builder=type_builder) 114 schema = "List0: {numbers:Number*}" 115 parser = Parser(schema, existing_types) [all …]
|
/external/libxml2/ |
D | Android.bp | 250 cmd: "mkdir -p seed/schema && " + 251 "$(location libxml2_genseed) schema $(in) && " + 252 "mkdir -p $(genDir)/fuzz/seed/schema && " + 253 "mv -f seed/schema/* $(genDir)/fuzz/seed/schema", 255 "fuzz/seed/schema/570702_0.xsd", 256 "fuzz/seed/schema/579746_0.xsd", 257 "fuzz/seed/schema/579746_1.xsd", 258 "fuzz/seed/schema/582887_0.xsd", 259 "fuzz/seed/schema/582887-attribute.xsd", 260 "fuzz/seed/schema/582887-common.xsd", [all …]
|
D | check-relaxng-test-suite.py | 70 def handle_valid(node, schema): argument 95 ctxt = schema.relaxNGNewValidCtxt() 111 def handle_invalid(node, schema): argument 135 ctxt = schema.relaxNGNewValidCtxt() 156 schema = "" 160 schema = schema + child.serialize() 164 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 170 log.write(schema) 182 schema = "" 186 schema = schema + child.serialize() [all …]
|
D | check-relaxng-test-suite2.py | 57 def handle_valid(node, schema): argument 88 ctxt = schema.relaxNGNewValidCtxt() 110 def handle_invalid(node, schema): argument 141 ctxt = schema.relaxNGNewValidCtxt() 170 schema = "" 174 schema = schema + child.serialize() 178 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 184 log.write(schema) 196 schema = "" 200 schema = schema + child.serialize() [all …]
|
D | check-xsddata-test-suite.py | 56 def handle_valid(node, schema): argument 87 ctxt = schema.relaxNGNewValidCtxt() 109 def handle_invalid(node, schema): argument 140 ctxt = schema.relaxNGNewValidCtxt() 168 schema = "" 172 schema = schema + child.serialize() 176 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) 182 log.write(schema) 194 schema = "" 198 schema = schema + child.serialize() [all …]
|
/external/oss-fuzz/projects/alembic/ |
D | alembic_dump_info_fuzzer.cc | 64 template <typename T> void dumpAttributes(T const &schema) { in dumpAttributes() argument 66 const size_t meshPropertyCount = schema.getNumProperties(); in dumpAttributes() 69 const PropertyHeader &header = schema.getPropertyHeader(p); in dumpAttributes() 74 schema.getNumSamples(); in dumpAttributes() 76 schema.getUVsParam().getNumSamples(); in dumpAttributes() 80 const ICompoundProperty geoParam = schema.getArbGeomParams(); in dumpAttributes() 94 const IPolyMeshSchema &schema = mesh.getSchema(); in dumpPolyMesh() local 97 dumpAttributes(schema); in dumpPolyMesh() 103 const ISubDSchema &schema = mesh.getSchema(); in dumpSubD() local 105 dumpAttributes(schema); in dumpSubD() [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Protobuf.java | 91 Schema<T> schema = (Schema<T>) schemaCache.get(messageType); in schemaFor() local 92 if (schema == null) { in schemaFor() 93 schema = schemaFactory.createSchema(messageType); in schemaFor() 95 Schema<T> previous = (Schema<T>) registerSchema(messageType, schema); in schemaFor() 98 schema = previous; in schemaFor() 101 return schema; in schemaFor() 118 public Schema<?> registerSchema(Class<?> messageType, Schema<?> schema) { in registerSchema() argument 120 checkNotNull(schema, "schema"); in registerSchema() 121 return schemaCache.putIfAbsent(messageType, schema); in registerSchema() 133 public Schema<?> registerSchemaOverride(Class<?> messageType, Schema<?> schema) { in registerSchemaOverride() argument [all …]
|
/external/tflite-support/tensorflow_lite_support/metadata/ |
D | BUILD | 14 srcs = ["@org_tensorflow//tensorflow/lite/schema:schema.fbs"], 17 # Generic schema for inference on device. 20 srcs = ["@org_tensorflow//tensorflow/lite/schema:schema.fbs"], 21 custom_package = "org.tensorflow.lite.schema", 26 srcs = ["@org_tensorflow//tensorflow/lite/schema:schema.fbs"], 27 custom_package = "org.tensorflow.lite.schema", 30 # Generic schema for model metadata. 44 custom_package = "org.tensorflow.lite.support.metadata.schema", 50 custom_package = "org.tensorflow.lite.support.metadata.schema",
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsonschema/ |
D | JsonSchema.java | 25 private final ObjectNode schema; field in JsonSchema 36 public JsonSchema(ObjectNode schema) in JsonSchema() argument 38 this.schema = schema; in JsonSchema() 53 return schema; in getSchemaNode() 59 return this.schema.toString(); in toString() 65 return schema.hashCode(); in hashCode() 76 if (schema == null) { in equals() 77 return other.schema == null; in equals() 79 return schema.equals(other.schema); in equals()
|
/external/openscreen/cast/protocol/castv2/ |
D | validation.cc | 39 void LoadSchema(const char* schema_json, valijson::Schema* schema) { in LoadSchema() argument 43 parser.populateSchema(adapter, *schema); in LoadSchema() 47 const valijson::Schema& schema) { in Validate() argument 51 if (validator.validate(schema, document_adapter, &results)) { in Validate() 61 valijson::Schema schema; in Validate() local 63 parser.populateSchema(adapter, schema); in Validate() 65 return Validate(document, schema); in Validate() 69 static valijson::Schema schema; in ValidateStreamingMessage() local 71 std::call_once(flag, [] { LoadSchema(kStreamingSchema, &schema); }); in ValidateStreamingMessage() 72 return Validate(message, schema); in ValidateStreamingMessage() [all …]
|
/external/icing/icing/schema/ |
D | schema-util_test.cc | 135 SchemaProto schema = SchemaBuilder() in TEST() local 144 SchemaUtil::Validate(schema)); in TEST() 222 SchemaProto schema = SchemaBuilder() in TEST() local 231 SchemaUtil::Validate(schema)); in TEST() 308 SchemaProto schema = SchemaBuilder() in TEST() local 317 SchemaUtil::Validate(schema)); in TEST() 349 SchemaProto schema = SchemaBuilder().AddType(type_a).AddType(type_b).Build(); in TEST() local 350 EXPECT_THAT(SchemaUtil::Validate(schema), in TEST() 386 SchemaProto schema = in TEST() local 388 EXPECT_THAT(SchemaUtil::Validate(schema), in TEST() [all …]
|
/external/libtextclassifier/native/utils/flatbuffers/ |
D | reflection.cc | 69 const reflection::Object* TypeForName(const reflection::Schema* schema, in TypeForName() argument 71 for (const reflection::Object* object : *schema->objects()) { in TypeForName() 79 Optional<int> TypeIdForObject(const reflection::Schema* schema, in TypeIdForObject() argument 81 for (int i = 0; i < schema->objects()->size(); i++) { in TypeIdForObject() 82 if (schema->objects()->Get(i) == type) { in TypeIdForObject() 89 Optional<int> TypeIdForName(const reflection::Schema* schema, in TypeIdForName() argument 91 for (int i = 0; i < schema->objects()->size(); i++) { in TypeIdForName() 92 if (type_name.Equals(schema->objects()->Get(i)->name()->str())) { in TypeIdForName() 99 bool SwapFieldNamesForOffsetsInPath(const reflection::Schema* schema, in SwapFieldNamesForOffsetsInPath() argument 101 if (schema == nullptr || !schema->root_table()) { in SwapFieldNamesForOffsetsInPath() [all …]
|
/external/libxml2/fuzz/ |
D | Makefile.am | 2 EXTRA_PROGRAMS = genSeed html regexp schema uri xml xpath program 4 EXTRA_DIST = html.dict regexp.dict schema.dict xml.dict xpath.dict \ 28 corpus: seed/html.stamp seed/regexp.stamp seed/schema.stamp seed/uri.stamp \ 117 seed/schema.stamp: genSeed$(EXEEXT) 118 @mkdir -p seed/schema 119 ./genSeed$(EXEEXT) schema '$(top_srcdir)/test/schemas/*.xsd' 120 @touch seed/schema.stamp 122 schema_SOURCES = schema.c fuzz.c 125 fuzz-schema: schema$(EXEEXT) seed/schema.stamp 126 @mkdir -p corpus/schema [all …]
|
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | BUILD | 44 "//tensorflow/lite/schema:schema_fbs", 45 "//tensorflow/lite/schema:schema_utils", 63 "//tensorflow/lite/schema:schema_fbs", 64 "//tensorflow/lite/schema:schema_utils", 81 "//tensorflow/lite/schema:schema_fbs", 82 "//tensorflow/lite/schema:schema_utils", 106 "//tensorflow/lite/schema:schema_fbs", 121 "//tensorflow/lite/schema:schema_fbs", 122 "//tensorflow/lite/schema:schema_utils", 148 "//tensorflow/lite/schema:schema_fbs", [all …]
|
/external/python/pyasn1/docs/source/pyasn1/ |
D | contents.rst | 9 post-1995, revision (X.680) introduced some changes to the schema 14 As for ASN.1 schema language, pyasn1 package does 42 comprise a *schema* describing data structures of unbounded complexity. 60 ASN.1 schema can be "instantiated" by essentially putting some concrete value 61 into the type container. Such instantiated schema object can still be 62 used as a schema, but additionally it can play a role of a value in the 78 To tell instantiated schema object from just a schema, the *.isValue* 83 schema = RSAPublicKey() 85 # non-instantiated schema 86 assert schema.isValue == False [all …]
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | Utils.java | 161 static boolean isInternalProperty(String schema, String prop) in isInternalProperty() argument 165 if (NS_DC.equals(schema)) in isInternalProperty() 172 else if (NS_XMP.equals(schema)) in isInternalProperty() 181 else if (NS_PDF.equals(schema)) in isInternalProperty() 190 else if (NS_TIFF.equals(schema)) in isInternalProperty() 199 else if (NS_EXIF.equals(schema)) in isInternalProperty() 207 else if (NS_EXIF_AUX.equals(schema)) in isInternalProperty() 211 else if (NS_PHOTOSHOP.equals(schema)) in isInternalProperty() 218 else if (NS_CAMERARAW.equals(schema)) in isInternalProperty() 226 else if (NS_ADOBESTOCKPHOTO.equals(schema)) in isInternalProperty() [all …]
|