Home
last modified time | relevance | path

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

/packages/services/Telephony/tests/src/com/android/phone/
DCarrierConfigLoaderTest.java363 StringWriter stringWriter = new StringWriter(); in testDump_noPermission() local
364 mCarrierConfigLoader.dump(new FileDescriptor(), new PrintWriter(stringWriter), in testDump_noPermission()
366 stringWriter.flush(); in testDump_noPermission()
368 assertThat(stringWriter.toString()).contains("Permission Denial:"); in testDump_noPermission()
378 StringWriter stringWriter = new StringWriter(); in testDump_withPermission() local
379 mCarrierConfigLoader.dump(new FileDescriptor(), new PrintWriter(stringWriter), in testDump_withPermission()
381 stringWriter.flush(); in testDump_withPermission()
383 String dumpContent = stringWriter.toString(); in testDump_withPermission()
/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/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DReferenceWithHistoryTest.java163 StringWriter stringWriter = new StringWriter(); in dumpReferenceWithHistory() local
164 try (PrintWriter ipw = new PrintWriter(stringWriter)) { in dumpReferenceWithHistory()
166 return stringWriter.toString(); in dumpReferenceWithHistory()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java568 StringWriter stringWriter = new StringWriter(); in dump() local
569 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
572 stringWriter.flush(); in dump()
574 Scanner scanner = new Scanner(stringWriter.toString()); in dump()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java479 StringWriter stringWriter = new StringWriter(); in testDefinePowerPolicyGroupFromCommand() local
481 try (IndentingPrintWriter writer = new IndentingPrintWriter(stringWriter, " ")) { in testDefinePowerPolicyGroupFromCommand()
498 StringWriter stringWriter = new StringWriter(); in testDefinePowerPolicyGroupFromCommand_noPolicyDefined() local
500 try (IndentingPrintWriter writer = new IndentingPrintWriter(stringWriter, " ")) { in testDefinePowerPolicyGroupFromCommand_noPolicyDefined()
514 StringWriter stringWriter = new StringWriter(); in testDefinePowerPolicyGroupFromCommand_invalidStateName() local
515 IndentingPrintWriter writer = new IndentingPrintWriter(stringWriter, " "); in testDefinePowerPolicyGroupFromCommand_invalidStateName()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondScannerTest.java316 StringWriter stringWriter = new StringWriter(); in dumpObject() local
317 mScanner.dump(new FileDescriptor(), new PrintWriter(stringWriter), in dumpObject()
319 return stringWriter.toString(); in dumpObject()
DWifiScanningServiceTest.java483 StringWriter stringWriter = new StringWriter(); in dumpService() local
484 mWifiScanningServiceImpl.dump(new FileDescriptor(), new PrintWriter(stringWriter), in dumpService()
486 return stringWriter.toString(); in dumpService()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java795 StringWriter stringWriter = new StringWriter(); in dump() local
796 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
799 stringWriter.flush(); in dump()
801 Scanner scanner = new Scanner(stringWriter.toString()); in dump()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java551 StringWriter stringWriter = new StringWriter(); in testDiagnosticJson() local
552 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testDiagnosticJson()
557 StringReader stringReader = new StringReader(stringWriter.toString()); in testDiagnosticJson()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java290 StringWriter stringWriter = new StringWriter(); in cleanUp() local
292 new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in cleanUp()
293 String dumpString = stringWriter.toString(); in cleanUp()
DWifiConfigManagerTest.java4194 StringWriter stringWriter = new StringWriter(); in testDump() local
4196 new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testDump()
4197 String dumpString = stringWriter.toString(); in testDump()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java216 StringWriter stringWriter = new StringWriter(1024); in testWearEstimateJson() local
217 JsonWriter jsonWriter = new JsonWriter(stringWriter); in testWearEstimateJson()
219 StringReader stringReader = new StringReader(stringWriter.toString()); in testWearEstimateJson()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java233 StringWriter stringWriter = new StringWriter(); in dump() local
234 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
237 stringWriter.flush(); in dump()
239 Scanner scanner = new Scanner(stringWriter.toString()); in dump()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java242 StringWriter stringWriter = new StringWriter(); in dump() local
243 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
246 stringWriter.flush(); in dump()
248 Scanner scanner = new Scanner(stringWriter.toString()); in dump()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DConnectivityServiceTest.java10599 final StringWriter stringWriter = new StringWriter(); in testDumpDoesNotCrash() local
10601 mService.dump(new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testDumpDoesNotCrash()
10603 assertFalse(stringWriter.toString().isEmpty()); in testDumpDoesNotCrash()
12778 final StringWriter stringWriter = new StringWriter(); in testSetOemNetworkPreferenceLogsRequest() local
12789 mService.dump(new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testSetOemNetworkPreferenceLogsRequest()
12791 final String dumpOutput = stringWriter.toString(); in testSetOemNetworkPreferenceLogsRequest()