/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...] |
ResearchLog.java | 20 import android.util.JsonWriter; 43 * written to a {@link JsonWriter}, which will write to a local file. 45 * The JsonWriter is created on-demand by calling {@link #getInitializedJsonWriterLocked}. 55 // TODO: Automatically initialize the JsonWriter rather than requiring the caller to manage it. 65 // Earlier implementations used a dummy JsonWriter that just swallowed what it was given, but 66 // this was tricky to do well, because JsonWriter throws an exception if it is passed more than 68 private JsonWriter mJsonWriter = null; 71 // remembered because JsonWriter requires that calls matching calls to beginObject and 84 * Waits for any publication requests to finish and closes the {@link JsonWriter} used for 87 * See class comment for details about {@code JsonWriter} construction [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...] |
LogUnit.java | 21 import android.util.JsonWriter; 147 // Note that jsonWriter is only set to a non-null value if the logUnit start text is 149 JsonWriter jsonWriter = null; 158 // Only retrieve the jsonWriter if we need to. If we don't get this far, then 161 if (jsonWriter == null) { 162 jsonWriter = researchLog.getInitializedJsonWriterLocked(); 163 outputLogUnitStart(jsonWriter, canIncludePrivateData); 165 logStatement.outputToLocked(jsonWriter, mTimeList.get(i), mValuesList.get(i)); 167 if (jsonWriter != null) [all...] |
/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/chrome/browser/sync/ |
js_arg_list.cc | 28 base::JSONWriter::Write(&Get(), false, &str);
|
/external/chromium/chrome/browser/extensions/ |
extension_browser_event_router.cc | 90 base::JSONWriter::Write(&args, false, &json_args); 105 base::JSONWriter::Write(&args, false, &json_args); 211 base::JSONWriter::Write(&args, false, &json_args); 294 base::JSONWriter::Write(&args, false, &json_args); 318 base::JSONWriter::Write(&args, false, &json_args); 337 base::JSONWriter::Write(&args, false, &json_args); 365 base::JSONWriter::Write(&args, false, &json_args); 388 base::JSONWriter::Write(&args, false, &json_args); 428 base::JSONWriter::Write(&args, false, &json_args); 517 base::JSONWriter::Write(&args, false, &json_args) [all...] |
extension_debugger_api.cc | 150 base::JSONWriter::Write(&args, false, &json_args); 190 base::JSONWriter::Write(&protocol_request, false, &json_args); 229 base::JSONWriter::Write(&args, false, &json_args); 350 base::JSONWriter::Write(error_body, false, &error_);
|
extension_function.cc | 50 base::JSONWriter::Write(result_.get(), false, &json);
|
extension_webnavigation_api.cc | 74 base::JSONWriter::Write(&args, false, &json_args); 104 base::JSONWriter::Write(&args, false, &json_args); 124 base::JSONWriter::Write(&args, false, &json_args); 144 base::JSONWriter::Write(&args, false, &json_args); 163 base::JSONWriter::Write(&args, false, &json_args); 355 base::JSONWriter::Write(&args, false, &json_args);
|
extension_bookmarks_module.cc | 171 base::JSONWriter::Write(&args, false, &json_args); 186 base::JSONWriter::Write(&args, false, &json_args); 204 base::JSONWriter::Write(&args, false, &json_args); 225 base::JSONWriter::Write(&args, false, &json_args); 250 base::JSONWriter::Write(&args, false, &json_args); 260 base::JSONWriter::Write(&args, false, &json_args); 269 base::JSONWriter::Write(&args, false, &json_args);
|
/external/open-vcdiff/src/ |
jsonwriter_test.cc | 16 // Unit tests for the class JSONCodeTableWriter, found in jsonwriter.h. 19 #include "jsonwriter.h"
|
jsonwriter.cc | 21 #include "jsonwriter.h"
|
/external/open-vcdiff/vsprojects/vcdenc/ |
vcdenc.vcproj | 176 RelativePath="..\..\src\jsonwriter.h" 220 RelativePath="..\..\src\jsonwriter.cc"
|
/external/chromium/chrome/browser/net/ |
net_log_logger.cc | 37 base::JSONWriter::Write(value.get(), false, &json);
|
/external/chromium/chrome/browser/automation/ |
automation_provider_json.cc | 44 base::JSONWriter::Write(value, false, &json_string);
|
/external/robolectric/lib/main/ |
json-20080701.jar | |
/external/chromium/chrome/common/ |
json_value_serializer_unittest.cc | 108 // Test JSONWriter interface 112 base::JSONWriter::Write(&valueRoot, false, &output_js); 115 // Test JSONValueSerializer interface (uses JSONWriter).
|