Home
last modified time | relevance | path

Searched refs:stringWriter (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
DStatusNotification.java50 StringWriter stringWriter = new StringWriter(1024); in notifyException() local
51 e.printStackTrace(new PrintWriter(stringWriter)); in notifyException()
52 notify("Exception occurred.\n" + stringWriter.toString()); in notifyException()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DObd2LiveFrameGeneratorTest.java78 StringWriter stringWriter = new StringWriter(1024); in testObd2LiveFrameGeneration() local
79 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testObd2LiveFrameGeneration()
81 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2LiveFrameGeneration()
DObd2FreezeFrameGeneratorTest.java97 StringWriter stringWriter = new StringWriter(1024); in testObd2FreezeFrameGeneration() local
98 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testObd2FreezeFrameGeneration()
102 JsonReader jsonReader = new JsonReader(new StringReader(stringWriter.toString())); in testObd2FreezeFrameGeneration()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java573 StringWriter stringWriter = new StringWriter(); in dump() local
574 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
577 stringWriter.flush(); in dump()
579 Scanner scanner = new Scanner(stringWriter.toString()); in dump()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java777 StringWriter stringWriter = new StringWriter(); in dump() local
778 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
781 stringWriter.flush(); in dump()
783 Scanner scanner = new Scanner(stringWriter.toString()); in dump()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java201 StringWriter stringWriter = new StringWriter(1024); in testWearEstimateJson() local
202 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testWearEstimateJson()
204 StringReader stringReader = new StringReader(stringWriter.toString()); in testWearEstimateJson()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java541 StringWriter stringWriter = new StringWriter(); in testDiagnosticJson() local
542 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testDiagnosticJson()
547 StringReader stringReader = new StringReader(stringWriter.toString()); in testDiagnosticJson()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java234 StringWriter stringWriter = new StringWriter(); in dump() local
235 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
238 stringWriter.flush(); in dump()
240 Scanner scanner = new Scanner(stringWriter.toString()); in dump()