Searched refs:JSONWriter (Results 1 - 25 of 25) sorted by relevance

/external/libchrome/base/json/
H A Djson_writer_unittest.cc16 EXPECT_TRUE(JSONWriter::Write(*Value::CreateNullValue(), &output_js));
20 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js));
24 EXPECT_TRUE(JSONWriter::Write(ListValue(), &output_js));
28 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(42), &output_js));
32 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(true), &output_js));
36 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(1.0), &output_js));
40 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(0.2), &output_js));
44 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(-0.8), &output_js));
48 EXPECT_TRUE(JSONWriter::Write(StringValue("foo"), &output_js));
67 EXPECT_TRUE(JSONWriter
[all...]
H A Djson_writer.h19 class BASE_EXPORT JSONWriter { class in namespace:base
45 // Same as above but with |options| which is a bunch of JSONWriter::Options
52 JSONWriter(int options, std::string* json);
68 DISALLOW_COPY_AND_ASSIGN(JSONWriter);
H A Djson_string_value_serializer.cc36 options |= base::JSONWriter::OPTIONS_OMIT_BINARY_VALUES;
38 options |= base::JSONWriter::OPTIONS_PRETTY_PRINT;
40 return base::JSONWriter::WriteWithOptions(root, options, json_string_);
H A Djson_writer.cc28 bool JSONWriter::Write(const Value& node, std::string* json) {
33 bool JSONWriter::WriteWithOptions(const Value& node,
40 JSONWriter writer(options, json);
49 JSONWriter::JSONWriter(int options, std::string* json) function in class:base::JSONWriter
58 bool JSONWriter::BuildJSONString(const Value& node, size_t depth) {
208 void JSONWriter::IndentLine(size_t depth) {
H A Djson_value_serializer_unittest.cc304 // Test JSONWriter interface
308 JSONWriter::Write(valueRoot, &output_js);
311 // Test JSONValueSerializer interface (uses JSONWriter).
/external/libweave/third_party/chromium/base/json/
H A Djson_writer_unittest.cc18 EXPECT_TRUE(JSONWriter::Write(*Value::CreateNullValue(), &output_js));
22 EXPECT_TRUE(JSONWriter::Write(DictionaryValue(), &output_js));
26 EXPECT_TRUE(JSONWriter::Write(ListValue(), &output_js));
30 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(42), &output_js));
34 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(true), &output_js));
38 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(1.0), &output_js));
42 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(0.2), &output_js));
46 EXPECT_TRUE(JSONWriter::Write(FundamentalValue(-0.8), &output_js));
50 EXPECT_TRUE(JSONWriter::Write(StringValue("foo"), &output_js));
69 EXPECT_TRUE(JSONWriter
[all...]
H A Djson_writer.h19 class BASE_EXPORT JSONWriter { class in namespace:base
45 // Same as above but with |options| which is a bunch of JSONWriter::Options
52 JSONWriter(int options, std::string* json);
68 DISALLOW_COPY_AND_ASSIGN(JSONWriter);
H A Djson_writer.cc28 bool JSONWriter::Write(const Value& node, std::string* json) {
33 bool JSONWriter::WriteWithOptions(const Value& node,
40 JSONWriter writer(options, json);
49 JSONWriter::JSONWriter(int options, std::string* json) function in class:base::JSONWriter
58 bool JSONWriter::BuildJSONString(const Value& node, size_t depth) {
208 void JSONWriter::IndentLine(size_t depth) {
/external/google-tv-pairing-protocol/java/src/com/google/polo/json/
H A DJSONWriter.java31 * JSONWriter provides a quick and convenient way of producing JSON text.
34 * JSONWriter can produce one JSON text.
36 * A JSONWriter instance provides a <code>value</code> method for appending
42 * object values. All of these methods return the JSONWriter instance,
44 * new JSONWriter(myWriter)
52 * There are no methods for adding commas or colons. JSONWriter adds them for
59 public class JSONWriter { class
94 * Make a fresh JSONWriter. It can be used to build one JSON text.
96 public JSONWriter(Writer w) { method in class:JSONWriter
110 private JSONWriter appen
[all...]
H A DJSONStringer.java41 * object values. All of these methods return the JSONWriter instance,
59 public class JSONStringer extends JSONWriter {
/external/libweave/src/privet/
H A Dprivet_manager.cc150 base::JSONWriter::WriteWithOptions(
151 output, base::JSONWriter::OPTIONS_PRETTY_PRINT, &data);
/external/libbrillo/brillo/http/
H A Dhttp_transport_fake.cc197 base::JSONWriter::Write(*json, &value);
258 base::JSONWriter::WriteWithOptions(
259 *json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &text);
H A Dhttp_utils.cc306 base::JSONWriter::Write(*json, &data);
322 base::JSONWriter::Write(*json, &data);
344 base::JSONWriter::Write(*json, &data);
366 base::JSONWriter::Write(*json, &data);
/external/libweave/src/
H A Dconfig.cc281 base::JSONWriter::WriteWithOptions(
282 dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_string);
H A Daccess_black_list_manager_impl.cc76 base::JSONWriter::Write(list, &json);
H A Ddevice_registration_info_unittest.cc93 base::JSONWriter::WriteWithOptions(
94 json, base::JSONWriter::OPTIONS_PRETTY_PRINT, &text);
168 base::JSONWriter::WriteWithOptions(
169 dict, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json_string);
H A Ddevice_registration_info.cc166 CHECK(base::JSONWriter::Write(json, &data));
662 base::JSONWriter::Write(*body, &data->body);
/external/clang/lib/Basic/
H A DVirtualFileSystem.cpp1380 class JSONWriter { class in namespace:__anon1252
1392 JSONWriter(llvm::raw_ostream &OS) : OS(OS) {} function in class:__anon1252::JSONWriter
1397 bool JSONWriter::containedIn(StringRef Parent, StringRef Path) {
1410 StringRef JSONWriter::containedPart(StringRef Parent, StringRef Path) {
1416 void JSONWriter::startDirectory(StringRef Path) {
1427 void JSONWriter::endDirectory() {
1435 void JSONWriter::writeEntry(StringRef VPath, StringRef RPath) {
1445 void JSONWriter::write(ArrayRef<YAMLVFSEntry> Entries,
1493 JSONWriter(OS).write(Mappings, IsCaseSensitive);
/external/robolectric/v1/lib/main/
H A Djson-20080701.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/json/ org/json/CDL.class CDL. ...
/external/robolectric/v3/runtime/
H A Djson-20080701.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/json/ org/json/CDL.class CDL. ...
/external/libchrome/dbus/
H A Dvalues_util.cc53 // Use JSONWriter to convert an arbitrary value to a string.
54 base::JSONWriter::Write(*key, &key_string);
/external/libchrome/base/trace_event/
H A Dtrace_event_argument.cc454 // produce the JSON on its own. This will require refactoring JSONWriter
457 JSONWriter::Write(*ToBaseValue(), &tmp);
H A Dtrace_config.cc156 base::JSONWriter::Write(dict, &json);
/external/libchrome/base/
H A Dvalues.cc1199 JSONWriter::WriteWithOptions(value, JSONWriter::OPTIONS_PRETTY_PRINT, &json);
/external/libweave/third_party/chromium/base/
H A Dvalues.cc1131 JSONWriter::WriteWithOptions(value, JSONWriter::OPTIONS_PRETTY_PRINT, &json);

Completed in 478 milliseconds