Home
last modified time | relevance | path

Searched refs:fileSize (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java254 long fileSize = 3 * 1024L * 1024 * 1024; // 3 GiB in testSkipOnLargeFiles() local
262 allocateEmptyFile(largeFile, fileSize); in testSkipOnLargeFiles()
263 assertEquals(fileSize, largeFile.length()); in testSkipOnLargeFiles()
265 long lastByte = fileSize - 1; in testSkipOnLargeFiles()
278 private static void allocateEmptyFile(File file, long fileSize) in allocateEmptyFile() argument
283 Os.posix_fallocate(fos.getFD(), 0, fileSize); in allocateEmptyFile() local
291 Os.ftruncate(fos.getFD(), fileSize); in allocateEmptyFile() local
/libcore/luni/src/main/java/libcore/timezone/
DZoneInfoDB.java219 final int fileSize = mappedFile.size(); in readHeader() local
221 validateOffset(index_offset, fileSize); in readHeader()
223 validateOffset(data_offset, fileSize); in readHeader()
225 validateOffset(zonetab_offset, fileSize); in readHeader()
230 + ", fileSize=" + fileSize); in readHeader()
234 readZoneTab(it, zonetab_offset, fileSize - zonetab_offset); in readHeader()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DChannelsTest.java59 private final int fileSize = 31;// the file size field in ChannelsTest
275 assertEquals(this.fileSize, this.fins.available()); in testNewInputStreamReadableByteChannel_InputNull()
292 assertEquals(this.fileSize, this.fins.available()); in testNewInputStreamReadableByteChannel()
297 assertEquals(this.fins.available(), this.fileSize - this.testNum); in testNewInputStreamReadableByteChannel()
300 assertEquals(this.fins.available(), this.fileSize - this.testNum * 2); in testNewInputStreamReadableByteChannel()
302 assertEquals(this.fins.available(), this.fileSize - this.testNum * 3); in testNewInputStreamReadableByteChannel()
475 assertEquals(this.fileSize, this.fins.available()); in testNewReaderReadableByteChannelString()