/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintStreamTest.java | 209 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_print$C() local 213 bis.read(rbytes, 0, fileString.length()); in test_print$C() 225 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printC() local 226 InputStreamReader isr = new InputStreamReader(bis); in test_printC() 238 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printD() local 239 bis.read(rbuf, 0, 16); in test_printD() 253 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printF() local 254 bis.read(rbuf, 0, 8); in test_printF() 268 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_printI() local 269 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 | 104 BufferedInputStream bis = null; in getTrustAnchor() local 106 bis = new BufferedInputStream(new ByteArrayInputStream( in getTrustAnchor() 108 X509Certificate c1 = (X509Certificate)cf.generateCertificate(bis); in getTrustAnchor() 115 if (bis != null) { in getTrustAnchor() 117 bis.close() ; in getTrustAnchor() 157 BufferedInputStream bis = null; in getKeyStore() local 169 if (initialize && bis != null) { in getKeyStore() 171 bis.close(); in getKeyStore()
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | HttpsURLConnectionTest.java | 289 ByteArrayInputStream bis = new ByteArrayInputStream(barr); in getLocalCertificates() local 290 Certificate cert = cf.generateCertificate(bis); in getLocalCertificates() 304 ByteArrayInputStream bis = new ByteArrayInputStream(barr); in getServerCertificates() local 305 Certificate cert = cf.generateCertificate(bis); in getServerCertificates()
|
D | HandshakeCompletedEventTest.java | 122 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes()); in test_getPeerCertificateChain() local 132 X509Certificate xc = X509Certificate.getInstance(bis); in test_getPeerCertificateChain()
|
/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/luni/src/test/java/libcore/java/util/zip/ |
D | GZIPInputStreamTest.java | 165 ByteArrayInputStream bis = new ByteArrayInputStream(bytes); in gunzip() local 166 InputStream in = new GZIPInputStream(bis); in gunzip()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ConcurrentHashMapTest.java | 109 LexicographicList<BI> bis = new LexicographicList<BI>(bi); in testGenericComparable() local 111 assertTrue(m.putIfAbsent(bis, true) == null); in testGenericComparable() 112 assertTrue(m.containsKey(bis)); in testGenericComparable() 115 assertTrue(m.containsKey(bis)); in testGenericComparable() 135 LexicographicList<BI> bis = new LexicographicList<BI>(new BI(i)); in testGenericComparable2() local 136 assertTrue(m.containsKey(bis)); in testGenericComparable2()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1161 ExceptionalBufferedInputStream bis = new ExceptionalBufferedInputStream( in test_readClassDescriptor() local 1163 ois = new ObjectInputStreamWithReadDesc1(bis); in test_readClassDescriptor() 1165 bis.setEOF(true); in test_readClassDescriptor() 1177 bis = new ExceptionalBufferedInputStream(bais); in test_readClassDescriptor() 1178 ois = new ObjectInputStreamWithReadDesc1(bis); in test_readClassDescriptor() 1180 bis.setException(new IOException()); in test_readClassDescriptor() 1192 bis = new ExceptionalBufferedInputStream(bais); in test_readClassDescriptor() 1193 ois = new ObjectInputStreamWithReadDesc1(bis); in test_readClassDescriptor() 1195 bis.setCorrupt(true); in test_readClassDescriptor()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserFactoryTest.java | 132 ByteArrayInputStream bis = new ByteArrayInputStream(key.getBytes()); in test_newInstance() local 134 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/luni/src/main/java/org/apache/harmony/security/utils/ |
D | JarUtils.java | 71 BerInputStream bis = new BerInputStream(signatureBlock); in verifySignature() local 72 ContentInfo info = (ContentInfo)ContentInfo.ASN1.decode(bis); in verifySignature()
|
/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()
|