Home
last modified time | relevance | path

Searched refs:byteArrayOutputStream (Results 1 – 17 of 17) sorted by relevance

/external/libphonenumber/repackaged/internal/prefixmapper/test/com/android/i18n/phonenumbers/prefixmapper/
DFlyweightMapStorageTest.java80 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testWriteAndReadExternal() local
81 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testWriteAndReadExternal()
87 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray())); in testWriteAndReadExternal()
95 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testReadExternalThrowsIOExceptionWithMalformedData() local
96 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testReadExternalThrowsIOExceptionWithMalformedData()
100 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray())); in testReadExternalThrowsIOExceptionWithMalformedData()
DMappingFileProviderTest.java63 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testReadWriteExternal() local
64 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testReadWriteExternal()
70 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in testReadWriteExternal()
DPrefixTimeZonesMapTest.java160 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in createNewPrefixTimeZonesMap() local
161 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in createNewPrefixTimeZonesMap()
167 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in createNewPrefixTimeZonesMap()
DPhonePrefixMapTest.java165 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in createNewPhonePrefixMap() local
166 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in createNewPhonePrefixMap()
172 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in createNewPhonePrefixMap()
/external/libphonenumber/internal/prefixmapper/test/com/google/i18n/phonenumbers/prefixmapper/
DFlyweightMapStorageTest.java78 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testWriteAndReadExternal() local
79 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testWriteAndReadExternal()
85 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray())); in testWriteAndReadExternal()
93 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testReadExternalThrowsIOExceptionWithMalformedData() local
94 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testReadExternalThrowsIOExceptionWithMalformedData()
98 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray())); in testReadExternalThrowsIOExceptionWithMalformedData()
DMappingFileProviderTest.java61 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testReadWriteExternal() local
62 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testReadWriteExternal()
68 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in testReadWriteExternal()
DPhonePrefixMapTest.java163 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in createNewPhonePrefixMap() local
164 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in createNewPhonePrefixMap()
170 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in createNewPhonePrefixMap()
DPrefixTimeZonesMapTest.java158 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in createNewPrefixTimeZonesMap() local
159 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in createNewPrefixTimeZonesMap()
165 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in createNewPrefixTimeZonesMap()
/external/slf4j/slf4j-simple/src/test/java/org/slf4j/
DDetectLoggerNameMismatchTest.java51 private final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); field in DetectLoggerNameMismatchTest
56 System.setErr(new PrintStream(byteArrayOutputStream)); in setUp()
93 … of byteArrayOutputStream: " + String.valueOf(byteArrayOutputStream), String.valueOf(byteArrayOutp… in testTriggerWholeMessage()
109 … assertEquals(mismatchDetected, String.valueOf(byteArrayOutputStream).contains(MISMATCH_STRING)); in assertMismatchDetected()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/xz/
DXZCompressorOutputStreamTest.java42 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(4590); in testWrite() local
43 …essorOutputStream xZCompressorOutputStream = new XZCompressorOutputStream(byteArrayOutputStream)) { in testWrite()
48 … new XZCompressorInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))) { in testWrite()
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java63 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in getSizeOfPhonePrefixMapStorage() local
64 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in getSizeOfPhonePrefixMapStorage()
67 int sizeOfStorage = byteArrayOutputStream.size(); in getSizeOfPhonePrefixMapStorage()
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java65 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in getSizeOfPhonePrefixMapStorage() local
66 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in getSizeOfPhonePrefixMapStorage()
69 int sizeOfStorage = byteArrayOutputStream.size(); in getSizeOfPhonePrefixMapStorage()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpChunkedResponseTest.java92 ByteArrayOutputStream byteArrayOutputStream = invokeServer("GET / HTTP/1.1"); in thatChunkedContentIsChunked() local
94 assertResponse(byteArrayOutputStream, expected); in thatChunkedContentIsChunked()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/
DTagContextSerializationTest.java142 private static void encodeString(String input, ByteArrayOutputStream byteArrayOutputStream) in encodeString() argument
144 VarInt.putVarInt(input.length(), byteArrayOutputStream); in encodeString() local
145 byteArrayOutputStream.write(input.getBytes(Charsets.UTF_8)); in encodeString()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetLiteTest.java318 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in toByteString() local
319 CodedOutputStream output = CodedOutputStream.newInstance(byteArrayOutputStream); in toByteString()
326 return ByteString.copyFrom(byteArrayOutputStream.toByteArray()); in toByteString()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DZipArchiveOutputStream.java484 … final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(70 * NUM_PER_WRITE); in writeCentralDirectoryInChunks() local
487 byteArrayOutputStream.write(createCentralFileHeader(ze)); in writeCentralDirectoryInChunks()
489 writeCounted(byteArrayOutputStream.toByteArray()); in writeCentralDirectoryInChunks()
490 byteArrayOutputStream.reset(); in writeCentralDirectoryInChunks()
494 writeCounted(byteArrayOutputStream.toByteArray()); in writeCentralDirectoryInChunks()
/external/proguard/src/proguard/classfile/io/
DProgramClassWriter.java263 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in visitAnyAttribute() local
267 dataOutput = new RuntimeDataOutput(new DataOutputStream(byteArrayOutputStream)); in visitAnyAttribute()
278 byte[] info = byteArrayOutputStream.toByteArray(); in visitAnyAttribute()