/packages/services/Car/obd2-lib/src/com/android/car/obd2/ |
D | Obd2LiveFrameGenerator.java | 71 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 …]
|
D | Obd2FreezeFrameGenerator.java | 66 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/ |
D | IoStatsEntry.java | 125 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 …]
|
D | LifetimeWriteInfo.java | 87 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()
|
D | IoStats.java | 87 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()
|
D | WearEstimate.java | 129 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/ |
D | TelephonyBackupAgent.java | 450 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/ |
D | CarDiagnosticEvent.java | 126 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/ |
D | CarLocationService.java | 318 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 …]
|
D | CarStorageMonitoringService.java | 217 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()
|
D | CarUxRestrictionsManagerService.java | 524 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/ |
D | WearEstimateRecord.java | 60 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/ |
D | CarStorageMonitoringTest.java | 336 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 …]
|
D | CarDiagnosticManagerTest.java | 552 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/ |
D | CarStorageMonitoringTest.java | 217 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/ |
D | Obd2FreezeFrameGeneratorTest.java | 98 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testObd2FreezeFrameGeneration() local 99 jsonWriter.beginArray(); in testObd2FreezeFrameGeneration() 100 obd2Generator.generate(jsonWriter); in testObd2FreezeFrameGeneration() 101 jsonWriter.endArray(); in testObd2FreezeFrameGeneration()
|
D | Obd2LiveFrameGeneratorTest.java | 79 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testObd2LiveFrameGeneration() local 80 obd2Generator.generate(jsonWriter); in testObd2LiveFrameGeneration()
|
/packages/services/Car/car-lib/api/ |
D | system-lint-baseline.txt | 257 Missing nullability on parameter `jsonWriter` in method `writeToJson`
|