Home
last modified time | relevance | path

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

/frameworks/base/test-base/src/junit/framework/
DTestFailure.java46 StringWriter stringWriter= new StringWriter(); in trace() local
47 PrintWriter writer= new PrintWriter(stringWriter); in trace()
49 StringBuffer buffer= stringWriter.getBuffer(); in trace()
DTestSuite.java106 StringWriter stringWriter= new StringWriter();
107 PrintWriter writer= new PrintWriter(stringWriter);
109 return stringWriter.toString();
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageStatusStorageTest.java251 StringWriter stringWriter = new StringWriter(); in dump() local
252 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
258 assertFalse(stringWriter.toString().isEmpty()); in dump()
261 stringWriter.getBuffer().setLength(0); in dump()
262 assertTrue(stringWriter.toString().isEmpty()); in dump()
269 assertFalse(stringWriter.toString().isEmpty()); in dump()
DPackageTrackerTest.java1214 StringWriter stringWriter = new StringWriter(); in dump() local
1215 PrintWriter printWriter = new PrintWriter(stringWriter); in dump()
1219 assertFalse(stringWriter.toString().isEmpty()); in dump()
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
DReferenceWithHistoryTest.java136 StringWriter stringWriter = new StringWriter(); in dumpReferenceWithHistory() local
137 try (IndentingPrintWriter ipw = new IndentingPrintWriter(stringWriter, " ")) { in dumpReferenceWithHistory()
139 return stringWriter.toString(); in dumpReferenceWithHistory()
DArrayMapWithHistoryTest.java108 StringWriter stringWriter = new StringWriter(); in dumpHistoryMap() local
109 try (IndentingPrintWriter ipw = new IndentingPrintWriter(stringWriter, " ")) { in dumpHistoryMap()
111 return stringWriter.toString(); in dumpHistoryMap()
/frameworks/base/core/java/android/app/servertransaction/
DTransactionExecutorHelper.java255 final StringWriter stringWriter = new StringWriter(); in transactionToString() local
256 final PrintWriter pw = new PrintWriter(stringWriter); in transactionToString()
261 return stringWriter.toString(); in transactionToString()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPersister.java520 StringWriter stringWriter = new StringWriter(); in saveToXml() local
521 xmlSerializer.setOutput(stringWriter); in saveToXml()
538 return stringWriter; in saveToXml()
544 StringWriter stringWriter = null; in process() local
552 stringWriter = saveToXml(task); in process()
558 if (stringWriter != null) { in process()
572 file.write(stringWriter.toString().getBytes()); in process()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondScannerTest.java192 StringWriter stringWriter = new StringWriter(); in dumpObject() local
193 mScanner.dump(new FileDescriptor(), new PrintWriter(stringWriter), in dumpObject()
195 return stringWriter.toString(); in dumpObject()
DWifiScanningServiceTest.java431 StringWriter stringWriter = new StringWriter(); in dumpService() local
432 mWifiScanningServiceImpl.dump(new FileDescriptor(), new PrintWriter(stringWriter), in dumpService()
434 return stringWriter.toString(); in dumpService()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DAccessibilityNodeInfoDumper.java84 StringWriter stringWriter = new StringWriter(); in dumpWindowToFile() local
85 serializer.setOutput(stringWriter); in dumpWindowToFile()
92 writer.write(stringWriter.toString()); in dumpWindowToFile()
/frameworks/base/test-runner/src/junit/runner/
DBaseTestRunner.java273 StringWriter stringWriter= new StringWriter(); in getFilteredTrace() local
274 PrintWriter writer= new PrintWriter(stringWriter); in getFilteredTrace()
276 StringBuffer buffer= stringWriter.getBuffer(); in getFilteredTrace()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java497 StringWriter stringWriter = new StringWriter(); in testDump_doesNotCrash() local
500 new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testDump_doesNotCrash()
502 assertFalse(stringWriter.toString().isEmpty()); in testDump_doesNotCrash()
964 final StringWriter stringWriter = new StringWriter(); in testServiceConnection_dump_doesNotCrash() local
966 connection.dump(new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testServiceConnection_dump_doesNotCrash()
968 assertFalse(stringWriter.toString().isEmpty()); in testServiceConnection_dump_doesNotCrash()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java203 StringWriter stringWriter = new StringWriter(); in cleanUp() local
205 new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in cleanUp()
206 String dumpString = stringWriter.toString(); in cleanUp()
DWifiConfigManagerTest.java3846 StringWriter stringWriter = new StringWriter(); in testDump() local
3848 new FileDescriptor(), new PrintWriter(stringWriter), new String[0]); in testDump()
3849 String dumpString = stringWriter.toString(); in testDump()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStateMachineTest.java2018 final StringWriter stringWriter = new StringWriter(); in testDumpDoesNotThrowNpeAfterQuit() local
2019 final PrintWriter printWriter = new PrintWriter(stringWriter); in testDumpDoesNotThrowNpeAfterQuit()