Home
last modified time | relevance | path

Searched refs:CONTENT (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerParseLargeFileBenchmarkTest.java43 private static final char[] CONTENT = "large file!\n".toCharArray(); field in ScannerParseLargeFileBenchmarkTest.FakeLargeFile
60 int contentIndex = count % CONTENT.length; in read()
63 buffer[bufferIndex++] = CONTENT[contentIndex++]; in read()
64 if (contentIndex == CONTENT.length) { in read()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DFileChannelLockingTest.java44 …private final String CONTENT = "The best things in life are nearest: Breath in your nostrils, ligh… field in FileChannelLockingTest
58 writer.write(CONTENT); in setUp()
DFileChannelTest.java59 private static final String CONTENT = "MYTESTSTRING needs to be a little long"; field in FileChannelTest
70 CONTENT_AS_BYTES = CONTENT.getBytes("iso8859-1");
77 private static final int CONTENT_LENGTH = CONTENT.length();
1860 mapped = readWriteFileChannel.map(MapMode.READ_ONLY, 0, CONTENT in test_map_ReadOnly()
1897 assertEquals(CONTENT, new String(checkBuffer.array(), "iso8859-1")); in test_map_Private()
1901 mapped.put(("test" + CONTENT).getBytes("iso8859-1")); in test_map_Private()
1925 mapped = readWriteFileChannel.map(MapMode.READ_WRITE, 0, CONTENT in test_map_ReadWrite()
1931 String checkString = "test" + CONTENT.substring(4); in test_map_ReadWrite()
1939 mapped.put(("test" + CONTENT).getBytes("iso8859-1")); in test_map_ReadWrite()
1955 assertEquals(CONTENT.length() - 10, mapped.capacity()); in test_map_ReadWrite_NonZeroPosition()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldFileChannelTest.java43 private static final String CONTENT = "MYTESTSTRING needs to be a little long"; field in OldFileChannelTest
55 private static final int CONTENT_LENGTH = CONTENT.length();
57 private static final byte[] CONTENT_AS_BYTES = CONTENT.getBytes();
778 String test = CONTENT.substring(pos); in test_writeLByteBufferJ_NonZeroPosition()