Home
last modified time | relevance | path

Searched refs:JSONWriter (Results 1 – 24 of 24) sorted by relevance

/external/libchrome/base/json/
Djson_writer_unittest.cc18 EXPECT_TRUE(JSONWriter::Write(Value(), &output_js)); in TEST()
22 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js)); in TEST()
26 EXPECT_TRUE(JSONWriter::Write(ListValue(), &output_js)); in TEST()
30 EXPECT_TRUE(JSONWriter::Write(Value(42), &output_js)); in TEST()
34 EXPECT_TRUE(JSONWriter::Write(Value(true), &output_js)); in TEST()
38 EXPECT_TRUE(JSONWriter::Write(Value(1.0), &output_js)); in TEST()
42 EXPECT_TRUE(JSONWriter::Write(Value(0.2), &output_js)); in TEST()
46 EXPECT_TRUE(JSONWriter::Write(Value(-0.8), &output_js)); in TEST()
50 EXPECT_TRUE(JSONWriter::Write(Value("foo"), &output_js)); in TEST()
69 EXPECT_TRUE(JSONWriter::Write(root_dict, &output_js)); in TEST()
[all …]
Djson_writer.cc28 bool JSONWriter::Write(const Value& node, std::string* json) { in Write()
33 bool JSONWriter::WriteWithOptions(const Value& node, in WriteWithOptions()
40 JSONWriter writer(options, json); in WriteWithOptions()
49 JSONWriter::JSONWriter(int options, std::string* json) in JSONWriter() function in base::JSONWriter
58 bool JSONWriter::BuildJSONString(const Value& node, size_t depth) { in BuildJSONString()
205 void JSONWriter::IndentLine(size_t depth) { in IndentLine()
Djson_writer.h19 class BASE_EXPORT JSONWriter {
54 JSONWriter(int options, std::string* json);
70 DISALLOW_COPY_AND_ASSIGN(JSONWriter);
Djson_string_value_serializer.cc36 options |= base::JSONWriter::OPTIONS_OMIT_BINARY_VALUES; in SerializeInternal()
38 options |= base::JSONWriter::OPTIONS_PRETTY_PRINT; in SerializeInternal()
40 return base::JSONWriter::WriteWithOptions(root, options, json_string_); in SerializeInternal()
Djson_correctness_fuzzer.cc45 bool b = base::JSONWriter::Write(*parsed_value, &parsed_output); in LLVMFuzzerTestOneInput()
54 base::JSONWriter::Write(*double_parsed_value, &double_parsed_output); in LLVMFuzzerTestOneInput()
Djson_perftest.cc61 JSONWriter::Write(*dict, &json); in TestWriteAndRead()
Djson_value_serializer_unittest.cc304 JSONWriter::Write(valueRoot, &output_js); in TEST()
/external/libbrillo/brillo/http/
Dhttp_transport_fake.cc195 base::JSONWriter::Write(*json, &value); in GetDataAsNormalizedJsonString()
256 base::JSONWriter::WriteWithOptions( in ReplyJson()
257 *json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &text); in ReplyJson()
Dhttp_utils.cc306 base::JSONWriter::Write(*json, &data); in PostJsonAndBlock()
322 base::JSONWriter::Write(*json, &data); in PostJson()
344 base::JSONWriter::Write(*json, &data); in PatchJsonAndBlock()
366 base::JSONWriter::Write(*json, &data); in PatchJson()
/external/skia/src/utils/
DSkShaperJSONWriter.h24 SkShaperJSONWriter(SkJSONWriter* JSONWriter, const char* utf8, size_t size);
DSkShaperJSONWriter.cpp17 SkShaperJSONWriter::SkShaperJSONWriter(SkJSONWriter* JSONWriter, const char* utf8, size_t size) in SkShaperJSONWriter() argument
18 : fJSONWriter{JSONWriter} in SkShaperJSONWriter()
/external/libchrome/base/trace_event/
Dtrace_event_system_stats_monitor.cc127 base::JSONWriter::Write(*system_metrics.ToValue(), &tmp); in AppendSystemProfileAsTraceFormat()
Dblame_context_unittest.cc169 JSONWriter::Write(*events[2]->GetKnownArgAsValue("snapshot"), &snapshot_json); in TEST_F()
Dtrace_config.cc302 JSONWriter::Write(*dict, &json); in ToString()
Dtrace_config_unittest.cc424 base::JSONWriter::Write(*event_filter.filter_args(), &json_out); in TEST()
/external/clang/lib/Basic/
DVirtualFileSystem.cpp1607 class JSONWriter { class
1619 JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} in JSONWriter() function in __anon45e96e000911::JSONWriter
1626 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { in containedIn()
1639 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) { in containedPart()
1645 void JSONWriter::startDirectory(StringRef Path) { in startDirectory()
1656 void JSONWriter::endDirectory() { in endDirectory()
1664 void JSONWriter::writeEntry(StringRef VPath, StringRef RPath) { in writeEntry()
1674 void JSONWriter::write(ArrayRef<YAMLVFSEntry> Entries, in write()
1750 JSONWriter(OS).write(Mappings, UseExternalNames, IsCaseSensitive, in write()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DVirtualFileSystem.cpp1906 class JSONWriter { class
1919 JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} in JSONWriter() function in __anon02b9f3930911::JSONWriter
1928 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { in containedIn()
1942 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) { in containedPart()
1948 void JSONWriter::startDirectory(StringRef Path) { in startDirectory()
1959 void JSONWriter::endDirectory() { in endDirectory()
1967 void JSONWriter::writeEntry(StringRef VPath, StringRef RPath) { in writeEntry()
1977 void JSONWriter::write(ArrayRef<YAMLVFSEntry> Entries, in write()
2052 JSONWriter(OS).write(Mappings, UseExternalNames, IsCaseSensitive, in write()
/external/llvm-project/llvm/lib/Support/
DVirtualFileSystem.cpp2000 class JSONWriter { class
2013 JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} in JSONWriter() function in __anonbe2b359f0a11::JSONWriter
2022 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) { in containedIn()
2036 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) { in containedPart()
2042 void JSONWriter::startDirectory(StringRef Path) { in startDirectory()
2053 void JSONWriter::endDirectory() { in endDirectory()
2061 void JSONWriter::writeEntry(StringRef VPath, StringRef RPath) { in writeEntry()
2071 void JSONWriter::write(ArrayRef<YAMLVFSEntry> Entries, in write()
2164 JSONWriter(OS).write(Mappings, UseExternalNames, IsCaseSensitive, in write()
/external/libchrome/dbus/
Dvalues_util.cc56 base::JSONWriter::Write(*key, &key_string); in PopDictionaryEntries()
Dvalues_util_unittest.cc378 base::JSONWriter::Write(base::Value(keys[i]), &key_string); in TEST()
/external/libchrome/base/task_scheduler/
Dtask_tracker.cc68 JSONWriter::Write(dict, &tmp); in AppendAsTraceFormat()
/external/libchrome/base/test/launcher/
Dtest_results_tracker.cc442 if (!JSONWriter::Write(*summary_root, &json)) in SaveSummaryAsJSON()
/external/libchrome/base/
Dvalues.cc1392 JSONWriter::WriteWithOptions(value, JSONWriter::OPTIONS_PRETTY_PRINT, &json); in operator <<()
/external/libchrome/ipc/
Dipc_message_utils.cc511 base::JSONWriter::Write(p, &json); in Log()
1127 base::JSONWriter::Write(p, &json); in Log()