/frameworks/base/test-base/src/junit/framework/ |
D | TestFailure.java | 46 StringWriter stringWriter= new StringWriter(); in trace() local 47 PrintWriter writer= new PrintWriter(stringWriter); in trace() 49 StringBuffer buffer= stringWriter.getBuffer(); in trace()
|
D | TestSuite.java | 106 StringWriter stringWriter= new StringWriter(); 107 PrintWriter writer= new PrintWriter(stringWriter); 109 return stringWriter.toString();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/ |
D | PackageStatusStorageTest.java | 251 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()
|
D | PackageTrackerTest.java | 1214 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/ |
D | ReferenceWithHistoryTest.java | 136 StringWriter stringWriter = new StringWriter(); in dumpReferenceWithHistory() local 137 try (IndentingPrintWriter ipw = new IndentingPrintWriter(stringWriter, " ")) { in dumpReferenceWithHistory() 139 return stringWriter.toString(); in dumpReferenceWithHistory()
|
D | ArrayMapWithHistoryTest.java | 108 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/ |
D | TransactionExecutorHelper.java | 255 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/ |
D | TaskPersister.java | 520 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/ |
D | WificondScannerTest.java | 192 StringWriter stringWriter = new StringWriter(); in dumpObject() local 193 mScanner.dump(new FileDescriptor(), new PrintWriter(stringWriter), in dumpObject() 195 return stringWriter.toString(); in dumpObject()
|
D | WifiScanningServiceTest.java | 431 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/ |
D | AccessibilityNodeInfoDumper.java | 84 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/ |
D | BaseTestRunner.java | 273 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/ |
D | NetworkScoreServiceTest.java | 497 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/ |
D | WifiBackupRestoreTest.java | 203 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()
|
D | WifiConfigManagerTest.java | 3846 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/ |
D | StateMachineTest.java | 2018 final StringWriter stringWriter = new StringWriter(); in testDumpDoesNotThrowNpeAfterQuit() local 2019 final PrintWriter printWriter = new PrintWriter(stringWriter); in testDumpDoesNotThrowNpeAfterQuit()
|