/external/sg3_utils/lib/ |
D | sg_json_builder.h | 196 } json_value; typedef 200 json_value * json_parse_ex (json_settings * settings, 205 void json_value_free (json_value *); 212 json_value *); 236 json_value * json_array_new (size_t length); 237 json_value * json_array_push (json_value * array, json_value *); 242 json_value * json_object_new (size_t length); 244 json_value * json_object_push (json_value * object, 246 json_value *); 250 json_value * json_object_push_length (json_value * object, [all …]
|
D | sg_json_builder.c | 55 json_value value; 64 static int builderize (json_value * value) in builderize() 96 const size_t json_builder_extra = sizeof(json_builder_value) - sizeof(json_value); 133 json_value * json_array_new (size_t length) in json_array_new() 135 json_value * value = (json_value *) calloc (1, sizeof (json_builder_value)); in json_array_new() 144 if (! (value->u.array.values = (json_value **) malloc (length * sizeof (json_value *)))) in json_array_new() 155 json_value * json_array_push (json_value * array, json_value * value) in json_array_push() 168 json_value ** values_new = (json_value **) realloc in json_array_push() 169 (array->u.array.values, sizeof (json_value *) * (array->u.array.length + 1)); in json_array_push() 185 json_value * json_object_new (size_t length) in json_object_new() [all …]
|
D | sg_pr2serr.c | 318 json_value * jvp = json_object_new(0); in sgj_start_r() 319 json_value * jv2p = NULL; in sgj_start_r() 320 json_value * jap = NULL; in sgj_start_r() 331 json_builder_free((json_value *)jvp); in sgj_start_r() 335 json_array_push((json_value *)jap, json_integer_new(1)); in sgj_start_r() 336 json_array_push((json_value *)jap, json_integer_new(0)); in sgj_start_r() 337 json_object_push((json_value *)jvp, "json_format_version", in sgj_start_r() 338 (json_value *)jap); in sgj_start_r() 343 json_array_push((json_value *)jap, in sgj_start_r() 346 jv2p = json_object_push((json_value *)jvp, "utility_invoked", in sgj_start_r() [all …]
|
/external/cronet/testing/libfuzzer/proto/ |
D | json_proto_converter.cc | 56 void JsonProtoConverter::AppendValue(const JsonValue& json_value) { in AppendValue() argument 57 if (json_value.has_object_value()) { in AppendValue() 58 AppendObject(json_value.object_value()); in AppendValue() 59 } else if (json_value.has_array_value()) { in AppendValue() 60 AppendArray(json_value.array_value()); in AppendValue() 61 } else if (json_value.has_number_value()) { in AppendValue() 62 AppendNumber(json_value.number_value()); in AppendValue() 63 } else if (json_value.has_string_value()) { in AppendValue() 64 data_ << '"' << json_value.string_value().value() << '"'; in AppendValue() 65 } else if (json_value.has_boolean_value()) { in AppendValue() [all …]
|
D | json_proto_converter.h | 17 std::string Convert(const JsonValue& json_value);
|
/external/sg3_utils/testing/ |
D | sg_tst_json_builder.c | 39 json_value * jv1p; in main() 40 json_value * jv2p; in main() 41 json_value * jv3p = json_object_new(0); in main() 42 json_value * jvp = NULL; in main() 43 json_value * jv4p; in main() 44 json_value * jv5p; in main() 45 json_value * ja1p = json_array_new(0); in main() 46 json_value * ja2p; in main() 47 json_value * jsp = json_string_new("hello world 1"); in main() 48 json_value * js2p = json_string_new("hello world 2"); in main() [all …]
|
/external/oss-fuzz/projects/jsoncpp/ |
D | json_proto_converter.cc | 60 void JsonProtoConverter::AppendValue(const JsonValue& json_value) { in AppendValue() argument 61 if (json_value.has_object_value()) { in AppendValue() 62 AppendObject(json_value.object_value()); in AppendValue() 63 } else if (json_value.has_array_value()) { in AppendValue() 64 AppendArray(json_value.array_value()); in AppendValue() 65 } else if (json_value.has_number_value()) { in AppendValue() 66 AppendNumber(json_value.number_value()); in AppendValue() 67 } else if (json_value.has_string_value()) { in AppendValue() 68 data_ << '"' << json_value.string_value().value() << '"'; in AppendValue() 69 } else if (json_value.has_boolean_value()) { in AppendValue() [all …]
|
/external/python/apitools/apitools/base/py/ |
D | extra_types.py | 77 def _ValidateJsonValue(json_value): argument 78 entries = [(f, json_value.get_assigned_value(f.name)) 79 for f in json_value.all_fields()] 84 'Malformed JsonValue: %s' % json_value) 87 def _JsonValueToPythonValue(json_value): argument 89 util.Typecheck(json_value, JsonValue) 90 _ValidateJsonValue(json_value) 91 if json_value.is_null: 93 entries = [(f, json_value.get_assigned_value(f.name)) 94 for f in json_value.all_fields()] [all …]
|
D | extra_types_test.py | 120 json_value = '"abc"' 125 self.assertRoundTrip(json_value) 128 self.assertEqual(json_value, encoding.MessageToJson(value))
|
/external/perfetto/src/trace_processor/types/ |
D | variadic.h | 92 static Variadic Json(StringPool::Id json_value) { in Json() 95 variadic.json_value = json_value; in Json() 122 return json_value == other.json_value; 138 StringPool::Id json_value; member
|
/external/rust/crates/combine/benches/ |
D | json.rs | 149 let field = (json_string(), lex(char(':')), json_value()).map(|t| (t.0, t.2)); in object() 157 fn json_value<Input>() -> impl Parser<Input, Output = Value> in json_value() function 175 sep_by(json_value(), lex(char(','))), 206 let result = json_value().easy_parse(input); in json_test() 243 let mut parser = json_value(); in bench_json() 260 let mut parser = json_value(); in bench_json_core_error() 277 let mut parser = json_value(); in bench_json_core_error_no_position() 297 let mut parser = json_value(); in bench_buffered_json()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | oauth_client.cc | 67 Json::Value json_value; in ReadJsonString() local 68 TF_RETURN_IF_ERROR(ReadJsonValue(json, name, &json_value)); in ReadJsonString() 69 if (!json_value.isString()) { in ReadJsonString() 73 *value = json_value.asString(); in ReadJsonString() 79 Json::Value json_value; in ReadJsonInt() local 80 TF_RETURN_IF_ERROR(ReadJsonValue(json, name, &json_value)); in ReadJsonInt() 81 if (!json_value.isIntegral()) { in ReadJsonInt() 85 *value = json_value.asInt64(); in ReadJsonInt()
|
/external/libchrome/base/trace_event/ |
D | trace_event_argument.cc | 518 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local 519 CHECK(it.ReadBool(&json_value.as_bool)); in AppendAsTraceFormat() 521 TraceEvent::AppendValueAsJSON(TRACE_VALUE_TYPE_BOOL, json_value, out); in AppendAsTraceFormat() 529 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local 530 json_value.as_int = value; in AppendAsTraceFormat() 531 TraceEvent::AppendValueAsJSON(TRACE_VALUE_TYPE_INT, json_value, out); in AppendAsTraceFormat() 536 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local 537 CHECK(it.ReadDouble(&json_value.as_double)); in AppendAsTraceFormat() 539 TraceEvent::AppendValueAsJSON(TRACE_VALUE_TYPE_DOUBLE, json_value, out); in AppendAsTraceFormat() 547 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local [all …]
|
/external/rust/crates/nom/tests/ |
D | json.rs | 100 ws(separated_list0(ws(char(',')), json_value)), in array() 111 separated_pair(string, ws(char(':')), json_value), in object() 119 fn json_value(input: &str) -> IResult<&str, JsonValue> { in json_value() function 133 ws(json_value).parse(input) in json()
|
/external/cronet/base/trace_event/ |
D | traced_value.cc | 273 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local 274 CHECK(it.ReadBool(&json_value.as_bool)); in AppendAsTraceFormat() 276 json_value.AppendAsJSON(TRACE_VALUE_TYPE_BOOL, out); in AppendAsTraceFormat() 284 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local 285 json_value.as_int = value; in AppendAsTraceFormat() 286 json_value.AppendAsJSON(TRACE_VALUE_TYPE_INT, out); in AppendAsTraceFormat() 291 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local 292 CHECK(it.ReadDouble(&json_value.as_double)); in AppendAsTraceFormat() 294 json_value.AppendAsJSON(TRACE_VALUE_TYPE_DOUBLE, out); in AppendAsTraceFormat() 302 TraceEvent::TraceValue json_value; in AppendAsTraceFormat() local [all …]
|
/external/perfetto/src/trace_processor/importers/common/ |
D | global_args_tracker.h | 85 hash.Update(arg.value.json_value.raw_id()); in operator() 165 row.string_value = arg.value.json_value; in AddArgSet()
|
/external/openscreen/util/ |
D | BUILD.gn | 35 "json/json_value.cc", 36 "json/json_value.h",
|
/external/perfetto/protos/perfetto/trace/chrome/ |
D | chrome_trace_event.proto | 55 string json_value = 8; field 94 string json_value = 5; field
|
/external/jsoncpp/ |
D | BUILD.bazel | 10 "src/lib_json/json_value.cpp",
|
D | Android.bp | 36 "src/lib_json/json_value.cpp",
|
D | meson.build | 50 'src/lib_json/json_value.cpp',
|
/external/perfetto/src/trace_processor/sorter/ |
D | trace_sorter.h | 106 inline void PushJsonValue(int64_t timestamp, std::string json_value) { in PushJsonValue() argument 108 token_buffer_.Append(JsonEvent{std::move(json_value)}); in PushJsonValue()
|
/external/openscreen/third_party/jsoncpp/ |
D | BUILD.gn | 35 "src/src/lib_json/json_value.cpp",
|
/external/perfetto/bazel/ |
D | jsoncpp.BUILD | 22 "src/lib_json/json_value.cpp",
|
/external/rust/crates/serde_json/tests/ |
D | test.rs | 600 let json_value: Value = from_str(s).unwrap(); in test_parse_ok() localVariable 601 assert_eq!(json_value, to_value(&value).unwrap()); in test_parse_ok() 604 let v = T::deserialize(&json_value).unwrap(); in test_parse_ok() 608 let v: T = from_value(json_value.clone()).unwrap(); in test_parse_ok() 612 let json_value2: Value = from_value(json_value.clone()).unwrap(); in test_parse_ok() 613 assert_eq!(json_value2, json_value); in test_parse_ok() 623 if !json_value.is_number() { in test_parse_ok()
|