/cts/tests/filesystem/src/android/filesystem/cts/ |
D | RandomRWTest.java | 65 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); in testRandomRead() local 66 if (fileSize == 0) { // not enough space, give up in testRandomRead() 72 double mbps = FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, in testRandomRead() 91 long fileSize = 256 * 1024 * 1024; in testRandomUpdate() local 92 while (usableSpace < fileSize) { in testRandomUpdate() 93 fileSize = fileSize / 2; in testRandomUpdate() 100 if (fileSize > FileUtil.BUFFER_SIZE) { in testRandomUpdate() 101 mbps = FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, in testRandomUpdate()
|
D | SequentialRWTest.java | 78 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() local 79 if (fileSize == 0) { // not enough space, give up in testSingleSequentialWrite() 83 final int numberOfFiles =(int)(fileSize / BUFFER_SIZE); in testSingleSequentialWrite() 119 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() local 120 if (fileSize == 0) { // not enough space, give up in testSingleSequentialUpdate() 126 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() local 133 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialRead() local 134 if (fileSize == 0) { // not enough space, give up in testSingleSequentialRead() 140 DIR_SEQ_RD, fileSize); in testSingleSequentialRead() 144 report.addValue("file_size", fileSize, ResultType.NEUTRAL, ResultUnit.NONE); in testSingleSequentialRead() [all …]
|
D | AlmostFullTest.java | 130 final long fileSize = 400L * 1024L * 1024L; in testRandomRead() local 132 if (freeDisk < fileSize) { in testRandomRead() 138 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() local 145 final long fileSize = 256L * 1024L * 1024L; in testRandomUpdate() local 147 if (freeDisk < fileSize) { in testRandomUpdate() 153 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate() local
|
D | FileUtil.java | 274 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() 331 long fileSize, int bufferSize) throws Exception { in doRandomWriteTest() argument 333 dirName, fileSize); in doRandomWriteTest() 336 final int totalWriteCount = (int)(fileSize / bufferSize); in doRandomWriteTest() 339 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest() 362 double[] mbps = Stat.calcRatePerSecArray((double)fileSize / runsInOneGo / 1024 / 1024, in doRandomWriteTest() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-21118/ |
D | poc.cpp | 36 std::streampos fileSize = inputFile.tellg(); in fillParcel() local 40 vector<uint8_t> fileData(fileSize); in fillParcel() 41 inputFile.read(reinterpret_cast<char *>(fileData.data()), fileSize); in fillParcel() 43 reply.write(fileData.data(), fileSize); in fillParcel()
|
/cts/tests/backup/app/src/android/backup/app/ |
D | MainActivity.java | 52 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/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/ |
D | InstallDexMetadataHostTest.java | 301 int fileSize = bb.getInt(); in readSection() local 307 inflater.setInput(bb.array(), fileOffset, fileSize); in readSection() local 312 byte[] data = new byte[fileSize]; in readSection() 313 System.arraycopy(bb.array(), fileOffset, data, 0, fileSize); in readSection() local
|
/cts/hostsidetests/scopedstorage/redacturi/src/android/scopedstorage/cts/redacturi/ |
D | RedactUriDeviceTest.java | 494 int fileSize = Os.read(fd, data, 0, bufSize); in testOpenOnRedactedUri_readFuzzer() local 495 assertUriIsRedacted(data, fileSize); in testOpenOnRedactedUri_readFuzzer() 544 private void assertUriIsRedacted(byte[] data, int fileSize) { in assertUriIsRedacted() argument 549 assertTrue(fileSize == 4407744); in assertUriIsRedacted()
|
/cts/tests/bugreport/src/android/bugreport/cts/ |
D | BugreportManagerTest.java | 286 long fileSize = Long.parseLong(fileInfo[4]); in assertThatFileisNotEmpty() local 287 assertThat(fileSize).isGreaterThan(0L); in assertThatFileisNotEmpty()
|
/cts/hostsidetests/mediapc/videoencodingquality/src/ |
D | CtsVideoEncodingQualityHostTest.java | 461 long fileSize = file.length(); in testEncoding() local 462 writer.write("Filesize = " + fileSize + "\n"); in testEncoding() 466 long totalBits = fileSize * 8; in testEncoding()
|
/cts/tests/tests/media/recorder/src/android/media/recorder/cts/ |
D | MediaRecorderTest.java | 838 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument 855 mMediaRecorder.setMaxFileSize(fileSize); in testSetMaxFileSize() 865 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize() 1151 long fileSize = 1028 * 1024; in testRecordExceedFileSizeLimit() local 1274 mMediaRecorder.setMaxFileSize(fileSize); in testRecordExceedFileSizeLimit() 1299 checkOutputFileSize(filePath, fileSize, tolerance); in testRecordExceedFileSizeLimit() 1303 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument 1306 assertEquals(fileSize, file.length(), tolerance); in checkOutputFileSize()
|
/cts/tests/media/jni/ |
D | NativeMuxerTest.cpp | 121 int fileSize; in splitMediaToMuxerParameters() local 125 fileSize = buf.st_size; in splitMediaToMuxerParameters() 136 media_status_t status = AMediaExtractor_setDataSourceFd(extractor, fd, 0, fileSize); in splitMediaToMuxerParameters() 174 int bufferSize = ((fileSize + 127) >> 7) << 7; in splitMediaToMuxerParameters()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 781 final int fileSize = bytesWritten; in testStagefright_bug_36592202() local
|