Home
last modified time | relevance | path

Searched refs:bais (Results 1 – 25 of 40) sorted by relevance

12

/external/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java515 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeInt() local
516 assertEquals(DiskBasedCache.readInt(bais), 0); in serializeInt()
517 assertEquals(DiskBasedCache.readInt(bais), 19791214); in serializeInt()
518 assertEquals(DiskBasedCache.readInt(bais), -20050711); in serializeInt()
519 assertEquals(DiskBasedCache.readInt(bais), Integer.MIN_VALUE); in serializeInt()
520 assertEquals(DiskBasedCache.readInt(bais), Integer.MAX_VALUE); in serializeInt()
533 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeLong() local
534 assertEquals(DiskBasedCache.readLong(bais), 0); in serializeLong()
535 assertEquals(DiskBasedCache.readLong(bais), 31337); in serializeLong()
536 assertEquals(DiskBasedCache.readLong(bais), -4160); in serializeLong()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
DCommandLineSerializer.java57 ByteArrayInputStream bais = new ByteArrayInputStream(BaseEncoding.base64().decode(arg)); in parse() local
58 ObjectInputStream in = new ObjectInputStream(bais); in parse()
61 checkState(bais.read() == -1, in parse()
/external/slf4j/slf4j-migrator/src/main/java/org/slf4j/migrator/
DInplaceFileConverter.java88 ByteArrayInputStream bais = new ByteArrayInputStream(input); in convertIntoTempByteArray() local
89 Reader reader = new InputStreamReader(bais); in convertIntoTempByteArray()
/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
65 final BZip2CompressorInputStream bzipIn = new BZip2CompressorInputStream(bais); in readOfLength0ShouldReturn0()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLX509CertificateTest.java81 ByteArrayInputStream bais = new ByteArrayInputStream(impostorBytes); in testSerialization_NoContextDeserialization() local
82 ObjectInputStream ois = new ObjectInputStream(bais); in testSerialization_NoContextDeserialization()
/external/apache-http/android/src/com/android/internal/http/multipart/
DMultipartEntity.java223 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in getContent() local
224 return bais; in getContent()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DOpenSSLX509CertificateTest.java85 ByteArrayInputStream bais = new ByteArrayInputStream(impostorBytes); in testSerialization_NoContextDeserialization() local
86 ObjectInputStream ois = new ObjectInputStream(bais); in testSerialization_NoContextDeserialization()
/external/slf4j/slf4j-ext/src/main/java/org/slf4j/ext/
DEventData.java79 ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes()); in EventData() local
81 XMLDecoder decoder = new XMLDecoder(bais); in EventData()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DAnnotationGenTestCase.java132 final ByteArrayInputStream bais = new ByteArrayInputStream(bs); in checkSerialize() local
134 try (DataInputStream dis = new DataInputStream(bais)) { in checkSerialize()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java461 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local
462 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTrip()
539 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local
540 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTripPartial()
606 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local
607 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneSimpleWrite()
648 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
649 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
679 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
680 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
DTimeZoneTest.java1173 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in TestSimpleTimeZoneSerialization() local
1174 ObjectInputStream ois = new ObjectInputStream(bais); in TestSimpleTimeZoneSerialization()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRuleTest.java464 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local
465 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTrip()
542 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local
543 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTripPartial()
609 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local
610 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneSimpleWrite()
651 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
652 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
682 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
683 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
DTimeZoneTest.java1176 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in TestSimpleTimeZoneSerialization() local
1177 ObjectInputStream ois = new ObjectInputStream(bais); in TestSimpleTimeZoneSerialization()
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DLightCodeInsightParsingTestCase.java99 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in doTest() local
100 SerializationManagerImpl.getInstanceEx().deserialize(bais); in doTest()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/
DKeyPairGeneratorTest.java414 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_Key() local
415 ObjectInputStream ois = new ObjectInputStream(bais); in test_Key()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/
DKeyPairGeneratorTest.java417 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in test_Key() local
418 ObjectInputStream ois = new ObjectInputStream(bais); in test_Key()
/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java283 ByteArrayInputStream bais = new ByteArrayInputStream(new byte[] {0x12, 0x34, 0x56, 0x78}); in testNewDataInput_BAIS() local
284 ByteArrayDataInput in = ByteStreams.newDataInput(bais); in testNewDataInput_BAIS()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DCompactDecimalFormatTest.java571 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in TestWriteAndReadObject() local
572 ObjectInputStream objinstream = new ObjectInputStream(bais); in TestWriteAndReadObject()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java615 ByteArrayInputStream bais = new ByteArrayInputStream(serialized); in testCertPathEncoding() local
616 ObjectInputStream ois = new ObjectInputStream(bais); in testCertPathEncoding()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/cert/
DCertificateFactoryTest.java619 ByteArrayInputStream bais = new ByteArrayInputStream(serialized); in testCertPathEncoding() local
620 ObjectInputStream ois = new ObjectInputStream(bais); in testCertPathEncoding()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DCompactDecimalFormatTest.java568 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in TestWriteAndReadObject() local
569 ObjectInputStream objinstream = new ObjectInputStream(bais); in TestWriteAndReadObject()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DGeneratedMessageTest.java905 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSerialize() local
906 ObjectInputStream in = new ObjectInputStream(bais); in testSerialize()
921 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in testSerializePartial() local
922 ObjectInputStream in = new ObjectInputStream(bais); in testSerializePartial()
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DTestKeyStore.java767 ByteArrayInputStream bais = new ByteArrayInputStream(x509c.getEncoded()); in createCertificate() local
768 Certificate c = cf.generateCertificate(bais); in createCertificate()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DTestKeyStore.java770 ByteArrayInputStream bais = new ByteArrayInputStream(x509c.getEncoded()); in createCertificate() local
771 Certificate c = cf.generateCertificate(bais); in createCertificate()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/data/transformtest/
Dund-Latn-t-und-deva.txt466 बैसाखी baisākhī

12