/packages/services/Telephony/tests/src/com/android/phone/ |
D | CarrierConfigLoaderTest.java | 363 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/ |
D | StatusNotification.java | 50 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/ |
D | Obd2LiveFrameGeneratorTest.java | 78 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()
|
D | Obd2FreezeFrameGeneratorTest.java | 97 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/ |
D | ReferenceWithHistoryTest.java | 163 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/ |
D | HearingAidStateMachine.java | 568 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/ |
D | CarPowerManagementServiceUnitTest.java | 479 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/ |
D | WificondScannerTest.java | 316 StringWriter stringWriter = new StringWriter(); in dumpObject() local 317 mScanner.dump(new FileDescriptor(), new PrintWriter(stringWriter), in dumpObject() 319 return stringWriter.toString(); in dumpObject()
|
D | WifiScanningServiceTest.java | 483 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/ |
D | A2dpStateMachine.java | 795 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/ |
D | CarDiagnosticManagerTest.java | 551 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/ |
D | WifiBackupRestoreTest.java | 290 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()
|
D | WifiConfigManagerTest.java | 4194 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/ |
D | CarStorageMonitoringTest.java | 216 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/ |
D | HeadsetClientStateMachine.java | 233 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/ |
D | HeadsetStateMachine.java | 242 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/ |
D | ConnectivityServiceTest.java | 10599 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()
|