Home
last modified time | relevance | path

Searched refs:bytesWritten (Results 1 – 10 of 10) sorted by relevance

/libcore/ojluni/src/test/java/nio/channels/Channels/
DShortWrite.java42 static int bytesWritten = 0; field in ShortWrite
54 bytesWritten += n; in testShortWrite()
81 System.out.format("Bytes written: %d, expected: %d\n", bytesWritten, in testShortWrite()
83 if (bytesWritten != expected) in testShortWrite()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DFileIOInterruptTest.java492 volatile int bytesWritten; field in FileIOInterruptTest.StreamWriter
508 bytesWritten += buffer.length; in run()
518 int lastCount = bytesWritten; in waitForThreadToBlock()
521 int newBytesWritten = bytesWritten; in waitForThreadToBlock()
526 lastCount = bytesWritten; in waitForThreadToBlock()
528 fail("Writer never started blocking. Bytes written: " + bytesWritten); in waitForThreadToBlock()
585 volatile int bytesWritten; field in FileIOInterruptTest.ChannelWriter
606 bytesWritten += channel.write(buffer1); in run()
608 bytesWritten += channel.write(new ByteBuffer[]{ buffer1, buffer2 }); in run()
619 int lastCount = bytesWritten; in waitForThreadToBlock()
[all …]
DAsynchronousFileChannelTest.java146 int bytesWritten = 0; in createTemporaryFile() local
147 while (bytesWritten < size) { in createTemporaryFile()
149 bytesWritten += buf.length; in createTemporaryFile()
/libcore/ojluni/src/main/java/java/util/zip/
DInflater.java108 private long bytesWritten; field in Inflater
426 bytesWritten += written; in inflate()
443 bytesWritten += written; in inflate()
604 bytesWritten += written; in inflate()
623 bytesWritten += written; in inflate()
688 return bytesWritten; in getBytesWritten()
705 bytesRead = bytesWritten = 0; in reset()
DDeflater.java109 private long bytesWritten; field in Deflater
636 bytesWritten += written; in deflate()
807 bytesWritten += written; in deflate()
872 return bytesWritten; in getBytesWritten()
888 bytesRead = bytesWritten = 0; in reset()
/libcore/luni/src/main/java/libcore/io/
DLinux.java158 final int bytesWritten; in pwrite() local
162 bytesWritten = pwriteBytes(fd, buffer, position, buffer.remaining(), offset); in pwrite()
164bytesWritten = pwriteBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + … in pwrite()
167 maybeUpdateBufferPosition(buffer, position, bytesWritten); in pwrite()
168 return bytesWritten; in pwrite()
283 final int bytesWritten; in write() local
286 bytesWritten = writeBytes(fd, buffer, position, buffer.remaining()); in write()
288bytesWritten = writeBytes(fd, NioUtils.unsafeArray(buffer), NioUtils.unsafeArrayOffset(buffer) + p… in write()
291 maybeUpdateBufferPosition(buffer, position, bytesWritten); in write()
292 return bytesWritten; in write()
DIoBridge.java646 int bytesWritten = Libcore.os.write(fd, bytes, byteOffset, byteCount); in write() local
647 byteCount -= bytesWritten; in write()
648 byteOffset += bytesWritten; in write()
/libcore/ojluni/src/main/java/sun/nio/ch/
DIOUtil.java148 long bytesWritten = nd.writev(fd, vec.address, iov_len); in write() local
151 long left = bytesWritten; in write()
169 return bytesWritten; in write()
/libcore/ojluni/annotations/hiddenapi/java/util/zip/
DInflater.java140 private long bytesWritten; field in Inflater
DDeflater.java168 private long bytesWritten; field in Deflater