Home
last modified time | relevance | path

Searched defs:bais (Results 1 – 25 of 63) sorted by relevance

123

/external/apache-commons-io/src/test/java/org/apache/commons/io/input/
DClassLoaderObjectInputStreamTest.java85 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testExpected() local
86 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testExpected() argument
95 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testLong() local
96 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testLong() argument
105 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testObject1() local
106 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testObject1() argument
115 final InputStream bais = new ByteArrayInputStream(SerializationUtils.serialize(input)); in testObject2() local
116 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testObject2() argument
129 final InputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testPrimitiveLong() local
130 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testPrimitiveLong() argument
[all …]
DCountingInputStreamTest.java68 final ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); in testEOF1() local
85 final ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); in testEOF2() local
98 final ByteArrayInputStream bais = new ByteArrayInputStream(new byte[2]); in testEOF3() local
135 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in testResetting() local
166 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength1() local
177 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength2() local
190 final ByteArrayInputStream bais = new ByteArrayInputStream(IOUtils.EMPTY_BYTE_ARRAY); in testZeroLength3() local
DSwappedDataInputStreamTest.java55 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in setUp() local
68 final ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in testReadBoolean()
/external/cbor-java/src/test/java/co/nstant/in/cbor/decoder/
DLanguageTaggedStringDecoderTest.java28 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowException() local
42 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNotAnArray() local
56 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNot2ElementArray() local
70 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNotFirstElementIsString() local
84 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testExceptionOnNotSecondElementIsString() local
98 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testDecoding() local
DCborDecoderTest.java88 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode1() local
102 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode2() local
116 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode3() local
130 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldThrowOnRationalNumberDecode4() local
144 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldDecodeRationalNumber() local
172 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in shouldDecodeTaggedRationalNumber() local
DByteStringDecoderTest.java32 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeChunkedByteString() local
45 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeByteString1K() local
58 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeByteString1M() local
DMapDecoderTest.java47 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in shouldThrowOnDuplicateKeyIfEnabled() local
57 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in shouldThrowInDuplicateKeyInIndefiniteLengthMapIfEnabled() local
DUnsignedIntegerDecoderTest.java32 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeBigNumbers() local
DUnicodeStringDecoderTest.java31 ByteArrayInputStream bais = new ByteArrayInputStream(encodedBytes); in shouldDecodeChunkedUnicodeString() local
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/buffer/
DCircularBufferInputStreamTest.java44 …try (ByteArrayInputStream bais = new ByteArrayInputStream(buffer); final CircularBufferInputStream… in testIO683()
59 final ByteArrayInputStream bais = new ByteArrayInputStream(inputBuffer); in testRandomRead() local
/external/okio/okio/src/jvmTest/kotlin/okio/
DOkioKotlinTest.kt42 val bais = ByteArrayInputStream(byteArrayOf(0x61)) in inputStreamSource() constant
118 val bais = ByteArrayInputStream(byteArrayOf(0x61)) in socketSource() constant
/external/apache-xml/test/java/src/org/apache/qetest/trax/stream/
DStreamSourceAPITest.java157 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in testCase1() local
159 …reporter.checkObject(byteSource1.getInputStream(), bais, "StreamSource(is) has ByteStream " + byte… in testCase1() local
165 …reporter.checkObject(byteSource2.getInputStream(), bais, "StreamSource(is, sysID) has ByteStream "… in testCase1() local
/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/compression/
DGzipCompressorTest.java43 ByteArrayInputStream bais = new ByteArrayInputStream(compressedData); in compressedData_decompressesCorrectly() local
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
DCommandLineSerializer.java57 ByteArrayInputStream bais = new ByteArrayInputStream(BaseEncoding.base64().decode(arg)); in parse() local
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DOpenSSLX509CertificateTest.java123 ByteArrayInputStream bais = new ByteArrayInputStream(impostorBytes); in testSerialization_NoContextDeserialization() local
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLX509CertificateTest.java115 ByteArrayInputStream bais = new ByteArrayInputStream(impostorBytes); in testSerialization_NoContextDeserialization() local
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/bzip2/
DBZip2CompressorInputStreamTest.java64 final ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in readOfLength0ShouldReturn0() local
/external/kotlinx.serialization/formats/json-tests/jvmTest/src/kotlinx/serialization/json/
DJsonConcurrentStressTest.kt59 val bais = ByteArrayInputStream(baos.toByteArray()) in <lambda>() constant
/external/apache-velocity-engine/velocity-engine-examples/src/main/java/org/apache/velocity/example/
DDBContext.java128 ByteArrayInputStream bais = new ByteArrayInputStream(buf); in internalPut() local
/external/grpc-grpc-java/protobuf-lite/src/test/java/io/grpc/protobuf/lite/
DProtoLiteUtilsTest.java296 ByteArrayInputStream bais = new ByteArrayInputStream(ByteStreams.toByteArray(is)); in assertRecursionLimitExceeded() local
304 ByteArrayInputStream bais = new ByteArrayInputStream(ByteStreams.toByteArray(is)); in assertRecursionLimitNotExceeded() local
/external/apache-http/android/src/com/android/internal/http/multipart/
DMultipartEntity.java223 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in getContent() local
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRuleTest.java466 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local
544 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local
611 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local
653 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
684 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
/external/icu/icu4j/main/core/src/test/java/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java463 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local
541 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local
608 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local
650 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
681 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/
DCompressionAsyncRequestBodyTest.java146 ByteArrayInputStream bais = new ByteArrayInputStream(compressedData); in decompress() local
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/
DInplaceFileConverter.java88 ByteArrayInputStream bais = new ByteArrayInputStream(input); in convertIntoTempByteArray() local

123