Home | History | Annotate | Download | only in diagnostic

Lines Matching defs:jsonWriter

24 import android.util.JsonWriter;
112 * Store the contents of this diagnostic event in a JsonWriter.
125 public void writeToJson(JsonWriter jsonWriter) throws IOException {
126 jsonWriter.beginObject();
128 jsonWriter.name("type");
131 jsonWriter.value("live");
134 jsonWriter.value("freeze");
140 jsonWriter.name("timestamp").value(timestamp);
142 jsonWriter.name("intValues").beginArray();
144 jsonWriter.beginObject();
145 jsonWriter.name("id").value(intValues.keyAt(i));
146 jsonWriter.name("value").value(intValues.valueAt(i));
147 jsonWriter.endObject();
149 jsonWriter.endArray();
151 jsonWriter.name("floatValues").beginArray();
153 jsonWriter.beginObject();
154 jsonWriter.name("id").value(floatValues.keyAt(i));
155 jsonWriter.name("value").value(floatValues.valueAt(i));
156 jsonWriter.endObject();
158 jsonWriter.endArray();
161 jsonWriter.name("stringValue").value(dtc);
164 jsonWriter.endObject();