Home
last modified time | relevance | path

Searched refs:FileUtil (Results 1 – 25 of 37) sorted by relevance

12

/cts/tests/filesystem/src/android/filesystem/cts/
DSequentialRWTest.java41 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 …]
DRandomRWTest.java30 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()
DAlmostFullTest.java74 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()
DFileUtil.java40 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/
DFileUtil.cpp32 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()
DLog.cpp45 FileUtil::doVprintf(level < mLogLevel, level, fmt, ap); in printf()
74 return FileUtil::init(logFile.string()); in init()
DReport.cpp63 return FileUtil::init(report.string()); in init()
70 FileUtil::doVprintf(false, -1, fmt, ap); in printf()
/cts/suite/audio_quality/lib/include/
DFileUtil.h32 class FileUtil {
41 FileUtil();
42 virtual ~FileUtil();
DReport.h30 class Report: public FileUtil {
/cts/hostsidetests/aadb/src/android/aadb/cts/
DTestDeviceStressTest.java26 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()
DTestDeviceFuncTest.java28 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/
DCtsTradefedTest.java21 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/
DVMHostTest.java23 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/
DFileUtilTest.cpp34 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/
DVmTestPreparer.java28 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/
DReportLogUtil.java23 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/
DReportLogCollector.java28 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()
DDynamicConfigPusher.java31 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/
DCompatibilityBuildHelperTest.java20 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/
DCtsXmlResultReporterTest.java28 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/
DDeviceInfoCollectorFuncTest.java27 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/
DResultHandlerTest.java18 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/
DSampleHostResultTest.java34 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/
DModuleRepoTest.java27 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/
DMediaPreparer.java28 import com.android.tradefed.util.FileUtil;
256 FileUtil.recursiveDelete(mediaFolder); in downloadMediaToHost()
257 FileUtil.recursiveDelete(mediaFolderZip); in downloadMediaToHost()

12