Searched refs:jsonWriter (Results 1 - 8 of 8) sorted by relevance
/packages/services/Car/obd2-lib/src/com/android/car/obd2/ |
H A D | Obd2LiveFrameGenerator.java | 71 public JsonWriter generate(JsonWriter jsonWriter) throws IOException { argument 72 return generate(jsonWriter, SystemClock.elapsedRealtimeNanos()); 75 public JsonWriter generate(JsonWriter jsonWriter, long timestamp) throws IOException { argument 76 jsonWriter.beginObject(); 77 jsonWriter.name("type").value(FRAME_TYPE_LIVE); 78 jsonWriter.name("timestamp").value(timestamp); 79 jsonWriter.name("intValues").beginArray(); 84 jsonWriter.beginObject(); 85 jsonWriter.name("id").value(command.getPid()); 86 jsonWriter [all...] |
H A D | Obd2FreezeFrameGenerator.java | 66 public JsonWriter generate(JsonWriter jsonWriter) throws IOException, InterruptedException { argument 67 return generate(jsonWriter, SystemClock.elapsedRealtimeNanos()); 119 public JsonWriter generate(JsonWriter jsonWriter, long timestamp) argument 125 jsonWriter.beginObject(); 126 jsonWriter.name("type").value(FRAME_TYPE_FREEZE); 127 jsonWriter.name("timestamp").value(timestamp); 128 jsonWriter.name("stringValue").value(freezeFrame.dtc); 129 jsonWriter.name("intValues").beginArray(); 136 jsonWriter.beginObject(); 137 jsonWriter [all...] |
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/ |
H A D | Obd2FreezeFrameGeneratorTest.java | 98 JsonWriter jsonWriter = new JsonWriter(stringWriter); 99 jsonWriter.beginArray(); 100 obd2Generator.generate(jsonWriter); 101 jsonWriter.endArray();
|
H A D | Obd2LiveFrameGeneratorTest.java | 79 JsonWriter jsonWriter = new JsonWriter(stringWriter); 80 obd2Generator.generate(jsonWriter);
|
/packages/services/Car/tests/CarDiagnosticVerifier/src/com/google/android/car/diagnosticverifier/ |
H A D | DiagnosticVerifier.java | 89 public void writeToJson(JsonWriter jsonWriter) throws IOException { argument 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); 101 jsonWriter.endObject();
|
/packages/services/Car/car-lib/src/android/car/diagnostic/ |
H A D | CarDiagnosticEvent.java | 125 public void writeToJson(JsonWriter jsonWriter) throws IOException { argument 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 [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | TelephonyBackupAgent.java | 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(); 471 int putSmsMessagesToJson(Cursor cursor, JsonWriter jsonWriter) throws IOException { argument 473 jsonWriter.beginArray(); 477 writeSmsToWriter(jsonWriter, curso 458 putMmsMessagesToJson(Cursor cursor, JsonWriter jsonWriter) argument 713 writeSmsToWriter(JsonWriter jsonWriter, Cursor cursor) argument 745 handleThreadId(JsonWriter jsonWriter, long threadId) argument 779 writeRecipientsToWriter(JsonWriter jsonWriter, List<String> recipients) argument 846 writeMmsToWriter(JsonWriter jsonWriter, Cursor cursor) argument 1027 writeMmsAddresses(JsonWriter jsonWriter, int mmsId) argument 1266 writeStringToWriter(JsonWriter jsonWriter, Cursor cursor, String name) argument 1274 writeIntToWriter(JsonWriter jsonWriter, Cursor cursor, String name) argument [all...] |
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
H A D | CarDiagnosticManagerTest.java | 524 JsonWriter jsonWriter = new JsonWriter(stringWriter); 526 liveFrame.writeToJson(jsonWriter); 527 jsonWriter.flush();
|
Completed in 149 milliseconds