Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DServerSocketChannelTest.java465 byte[] writeContent = new byte[CAPACITY_NORMAL]; in test_write_Blocking_RealData()
466 for (int i = 0; i < writeContent.length; i++) { in test_write_Blocking_RealData()
467 writeContent[i] = (byte) i; in test_write_Blocking_RealData()
472 out.write(writeContent); in test_write_Blocking_RealData()
486 byte[] writeContent = new byte[CAPACITY_NORMAL]; in test_write_NonBlocking_RealData()
488 writeContent[i] = (byte) i; in test_write_NonBlocking_RealData()
493 out.write(writeContent); in test_write_NonBlocking_RealData()
575 byte[] writeContent = new byte[CAPACITY_64KB]; in test_write_LByteBuffer_NonBlocking_ReadWriteRealLargeData()
576 for (int i = 0; i < writeContent.length; i++) { in test_write_LByteBuffer_NonBlocking_ReadWriteRealLargeData()
577 writeContent[i] = (byte) i; in test_write_LByteBuffer_NonBlocking_ReadWriteRealLargeData()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSocketChannelTest.java356 byte[] writeContent = new byte[10]; in test_shutdownInput()
357 for (int i = 0; i < writeContent.length; i++) { in test_shutdownInput()
358 writeContent[i] = (byte) i; in test_shutdownInput()
366 out.write(writeContent); in test_shutdownInput()
384 ByteBuffer writeContent = ByteBuffer.allocate(10); in test_shutdownOutput() local
386 writeContent.put((byte) i); in test_shutdownOutput()
388 writeContent.flip(); in test_shutdownOutput()
401 channel1.write(writeContent); in test_shutdownOutput()
DOldSocketChannelTest.java242 ByteBuffer writeContent = ByteBuffer.allocate(CAPACITY_HUGE); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData() local
244 writeContent.put((byte) i); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()
246 writeContent.flip(); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()
258 writtenCount = channel1.write(writeContent); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()
260 assertEquals(0, channel1.write(writeContent)); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()