HomeSort by relevance Sort by last modified time
    Searched defs:jsonWriter (Results 1 - 25 of 134) sorted by null

1 2 3 4 5 6

  /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...]
  /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();
IoStats.java 22 import android.util.JsonWriter;
79 public void writeToJson(JsonWriter jsonWriter) throws IOException {
80 jsonWriter.beginObject();
81 jsonWriter.name("uptime").value(mUptimeTimestamp);
82 jsonWriter.name("stats").beginArray();
84 stat.writeToJson(jsonWriter);
86 jsonWriter.endArray();
87 jsonWriter.endObject();
WearEstimate.java 23 import android.util.JsonWriter;
122 public void writeToJson(JsonWriter jsonWriter) throws IOException {
123 jsonWriter.beginObject();
124 jsonWriter.name("wearEstimateTypeA").value(typeA);
125 jsonWriter.name("wearEstimateTypeB").value(typeB);
126 jsonWriter.endObject();
IoStatsEntry.java 21 import android.util.JsonWriter;
119 public void writeToJson(JsonWriter jsonWriter) throws IOException {
120 jsonWriter.beginObject();
121 jsonWriter.name("uid").value(uid);
122 jsonWriter.name("runtimeMillis").value(runtimeMillis);
123 jsonWriter.name("foreground"); foreground.writeToJson(jsonWriter);
124 jsonWriter.name("background"); background.writeToJson(jsonWriter);
    [all...]
  /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/
Obd2FreezeFrameGeneratorTest.java 26 import android.util.JsonWriter;
98 JsonWriter jsonWriter = new JsonWriter(stringWriter);
99 jsonWriter.beginArray();
100 obd2Generator.generate(jsonWriter);
101 jsonWriter.endArray();
Obd2LiveFrameGeneratorTest.java 26 import android.util.JsonWriter;
79 JsonWriter jsonWriter = new JsonWriter(stringWriter);
80 obd2Generator.generate(jsonWriter);
  /packages/services/Car/service/src/com/android/car/storagemonitoring/
WearEstimateRecord.java 22 import android.util.JsonWriter;
60 void writeToJson(@NonNull JsonWriter jsonWriter) throws IOException {
61 jsonWriter.beginObject();
62 jsonWriter.name("oldWearEstimate"); mOldWearEstimate.writeToJson(jsonWriter);
63 jsonWriter.name("newWearEstimate"); mNewWearEstimate.writeToJson(jsonWriter);
64 jsonWriter.name("totalCarServiceUptime").value(mTotalCarServiceUptime);
65 jsonWriter.name("unixTimestamp").value(mUnixTimestamp.toEpochMilli())
    [all...]
  /packages/services/Car/tests/CarDiagnosticVerifier/src/com/google/android/car/diagnosticverifier/
DiagnosticVerifier.java 19 import android.util.JsonWriter;
89 public void writeToJson(JsonWriter jsonWriter) throws IOException {
90 jsonWriter.beginObject();
92 jsonWriter.name("testCase");
93 jsonWriter.value(this.testCase);
95 jsonWriter.name("success");
96 jsonWriter.value(this.success);
98 jsonWriter.name("errorMessage");
99 jsonWriter.value(this.errorMessage)
    [all...]
  /packages/services/Car/service/src/com/android/car/
CarLocationService.java 36 import android.util.JsonWriter;
166 JsonWriter jsonWriter = new JsonWriter(new OutputStreamWriter(fos, "UTF-8"));
167 jsonWriter.beginObject();
168 jsonWriter.name("provider").value(location.getProvider());
169 jsonWriter.name("latitude").value(location.getLatitude());
170 jsonWriter.name("longitude").value(location.getLongitude());
172 jsonWriter.name("altitude").value(location.getAltitude());
175 jsonWriter.name("speed").value(location.getSpeed())
    [all...]
CarStorageMonitoringService.java 37 import android.util.JsonWriter;
192 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(mWearInfoFile))) {
193 wearHistory.writeToJson(jsonWriter);
451 JsonWriter jsonWriter = new JsonWriter(new FileWriter(mLifetimeWriteFile));
452 jsonWriter.beginObject();
453 jsonWriter.name("lifetimeWriteInfo").beginArray()
    [all...]
  /packages/providers/TelephonyProvider/src/com/android/providers/telephony/
TelephonyBackupAgent.java 52 import android.util.JsonWriter;
447 try (JsonWriter jsonWriter = getJsonWriter(fileName)) {
449 messagesWritten = putSmsMessagesToJson(cursor, jsonWriter);
451 messagesWritten = putMmsMessagesToJson(cursor, jsonWriter);
459 JsonWriter jsonWriter) throws IOException {
460 jsonWriter.beginArray();
464 msgCount += writeMmsToWriter(jsonWriter, cursor);
466 jsonWriter.endArray()
    [all...]
  /packages/services/Car/car-lib/src/android/car/diagnostic/
CarDiagnosticEvent.java 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()
    [all...]
  /packages/services/Car/tests/carservice_test/src/com/android/car/
CarDiagnosticManagerTest.java 43 import android.util.JsonWriter;
540 JsonWriter jsonWriter = new JsonWriter(stringWriter);
542 liveFrame.writeToJson(jsonWriter);
543 jsonWriter.flush();
    [all...]
CarStorageMonitoringTest.java 42 import android.util.JsonWriter;
382 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(wearHistoryFile))) {
383 wearHistory.writeToJson(jsonWriter);
390 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(uptimeFile))) {
391 jsonWriter.beginObject();
392 jsonWriter.name("uptime").value(wearData.uptime)
    [all...]
  /packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
CarStorageMonitoringTest.java 32 import android.util.JsonWriter;
157 JsonWriter jsonWriter = new JsonWriter(stringWriter);
158 originalWearEstimate.writeToJson(jsonWriter);
169 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) {
170 originalWearEstimateRecord.writeToJson(jsonWriter);
205 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile())))
    [all...]
  /prebuilts/tools/common/m2/repository/com/ryanharter/auto/value/auto-value-gson/0.3.2-rc1/
auto-value-gson-0.3.2-rc1.jar 
  /external/caliper/lib/
gson-2.2.2.jar 
  /prebuilts/devtools/tools/lib/
gson-2.2.4.jar 
  /prebuilts/gradle-plugin/com/google/code/gson/gson/2.3/
gson-2.3.jar 
  /prebuilts/sdk/tools/jetifier/jetifier-standalone/lib/
gson-2.8.0.jar 
  /prebuilts/tools/common/m2/repository/com/google/code/gson/gson/2.2.4/
gson-2.2.4.jar 
  /prebuilts/tools/common/m2/repository/com/google/code/gson/gson/2.3/
gson-2.3.jar 

Completed in 460 milliseconds

1 2 3 4 5 6