/libcore/ojluni/src/main/java/java/io/ |
D | Writer.java | 55 private char[] writeBuffer; field in Writer 109 if (writeBuffer == null){ in write() 110 writeBuffer = new char[WRITE_BUFFER_SIZE]; in write() 112 writeBuffer[0] = (char) c; in write() 113 write(writeBuffer, 0, 1); in write() 184 if (writeBuffer == null) { in write() 185 writeBuffer = new char[WRITE_BUFFER_SIZE]; in write() 187 cbuf = writeBuffer; in write()
|
D | DataOutputStream.java | 204 private byte writeBuffer[] = new byte[8]; field in DataOutputStream 216 writeBuffer[0] = (byte)(v >>> 56); in writeLong() 217 writeBuffer[1] = (byte)(v >>> 48); in writeLong() 218 writeBuffer[2] = (byte)(v >>> 40); in writeLong() 219 writeBuffer[3] = (byte)(v >>> 32); in writeLong() 220 writeBuffer[4] = (byte)(v >>> 24); in writeLong() 221 writeBuffer[5] = (byte)(v >>> 16); in writeLong() 222 writeBuffer[6] = (byte)(v >>> 8); in writeLong() 223 writeBuffer[7] = (byte)(v >>> 0); in writeLong() 224 out.write(writeBuffer, 0, 8); in writeLong()
|
/libcore/benchmarks/src/benchmarks/ |
D | ZipFileBenchmark.java | 60 byte[] writeBuffer = new byte[8192]; in writeEntries() 68 for (long i = 0; i < entrySize; i += writeBuffer.length) { in writeEntries() 69 random.nextBytes(writeBuffer); in writeEntries() 70 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() 71 out.write(writeBuffer, 0, byteCount); in writeEntries()
|
D | ZipFileReadBenchmark.java | 53 byte[] writeBuffer = new byte[8192]; in writeEntries() 61 for (long i = 0; i < entrySize; i += writeBuffer.length) { in writeEntries() 62 random.nextBytes(writeBuffer); in writeEntries() 63 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() 64 out.write(writeBuffer, 0, byteCount); in writeEntries()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | OldFileChannelTest.java | 148 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_forceZ() local 149 writeOnlyFileChannel.write(writeBuffer); in test_forceZ() 157 writeOnlyFileChannel.write(writeBuffer); in test_forceZ() 653 ByteBuffer writeBuffer = ByteBuffer.allocate(CAPACITY); in test_writeLByteBuffer_Closed() local 657 readOnlyFileChannel.write(writeBuffer); in test_writeLByteBuffer_Closed() 665 writeOnlyFileChannel.write(writeBuffer); in test_writeLByteBuffer_Closed() 673 readWriteFileChannel.write(writeBuffer); in test_writeLByteBuffer_Closed() 704 ByteBuffer writeBuffer = ByteBuffer.wrap(TEST_BYTES); in test_writeLByteBufferJ_Postion_As_Long() local 706 writeOnlyFileChannel.write(writeBuffer, Long.MAX_VALUE); in test_writeLByteBufferJ_Postion_As_Long() 713 ByteBuffer writeBuffer = ByteBuffer.allocate(CAPACITY); in test_writeLByteBufferJ_IllegalArgument() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 181 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_forceJ() local 182 writeOnlyFileChannel.write(writeBuffer); in test_forceJ() 281 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_position_WriteOnly() local 282 writeOnlyFileChannel.write(writeBuffer); in test_position_WriteOnly() 297 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_position_ReadWrite() local 298 readWriteFileChannel.write(writeBuffer); in test_position_ReadWrite() 414 ByteBuffer writeBuffer = ByteBuffer.wrap(CONTENT_AS_BYTES); in test_positionJ_WriteOnly() local 421 writeOnlyFileChannel.write(writeBuffer); in test_positionJ_WriteOnly() 2013 ByteBuffer writeBuffer = null; in test_writeLByteBuffer_Null() local 2016 writeOnlyFileChannel.write(writeBuffer); in test_writeLByteBuffer_Null() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | AbstractZipFileTest.java | 226 byte[] writeBuffer = new byte[8192]; in writeEntries() 236 for (long i = 0; i < entrySize; i += writeBuffer.length) { in writeEntries() 237 random.nextBytes(writeBuffer); in writeEntries() 238 int byteCount = (int) Math.min(writeBuffer.length, entrySize - i); in writeEntries() 239 out.write(writeBuffer, 0, byteCount); in writeEntries()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineTest.java | 1096 private ByteBuffer writeBuffer; 1117 writeBuffer = ByteBuffer.allocate(20000); 1160 writeBuffer.clear(); 1163 SSLEngineResult result = engine.unwrap(source, writeBuffer); 1171 writeBuffer.clear(); 1176 result = engine.wrap(EMPTY, writeBuffer); 1181 writeBuffer.rewind(); 1182 writeBuffer.limit(produced); 1184 out.write(writeBuffer);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | UnixAsynchronousSocketChannelImpl.java | 88 private ByteBuffer writeBuffer; field in UnixAsynchronousSocketChannelImpl 606 n = IOUtil.write(fd, writeBuffer, -1, nd); in finishWrite() 617 this.writeBuffer = null; in finishWrite() 723 this.writeBuffer = src; in implWrite()
|