Home
last modified time | relevance | path

Searched refs:CAPACITY_NORMAL (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java48 private static final int CAPACITY_NORMAL = 200; field in DatagramChannelTest
685 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL) in testReceive_UnconnectedReadonly()
702 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testReceive_UnconnectedBufEmpty()
722 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testReceive_UnboundBufNotEmpty()
725 assertEquals(dst.position() + CAPACITY_NORMAL - 1, dst.limit()); in testReceive_UnboundBufNotEmpty()
751 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testReceive_UnconnectedClose()
783 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL) in testReceive_UnconnectedCloseReadonly()
801 receiveNonBlockNoServer(CAPACITY_NORMAL); in testReceive_NonBlockNoServerBufEmpty()
925 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL) in receiveNoServerReadonly()
944 ByteBuffer dst = ByteBuffer.allocateDirect(CAPACITY_NORMAL); in receiveNoServerChannelClose()
[all …]
DServerSocketChannelTest.java42 private static final int CAPACITY_NORMAL = 200; field in ServerSocketChannelTest
406 ByteBuffer buf = ByteBuffer.allocate(CAPACITY_NORMAL); in test_read_Blocking_RealData()
408 for (int i = 0; i < CAPACITY_NORMAL; i++) { in test_read_Blocking_RealData()
417 assertReadResult(in,CAPACITY_NORMAL); in test_read_Blocking_RealData()
445 ByteBuffer buf = ByteBuffer.allocate(CAPACITY_NORMAL); in test_read_NonBlocking_RealData()
446 for (int i = 0; i < CAPACITY_NORMAL; i++) { in test_read_NonBlocking_RealData()
455 assertReadResult(in,CAPACITY_NORMAL); in test_read_NonBlocking_RealData()
465 byte[] writeContent = new byte[CAPACITY_NORMAL]; in test_write_Blocking_RealData()
475 assertWriteResult(CAPACITY_NORMAL); in test_write_Blocking_RealData()
486 byte[] writeContent = new byte[CAPACITY_NORMAL]; in test_write_NonBlocking_RealData()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java41 private static final int CAPACITY_NORMAL = 200; field in OldSocketChannelTest
112 buf[0] = java.nio.ByteBuffer.allocateDirect(CAPACITY_NORMAL); in testOpen()