/cts/tests/filesystem/src/android/filesystem/cts/ |
D | SequentialRWTest.java | 41 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_WR); in tearDown() 42 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); in tearDown() 43 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_RD); in tearDown() 48 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite() 56 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); in testSingleSequentialWrite() 57 final File[] files = FileUtil.createNewFiles(getContext(), DIR_SEQ_WR, in testSingleSequentialWrite() 61 double[] times = FileUtil.measureIO(numberOfFiles, rdAmount, wrAmount, new MeasureRun() { in testSingleSequentialWrite() 65 FileUtil.writeFile(files[i], data, false); in testSingleSequentialWrite() 78 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate() 84 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate() [all …]
|
D | RandomRWTest.java | 30 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); in tearDown() 31 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); in tearDown() 37 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); in testRandomRead() 43 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, in testRandomRead() 54 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, in testRandomUpdate()
|
D | AlmostFullTest.java | 74 FileUtil.createNewFilledFile(getContext(), in setUp() 88 FileUtil.removeFileOrDir(getContext(), DIR_INITIAL_FILL); in tearDown() 90 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); in tearDown() 91 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); in tearDown() 92 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); in tearDown() 110 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, FILE_SIZE, BUFFER_SIZE, in testSequentialUpdate() 126 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead() 140 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate()
|
D | FileUtil.java | 40 public class FileUtil { class 273 File file = FileUtil.createNewFilledFile(context, in doRandomReadTest() 276 final byte[] data = FileUtil.generateRandomData(bufferSize); in doRandomReadTest() 291 double[] times = FileUtil.measureIO(runsInOneGo, rdAmount, wrAmount, new MeasureRun() { in doRandomReadTest() 327 File file = FileUtil.createNewFilledFile(context, in doRandomWriteTest() 329 final byte[] data = FileUtil.generateRandomData(bufferSize); in doRandomWriteTest() 343 double[] times = FileUtil.measureIO(runsInOneGo, rdAmount, wrAmount, new MeasureRun() { in doRandomWriteTest() 380 File file = FileUtil.createNewFilledFile(context, in doSequentialUpdateTest() 382 final byte[] data = FileUtil.generateRandomData(bufferSize); in doSequentialUpdateTest()
|
/cts/suite/audio_quality/lib/src/ |
D | FileUtil.cpp | 32 android::String8 FileUtil::mDirPath; 34 bool FileUtil::prepare(android::String8& dirPath) in prepare() 79 FileUtil::FileUtil() in FileUtil() function in FileUtil 89 FileUtil::~FileUtil() in ~FileUtil() 97 bool FileUtil::init(const char* fileName) in init() 110 bool FileUtil::doVprintf(bool fileOnly, int logLevel, const char *fmt, va_list ap) in doVprintf() 154 bool FileUtil::doPrintf(const char* fmt, ...) in doPrintf()
|
D | Log.cpp | 45 FileUtil::doVprintf(level < mLogLevel, level, fmt, ap); in printf() 74 return FileUtil::init(logFile.string()); in init()
|
D | Report.cpp | 63 return FileUtil::init(report.string()); in init() 70 FileUtil::doVprintf(false, -1, fmt, ap); in printf()
|
/cts/suite/audio_quality/lib/include/ |
D | FileUtil.h | 32 class FileUtil { 41 FileUtil(); 42 virtual ~FileUtil();
|
D | Report.h | 30 class Report: public FileUtil {
|
/cts/hostsidetests/aadb/src/android/aadb/cts/ |
D | TestDeviceStressTest.java | 26 import com.android.tradefed.util.FileUtil; 55 tmpDir = FileUtil.createTempDir("testDir"); in createTempTestFiles() 59 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); in createTempTestFiles() 60 FileUtil.writeToFile(fileContents, tmpFile); in createTempTestFiles() 91 FileUtil.recursiveDelete(tmpDir); in testPushFolderWithManyFiles()
|
D | TestDeviceFuncTest.java | 28 import com.android.tradefed.util.FileUtil; 115 tmpDestFile = FileUtil.createTempFile("tmp", "txt"); in testPushPull_normal() 153 tmpDestFile = FileUtil.createTempFile("tmp", "txt"); in testPushPull_extStorageVariable() 194 tmpFile = FileUtil.createTempFile("tmp", ".txt", dir); in createTempTestFile() 195 FileUtil.writeToFile(fileContents, tmpFile); in createTempTestFile() 258 File tmpDir = FileUtil.createTempDir("tmp"); in doTestSyncFiles() 312 FileUtil.recursiveDelete(tmpDir); in doTestSyncFiles() 322 File rootDir = FileUtil.createTempDir("tmp"); in testPushDir() 325 File tmpDir = FileUtil.createTempDir("tmp", rootDir); in testPushDir() 340 FileUtil.recursiveDelete(rootDir); in testPushDir() [all …]
|
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/tradefed/ |
D | CtsTradefedTest.java | 21 import com.android.tradefed.util.FileUtil; 41 File root = FileUtil.createTempDir("root"); in testSuiteInfoLoad() 53 FileUtil.recursiveDelete(root); in testSuiteInfoLoad()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | VMHostTest.java | 23 import com.android.tradefed.util.FileUtil; 70 …File localTmpDir = FileUtil.createTempDir("cts-vm", new File(System.getProperty("java.io.tmpdir"))… in installVmPrereqs() 80 FileUtil.extractZip(zipFile, localTmpDir); in installVmPrereqs() 89 FileUtil.recursiveDelete(localTmpDir); in installVmPrereqs()
|
/cts/suite/audio_quality/test/ |
D | FileUtilTest.cpp | 34 ASSERT_TRUE(FileUtil::prepare(dirPath)); in TEST_F() 38 ASSERT_TRUE(FileUtil::prepare(dirPath2)); in TEST_F()
|
/cts/tools/vm-tests-tf/targetprep/src/android/core/vm/targetprep/ |
D | VmTestPreparer.java | 28 import com.android.tradefed.util.FileUtil; 84 File localTmpDir = FileUtil.createTempDir("cts-vm", tmpDir); in installVmPrereqs() 91 FileUtil.extractZip(zipFile, localTmpDir); in installVmPrereqs() 97 FileUtil.recursiveDelete(localTmpDir); in installVmPrereqs()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/util/ |
D | ReportLogUtil.java | 23 import com.android.tradefed.util.FileUtil; 83 final File hostReportDir = FileUtil.createNamedTempDir(TEMP_REPORT_DIR); in collectReportLogs() 108 FileUtil.recursiveCopy(hostDir, destDir); in pull() 109 FileUtil.recursiveDelete(hostDir); in pull()
|
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/ |
D | ReportLogCollector.java | 28 import com.android.tradefed.util.FileUtil; 101 final File hostReportDir = FileUtil.createNamedTempDir(mTempReportFolder); in tearDown() 126 FileUtil.recursiveCopy(hostDir, destDir); in pull() 127 FileUtil.recursiveDelete(hostDir); in pull()
|
D | DynamicConfigPusher.java | 31 import com.android.tradefed.util.FileUtil; 145 FileUtil.copyFile(src, hostDest); in setUp() 171 FileUtil.deleteFile(new File(mFilePushed)); in tearDown()
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/build/ |
D | CompatibilityBuildHelperTest.java | 20 import com.android.tradefed.util.FileUtil; 50 mRoot = FileUtil.createTempDir(ROOT_DIR_NAME); in setUp() 59 FileUtil.recursiveDelete(mRoot); in tearDown()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/ |
D | CtsXmlResultReporterTest.java | 28 import com.android.tradefed.util.FileUtil; 79 mReportDir = FileUtil.createTempDir("foo"); in setUp() 81 mBuildDir = FileUtil.createTempDir("build"); in setUp() 103 FileUtil.recursiveDelete(mReportDir); in tearDown() 106 FileUtil.recursiveDelete(mBuildDir); in tearDown()
|
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/device/ |
D | DeviceInfoCollectorFuncTest.java | 27 import com.android.tradefed.util.FileUtil; 51 mResultDir = FileUtil.createTempDir("cts-result-dir"); in setUp()
|
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | ResultHandlerTest.java | 18 import com.android.tradefed.util.FileUtil; 135 resultsDir = FileUtil.createTempDir("results"); in setUp() 136 resultDir = FileUtil.createTempDir("12345", resultsDir); in setUp() 142 FileUtil.recursiveDelete(resultsDir); in tearDown() 188 resultsDir = FileUtil.createTempDir("results"); in testParsing() 189 File resultDir = FileUtil.createTempDir("12345", resultsDir); in testParsing()
|
/cts/hostsidetests/sample/src/android/sample/cts/ |
D | SampleHostResultTest.java | 34 import com.android.tradefed.util.FileUtil; 122 File tmpFile = FileUtil.createTempFile("tmp", "txt"); in testTransferTime()
|
/cts/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/ |
D | ModuleRepoTest.java | 27 import com.android.tradefed.util.FileUtil; 117 File testsDir = FileUtil.createNamedTempDir("testcases"); in setUpConfigs() 134 FileUtil.writeToFile(String.format(CONFIG, preparer, moduleClass, name), config); in createConfig() 143 FileUtil.recursiveDelete(testsDir); in tearDownConfigs()
|
/cts/tests/tests/mediastress/preconditions/src/android/mediastress/cts/preconditions/ |
D | MediaPreparer.java | 28 import com.android.tradefed.util.FileUtil; 256 FileUtil.recursiveDelete(mediaFolder); in downloadMediaToHost() 257 FileUtil.recursiveDelete(mediaFolderZip); in downloadMediaToHost()
|