Home
last modified time | relevance | path

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

12

/cts/tests/filesystem/src/android/filesystem/cts/
DSequentialRWTest.java50 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_WR); in tearDown()
51 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); in tearDown()
52 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_RD); in tearDown()
58 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialWrite()
66 final byte[] data = FileUtil.generateRandomData(BUFFER_SIZE); in testSingleSequentialWrite()
67 final File[] files = FileUtil.createNewFiles(getContext(), DIR_SEQ_WR, in testSingleSequentialWrite()
71 double[] times = FileUtil.measureIO(numberOfFiles, rdAmount, wrAmount, new MeasureRun() { in testSingleSequentialWrite()
75 FileUtil.writeFile(files[i], data, false); in testSingleSequentialWrite()
89 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), BUFFER_SIZE); in testSingleSequentialUpdate()
95 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, fileSize, BUFFER_SIZE, in testSingleSequentialUpdate()
[all …]
DAlmostFullTest.java75 final long MAX_FILE_SIZE_TO_FILL = FileUtil.BUFFER_SIZE * 100L; in setUp()
83 FileUtil.createNewFilledFile(getContext(), in setUp()
97 FileUtil.removeFileOrDir(getContext(), DIR_INITIAL_FILL); in tearDown()
99 FileUtil.removeFileOrDir(getContext(), DIR_SEQ_UPDATE); in tearDown()
100 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); in tearDown()
101 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); in tearDown()
119 FileUtil.doSequentialUpdateTest(getContext(), DIR_SEQ_UPDATE, FILE_SIZE, BUFFER_SIZE, in testSequentialUpdate()
136 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, BUFFER_SIZE); in testRandomRead()
151 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, BUFFER_SIZE); in testRandomUpdate()
DRandomRWTest.java41 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_WR); in tearDown()
42 FileUtil.removeFileOrDir(getContext(), DIR_RANDOM_RD); in tearDown()
49 final long fileSize = FileUtil.getFileSizeExceedingMemory(getContext(), READ_BUFFER_SIZE); in testRandomRead()
55 FileUtil.doRandomReadTest(getContext(), DIR_RANDOM_RD, report, fileSize, in testRandomRead()
72 if (fileSize > FileUtil.BUFFER_SIZE) { in testRandomUpdate()
73 FileUtil.doRandomWriteTest(getContext(), DIR_RANDOM_WR, report, fileSize, in testRandomUpdate()
DFileUtil.java40 public class FileUtil { class
274 File file = FileUtil.createNewFilledFile(context, in doRandomReadTest()
277 final byte[] data = FileUtil.generateRandomData(bufferSize); in doRandomReadTest()
292 double[] times = FileUtil.measureIO(runsInOneGo, rdAmount, wrAmount, new MeasureRun() { in doRandomReadTest()
328 File file = FileUtil.createNewFilledFile(context, in doRandomWriteTest()
330 final byte[] data = FileUtil.generateRandomData(bufferSize); in doRandomWriteTest()
344 double[] times = FileUtil.measureIO(runsInOneGo, rdAmount, wrAmount, new MeasureRun() { in doRandomWriteTest()
381 File file = FileUtil.createNewFilledFile(context, in doSequentialUpdateTest()
383 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/hostsidetests/appsecurity/src/android/appsecurity/cts/
DApexSignatureVerificationTest.java28 import com.android.tradefed.util.FileUtil;
95 mBasePath = FileUtil.createTempDir(TEST_BASE); in setUp()
97 mWellKnownKeyStorePath = FileUtil.createTempDir("wellknownsignatures", mBasePath); in setUp()
127 final File pubKeyFile = FileUtil.findFile(entry.getValue(), APEX_PUB_KEY_NAME); in testApexIncludePubKey()
147 final File pubKeyFile = FileUtil.findFile(entry.getValue(), APEX_PUB_KEY_NAME); in testApexPubKeyIsNotWellKnownKey()
173 File apexDir = FileUtil.createTempDir(testSrcDirPath, mBasePath); in extractApexFiles()
181 assertThat(FileUtil.findFiles(apexDir, subFilesFilter)).isNotNull(); in extractApexFiles()
268 FileUtil.writeToFile(in, outFile); in pullWellKnownSignatures()
287 isMatchWellknownKey = FileUtil.compareFileContents(actual, wellknownKey); in pubkeyShouldNotEqualTo()
/cts/suite/audio_quality/lib/include/
DFileUtil.h32 class FileUtil {
41 FileUtil();
42 virtual ~FileUtil();
DReport.h30 class Report: public FileUtil {
DLog.h26 class Log: public FileUtil {
/cts/suite/audio_quality/test/
DFileUtilTest.cpp32 ASSERT_TRUE(FileUtil::prepare(dirPath)); in TEST_F()
36 ASSERT_TRUE(FileUtil::prepare(dirPath2)); in TEST_F()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DValidationTestUtil.java23 import com.android.tradefed.util.FileUtil;
39 String configStr = FileUtil.readStringFromFile(configFile); in getConfig()
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleRulesFileTest.java25 import com.android.tradefed.util.FileUtil;
81 FileUtil.deleteFile(mRulesFile); in tearDown()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DReportExporter.java27 import com.android.compatibility.common.util.FileUtil;
114 FileUtil.recursiveDelete(tempDir); in doInBackground()
153 FileUtil.writeToFile(rawStream, resultFile); in copyFormattingFiles()
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DInstallDexMetadataHostTest.java27 import com.android.tradefed.util.FileUtil;
95 mTmpDir = FileUtil.createTempDir("InstallDexMetadataHostTest"); in setUp()
113 FileUtil.recursiveDelete(mTmpDir); in tearDown()
196 FileUtil.copyFile(mDmFeatureAFile, nonMatchingDm); in testInstallDmForBaseButNoSplitWithNoMatchingDm()
/cts/hostsidetests/compilation/src/android/compilation/cts/
DAdbRootDependentCompilationTest.java25 import com.android.tradefed.util.FileUtil;
118 FileUtil.deleteFile(apkFile); in tearDown()
119 FileUtil.deleteFile(textProfileFile); in tearDown()
194 FileUtil.deleteFile(copyOnHost); in readFileOnClient()
/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/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DReportProcessor.java28 import com.android.tradefed.util.FileUtil;
111 return FileUtil.readStringFromFile(reportFile).split("\n"); in getReportLines()
/cts/tools/vm-tests-tf/build/src/util/build/
DFileUtil.java23 public class FileUtil { class
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/
DJvmtiHostTest.java30 import com.android.tradefed.util.FileUtil;
229 FileUtil.deleteFile(tmpFile); in installLibToDataData()
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/
DJvmtiAttachingHostTest.java29 import com.android.tradefed.util.FileUtil;
312 FileUtil.deleteFile(tmpFile); in installLibToDataData()
/cts/suite/audio_quality/executable/src/
Dmain.cpp88 if (!FileUtil::prepare(dirName)) { in main()
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DDalvikTest.java44 import com.android.tradefed.util.FileUtil;
366 FileUtil.deleteFile(tmpExcludeFile); in run()
607 return FileUtil.readStringFromFile(file); in safeReadContentFromFile()
/cts/tools/vm-tests-tf/targetprep/src/android/core/vm/targetprep/
DVmTestPreparer.java30 import com.android.tradefed.util.FileUtil;

12