Home
last modified time | relevance | path

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

/cts/tests/filesystem/src/android/filesystem/cts/
DSequentialRWTest.java48 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()
78 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() local
79 if (fileSize == 0) { // not enough space, give up in testSingleSequentialUpdate()
84 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local
89 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() local
90 if (fileSize == 0) { // not enough space, give up in testSingleSequentialRead()
95 DIR_SEQ_RD, fileSize); in testSingleSequentialRead()
99 report.addValue("file_size", fileSize, ResultType.NEUTRAL, ResultUnit.NONE); in testSingleSequentialRead()
[all …]
DRandomRWTest.java37 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); in testRandomRead() local
38 if (fileSize == 0) { // not enough space, give up in testRandomRead()
43 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, in testRandomRead() local
51 final long fileSize = 256 * 1024 * 1024; in testRandomUpdate() local
54 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, in testRandomUpdate() local
DAlmostFullTest.java118 final long fileSize = 400L * 1024L * 1024L; in testRandomRead() local
120 if (freeDisk < fileSize) { in testRandomRead()
126 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() local
132 final long fileSize = 256L * 1024L * 1024L; in testRandomUpdate() local
134 if (freeDisk < fileSize) { in testRandomUpdate()
140 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate() local
DFileUtil.java272 long fileSize, int bufferSize) throws Exception { in doRandomReadTest() argument
274 dirName, fileSize); in doRandomReadTest()
278 final int totalReadCount = (int)(fileSize / bufferSize); in doRandomReadTest()
282 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()
305 double[] mbps = Stat.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 = Stat.calcRatePerSecArray((double)fileSize / runsInOneGo / 1024 / 1024, in doRandomWriteTest()
[all …]
/cts/tests/backup/app/src/android/backup/app/
DMainActivity.java52 int fileSize = Integer.parseInt(getIntent().getStringExtra(FILE_SIZE_EXTRA)); in onCreate() local
53 Log.i(TAG, "Creating file of size: " + fileSize); in onCreate()
55 createFile(fileSize); in onCreate()
/cts/tools/dex-tools/src/dex/reader/
DDexFileReader.java39 private int fileSize = 0; field in DexFileReader
124 fileSize = b.readUInt(); in readFileSize()
/cts/tests/tests/media/src/android/media/cts/
DMediaRecorderTest.java526 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument
539 mMediaRecorder.setMaxFileSize(fileSize); in testSetMaxFileSize()
549 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize()
552 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument
554 assertEquals(fileSize, mOutFile.length(), tolerance); in checkOutputFileSize()