Home
last modified time | relevance | path

Searched refs:rbuf (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/util/zip/
DDeflaterInputStream.java53 private byte[] rbuf = new byte[1]; field in DeflaterInputStream
152 int len = read(rbuf, 0, 1); in read()
155 return (rbuf[0] & 0xFF); in read()
244 if (rbuf.length < 512) in skip()
245 rbuf = new byte[512]; in skip()
251 int len = read(rbuf, 0, (total <= rbuf.length ? total : rbuf.length)); in skip()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DPrintStreamTest.java272 byte[] rbuf = new byte[100]; in test_printD()
276 bis.read(rbuf, 0, 16); in test_printD()
278 new String(rbuf, 0, 16)); in test_printD()
287 byte rbuf[] = new byte[10]; in test_printF()
291 bis.read(rbuf, 0, 8); in test_printF()
292 assertEquals("Incorrect float written", "29.08764", new String(rbuf, 0, in test_printF()
304 byte[] rbuf = new byte[18]; in test_printI()
306 bis.read(rbuf, 0, 9); in test_printI()
307 assertEquals("Incorrect int written", "768347202", new String(rbuf, 0, in test_printI()
316 byte[] rbuf = new byte[100]; in test_printJ()
[all …]
DDataOutputStreamTest.java64 byte[] rbuf = new byte[150]; in test_size()
65 dis.read(rbuf, 0, 150); in test_size()
77 byte[] rbuf = new byte[150]; in test_write$BII()
78 dis.read(rbuf, 0, 150); in test_write$BII()
80 assertTrue("Incorrect bytes written", new String(rbuf, 0, 150) in test_write$BII()
127 byte[] rbuf = new byte[4000]; in test_writeBytesLjava_lang_String()
128 dis.read(rbuf, 0, fileString.length()); in test_writeBytesLjava_lang_String()
130 assertTrue("Incorrect bytes written", new String(rbuf, 0, fileString in test_writeBytesLjava_lang_String()
DRandomAccessFileTest.java231 byte[] rbuf = new byte[4000]; in test_read$B()
232 raf.read(rbuf); in test_read$B()
234 new String(rbuf, 0, fileString.length())); in test_read$B()
244 byte[] rbuf = new byte[4000]; in test_read$BII()
248 raf.read(rbuf, 0, fileString.length()); in test_read$BII()
250 new String(rbuf, 0, fileString.length())); in test_read$BII()
488 byte[] rbuf = new byte[4000]; in test_write$B()
510 fis.read(rbuf, 0, fileString.length()); in test_write$B()
511 assertEquals("Incorrect bytes written", fileString, new String(rbuf, 0, in test_write$B()
523 byte[] rbuf = new byte[4000]; in test_write$BII()
[all …]
DInputStreamReaderTest.java434 char[] rbuf = new char[100]; in test_read$CII() local
437 is.read(rbuf, 0, 100); in test_read$CII()
438 for (int i = 0; i < rbuf.length; i++) { in test_read$CII()
439 assertTrue("returned incorrect chars", rbuf[i] == sbuf[i]); in test_read$CII()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipInputStreamTest.java96 byte[] rbuf = new byte[10]; in test_close()
97 zis.read(rbuf, 0, 1); in test_close()
160 byte[] rbuf = new byte[(int) zentry.getSize()]; in test_read$BII()
161 int r = zis.read(rbuf, 0, rbuf.length); in test_read$BII()
162 new String(rbuf, 0, r); in test_read$BII()
191 byte[] rbuf = new byte[(int) zentry.getSize()]; in test_skipJ()
193 int r = zis.read(rbuf, 0, rbuf.length); in test_skipJ()
DZipFileTest.java264 byte[] rbuf = new byte[1000]; in test_getInputStreamLjava_util_zip_ZipEntry()
266 is.read(rbuf, 0, r = (int) zentry.getSize()); in test_getInputStreamLjava_util_zip_ZipEntry()
268 new String(rbuf, 0, r)); in test_getInputStreamLjava_util_zip_ZipEntry()
/libcore/luni/src/test/java/libcore/java/io/
DOldDataOutputStreamTest.java77 byte[] rbuf = new byte[testLength]; in test_write$BII()
78 r = dis.read(rbuf, 0, testLength); in test_write$BII()
83 new String(rbuf, 0, r).equals( in test_write$BII()
143 byte[] rbuf = new byte[testLength]; in test_writeBytesLjava_lang_String()
144 dis.read(rbuf, 0, testLength); in test_writeBytesLjava_lang_String()
147 new String(rbuf, 0, testLength).equals(testString)); in test_writeBytesLjava_lang_String()
DOldRandomAccessFileTest.java297 byte[] rbuf = new byte[testLength + 10]; in test_read$B()
299 int bytesRead = raf.read(rbuf); in test_read$B()
303 new String(rbuf, 0, testLength)); in test_read$B()
305 bytesRead = raf.read(rbuf); in test_read$B()
310 bytesRead = raf.read(rbuf); in test_read$B()
323 byte[] rbuf = new byte[4000]; in test_read$BII()
330 bytesRead = raf.read(rbuf, 10, testLength / 2); in test_read$BII()
335 new String(rbuf, 10, testLength / 2)); in test_read$BII()
338 bytesRead = raf.read(rbuf, 0, testLength); in test_read$BII()
343 new String(rbuf, 0, bytesRead)); in test_read$BII()
[all …]
DOldInputStreamReaderTest.java220 char[] rbuf = new char[100]; in test_read$CII() local
223 is.read(rbuf, 0, 100); in test_read$CII()
224 for (int i = 0; i < rbuf.length; i++) in test_read$CII()
225 assertTrue("returned incorrect chars", rbuf[i] == sbuf[i]); in test_read$CII()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipInputStreamTest.java88 byte[] rbuf; in test_read$BII()
100 rbuf = new byte[100]; in test_read$BII()
103 zis1.read(rbuf, 10, 90); in test_read$BII()
111 zis1.read(rbuf, 10, 90); // But RI here, only! in test_read$BII()
DOldZipFileTest.java150 byte[] rbuf = getAllBytesFromStream(is); in setUp()
151 fos.write(rbuf, 0, rbuf.length); in setUp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DString2Test.java43 char[] rbuf = new char[5]; field in String2Test
508 hw1.getChars(5, hw1.length(), rbuf, 0); in test_getCharsII$CI()
510 for (int i = 0; i < rbuf.length; i++) in test_getCharsII$CI()
511 assertTrue("getChars returned incorrect char(s)", rbuf[i] == buf[i]); in test_getCharsII$CI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DDatagramSocketTest.java52 private final byte[] rbuf; field in DatagramSocketTest.DatagramServer
59 rbuf = new byte[512]; in DatagramServer()
60 rbuf[0] = -1; in DatagramServer()
61 rdp = new DatagramPacket(rbuf, rbuf.length); in DatagramServer()
DMulticastSocketTest.java917 byte[] rbuf = new byte[512]; in createReceiveDatagramPacket()
918 return new DatagramPacket(rbuf, rbuf.length); in createReceiveDatagramPacket()