Home
last modified time | relevance | path

Searched refs:jsonWriter (Results 1 – 18 of 18) sorted by relevance

/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2LiveFrameGenerator.java71 public JsonWriter generate(JsonWriter jsonWriter) throws IOException { in generate() argument
72 return generate(jsonWriter, SystemClock.elapsedRealtimeNanos()); in generate()
75 public JsonWriter generate(JsonWriter jsonWriter, long timestamp) throws IOException { in generate() argument
76 jsonWriter.beginObject(); in generate()
77 jsonWriter.name("type").value(FRAME_TYPE_LIVE); in generate()
78 jsonWriter.name("timestamp").value(timestamp); in generate()
79 jsonWriter.name("intValues").beginArray(); in generate()
84 jsonWriter.beginObject(); in generate()
85 jsonWriter.name("id").value(command.getPid()); in generate()
86 jsonWriter.name("value").value(result.get()); in generate()
[all …]
DObd2FreezeFrameGenerator.java66 public JsonWriter generate(JsonWriter jsonWriter) throws IOException, InterruptedException { in generate() argument
67 return generate(jsonWriter, SystemClock.elapsedRealtimeNanos()); in generate()
119 public JsonWriter generate(JsonWriter jsonWriter, long timestamp) in generate() argument
125 jsonWriter.beginObject(); in generate()
126 jsonWriter.name("type").value(FRAME_TYPE_FREEZE); in generate()
127 jsonWriter.name("timestamp").value(timestamp); in generate()
128 jsonWriter.name("stringValue").value(freezeFrame.dtc); in generate()
129 jsonWriter.name("intValues").beginArray(); in generate()
136 jsonWriter.beginObject(); in generate()
137 jsonWriter.name("id").value(command.getPid()); in generate()
[all …]
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStatsEntry.java125 public void writeToJson(JsonWriter jsonWriter) throws IOException { in writeToJson() argument
126 jsonWriter.beginObject(); in writeToJson()
127 jsonWriter.name("uid").value(uid); in writeToJson()
128 jsonWriter.name("runtimeMillis").value(runtimeMillis); in writeToJson()
129 jsonWriter.name("foreground"); foreground.writeToJson(jsonWriter); in writeToJson()
130 jsonWriter.name("background"); background.writeToJson(jsonWriter); in writeToJson()
131 jsonWriter.endObject(); in writeToJson()
277 public void writeToJson(JsonWriter jsonWriter) throws IOException { in writeToJson() argument
278 jsonWriter.beginObject(); in writeToJson()
279 jsonWriter.name("bytesRead").value(bytesRead); in writeToJson()
[all …]
DLifetimeWriteInfo.java87 public void writeToJson(JsonWriter jsonWriter) throws IOException { in writeToJson() argument
88 jsonWriter.beginObject(); in writeToJson()
89 jsonWriter.name("partition").value(partition); in writeToJson()
90 jsonWriter.name("fstype").value(fstype); in writeToJson()
91 jsonWriter.name("writtenBytes").value(writtenBytes); in writeToJson()
92 jsonWriter.endObject(); in writeToJson()
DIoStats.java87 public void writeToJson(JsonWriter jsonWriter) throws IOException { in writeToJson() argument
88 jsonWriter.beginObject(); in writeToJson()
89 jsonWriter.name("uptime").value(mUptimeTimestamp); in writeToJson()
90 jsonWriter.name("stats").beginArray(); in writeToJson()
92 stat.writeToJson(jsonWriter); in writeToJson()
94 jsonWriter.endArray(); in writeToJson()
95 jsonWriter.endObject(); in writeToJson()
DWearEstimate.java129 public void writeToJson(JsonWriter jsonWriter) throws IOException { in writeToJson() argument
130 jsonWriter.beginObject(); in writeToJson()
131 jsonWriter.name("wearEstimateTypeA").value(typeA); in writeToJson()
132 jsonWriter.name("wearEstimateTypeB").value(typeB); in writeToJson()
133 jsonWriter.endObject(); in writeToJson()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java450 try (JsonWriter jsonWriter = getJsonWriter(fileName)) { in backupAll() argument
452 chunk = putSmsMessagesToJson(cursor, jsonWriter); in backupAll()
454 chunk = putMmsMessagesToJson(cursor, jsonWriter); in backupAll()
463 JsonWriter jsonWriter) throws IOException { in putMmsMessagesToJson() argument
465 jsonWriter.beginArray(); in putMmsMessagesToJson()
468 writeMmsToWriter(jsonWriter, cursor, results); in putMmsMessagesToJson()
470 jsonWriter.endArray(); in putMmsMessagesToJson()
476 BackupChunkInformation putSmsMessagesToJson(Cursor cursor, JsonWriter jsonWriter) in putSmsMessagesToJson() argument
479 jsonWriter.beginArray(); in putSmsMessagesToJson()
482 writeSmsToWriter(jsonWriter, cursor, results); in putSmsMessagesToJson()
[all …]
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java126 public void writeToJson(JsonWriter jsonWriter) throws IOException { in writeToJson() argument
127 jsonWriter.beginObject(); in writeToJson()
129 jsonWriter.name("type"); in writeToJson()
132 jsonWriter.value("live"); in writeToJson()
135 jsonWriter.value("freeze"); in writeToJson()
141 jsonWriter.name("timestamp").value(timestamp); in writeToJson()
143 jsonWriter.name("intValues").beginArray(); in writeToJson()
145 jsonWriter.beginObject(); in writeToJson()
146 jsonWriter.name("id").value(mIntValues.keyAt(i)); in writeToJson()
147 jsonWriter.name("value").value(mIntValues.valueAt(i)); in writeToJson()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java318 try (JsonWriter jsonWriter = new JsonWriter(new OutputStreamWriter(fos, "UTF-8"))) { in storeLocation() argument
319 jsonWriter.beginObject(); in storeLocation()
320 jsonWriter.name(PROVIDER).value(location.getProvider()); in storeLocation()
321 jsonWriter.name(LATITUDE).value(location.getLatitude()); in storeLocation()
322 jsonWriter.name(LONGITUDE).value(location.getLongitude()); in storeLocation()
324 jsonWriter.name(ALTITUDE).value(location.getAltitude()); in storeLocation()
327 jsonWriter.name(SPEED).value(location.getSpeed()); in storeLocation()
330 jsonWriter.name(BEARING).value(location.getBearing()); in storeLocation()
333 jsonWriter.name(ACCURACY).value(location.getAccuracy()); in storeLocation()
336 jsonWriter.name(VERTICAL_ACCURACY).value( in storeLocation()
[all …]
DCarStorageMonitoringService.java217 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(mWearInfoFile))) { in storeWearHistory() argument
218 wearHistory.writeToJson(jsonWriter); in storeWearHistory()
479 JsonWriter jsonWriter = new JsonWriter(new FileWriter(mLifetimeWriteFile)); in logLifetimeWrites() local
480 jsonWriter.beginObject(); in logLifetimeWrites()
481 jsonWriter.name("lifetimeWriteInfo").beginArray(); in logLifetimeWrites()
484 writeInfo.writeToJson(jsonWriter); in logLifetimeWrites()
486 jsonWriter.endArray().endObject(); in logLifetimeWrites()
487 jsonWriter.close(); in logLifetimeWrites()
DCarUxRestrictionsManagerService.java524 try (JsonWriter jsonWriter = new JsonWriter( in persistConfig() argument
526 writeJson(jsonWriter, configs); in persistConfig()
537 void writeJson(JsonWriter jsonWriter, List<CarUxRestrictionsConfiguration> configs) in writeJson() argument
539 jsonWriter.beginObject(); in writeJson()
540 jsonWriter.name(JSON_NAME_SCHEMA_VERSION).value(JSON_SCHEMA_VERSION_V2); in writeJson()
541 jsonWriter.name(JSON_NAME_RESTRICTIONS); in writeJson()
542 jsonWriter.beginArray(); in writeJson()
544 config.writeJson(jsonWriter); in writeJson()
546 jsonWriter.endArray(); in writeJson()
547 jsonWriter.endObject(); in writeJson()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearEstimateRecord.java60 void writeToJson(@NonNull JsonWriter jsonWriter) throws IOException { in writeToJson() argument
61 jsonWriter.beginObject(); in writeToJson()
62 jsonWriter.name("oldWearEstimate"); mOldWearEstimate.writeToJson(jsonWriter); in writeToJson()
63 jsonWriter.name("newWearEstimate"); mNewWearEstimate.writeToJson(jsonWriter); in writeToJson()
64 jsonWriter.name("totalCarServiceUptime").value(mTotalCarServiceUptime); in writeToJson()
65 jsonWriter.name("unixTimestamp").value(mUnixTimestamp.toEpochMilli()); in writeToJson()
66 jsonWriter.endObject(); in writeToJson()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java336 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(wearHistoryFile))) { in configureFakeSystemInterface() argument
337 wearHistory.writeToJson(jsonWriter); in configureFakeSystemInterface()
344 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(uptimeFile))) { in configureFakeSystemInterface() argument
345 jsonWriter.beginObject(); in configureFakeSystemInterface()
346 jsonWriter.name("uptime").value(wearData.uptime); in configureFakeSystemInterface()
347 jsonWriter.endObject(); in configureFakeSystemInterface()
354 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(previousLifetimeFile))) { in configureFakeSystemInterface() argument
355 jsonWriter.beginObject(); in configureFakeSystemInterface()
356 jsonWriter.name("lifetimeWriteInfo").beginArray(); in configureFakeSystemInterface()
358 writeInfo.writeToJson(jsonWriter); in configureFakeSystemInterface()
[all …]
DCarDiagnosticManagerTest.java552 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testDiagnosticJson() local
554 liveFrame.writeToJson(jsonWriter); in testDiagnosticJson()
555 jsonWriter.flush(); in testDiagnosticJson()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java217 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testWearEstimateJson() local
218 originalWearEstimate.writeToJson(jsonWriter); in testWearEstimateJson()
230 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testWearEstimateRecordJson() argument
231 originalWearEstimateRecord.writeToJson(jsonWriter); in testWearEstimateRecordJson()
269 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testWearHistoryJson() argument
270 originalWearHistory.writeToJson(jsonWriter); in testWearHistoryJson()
474 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testUidIoStatEntryJson() argument
475 statEntry.writeToJson(jsonWriter); in testUidIoStatEntryJson()
688 try (JsonWriter jsonWriter = new JsonWriter(new FileWriter(temporaryFile.getFile()))) { in testUidIoStatsDeltaJson() argument
689 statsDelta.writeToJson(jsonWriter); in testUidIoStatsDeltaJson()
[all …]
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2FreezeFrameGeneratorTest.java98 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testObd2FreezeFrameGeneration() local
99 jsonWriter.beginArray(); in testObd2FreezeFrameGeneration()
100 obd2Generator.generate(jsonWriter); in testObd2FreezeFrameGeneration()
101 jsonWriter.endArray(); in testObd2FreezeFrameGeneration()
DObd2LiveFrameGeneratorTest.java79 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testObd2LiveFrameGeneration() local
80 obd2Generator.generate(jsonWriter); in testObd2LiveFrameGeneration()
/packages/services/Car/car-lib/api/
Dsystem-lint-baseline.txt257 Missing nullability on parameter `jsonWriter` in method `writeToJson`