Home
last modified time | relevance | path

Searched refs:bis (Results 1 – 24 of 24) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPrintStreamTest.java246 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 …]
DFilterOutputStreamTest.java36 ByteArrayInputStream bis; field in FilterOutputStreamTest
105 bis = new ByteArrayInputStream(bos.toByteArray()); in test_write$B()
108 bis.available() == fileString.length()); in test_write$B()
110 bis.read(wbytes, 0, fileString.length()); in test_write$B()
122 bis = new ByteArrayInputStream(bos.toByteArray()); in test_write$BII()
125 bis.available() == fileString.length()); in test_write$BII()
127 bis.read(wbytes, 0, fileString.length()); in test_write$BII()
139 bis = new ByteArrayInputStream(bos.toByteArray()); in test_writeI()
141 assertEquals("Byte not written after flush", 1, bis.available()); in test_writeI()
143 bis.read(wbytes, 0, 1); in test_writeI()
[all …]
DBufferedInputStreamTest.java169 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 …]
DByteArrayInputStreamTest.java35 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()
DObjectOutputStream2Test.java53 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_writeReadEnum() local
54 ObjectInputStream is = new ObjectInputStream(bis); in test_writeReadEnum()
DInputStreamReaderTest.java445 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/
DOldFilterOutputStreamTest.java32 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 …]
DOldByteArrayInputStreamTest.java32 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()
DOldInputStreamReaderTest.java146 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/
DTestUtils.java101 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/
DHttpsURLConnectionTest.java275 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()
DHandshakeCompletedEventTest.java121 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/
DNodeTest.java41 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/
DSerializationTester.java52 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in getDeserilizedObject() local
53 ObjectInputStream ois = new ObjectInputStream(bis); in getDeserilizedObject()
/libcore/jsr166-tests/src/test/java/jsr166/
DConcurrentHashMapTest.java146 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/ojluni/src/test/java/util/concurrent/tck/
DConcurrentHashMapTest.java171 LexicographicList<BI> bis = new LexicographicList<BI>(bi); in testGenericComparable() local
173 assertTrue(m.putIfAbsent(bis, true) == null); in testGenericComparable()
174 assertTrue(m.containsKey(bis)); in testGenericComparable()
177 assertTrue(m.containsKey(bis)); in testGenericComparable()
198 LexicographicList<BI> bis = new LexicographicList<BI>(new BI(i)); in testGenericComparable2() local
199 assertTrue(m.containsKey(bis)); in testGenericComparable2()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/
DObjectInputStreamTest.java1158 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/
DGZIPInputStreamTest.java252 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/
DAbstractTCKTest.java194 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/
DSAXParserFactoryTest.java131 ByteArrayInputStream bis = new ByteArrayInputStream(key.getBytes()); in test_newInstance() local
133 prop.load(bis); in test_newInstance()
DDocumentBuilderFactoryTest.java277 ByteArrayInputStream bis = new ByteArrayInputStream(keyValuePair in test_newInstance() local
280 prop.load(bis); in test_newInstance()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationMember.java316 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/
DManifestTest.java144 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/
DBigDecimalTest.java891 ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); in test_BigDecimal_serialization() local
892 ObjectInputStream ois = new ObjectInputStream(bis); in test_BigDecimal_serialization()