/frameworks/base/core/tests/coretests/src/android/util/ |
JsonWriterTest.java | 29 JsonWriter jsonWriter = new JsonWriter(stringWriter); 31 jsonWriter.value("a"); 39 JsonWriter jsonWriter = new JsonWriter(stringWriter); 40 jsonWriter.beginObject(); 41 jsonWriter.name("a"); 43 jsonWriter.name("a") [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
JsonUtils.java | 20 import android.util.JsonWriter; 39 /* package */ static void writeJson(final CompletionInfo[] ci, final JsonWriter jsonWriter) 41 jsonWriter.beginArray(); 43 jsonWriter.value(ci[j].toString()); 45 jsonWriter.endArray(); 48 /* package */ static void writeJson(final SharedPreferences prefs, final JsonWriter jsonWriter) 50 jsonWriter.beginObject(); 52 jsonWriter.name(entry.getKey()) [all...] |
LogStatement.java | 20 import android.util.JsonWriter; 168 * Write the contents out through jsonWriter. 170 * The JsonWriter class must have already had {@code JsonWriter.beginArray} called on it. 172 * Note that this method is not thread safe for the same jsonWriter. Callers must ensure 175 public boolean outputToLocked(final JsonWriter jsonWriter, final Long time, 183 jsonWriter.beginObject(); 184 jsonWriter.name(CURRENT_TIME_KEY).value(System.currentTimeMillis()); 185 jsonWriter.name(UPTIME_KEY).value(time) [all...] |
ResearchLog.java | 20 import android.util.JsonWriter; 42 * written to a {@link JsonWriter}, which will write to a local file. 44 * The JsonWriter is created on-demand by calling {@link #getInitializedJsonWriterLocked}. 54 // TODO: Automatically initialize the JsonWriter rather than requiring the caller to manage it. 64 // Earlier implementations used a dummy JsonWriter that just swallowed what it was given, but 65 // this was tricky to do well, because JsonWriter throws an exception if it is passed more than 67 private JsonWriter mJsonWriter = null; 70 // remembered because JsonWriter requires that calls matching calls to beginObject and 94 * Waits for any publication requests to finish and closes the {@link JsonWriter} used for 97 * See class comment for details about {@code JsonWriter} construction [all...] |
/external/chromium_org/base/json/ |
json_writer_unittest.cc | 15 JSONWriter::Write(root, &output_js); 21 JSONWriter::Write(root, &output_js); 27 JSONWriter::Write(root, &output_js); 33 JSONWriter::Write(root, &output_js); 39 JSONWriter::Write(root, &output_js); 45 JSONWriter::Write(root, &output_js); 62 JSONWriter::Write(&root_dict, &output_js); 64 JSONWriter::WriteWithOptions(&root_dict, JSONWriter::OPTIONS_PRETTY_PRINT, 88 JSONWriter::Write(&period_dict, &output_js) [all...] |
json_writer.h | 17 class BASE_EXPORT JSONWriter { 41 // Same as above but with |options| which is a bunch of JSONWriter::Options 47 JSONWriter(bool omit_binary_values, 65 DISALLOW_COPY_AND_ASSIGN(JSONWriter);
|
json_string_value_serializer.cc | 31 options |= base::JSONWriter::OPTIONS_OMIT_BINARY_VALUES; 33 options |= base::JSONWriter::OPTIONS_PRETTY_PRINT; 35 base::JSONWriter::WriteWithOptions(&root, options, json_string_);
|
json_writer.cc | 25 void JSONWriter::Write(const Value* const node, std::string* json) { 30 void JSONWriter::WriteWithOptions(const Value* const node, int options, 41 JSONWriter writer(omit_binary_values, omit_double_type_preservation, 49 JSONWriter::JSONWriter(bool omit_binary_values, 59 void JSONWriter::BuildJSONString(const Value* const node, int depth) { 213 void JSONWriter::IndentLine(int depth) {
|
/external/chromium/base/json/ |
json_writer_unittest.cc | 15 JSONWriter::Write(root, false, &output_js); 21 JSONWriter::Write(root, false, &output_js); 27 JSONWriter::Write(root, false, &output_js); 33 JSONWriter::Write(root, false, &output_js); 39 JSONWriter::Write(root, false, &output_js); 45 JSONWriter::Write(root, false, &output_js); 62 JSONWriter::Write(&root_dict, false, &output_js); 64 JSONWriter::Write(&root_dict, true, &output_js); 88 JSONWriter::Write(&period_dict, false, &output_js); 94 JSONWriter::Write(&period_dict3, false, &output_js) [all...] |
json_writer.h | 18 class BASE_API JSONWriter { 43 JSONWriter(bool pretty_print, std::string* json); 60 DISALLOW_COPY_AND_ASSIGN(JSONWriter);
|
json_writer.cc | 23 const char* JSONWriter::kEmptyArray = "[]"; 26 void JSONWriter::Write(const Value* const node, 33 void JSONWriter::WriteWithOptionalEscape(const Value* const node, 40 JSONWriter writer(pretty_print, json); 46 JSONWriter::JSONWriter(bool pretty_print, std::string* json) 52 void JSONWriter::BuildJSONString(const Value* const node, 191 void JSONWriter::AppendQuotedString(const std::string& str) { 197 void JSONWriter::IndentLine(int depth) {
|
/cts/libs/json/src/com/android/json/stream/ |
JsonToken.java | 25 * The opening of a JSON array. Written using {@link JsonWriter#beginObject} 31 * The closing of a JSON array. Written using {@link JsonWriter#endArray} 37 * The opening of a JSON object. Written using {@link JsonWriter#beginObject} 43 * The closing of a JSON object. Written using {@link JsonWriter#endObject} 50 * their values. Written using {@link JsonWriter#name} and read using {@link
|
JsonWriter.java | 32 * To encode your data as JSON, create a new {@code JsonWriter}. Each JSON 62 * "text": "@android_newb just use android.util.JsonWriter!", 72 * JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8")); 78 * public void writeMessagesArray(JsonWriter writer, List<Message> messages) throws IOException { 86 * public void writeMessage(JsonWriter writer, Message message) throws IOException { 101 * public void writeUser(JsonWriter writer, User user) throws IOException { 108 * public void writeDoublesArray(JsonWriter writer, List<Double> doubles) throws IOException { 116 * <p>Each {@code JsonWriter} may be used to write a single JSON stream. 120 public final class JsonWriter implements Closeable [all...] |
/frameworks/base/core/java/android/util/ |
JsonToken.java | 25 * The opening of a JSON array. Written using {@link JsonWriter#beginObject} 31 * The closing of a JSON array. Written using {@link JsonWriter#endArray} 37 * The opening of a JSON object. Written using {@link JsonWriter#beginObject} 43 * The closing of a JSON object. Written using {@link JsonWriter#endObject} 50 * their values. Written using {@link JsonWriter#name} and read using {@link
|
JsonWriter.java | 32 * To encode your data as JSON, create a new {@code JsonWriter}. Each JSON 62 * "text": "@android_newb just use android.util.JsonWriter!", 72 * JsonWriter writer = new JsonWriter(new OutputStreamWriter(out, "UTF-8")); 78 * public void writeMessagesArray(JsonWriter writer, List<Message> messages) throws IOException { 86 * public void writeMessage(JsonWriter writer, Message message) throws IOException { 101 * public void writeUser(JsonWriter writer, User user) throws IOException { 108 * public void writeDoublesArray(JsonWriter writer, List<Double> doubles) throws IOException { 116 * <p>Each {@code JsonWriter} may be used to write a single JSON stream. 120 public final class JsonWriter implements Closeable [all...] |
/external/chromium_org/chrome/test/chromedriver/chrome/ |
util.cc | 12 base::JSONWriter::Write(value, &json);
|
/external/chromium_org/sync/js/ |
js_arg_list.cc | 23 base::JSONWriter::Write(&Get(), &str);
|
js_event_details.cc | 24 base::JSONWriter::Write(&Get(), &str);
|
/external/chromium_org/sync/engine/ |
traffic_logger.cc | 27 base::JSONWriter::WriteWithOptions(value.get(), 28 base::JSONWriter::OPTIONS_PRETTY_PRINT,
|
/external/chromium_org/cc/debug/ |
traced_picture.cc | 50 base::JSONWriter::Write(res.get(), &tmp); 57 base::JSONWriter::Write(value.get(), &tmp);
|
traced_value.cc | 48 base::JSONWriter::Write(value_.get(), &tmp);
|
/external/chromium_org/chrome/browser/extensions/api/webrtc_audio_private/ |
webrtc_audio_private_browsertest.cc | 34 using base::JSONWriter; 84 JSONWriter::Write(¶meters, ¶meter_string); 158 JSONWriter::Write(result.get(), &result_string); 194 JSONWriter::Write(¶meters, ¶meter_string); 204 JSONWriter::Write(result.get(), &result_string); 217 JSONWriter::Write(¶meters, ¶meter_string); 263 JSONWriter::Write(¶meters, ¶meter_string); 307 JSONWriter::Write(¶meters, ¶meter_string); 314 JSONWriter::Write(result.get(), &result_string);
|
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
json_writer.py | 23 '''Factory method for creating JsonWriter objects. 27 return JsonWriter(['linux'], config) 30 class JsonWriter(template_writer.TemplateWriter):
|
/external/chromium/chrome/browser/sync/ |
js_arg_list.cc | 28 base::JSONWriter::Write(&Get(), false, &str);
|
/external/chromium_org/remoting/base/ |
vlog_net_log.cc | 38 base::JSONWriter::Write(value.get(), &json);
|