Searched refs:CONTENT_LENGTH (Results 1 - 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DFileChannelTest.java77 private static final int CONTENT_LENGTH = CONTENT.length(); field in class:FileChannelTest
234 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH);
236 assertEquals(CONTENT_LENGTH, readOnlyFileChannel.position());
283 assertEquals(CONTENT_LENGTH, writeOnlyFileChannel.position());
293 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH);
295 assertEquals(CONTENT_LENGTH, readWriteFileChannel.position());
299 assertEquals(CONTENT_LENGTH * 2, readWriteFileChannel.position());
394 ByteBuffer readBuffer = ByteBuffer.allocate(CONTENT_LENGTH);
396 assertEquals(CONTENT_LENGTH - POSITION, count);
426 byte[] result = new byte[POSITION + CONTENT_LENGTH];
[all...]
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/
H A DFileURLConnection.java50 static String CONTENT_LENGTH = "content-length"; field in class:FileURLConnection
124 properties.add(CONTENT_LENGTH, String.valueOf(length));
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DOldFileChannelTest.java55 private static final int CONTENT_LENGTH = CONTENT.length(); field in class:OldFileChannelTest
827 writeBuffers[0] = ByteBuffer.allocate(this.CONTENT_LENGTH);
920 writeBuffers[0] = ByteBuffer.allocate(this.CONTENT_LENGTH);
921 writeBuffers[1] = ByteBuffer.allocate(this.CONTENT_LENGTH);
1037 writeBuffers[0] = ByteBuffer.allocate(this.CONTENT_LENGTH);

Completed in 207 milliseconds