Home
last modified time | relevance | path

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

12

/external/volley/src/test/java/com/android/volley/toolbox/
DDiskBasedCacheTest.java48 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in cacheHeaderSerialization() local
49 CacheHeader second = CacheHeader.readHeader(bais); in cacheHeaderSerialization()
67 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeInt() local
68 assertEquals(DiskBasedCache.readInt(bais), 0); in serializeInt()
69 assertEquals(DiskBasedCache.readInt(bais), 19791214); in serializeInt()
70 assertEquals(DiskBasedCache.readInt(bais), -20050711); in serializeInt()
71 assertEquals(DiskBasedCache.readInt(bais), Integer.MIN_VALUE); in serializeInt()
72 assertEquals(DiskBasedCache.readInt(bais), Integer.MAX_VALUE); in serializeInt()
84 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in serializeLong() local
85 assertEquals(DiskBasedCache.readLong(bais), 0); 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/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/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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java458 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local
459 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTrip()
536 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local
537 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTripPartial()
603 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local
604 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneSimpleWrite()
645 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
646 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
676 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
677 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
DTimeZoneTest.java1182 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in TestSimpleTimeZoneSerialization() local
1183 ObjectInputStream ois = new ObjectInputStream(bais); in TestSimpleTimeZoneSerialization()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRuleTest.java459 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTrip() local
460 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTrip()
537 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneRoundTripPartial() local
538 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneRoundTripPartial()
604 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneSimpleWrite() local
605 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneSimpleWrite()
646 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
647 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
677 ByteArrayInputStream bais = new ByteArrayInputStream(vtzdata); in TestVTimeZoneHeaderProps() local
678 InputStreamReader reader = new InputStreamReader(bais); in TestVTimeZoneHeaderProps()
DTimeZoneTest.java1183 ByteArrayInputStream bais = new ByteArrayInputStream(bytes); in TestSimpleTimeZoneSerialization() local
1184 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/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DCompactDecimalFormatTest.java516 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in TestWriteAndReadObject() local
517 ObjectInputStream objinstream = new ObjectInputStream(bais); in TestWriteAndReadObject()
DDateFormatTest.java4577 ByteArrayInputStream bais = new ByteArrayInputStream(buf); in TestContext() local
4578 ObjectInputStream ois = new ObjectInputStream(bais); in TestContext()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DCompactDecimalFormatTest.java515 ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); in TestWriteAndReadObject() local
516 ObjectInputStream objinstream = new ObjectInputStream(bais); in TestWriteAndReadObject()
DDateFormatTest.java4576 ByteArrayInputStream bais = new ByteArrayInputStream(buf); in TestContext() local
4577 ObjectInputStream ois = new ObjectInputStream(bais); in TestContext()
/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/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/libcore/java/security/
DTestKeyStore.java736 ByteArrayInputStream bais = new ByteArrayInputStream(x509c.getEncoded()); in createCertificate() local
737 Certificate c = cf.generateCertificate(bais); in createCertificate()
/external/guice/lib/build/
Dfelix-2.0.5.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/LICENSE META-INF ...
/external/owasp/sanitizer/tools/findbugs/lib/
Dcommons-lang-2.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
Dant.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/libphonenumber/demo/war/WEB-INF/lib/
Dcommons-lang-2.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/guice/extensions/struts2/lib/
Dant-1.6.5.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/guice/extensions/persist/lib/
Dcommons-collections.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt META ...
/external/jarjar/lib/
Dapache-ant-1.9.4.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...

12