/external/libphonenumber/repackaged/internal/prefixmapper/test/com/android/i18n/phonenumbers/prefixmapper/ |
D | FlyweightMapStorageTest.java | 80 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()
|
D | MappingFileProviderTest.java | 63 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testReadWriteExternal() local 64 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testReadWriteExternal() 70 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in testReadWriteExternal()
|
D | PrefixTimeZonesMapTest.java | 160 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in createNewPrefixTimeZonesMap() local 161 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in createNewPrefixTimeZonesMap() 167 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in createNewPrefixTimeZonesMap()
|
D | PhonePrefixMapTest.java | 165 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/ |
D | FlyweightMapStorageTest.java | 78 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()
|
D | MappingFileProviderTest.java | 61 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in testReadWriteExternal() local 62 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in testReadWriteExternal() 68 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in testReadWriteExternal()
|
D | PhonePrefixMapTest.java | 163 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in createNewPhonePrefixMap() local 164 ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); in createNewPhonePrefixMap() 170 new ObjectInputStream(new ByteArrayInputStream(byteArrayOutputStream.toByteArray()))); in createNewPhonePrefixMap()
|
D | PrefixTimeZonesMapTest.java | 158 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/ |
D | DetectLoggerNameMismatchTest.java | 51 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/ |
D | XZCompressorOutputStreamTest.java | 42 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/ |
D | PhonePrefixMap.java | 63 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/ |
D | PhonePrefixMap.java | 65 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/ |
D | HttpChunkedResponseTest.java | 92 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/ |
D | TagContextSerializationTest.java | 142 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/ |
D | UnknownFieldSetLiteTest.java | 318 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/ |
D | ZipArchiveOutputStream.java | 484 … 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/ |
D | ProgramClassWriter.java | 263 ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); in visitAnyAttribute() local 267 dataOutput = new RuntimeDataOutput(new DataOutputStream(byteArrayOutputStream)); in visitAnyAttribute() 278 byte[] info = byteArrayOutputStream.toByteArray(); in visitAnyAttribute()
|