/libcore/benchmarks/src/benchmarks/ |
H A D | BufferedZipFileBenchmark.java | 46 int written = 0; 47 while (written < compressedSize) { 49 int toWrite = Math.min(compressedSize - written, data.length); 51 written += toWrite;
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | DataOutputStream.java | 40 * The number of bytes written to the data output stream so far. 43 protected int written; field in class:DataOutputStream 52 * underlying output stream. The counter <code>written</code> is 64 * Increases the written counter by the specified value 68 int temp = written + value; 72 written = temp; 78 * is thrown, the counter <code>written</code> is incremented by 83 * @param b the <code>byte</code> to be written. 95 * If no exception is thrown, the counter <code>written</code> is 113 * bytes to be written ou [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipOutputStream.java | 76 private long written = 0; field in class:ZipOutputStream 187 * @param e the ZIP entry to be written 238 current = new XEntry(e, written); 284 written += e.csize; 288 if (e.size != written - locoff) { 291 " but got " + (written - locoff) + " bytes)"); 310 * will block until all the bytes are written. 311 * @param b the data to be written 313 * @param len the number of bytes that are written 336 written [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | FileHandler.java | 127 * would typically cause log files to be written on Solaris to 129 * would be typically written to C:\TEMP\java0.log and C:\TEMP\java1.log 166 * (b) keeps track of how many bytes have been written 170 int written; field in class:FileHandler.MeteredStream 172 MeteredStream(OutputStream out, int written) { argument 174 this.written = written; 180 written++; 186 written += buff.length; 192 written [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | IOUtil.java | 62 // Do not update src until we see how many bytes were written 85 int written = 0; 89 written = nd.pwrite(fd, 93 written = nd.write(fd, ((DirectBuffer)bb).address() + pos, rem); 95 if (written > 0) 96 bb.position(pos + written); 97 return written;
|
H A D | DatagramChannelImpl.java | 547 // Do not update src until we see how many bytes were written 571 int written; 573 written = send0(preferIPv6, fd, ((DirectBuffer)bb).address() + pos, 578 written = rem; 580 if (written > 0) 581 bb.position(pos + written); 582 return written;
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldObjectOutputStreamTest.java | 60 // note aField2 is not written 178 assertTrue("Test 1: Primitive data unexpectedly written to the target stream.", 182 assertTrue("Test 2: Primitive data has not been written to the the target stream.", 197 boolean written = false; 200 // If there is no buffer then the bytes have already been written. 201 written = (target.size() > initialSize); 204 assertTrue("Content has not been written to the target.", 205 written || (target.size() > initialSize)); 340 // Test 2: Check that at least four bytes have been written. 342 assertTrue("Test 2: At least four bytes should have been written", [all...] |
/libcore/luni/src/test/java/libcore/libcore/io/ |
H A D | OsTest.java | 196 int written = Libcore.os.write(fd, byteBuffer); 197 assertTrue(written > 0); 198 assertEquals(written, byteBuffer.position()); 201 written = Libcore.os.write(fd, byteBuffer); 202 assertTrue(written > 0); 203 assertEquals(written + 4, byteBuffer.position()); 206 written = Libcore.os.pwrite(fd, byteBuffer, 64 /* offset */); 207 assertTrue(written > 0); 208 assertEquals(written, byteBuffer.position()); 211 written [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | SinkChannelTest.java | 163 int written = sink.write(buffer); 239 long written = sink.write(bufArray); 378 long written = sink.write(bufArray, 0, 1);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | BufferedOutputStreamTest.java | 106 assertEquals("Bytes not written after flush", 500, 111 byte[] written; field in class:BufferedOutputStreamTest.MockOutputStream 115 written = new byte[size]; 120 written[count++] = (byte) b; 124 return new String(written, 0, count); 135 assertEquals("Bytes written, not buffered", 0, bais.available()); 138 assertEquals("Bytes not written after flush", 500, bais.available()); 141 assertTrue("Bytes not written when buffer full", 145 assertEquals("Incorrect bytes written", new String(wbytes, 0, 153 assertEquals("Large data should be written directl [all...] |