HomeSort by relevance Sort by last modified time
    Searched refs:JsonWriter (Results 1 - 25 of 100) sorted by null

1 2 3 4

  /cts/tests/tests/util/src/android/util/cts/
JsonWriterTest.java 24 import android.util.JsonWriter;
40 JsonWriter jsonWriter = new JsonWriter(stringWriter);
42 jsonWriter.value("a");
51 JsonWriter jsonWriter = new JsonWriter(stringWriter);
52 jsonWriter.beginObject();
53 jsonWriter.name("a")
    [all...]
  /cts/libs/json/src/com/android/json/stream/
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/skia/dm/
DMJsonWriter.h 20 class JsonWriter {
DMJsonWriter.cpp 22 SkTArray<JsonWriter::BitmapResult> gBitmapResults;
25 void JsonWriter::AddBitmapResult(const BitmapResult& result) {
33 void JsonWriter::AddTestFailure(const skiatest::Failure& failure) {
38 void JsonWriter::DumpJson() {
98 bool JsonWriter::ReadJson(const char* path, void(*callback)(BitmapResult)) {
  /external/skqp/dm/
DMJsonWriter.h 20 class JsonWriter {
DMJsonWriter.cpp 22 SkTArray<JsonWriter::BitmapResult> gBitmapResults;
25 void JsonWriter::AddBitmapResult(const BitmapResult& result) {
33 void JsonWriter::AddTestFailure(const skiatest::Failure& failure) {
38 void JsonWriter::DumpJson() {
98 bool JsonWriter::ReadJson(const char* path, void(*callback)(BitmapResult)) {
  /external/v8/tools/clang/blink_gc_plugin/
JsonWriter.h 11 class JsonWriter {
13 static JsonWriter* from(std::unique_ptr<llvm::raw_ostream> os) {
14 return os ? new JsonWriter(std::move(os)) : 0;
56 JsonWriter(std::unique_ptr<llvm::raw_ostream> os) : os_(std::move(os)) {}
BlinkGCPluginConsumer.h 18 class JsonWriter;
90 JsonWriter* json_;
  /frameworks/base/core/java/android/util/
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/caliper/caliper/src/main/java/com/google/caliper/json/
InstantTypeAdapter.java 21 import com.google.gson.stream.JsonWriter;
32 @Override public void write(JsonWriter out, Instant value) throws IOException {
ImmutableListTypeAdatperFactory.java 26 import com.google.gson.stream.JsonWriter;
55 @Override public void write(JsonWriter out, T value) throws IOException {
ImmutableMapTypeAdapterFactory.java 26 import com.google.gson.stream.JsonWriter;
55 @Override public void write(JsonWriter out, T value) throws IOException {
NaturallySortedMapTypeAdapterFactory.java 26 import com.google.gson.stream.JsonWriter;
59 @Override public void write(JsonWriter out, T value) throws IOException {
  /frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
AssetJsonWriter.java 19 import android.util.JsonWriter;
32 private JsonWriter mWriter;
36 mWriter = new JsonWriter(mStringWriter);
  /packages/services/Car/obd2-lib/src/com/android/car/obd2/
Obd2LiveFrameGenerator.java 20 import android.util.JsonWriter;
71 public JsonWriter generate(JsonWriter jsonWriter) throws IOException {
72 return generate(jsonWriter, SystemClock.elapsedRealtimeNanos());
75 public JsonWriter generate(JsonWriter jsonWriter, long timestamp) throws IOException {
76 jsonWriter.beginObject();
77 jsonWriter.name("type").value(FRAME_TYPE_LIVE)
    [all...]
Obd2FreezeFrameGenerator.java 20 import android.util.JsonWriter;
66 public JsonWriter generate(JsonWriter jsonWriter) throws IOException, InterruptedException {
67 return generate(jsonWriter, SystemClock.elapsedRealtimeNanos());
119 public JsonWriter generate(JsonWriter jsonWriter, long timestamp)
125 jsonWriter.beginObject();
126 jsonWriter.name("type").value(FRAME_TYPE_FREEZE)
    [all...]
  /packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
Obd2LiveFrameGeneratorTest.java 26 import android.util.JsonWriter;
79 JsonWriter jsonWriter = new JsonWriter(stringWriter);
80 obd2Generator.generate(jsonWriter);
Obd2FreezeFrameGeneratorTest.java 26 import android.util.JsonWriter;
98 JsonWriter jsonWriter = new JsonWriter(stringWriter);
99 jsonWriter.beginArray();
100 obd2Generator.generate(jsonWriter);
101 jsonWriter.endArray();
  /packages/services/BuiltInPrintService/src/com/android/bips/
LocalDiscoverySessionInfo.java 22 import android.util.JsonWriter;
99 try (JsonWriter writer = new JsonWriter(new FileWriter(mCacheFile))) {
114 private void savePrinterIds(JsonWriter writer, List<PrinterId> ids, int max)
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
JsonUtils.java 20 import android.util.JsonWriter;
73 final JsonWriter writer = new JsonWriter(sw);
  /packages/services/Car/service/src/com/android/car/
UptimeTracker.java 20 import android.util.JsonWriter;
179 JsonWriter writer = new JsonWriter(new FileWriter(mUptimeFile));
  /packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
Obd2CollectionTask.java 23 import android.util.JsonWriter;
41 private final JsonWriter mJsonWriter;
105 new JsonWriter(
  /external/caliper/caliper/src/main/java/com/google/caliper/runner/
OutputFileDumper.java 32 import com.google.gson.stream.JsonWriter;
59 private Optional<JsonWriter> writer = Optional.absent();
100 JsonWriter writer =
101 new JsonWriter(new OutputStreamWriter(new FileOutputStream(workFile), Charsets.UTF_8));
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
ReportLogDeviceInfoStore.java 18 import android.util.JsonWriter;
67 mJsonWriter = new JsonWriter(new FileWriter(tempJsonFile, true));
  /packages/services/Car/car-lib/src/android/car/storagemonitoring/
LifetimeWriteInfo.java 21 import android.util.JsonWriter;
79 public void writeToJson(JsonWriter jsonWriter) throws IOException {
80 jsonWriter.beginObject();
81 jsonWriter.name("partition").value(partition);
82 jsonWriter.name("fstype").value(fstype);
83 jsonWriter.name("writtenBytes").value(writtenBytes);
84 jsonWriter.endObject();

Completed in 288 milliseconds

1 2 3 4