| /external/apache-commons-io/src/test/java/org/apache/commons/io/ |
| D | IOUtilsWriteTest.java | 30 import org.apache.commons.io.output.ByteArrayOutputStream; 49 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToOutputStream() 62 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToOutputStream_nullData() 79 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToWriter() 94 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToWriter_Encoding() 110 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToWriter_Encoding_nullData() 124 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToWriter_Encoding_nullEncoding() 144 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_byteArrayToWriter_nullData() 165 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_charArrayToOutputStream() 180 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testWrite_charArrayToOutputStream_Encoding() [all …]
|
| D | IOUtilsCopyTest.java | 39 import org.apache.commons.io.output.ByteArrayOutputStream; 66 final java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream(); in testCopy_byteArrayOutputStreamToInputStream() 90 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToOutputStream() 122 final OutputStream out = new ByteArrayOutputStream(); in testCopy_inputStreamToOutputStream_nullIn() 156 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToOutputStreamWithBufferSize() 173 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToWriter() 192 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToWriter_Encoding() 212 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToWriter_Encoding_nullEncoding() 227 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToWriter_Encoding_nullIn() 242 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToWriter_nullIn() [all …]
|
| D | CopyUtilsTest.java | 31 import org.apache.commons.io.output.ByteArrayOutputStream; 59 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_byteArrayToOutputStream() 70 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_byteArrayToWriter() 87 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_inputStreamToWriter() 115 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_readerToWriter() 130 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_stringToOutputStream() 149 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_stringToOutputStreamString() 168 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in copy_stringToWriter() 194 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_inputStreamToOutputStream() 212 final ByteArrayOutputStream baout = new ByteArrayOutputStream(); in testCopy_readerToOutputStream() [all …]
|
| /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/ |
| D | InstrumenterTest.java | 21 import java.io.ByteArrayOutputStream; 194 new ByteArrayOutputStream(), "BrokenStream"); in testInstrumentBrokenStream2() 213 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); in testSerialization() 230 new ByteArrayOutputStream(), "UnsupportedVersion"); in instrumentAll_should_throw_exception_for_unsupported_class_file_version() 243 OutputStream out = new ByteArrayOutputStream(); in testInstrumentAll_Class() 252 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); in testInstrumentAll_Zip() 272 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testInstrumentAll_Zip() 297 new ByteArrayOutputStream(), "Broken"); in testInstrumentAll_Broken() 324 instrumenter.instrumentAll(inputStream, new ByteArrayOutputStream(), in testInstrumentAll_Broken2() 346 new ByteArrayOutputStream(), "Test.zip"); in testInstrumentAll_BrokenZip() [all …]
|
| /external/cronet/testing/android/junit/javatests/src/org/chromium/testing/local/ |
| D | GtestLoggerTest.java | 13 import java.io.ByteArrayOutputStream; 29 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestStarted() 40 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestFinishedPassed() 53 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestFinishedFailed() 66 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestCaseStarted() 77 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestCaseFinished() 89 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestRunStarted() 100 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestRunFinishedNoFailures() 112 ByteArrayOutputStream actual = new ByteArrayOutputStream(); in testTestRunFinishedWithFailures()
|
| /external/testng/src/main/java/org/testng/log4testng/ |
| D | Logger.java | 4 import java.io.ByteArrayOutputStream; 491 ByteArrayOutputStream out1= new ByteArrayOutputStream(); in testDebugDefault() 492 ByteArrayOutputStream err1= new ByteArrayOutputStream(); in testDebugDefault() 506 ByteArrayOutputStream out1= new ByteArrayOutputStream(); in testDebugOn() 507 ByteArrayOutputStream err1= new ByteArrayOutputStream(); in testDebugOn() 522 ByteArrayOutputStream out1= new ByteArrayOutputStream(); in testDebugOff() 523 ByteArrayOutputStream err1= new ByteArrayOutputStream(); in testDebugOff() 538 ByteArrayOutputStream out1= new ByteArrayOutputStream(); in testDebugError() 539 ByteArrayOutputStream err1= new ByteArrayOutputStream(); in testDebugError() 563 ByteArrayOutputStream out1= new ByteArrayOutputStream(); in testRootLoggerDefault() [all …]
|
| /external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/tar/ |
| D | TarArchiveOutputStreamTest.java | 29 import java.io.ByteArrayOutputStream; 87 new TarArchiveOutputStream(new ByteArrayOutputStream()); in testMaxFileSizeError() 90 tos = new TarArchiveOutputStream(new ByteArrayOutputStream()); in testMaxFileSizeError() 102 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testBigNumberStarMode() 128 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testBigNumberPosixMode() 205 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writePaxHeader() 228 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testWriteLongFileNamePosixMode() 250 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testOldEntryStarMode() 281 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testOldEntryPosixMode() 315 new TarArchiveOutputStream(new ByteArrayOutputStream()); in testOldEntryError() [all …]
|
| /external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
| D | SerializationUtilsTest.java | 30 import java.io.ByteArrayOutputStream; 101 final ByteArrayOutputStream streamTest = new ByteArrayOutputStream(); in testSerializeStream() 104 final ByteArrayOutputStream streamReal = new ByteArrayOutputStream(); in testSerializeStream() 118 final ByteArrayOutputStream streamTest = new ByteArrayOutputStream(); in testSerializeStreamUnserializable() 125 final ByteArrayOutputStream streamTest = new ByteArrayOutputStream(); in testSerializeStreamNullObj() 128 final ByteArrayOutputStream streamReal = new ByteArrayOutputStream(); in testSerializeStreamNullObj() 168 final ByteArrayOutputStream streamReal = new ByteArrayOutputStream(); in testDeserializeStream() 201 final ByteArrayOutputStream streamReal = new ByteArrayOutputStream(); in testDeserializeStreamOfNull() 225 final ByteArrayOutputStream streamReal = new ByteArrayOutputStream(); in testDeserializeStreamClassNotFound() 246 final ByteArrayOutputStream streamReal = new ByteArrayOutputStream(); in testSerializeBytes() [all …]
|
| /external/cbor-java/src/test/java/co/nstant/in/cbor/decoder/ |
| D | LanguageTaggedStringDecoderTest.java | 6 import java.io.ByteArrayOutputStream; 25 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldThrowException() 39 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExceptionOnNotAnArray() 53 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExceptionOnNot2ElementArray() 67 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExceptionOnNotFirstElementIsString() 81 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testExceptionOnNotSecondElementIsString() 95 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in testDecoding()
|
| D | CborDecoderTest.java | 8 import java.io.ByteArrayOutputStream; 85 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldThrowOnRationalNumberDecode1() 99 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldThrowOnRationalNumberDecode2() 113 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldThrowOnRationalNumberDecode3() 127 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldThrowOnRationalNumberDecode4() 141 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldDecodeRationalNumber() 169 ByteArrayOutputStream baos = new ByteArrayOutputStream(); in shouldDecodeTaggedRationalNumber()
|
| /external/jackson-core/src/test/java/com/fasterxml/jackson/core/io/ |
| D | UTF8WriterTest.java | 18 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testSimple() 49 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testSimpleAscii() 70 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testFlushAfterClose() 91 ByteArrayOutputStream out = new ByteArrayOutputStream(); in testSurrogatesOk() 105 out = new ByteArrayOutputStream(); in testSurrogatesOk() 118 ByteArrayOutputStream out; in testSurrogatesFail() 122 out = new ByteArrayOutputStream(); in testSurrogatesFail() 132 out = new ByteArrayOutputStream(); in testSurrogatesFail() 143 out = new ByteArrayOutputStream(); in testSurrogatesFail() 153 out = new ByteArrayOutputStream(); in testSurrogatesFail()
|
| /external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/ |
| D | BlockLZ4CompressorOutputStreamTest.java | 21 import java.io.ByteArrayOutputStream; 94 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in canWritePairWithoutLiterals() 103 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCorrectSizeFor19ByteLengthBackReference() 112 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCorrectSizeFor273ByteLengthBackReference() 121 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCorrectSizeFor274ByteLengthBackReference() 131 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in canWritePairWithoutBackReference() 142 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCorrectSizeFor15ByteLengthLiteral() 156 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCorrectSizeFor269ByteLengthLiteral() 169 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCorrectSizeFor270ByteLengthLiteral() 182 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in writesCompletePair() [all …]
|
| /external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
| D | ByteUtilsTest.java | 22 import java.io.ByteArrayOutputStream; 145 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toLittleEndianToStream() 153 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toLittleEndianToStreamUnsignedInt32() 161 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toLittleEndianToConsumer() 169 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toLittleEndianToConsumerUnsignedInt32() 177 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toLittleEndianToDataOutput() 186 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in toLittleEndianToDataOutputUnsignedInt32()
|
| /external/apache-commons-io/src/test/java/org/apache/commons/io/output/ |
| D | TeeOutputStreamTest.java | 24 import java.io.ByteArrayOutputStream; 50 final ByteArrayOutputStream goodOs = mock(ByteArrayOutputStream.class); in testIOExceptionOnClose() 67 final ByteArrayOutputStream goodOs = mock(ByteArrayOutputStream.class); in testIOExceptionOnCloseBranch() 79 final ByteArrayOutputStream baos1 = new ByteArrayOutputStream(); in testTee() 80 final ByteArrayOutputStream baos2 = new ByteArrayOutputStream(); in testTee() 81 final ByteArrayOutputStream expected = new ByteArrayOutputStream(); in testTee()
|
| D | ByteArrayOutputStreamTest.java | 49 … private static class ByteArrayOutputStreamFactory implements BAOSFactory<ByteArrayOutputStream> { 51 public ByteArrayOutputStream newInstance() { in newInstance() 52 return new ByteArrayOutputStream(); in newInstance() 56 public ByteArrayOutputStream newInstance(final int size) { in newInstance() 57 return new ByteArrayOutputStream(size); in newInstance() 83 …return Stream.of(Arguments.of(ByteArrayOutputStream.class.getSimpleName(), new ByteArrayOutputStre… in baosFactories() 97 …unction<InputStream, InputStream> syncBaosToBufferedInputStream = ByteArrayOutputStream::toBuffere… in toBufferedInputStreamFunctionFactories() 98 …tream, InputStream> syncBaosToBufferedInputStreamWithSize = is -> ByteArrayOutputStream.toBuffered… in toBufferedInputStreamFunctionFactories() 118 …Streams(final AbstractByteArrayOutputStream actual, final java.io.ByteArrayOutputStream expected) { in checkStreams() 179 final java.io.ByteArrayOutputStream ref = new java.io.ByteArrayOutputStream()) { in testStream() [all …]
|
| D | ProxyWriterTest.java | 65 try (ByteArrayOutputStream baos = new ByteArrayOutputStream(); in exceptions_in_append_char() 80 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_append_charSequence() 94 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_append_charSequence_offset() 109 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_close() 124 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_flush() 138 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_write_char_array() 152 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_write_int() 166 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_write_offset_char_array() 180 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_write_string() 194 try (OutputStreamWriter osw = new OutputStreamWriter(new ByteArrayOutputStream()) { in exceptions_in_write_string_offset()
|
| /external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
| D | StreamHandlerTest.java | 20 import java.io.ByteArrayOutputStream; 177 StreamHandler h = new StreamHandler(new ByteArrayOutputStream(), in testConstructor_HasParameters_NoProperties() 205 StreamHandler h = new StreamHandler(new ByteArrayOutputStream(), in testConstructor_HasParameters_ValidProperties() 231 StreamHandler h = new StreamHandler(new ByteArrayOutputStream(), in testConstructor_HasParameters_InvalidProperties() 260 new StreamHandler(new ByteArrayOutputStream(), null); in testConstructor_HasParameters_ValidPropertiesNullStream() 300 ByteArrayOutputStream aos = new MockOutputStream(); in testClose_SufficientPrivilege_NormalClose() 320 ByteArrayOutputStream aos = new MockExceptionOutputStream(); in testClose_SufficientPrivilege_Exception() 333 ByteArrayOutputStream aos = new MockOutputStream(); in testClose_SufficientPrivilege_DirectClose() 358 ByteArrayOutputStream aos = new MockOutputStream(); in testFlush_Normal() 398 StreamHandler h = new StreamHandler(new ByteArrayOutputStream(), in testIsLoggable_NoFilter() [all …]
|
| /external/mockito/src/test/java/org/mockitousage/basicapi/ |
| D | MocksSerializationForAnnotationTest.java | 20 import java.io.ByteArrayOutputStream; 64 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_allow_mock_and_boolean_value_to_serializable() 78 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_allow_mock_and_string_value_to_be_serializable() 92 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_all_mock_and_serializable_value_to_be_serialized() 105 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_serialize_method_call_with_parameters_that_are_serializable() 118 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_serialize_method_calls_using_any_string_matcher() 132 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_verify_called_n_times_for_serialized_mock() 144 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_verify_even_if_some_methods_called_after_serialization() 186 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_stub_even_if_some_methods_called_after_serialization() 201 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_verify_call_order_for_serialized_mock() [all …]
|
| /external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/testing/ |
| D | BufferingMonitor.java | 20 import java.io.ByteArrayOutputStream; 24 private final ByteArrayOutputStream readBuffer = new ByteArrayOutputStream(); 25 private final ByteArrayOutputStream writeBuffer = new ByteArrayOutputStream(); 26 private final ByteArrayOutputStream appendBuffer = new ByteArrayOutputStream();
|
| /external/kotlinx.coroutines/kotlinx-coroutines-debug/test/junit5/ |
| D | CoroutinesTimeoutTest.kt | 24 val capturedOut = ByteArrayOutputStream() in testRegisterExtensionExample() 31 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutSimple() 43 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutMethod() 53 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutNested() 62 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutInheritanceWithNoTimeoutInDerived() 72 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutInheritanceWithGreaterTimeoutInDerived() 87 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutExtensionDisabledTraces() 96 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutExtensionEager() 107 val capturedOut = ByteArrayOutputStream() in testCoroutinesTimeoutExtensionSimple() 156 private fun countDumps(capturedOut: ByteArrayOutputStream): Int { in countDumps()
|
| /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/ |
| D | Pack200StreamsTest.java | 21 import java.io.ByteArrayOutputStream; 51 ByteArrayOutputStream jarbuffer = new ByteArrayOutputStream(); in pack_should_pack() 57 ByteArrayOutputStream pack200buffer = new ByteArrayOutputStream(); in pack_should_pack() 106 Pack200Streams.pack(new byte[0], new ByteArrayOutputStream()); in pack_should_throw_IOException_when_Pack200_not_available_in_JDK() 123 ByteArrayOutputStream jarbuffer = new ByteArrayOutputStream(); in unpack_should_unpack() 129 ByteArrayOutputStream pack200buffer = new ByteArrayOutputStream(); in unpack_should_unpack()
|
| /external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/ |
| D | GZipTestCase.java | 24 import java.io.ByteArrayOutputStream; 111 out = new ByteArrayOutputStream(); in testCorruptedInput() 116 final byte[] data = ((ByteArrayOutputStream) out).toByteArray(); in testCorruptedInput() 120 out = new ByteArrayOutputStream(); in testCorruptedInput() 149 final ByteArrayOutputStream bout = new ByteArrayOutputStream(); in testInteroperabilityWithGzipCompressorInputStream() 175 final ByteArrayOutputStream bout = new ByteArrayOutputStream(); in testInteroperabilityWithGZIPInputStream() 218 final ByteArrayOutputStream bout = new ByteArrayOutputStream(); in testExtraFlags() 247 …final GzipCompressorOutputStream out = new GzipCompressorOutputStream(new ByteArrayOutputStream()); in testOverWrite() 259 final ByteArrayOutputStream bout = new ByteArrayOutputStream(); in testMetadataRoundTrip()
|
| /external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/util/encoders/ |
| D | Base64.java | 4 import java.io.ByteArrayOutputStream; 55 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in encode() 106 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode() 129 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode()
|
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/ |
| D | Base64.java | 3 import java.io.ByteArrayOutputStream; 53 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in encode() 104 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode() 127 ByteArrayOutputStream bOut = new ByteArrayOutputStream(len); in decode()
|
| D | Hex.java | 3 import java.io.ByteArrayOutputStream; 52 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in encode() 102 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in decode() 124 ByteArrayOutputStream bOut = new ByteArrayOutputStream(); in decode()
|