Home
last modified time | relevance | path

Searched refs:readContent (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSocketChannelTest.java1922 ByteBuffer readContent = ByteBuffer.allocate(CAPACITY_NORMAL + 1); in test_readLjava_nio_ByteBuffer_Blocking() local
1928 count = channel1.read(readContent); in test_readLjava_nio_ByteBuffer_Blocking()
1940 readContent.flip(); in test_readLjava_nio_ByteBuffer_Blocking()
1942 assertEquals(writeContent[i], readContent.get()); in test_readLjava_nio_ByteBuffer_Blocking()
1966 ByteBuffer readContent = ByteBuffer.allocate(CAPACITY_NORMAL + 1); in test_readLjava_nio_ByteBuffer_Nonblocking() local
1972 count = channel1.read(readContent); in test_readLjava_nio_ByteBuffer_Nonblocking()
1985 assertEquals(CAPACITY_NORMAL, readContent.position()); in test_readLjava_nio_ByteBuffer_Nonblocking()
1986 readContent.flip(); in test_readLjava_nio_ByteBuffer_Nonblocking()
1988 assertEquals(writeContent[i], readContent.get()); in test_readLjava_nio_ByteBuffer_Nonblocking()
2018 byte[] readContent = new byte[CAPACITY_NORMAL + 1]; in test_writeLjava_nio_ByteBuffer_Blocking()
[all …]
DServerSocketChannelTest.java427 byte[] readContent = new byte[size + 1]; in assertReadResult()
430 while ((count = in.read(readContent, total, size + 1 - total)) != -1) { in assertReadResult()
435 assertEquals((byte) i, readContent[i]); in assertReadResult() local
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java371 ByteBuffer readContent = ByteBuffer.allocate(10 + 1); in test_shutdownInput() local
373 assertEquals(-1, channel1.read(readContent)); in test_shutdownInput()
/libcore/support/src/test/java/tests/support/
DSupport_TestWebServer.java546 private int readContent(InputStream is) { in readContent() method in Support_TestWebServer.Worker
584 nread = readContent(is); in handleClient()