/cts/tests/filesystem/src/android/filesystem/cts/ |
D | SequentialRWTest.java | 50 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 …]
|
D | AlmostFullTest.java | 75 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()
|
D | RandomRWTest.java | 41 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()
|
D | FileUtil.java | 40 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/ |
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/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ApexSignatureVerificationTest.java | 28 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/ |
D | FileUtil.h | 32 class FileUtil { 41 FileUtil(); 42 virtual ~FileUtil();
|
D | Report.h | 30 class Report: public FileUtil {
|
D | Log.h | 26 class Log: public FileUtil {
|
/cts/suite/audio_quality/test/ |
D | FileUtilTest.cpp | 32 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/ |
D | ValidationTestUtil.java | 23 import com.android.tradefed.util.FileUtil; 39 String configStr = FileUtil.readStringFromFile(configFile); in getConfig()
|
/cts/hostsidetests/angle/src/android/angle/cts/ |
D | CtsAngleRulesFileTest.java | 25 import com.android.tradefed.util.FileUtil; 81 FileUtil.deleteFile(mRulesFile); in tearDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ReportExporter.java | 27 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/ |
D | InstallDexMetadataHostTest.java | 27 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/ |
D | AdbRootDependentCompilationTest.java | 25 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/ |
D | SampleHostResultTest.java | 34 import com.android.tradefed.util.FileUtil; 122 File tmpFile = FileUtil.createTempFile("tmp", "txt"); in testTransferTime()
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
D | ReportProcessor.java | 28 import com.android.tradefed.util.FileUtil; 111 return FileUtil.readStringFromFile(reportFile).split("\n"); in getReportLines()
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | FileUtil.java | 23 public class FileUtil { class
|
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/ |
D | JvmtiHostTest.java | 30 import com.android.tradefed.util.FileUtil; 229 FileUtil.deleteFile(tmpFile); in installLibToDataData()
|
/cts/hostsidetests/jvmti/attaching/host/src/android/jvmti/cts/ |
D | JvmtiAttachingHostTest.java | 29 import com.android.tradefed.util.FileUtil; 312 FileUtil.deleteFile(tmpFile); in installLibToDataData()
|
/cts/suite/audio_quality/executable/src/ |
D | main.cpp | 88 if (!FileUtil::prepare(dirName)) { in main()
|
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/ |
D | DalvikTest.java | 44 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/ |
D | VmTestPreparer.java | 30 import com.android.tradefed.util.FileUtil;
|