Searched refs:readBuffer (Results 1 - 10 of 10) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | FileChannelTest.java | 238 byte[] readBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; 240 fis.read(readBuffer); 241 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); 287 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); 288 readOnlyFileChannel.read(readBuffer); 346 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); 347 readWriteFileChannel.read(readBuffer); 446 // reads the content left to readBuffer through read only file channel 447 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH); 448 int count = readOnlyFileChannel.read(readBuffer); [all...] |
H A D | SocketChannelTest.java | 2853 ByteBuffer readBuffer = ByteBuffer.allocate(1024); 2854 while (EOF != worker.read(readBuffer)) {}; 2855 readBuffer.flip(); 2857 assertEquals(expected, readBuffer); 2896 ByteBuffer readBuffer = ByteBuffer.allocate(1024); 2897 while (EOF != worker.read(readBuffer)) {}; 2898 readBuffer.flip(); 2899 assertEquals(ByteBuffer.wrap(data), readBuffer); 2938 ByteBuffer readBuffer = ByteBuffer.allocate(1024); 2939 while (EOF != worker.read(readBuffer)) {}; [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | URLConnectionBenchmark.java | 38 private byte[] readBuffer; field in class:URLConnectionBenchmark 54 readBuffer = new byte[readBufferSize]; 87 while ((count = in.read(readBuffer)) != -1) {
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidZipStressTest.java | 41 byte[] readBuffer = new byte[1024]; 47 while (is.read(readBuffer, 0, readBuffer.length) != -1) {
|
H A D | ZipFileTest.java | 46 byte[] readBuffer = new byte[8192]; 53 while (is.read(readBuffer, 0, readBuffer.length) != -1) {} 168 byte[] readBuffer = new byte[8192]; 171 while (in.read(readBuffer, 0, readBuffer.length) != -1) {}
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | OldFileChannelTest.java | 152 byte[] readBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; 154 fis.read(readBuffer); 155 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); 161 readBuffer = new byte[CONTENT_AS_BYTES_LENGTH]; 163 fis.read(readBuffer); 164 assertTrue(Arrays.equals(CONTENT_AS_BYTES, readBuffer)); 260 ByteBuffer readBuffer = ByteBuffer.allocate(CAPACITY); 263 readOnlyFileChannel.read(readBuffer, -1); 270 writeOnlyFileChannel.read(readBuffer, -1); 277 readWriteFileChannel.read(readBuffer, [all...] |
/libcore/luni/src/main/java/java/nio/ |
H A D | DatagramChannelImpl.java | 288 ByteBuffer readBuffer = ByteBuffer.wrap(readArray); 289 readCount = readImpl(readBuffer); 308 // read data to readBuffer, and then transfer data from readBuffer to 310 ByteBuffer readBuffer = ByteBuffer.allocate(totalCount); 312 readCount = readImpl(readBuffer); 315 // transfer data from readBuffer to targets 316 byte[] readArray = readBuffer.array();
|
H A D | SocketChannelImpl.java | 301 ByteBuffer readBuffer = ByteBuffer.wrap(readArray); 303 // read data to readBuffer, and then transfer data from readBuffer to targets. 304 readCount = readImpl(readBuffer); 305 readBuffer.flip();
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLEngineTest.java | 1310 private ByteBuffer readBuffer; field in class:SSLEngineTest.HandshakeHandler 1342 readBuffer = ByteBuffer.allocate(200000); 1356 if (readBuffer == null || readBuffer.remaining() == 0 || readBuffer.position() == 0) { 1357 readBuffer.clear(); 1358 int read = in.read(readBuffer); 1360 readBuffer.rewind(); 1361 readBuffer.limit(read); 1363 return readBuffer; [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | SocketTest.java | 276 byte[] readBuffer = new byte[128]; 281 total += in.read(readBuffer);
|
Completed in 627 milliseconds