/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 246 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_print$C() local 250 bis.read(rbytes, 0, fileString.length()); in test_print$C() 262 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printC() local 263 InputStreamReader isr = new InputStreamReader(bis); in test_printC() 275 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printD() local 276 bis.read(rbuf, 0, 16); in test_printD() 290 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printF() local 291 bis.read(rbuf, 0, 8); in test_printF() 305 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printI() local 306 bis.read(rbuf, 0, 9); in test_printI() [all …]
|
D | FilterOutputStreamTest.java | 34 ByteArrayInputStream bis; field in FilterOutputStreamTest 80 bis = new ByteArrayInputStream(bos.toByteArray()); in test_write$B() 83 bis.available() == fileString.length()); in test_write$B() 85 bis.read(wbytes, 0, fileString.length()); in test_write$B() 97 bis = new ByteArrayInputStream(bos.toByteArray()); in test_write$BII() 100 bis.available() == fileString.length()); in test_write$BII() 102 bis.read(wbytes, 0, fileString.length()); in test_write$BII() 114 bis = new ByteArrayInputStream(bos.toByteArray()); in test_writeI() 116 assertEquals("Byte not written after flush", 1, bis.available()); in test_writeI() 118 bis.read(wbytes, 0, 1); in test_writeI() [all …]
|
D | BufferedInputStreamTest.java | 169 BufferedInputStream bis = new BufferedInputStream( in test_available() local 172 int available = bis.available(); in test_available() 173 bis.close(); in test_available() 177 bis.available(); in test_available() 340 BufferedInputStream bis = new BufferedInputStream(null); in test_read$BII_Exception() local 342 bis.read(null, -1, -1); in test_read$BII_Exception() 349 bis.read(new byte[0], -1, -1); in test_read$BII_Exception() 356 bis.read(new byte[0], 1, -1); in test_read$BII_Exception() 363 bis.read(new byte[0], 1, 1); in test_read$BII_Exception() 369 bis.close(); in test_read$BII_Exception() [all …]
|
D | ByteArrayInputStreamTest.java | 35 InputStream bis = new ByteArrayInputStream(fileString.getBytes()); in test_Constructor$B() local 38 bis.available() == fileString.length()); in test_Constructor$B() 46 InputStream bis = new ByteArrayInputStream(zz, 0, 100); in test_Constructor$BII() local 48 assertEquals("Unable to create ByteArrayInputStream", 100, bis in test_Constructor$BII()
|
D | ObjectOutputStream2Test.java | 53 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_writeReadEnum() local 54 ObjectInputStream is = new ObjectInputStream(bis); in test_writeReadEnum()
|
D | InputStreamReaderTest.java | 445 ByteArrayInputStream bis = new ByteArrayInputStream(data); in test_read$CII() local 446 InputStreamReader isr = new InputStreamReader(bis, "ISO-8859-1"); in test_read$CII() 455 bis = new ByteArrayInputStream(source.getBytes("UTF-8")); in test_read$CII()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldFilterOutputStreamTest.java | 32 java.io.ByteArrayInputStream bis; field in OldFilterOutputStreamTest 103 bis = new ByteArrayInputStream(sos.toByteArray()); in test_write$B() 105 bis.available() == testLength); in test_write$B() 107 bis.read(wbytes, 0, testLength); in test_write$B() 126 bis = new ByteArrayInputStream(sos.toByteArray()); in test_write$BII() 128 bis.available() == testLength - 10); in test_write$BII() 130 bis.read(wbytes); in test_write$BII() 176 bis = new ByteArrayInputStream(sos.toByteArray()); in test_writeI() 178 bis.available() == 1); in test_writeI() 180 42, bis.read()); in test_writeI() [all …]
|
D | OldByteArrayInputStreamTest.java | 32 java.io.InputStream bis = new java.io.ByteArrayInputStream(fileString in test_Constructor$B() local 37 bis.available() == fileString.length()); in test_Constructor$B() 47 java.io.InputStream bis = new java.io.ByteArrayInputStream(zz, 0, 100); in test_Constructor$BII() local 51 100, bis.available()); in test_Constructor$BII()
|
D | OldInputStreamReaderTest.java | 146 ByteArrayInputStream bis = new ByteArrayInputStream(data); in testInputStreamReaderSuccessiveReads() local 147 InputStreamReader isr = new InputStreamReader(bis, "ISO-8859-1"); in testInputStreamReaderSuccessiveReads()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | TestUtils.java | 101 BufferedInputStream bis = null; in getTrustAnchor() local 103 bis = new BufferedInputStream(new ByteArrayInputStream( in getTrustAnchor() 105 X509Certificate c1 = (X509Certificate)cf.generateCertificate(bis); in getTrustAnchor() 112 if (bis != null) { in getTrustAnchor() 114 bis.close() ; in getTrustAnchor() 154 BufferedInputStream bis = null; in getKeyStore() local 166 if (initialize && bis != null) { in getKeyStore() 168 bis.close(); in getKeyStore()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HttpsURLConnectionTest.java | 275 ByteArrayInputStream bis = new ByteArrayInputStream(barr); in getLocalCertificates() local 276 Certificate cert = cf.generateCertificate(bis); in getLocalCertificates() 290 ByteArrayInputStream bis = new ByteArrayInputStream(barr); in getServerCertificates() local 291 Certificate cert = cf.generateCertificate(bis); in getServerCertificates()
|
D | HandshakeCompletedEventTest.java | 121 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes()); in test_getPeerCertificateChain() local 131 X509Certificate xc = X509Certificate.getInstance(bis); in test_getPeerCertificateChain()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | NodeTest.java | 41 ByteArrayInputStream bis = new ByteArrayInputStream("<root/>".getBytes()); in test_getNextSibling() local 42 Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(bis); in test_getNextSibling()
|
/libcore/support/src/test/java/tests/util/ |
D | SerializationTester.java | 52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in getDeserilizedObject() local 53 ObjectInputStream ois = new ObjectInputStream(bis); in getDeserilizedObject()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMapTest.java | 146 LexicographicList<BI> bis = new LexicographicList<BI>(bi); in testGenericComparable() local 148 assertTrue(m.putIfAbsent(bis, true) == null); in testGenericComparable() 149 assertTrue(m.containsKey(bis)); in testGenericComparable() 152 assertTrue(m.containsKey(bis)); in testGenericComparable() 173 LexicographicList<BI> bis = new LexicographicList<BI>(new BI(i)); in testGenericComparable2() local 174 assertTrue(m.containsKey(bis)); in testGenericComparable2()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1158 ExceptionalBufferedInputStream bis = new ExceptionalBufferedInputStream( in test_readClassDescriptor() local 1160 ois = new ObjectInputStreamWithReadDesc1(bis); in test_readClassDescriptor() 1162 bis.setEOF(true); in test_readClassDescriptor() 1174 bis = new ExceptionalBufferedInputStream(bais); in test_readClassDescriptor() 1175 ois = new ObjectInputStreamWithReadDesc1(bis); in test_readClassDescriptor() 1177 bis.setException(new IOException()); in test_readClassDescriptor() 1189 bis = new ExceptionalBufferedInputStream(bais); in test_readClassDescriptor() 1190 ois = new ObjectInputStreamWithReadDesc1(bis); in test_readClassDescriptor() 1192 bis.setCorrupt(true); in test_readClassDescriptor()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPInputStreamTest.java | 252 ByteArrayInputStream bis = new ByteArrayInputStream(bytes); in gunzip() local 253 try (InputStream in = new GZIPInputStream(bis)) { in gunzip()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractTCKTest.java | 194 try (ByteArrayInputStream bis = new ByteArrayInputStream(bytes); in assertNotSerializable() argument 195 ObjectInputStream in = new ObjectInputStream(bis)) { in assertNotSerializable()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserFactoryTest.java | 131 ByteArrayInputStream bis = new ByteArrayInputStream(key.getBytes()); in test_newInstance() local 133 prop.load(bis); in test_newInstance()
|
D | DocumentBuilderFactoryTest.java | 277 ByteArrayInputStream bis = new ByteArrayInputStream(keyValuePair in test_newInstance() local 280 prop.load(bis); in test_newInstance()
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotationMember.java | 316 ByteArrayInputStream bis = new ByteArrayInputStream(bos in rethrowError() local 318 ObjectInputStream ois = new ObjectInputStream(bis); in rethrowError()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | ManifestTest.java | 144 ByteArrayInputStream bis = new ByteArrayInputStream(manifestContent in testStreamConstructor() local 148 Manifest mf = new Manifest(bis); in testStreamConstructor()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
D | BigDecimalTest.java | 891 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_BigDecimal_serialization() local 892 ObjectInputStream ois = new ObjectInputStream(bis); in test_BigDecimal_serialization()
|