Searched refs:fileSize (Results 1 – 6 of 6) sorted by relevance
/cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/ |
D | SequentialRWTest.java | 48 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() local 49 if (fileSize == 0) { // not enough space, give up in testSingleSequentialWrite() 52 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite() 79 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() local 80 if (fileSize == 0) { // not enough space, give up in testSingleSequentialUpdate() 84 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, getReportLog(), fileSize, in testSingleSequentialUpdate() local 90 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() local 91 if (fileSize == 0) { // not enough space, give up in testSingleSequentialRead() 96 DIR_SEQ_RD, fileSize); in testSingleSequentialRead() 98 getReportLog().printValue("write throughput for test file of length " + fileSize, in testSingleSequentialRead() [all …]
|
D | RandomRWTest.java | 36 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); in testRandomRead() local 37 if (fileSize == 0) { // not enough space, give up in testRandomRead() 40 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, getReportLog(), fileSize, in testRandomRead() local 48 final long fileSize = 256 * 1024 * 1024; in testRandomUpdate() local 49 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, getReportLog(), fileSize, in testRandomUpdate() local
|
D | AlmostFullTest.java | 118 final long fileSize = 400L * 1024L * 1024L; in testRandomRead() local 120 if (freeDisk < fileSize) { in testRandomRead() 124 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, getReportLog(), fileSize, in testRandomRead() local 131 final long fileSize = 256L * 1024L * 1024L; in testRandomUpdate() local 133 if (freeDisk < fileSize) { in testRandomUpdate() 137 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, getReportLog(), fileSize, in testRandomUpdate() local
|
D | FileUtil.java | 271 long fileSize, int bufferSize) throws Exception { in doRandomReadTest() argument 273 dirName, fileSize); in doRandomReadTest() 277 final int totalReadCount = (int)(fileSize / bufferSize); in doRandomReadTest() 281 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest() 304 double[] mbps = ReportLog.calcRatePerSecArray((double)fileSize / runsInOneGo / 1024 / 1024, in doRandomReadTest() 326 long fileSize, int bufferSize) throws Exception { in doRandomWriteTest() argument 328 dirName, fileSize); in doRandomWriteTest() 331 final int totalWriteCount = (int)(fileSize / bufferSize); in doRandomWriteTest() 334 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest() 357 double[] mbps = ReportLog.calcRatePerSecArray((double)fileSize / runsInOneGo / 1024 / 1024, in doRandomWriteTest() [all …]
|
/cts/tools/dex-tools/src/dex/reader/ |
D | DexFileReader.java | 39 private int fileSize = 0; field in DexFileReader 124 fileSize = b.readUInt(); in readFileSize()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaRecorderTest.java | 464 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument 477 mMediaRecorder.setMaxFileSize(fileSize); in testSetMaxFileSize() 487 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize() 490 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument 492 assertEquals(fileSize, mOutFile.length(), tolerance); in checkOutputFileSize()
|