Home
last modified time | relevance | path

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

/cts/tests/filesystem/src/android/filesystem/cts/
DRandomRWTest.java47 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); in testRandomRead() local
48 if (fileSize == 0) { // not enough space, give up in testRandomRead()
53 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, in testRandomRead() local
64 long fileSize = 256 * 1024 * 1024; in testRandomUpdate() local
65 while (usableSpace < fileSize) { in testRandomUpdate()
66 fileSize = fileSize / 2; in testRandomUpdate()
70 if (fileSize > FileUtil.BUFFER_SIZE) { in testRandomUpdate()
71 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, in testRandomUpdate() local
DSequentialRWTest.java58 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() local
59 if (fileSize == 0) { // not enough space, give up in testSingleSequentialWrite()
62 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite()
89 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() local
90 if (fileSize == 0) { // not enough space, give up in testSingleSequentialUpdate()
95 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local
102 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() local
103 if (fileSize == 0) { // not enough space, give up in testSingleSequentialRead()
108 DIR_SEQ_RD, fileSize); in testSingleSequentialRead()
112 report.addValue("file_size", fileSize, ResultType.NEUTRAL, ResultUnit.NONE); in testSingleSequentialRead()
[all …]
DAlmostFullTest.java126 final long fileSize = 400L * 1024L * 1024L; in testRandomRead() local
128 if (freeDisk < fileSize) { in testRandomRead()
134 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() local
141 final long fileSize = 256L * 1024L * 1024L; in testRandomUpdate() local
143 if (freeDisk < fileSize) { in testRandomUpdate()
149 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate() local
DFileUtil.java274 long fileSize, int bufferSize) throws Exception { in doRandomReadTest() argument
276 dirName, fileSize); in doRandomReadTest()
280 final int totalReadCount = (int)(fileSize / bufferSize); in doRandomReadTest()
284 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()
307 double[] mbps = Stat.calcRatePerSecArray((double)fileSize / runsInOneGo / 1024 / 1024, in doRandomReadTest()
328 long fileSize, int bufferSize) throws Exception { in doRandomWriteTest() argument
330 dirName, fileSize); in doRandomWriteTest()
333 final int totalWriteCount = (int)(fileSize / bufferSize); in doRandomWriteTest()
336 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest()
359 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/tests/tests/media/libmediandkjni/
Dnative_media_encoder_jni.cpp290 JNIEnv *env, int fd, jlong offset, jlong fileSize, in runNativeEncoderTest() argument
333 fd, offset, fileSize); in runNativeEncoderTest()
366 JNIEnv *env, jclass /*clazz*/, int fd, jlong offset, jlong fileSize, in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceNative() argument
370 return runNativeEncoderTest(env, fd, offset, fileSize, jmime, w, h, in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceNative()
376 JNIEnv *env, jclass /*clazz*/, int fd, jlong offset, jlong fileSize, in Java_android_media_cts_NativeEncoderTest_testEncodePersistentSurfaceNative() argument
380 return runNativeEncoderTest(env, fd, offset, fileSize, jmime, w, h, in Java_android_media_cts_NativeEncoderTest_testEncodePersistentSurfaceNative()
385 JNIEnv *env, jclass /*clazz*/, int fd, jlong offset, jlong fileSize, in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicSyncFrameNative() argument
393 return runNativeEncoderTest(env, fd, offset, fileSize, jmime, w, h, in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicSyncFrameNative()
398 JNIEnv *env, jclass /*clazz*/, int fd, jlong offset, jlong fileSize, in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicBitrateNative() argument
408 return runNativeEncoderTest(env, fd, offset, fileSize, jmime, w, h, in Java_android_media_cts_NativeEncoderTest_testEncodeSurfaceDynamicBitrateNative()
/cts/tests/tests/media/src/android/media/cts/
DMediaRecorderTest.java755 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument
772 mMediaRecorder.setMaxFileSize(fileSize); in testSetMaxFileSize()
782 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize()
969 long fileSize = 128 * 1024; in testRecordExceedFileSizeLimit() local
1079 mMediaRecorder.setMaxFileSize(fileSize); in testRecordExceedFileSizeLimit()
1104 checkOutputFileSize(filePath, fileSize, tolerance); in testRecordExceedFileSizeLimit()
1108 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument
1111 assertEquals(fileSize, file.length(), tolerance); in checkOutputFileSize()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java616 final int fileSize = bytesWritten; in testStagefright_bug_36592202() local