Home
last modified time | relevance | path

Searched refs:readBuffer (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/io/
DDataInputStream.java396 private byte readBuffer[] = new byte[8]; field in DataInputStream
416 readFully(readBuffer, 0, 8); in readLong()
417 return (((long)readBuffer[0] << 56) + in readLong()
418 ((long)(readBuffer[1] & 255) << 48) + in readLong()
419 ((long)(readBuffer[2] & 255) << 40) + in readLong()
420 ((long)(readBuffer[3] & 255) << 32) + in readLong()
421 ((long)(readBuffer[4] & 255) << 24) + in readLong()
422 ((readBuffer[5] & 255) << 16) + in readLong()
423 ((readBuffer[6] & 255) << 8) + in readLong()
424 ((readBuffer[7] & 255) << 0)); in readLong()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelTest.java185 byte[] readBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; in test_forceJ()
187 fis.read(readBuffer); in test_forceJ()
188 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); in test_forceJ()
234 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); in test_position_ReadOnly() local
235 readOnlyFileChannel.read(readBuffer); in test_position_ReadOnly()
293 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); in test_position_ReadWrite() local
294 readWriteFileChannel.read(readBuffer); in test_position_ReadWrite()
394 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); in test_positionJ_ReadOnly() local
395 int count = readOnlyFileChannel.read(readBuffer); in test_positionJ_ReadOnly()
399 readBuffer.flip(); in test_positionJ_ReadOnly()
[all …]
DSocketChannelTest.java2927 ByteBuffer readBuffer = ByteBuffer.allocate(1024); in test_write$LByteBuffer2() local
2928 while (EOF != worker.read(readBuffer)) {} in test_write$LByteBuffer2()
2929 readBuffer.flip(); in test_write$LByteBuffer2()
2931 assertEquals(expected, readBuffer); in test_write$LByteBuffer2()
2968 ByteBuffer readBuffer = ByteBuffer.allocate(1024); in test_write$LByteBuffer_buffers() local
2969 while (EOF != worker.read(readBuffer)) {} in test_write$LByteBuffer_buffers()
2970 readBuffer.flip(); in test_write$LByteBuffer_buffers()
2971 assertEquals(ByteBuffer.wrap(data), readBuffer); in test_write$LByteBuffer_buffers() local
3010 ByteBuffer readBuffer = ByteBuffer.allocate(1024); in test_write$LByteBuffer_writes() local
3011 while (EOF != worker.read(readBuffer)) {} in test_write$LByteBuffer_writes()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DURLConnectionBenchmark.java36 private byte[] readBuffer; field in URLConnectionBenchmark
52 readBuffer = new byte[readBufferSize]; in setUp()
85 while ((count = in.read(readBuffer)) != -1) { in get()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java152 byte[] readBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; in test_forceZ()
154 fis.read(readBuffer); in test_forceZ()
155 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); in test_forceZ()
161 readBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; in test_forceZ()
163 fis.read(readBuffer); in test_forceZ()
164 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); in test_forceZ()
260 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); in test_readLByteBufferJ_IllegalArgument() local
263 readOnlyFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument()
270 writeOnlyFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument()
277 readWriteFileChannel.read(readBuffer, -1); in test_readLByteBufferJ_IllegalArgument()
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidZipStressTest.java41 byte[] readBuffer = new byte[1024]; in checkJarCertificates()
47 while (is.read(readBuffer, 0, readBuffer.length) != -1) { in checkJarCertificates()
DAbstractZipFileTest.java50 byte[] readBuffer = new byte[8192]; in testInflatingFilesRequiringZipRefill()
59 while (is.read(readBuffer, 0, readBuffer.length) != -1) {} in testInflatingFilesRequiringZipRefill()
174 byte[] readBuffer = new byte[8192]; in testInflatingStreamsRequiringZipRefill()
180 while (in.read(readBuffer, 0, readBuffer.length) != -1) {} in testInflatingStreamsRequiringZipRefill()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLEngineTest.java1042 private ByteBuffer readBuffer; field in SSLEngineTest.HandshakeHandler
1064 readBuffer = ByteBuffer.allocate(200000); in HandshakeHandler()
1078 if (readBuffer == null || readBuffer.remaining() == 0 || readBuffer.position() == 0) { in read()
1079 readBuffer.clear(); in read()
1080 int read = in.read(readBuffer); in read()
1082 readBuffer.rewind(); in read()
1083 readBuffer.limit(read); in read()
1085 return readBuffer; in read()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTest.java316 byte[] readBuffer = new byte[128]; in assertAvailableReturnsZeroAfterSocketReadsAllData()
321 total += in.read(readBuffer); in assertAvailableReturnsZeroAfterSocketReadsAllData()