Home
last modified time | relevance | path

Searched refs:json_value (Results 1 – 25 of 31) sorted by relevance

12

/external/oss-fuzz/projects/jsoncpp/
Djson_proto_converter.cc60 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/
Dextra_types.py77 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 …]
Dextra_types_test.py120 json_value = '"abc"'
125 self.assertRoundTrip(json_value)
128 self.assertEqual(json_value, encoding.MessageToJson(value))
/external/perfetto/src/trace_processor/types/
Dvariadic.h91 static Variadic Json(StringPool::Id json_value) { in Json()
94 variadic.json_value = json_value; in Json()
115 return json_value == other.json_value;
129 StringPool::Id json_value; member
/external/autotest/server/
Dlab_status_unittest.py132 json_value = json.loads(json_string)
138 self.assertEqual(json_value, result)
144 json_value = json.loads(json_string)
153 self.assertEqual(json_value, result)
159 json_value = json.loads(json_string)
168 self.assertEqual(json_value, result)
174 json_value = json.loads(json_string)
188 json_value = json.loads(json_string)
338 json_value = json.loads(json_string)
339 site_utils._get_lab_status(_FAKE_URL).AndReturn(json_value)
/external/tensorflow/tensorflow/core/platform/cloud/
Doauth_client.cc67 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()
78 Json::Value json_value; in ReadJsonInt() local
79 TF_RETURN_IF_ERROR(ReadJsonValue(json, name, &json_value)); in ReadJsonInt()
80 if (!json_value.isIntegral()) { in ReadJsonInt()
84 *value = json_value.asInt64(); in ReadJsonInt()
/external/libchrome/base/trace_event/
Dtrace_event_argument.cc518 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/perfetto/src/trace_processor/
Dtimestamped_trace_piece.h111 : json_value(std::move(value)), in TimestampedTracePiece()
172 new (&json_value) std::string(std::move(ttp.json_value)); in TimestampedTracePiece()
220 json_value.~basic_string(); in ~TimestampedTracePiece()
253 std::string json_value; member
Dtrace_sorter.h81 inline void PushJsonValue(int64_t timestamp, std::string json_value) { in PushJsonValue() argument
84 TimestampedTracePiece(timestamp, packet_idx_++, std::move(json_value))); in PushJsonValue()
/external/llvm-project/lldb/tools/lldb-vscode/
DVSCode.cpp372 llvm::Expected<llvm::json::Value> json_value = llvm::json::parse(json_sref); in GetNextObject() local
373 if (!json_value) { in GetNextObject()
374 auto error = json_value.takeError(); in GetNextObject()
385 object = *json_value->getAsObject(); in GetNextObject()
386 if (!json_value->getAsObject()) { in GetNextObject()
/external/perfetto/src/trace_processor/importers/common/
Dglobal_args_tracker.h74 hash.Update(arg.value.json_value.raw_id()); in operator()
151 row.string_value = arg.value.json_value; in AddArgSet()
/external/openscreen/util/
DBUILD.gn52 "json/json_value.cc",
53 "json/json_value.h",
/external/skqp/third_party/jsoncpp/
DBUILD.gn23 "../externals/jsoncpp/src/lib_json/json_value.cpp",
/external/perfetto/protos/perfetto/trace/chrome/
Dchrome_trace_event.proto55 string json_value = 8; field
94 string json_value = 5; field
/external/tensorflow/third_party/
Djsoncpp.BUILD11 "src/lib_json/json_value.cpp",
/external/openscreen/third_party/jsoncpp/
DBUILD.gn36 "src/src/lib_json/json_value.cpp",
/external/perfetto/bazel/
Djsoncpp.BUILD22 "src/lib_json/json_value.cpp",
/external/jsoncpp/
DAndroid.bp36 "src/lib_json/json_value.cpp",
Dmeson.build50 'src/lib_json/json_value.cpp',
/external/perfetto/src/trace_processor/importers/proto/
Dmetadata_tracker.cc107 metadata_table->mutable_str_value()->Set(row, value.json_value); in WriteValue()
/external/jsoncpp/src/lib_json/
Djson_valueiterator.inl6 // included by json_value.cpp
DCMakeLists.txt57 json_value.cpp
/external/perfetto/src/trace_processor/importers/json/
Djson_trace_parser.cc82 auto opt_value = json::ParseJsonString(base::StringView(ttp.json_value)); in ParseTracePacket()
/external/perfetto/src/trace_processor/sqlite/
Dsqlite_raw_table.cc503 const auto& str = storage_->GetString(value.json_value); in WriteValue()
/external/perfetto/src/trace_processor/storage/
Dtrace_storage.h688 v.json_value = opt_value ? *opt_value : kNullStringId; in GetArgValue()

12