Home
last modified time | relevance | path

Searched refs:baos (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/util/
DFixedByteArrayOutputStreamTest.java57 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in writeTextIntoStreamAndReturn() local
58 StreamUtil.copyStreams(mOutStream.getData(), baos); in writeTextIntoStreamAndReturn() local
59 baos.close(); in writeTextIntoStreamAndReturn()
60 return baos.toString(); in writeTextIntoStreamAndReturn()
119 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testLessThanBufferWithOffset() local
120 StreamUtil.copyStreams(mOutStream.getData(), baos); in testLessThanBufferWithOffset() local
121 baos.close(); in testLessThanBufferWithOffset()
122 assertEquals(expected, baos.toString()); in testLessThanBufferWithOffset()
140 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testWriteWithOffsetAndWrap() local
141 StreamUtil.copyStreams(mOutStream.getData(), baos); in testWriteWithOffsetAndWrap() local
[all …]
DStreamUtilTest.java195 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testCopyStreams() local
196 StreamUtil.copyStreams(bais, baos); in testCopyStreams()
198 baos.close(); in testCopyStreams()
199 assertEquals(text, baos.toString()); in testCopyStreams()
215 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testCopyStreams_partialSuccess() local
217 StreamUtil.copyStreams(bais, baos, 1024, 20 * 1024); in testCopyStreams_partialSuccess()
219 baos.close(); in testCopyStreams_partialSuccess()
220 assertEquals(builder.toString().substring(1024, 21 * 1024), baos.toString()); in testCopyStreams_partialSuccess()
231 try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { in testCopyStreams_partialFail() argument
235 StreamUtil.copyStreams(bais, baos, 10, text.length() + 1024); in testCopyStreams_partialFail()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/config/
DGlobalConfigurationTest.java106 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testPrintCommandUsage() local
107 PrintStream ps = new PrintStream(baos, true); in testPrintCommandUsage()
112 assertEquals(expected, baos.toString()); in testPrintCommandUsage()
115 baos = new ByteArrayOutputStream(); in testPrintCommandUsage()
116 ps = new PrintStream(baos, true); in testPrintCommandUsage()
120 assertTrue(baos.toString().contains(expected)); in testPrintCommandUsage()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java1016 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadAllConfigs() local
1017 PrintStream ps = new PrintStream(baos); in loadAllConfigs()
1037 CLog.e(baos.toString()); in loadAllConfigs()
1039 throw new ConfigurationException(baos.toString()); in loadAllConfigs()
1162 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in loadAndPrintAllConfigs() local
1163 PrintStream ps = new PrintStream(baos); in loadAndPrintAllConfigs()
1198 throw new ConfigurationException(baos.toString()); in loadAndPrintAllConfigs()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil.java687 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in unzipSymlink() local
688 unzipToStream(zipFile, baos); in unzipSymlink()
689 target = baos.toString(); in unzipSymlink()
/tools/dexter/testdata/expected/
Dmedium.compact_cfg178020 .local v6, "baos", java.io.ByteArrayOutputStream