Home
last modified time | relevance | path

Searched refs:writeToFile (Results 1 – 25 of 54) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileUtilTest.java184 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, false); in testWriteToFile_overwrites_exists()
186 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile, false); in testWriteToFile_overwrites_exists()
202 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, true); in testWriteToFile_appends_exists()
203 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile, true); in testWriteToFile_appends_exists()
220 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, false); in testWriteToFile_overwrites_doesNotExist()
237 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, true); in testWriteToFile_appends_doesNotExist()
250 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile); in testWriteToFile_stream_overwrites()
252 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile); in testWriteToFile_stream_overwrites()
265 FileUtil.writeToFile("write1", testFile, false); in testWriteToFile_string_overwrites()
267 FileUtil.writeToFile("write2", testFile, false); in testWriteToFile_string_overwrites()
[all …]
DZipUtilTest.java52 FileUtil.writeToFile(inputStream, zipFile); in getTestDataFile()
94 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractZip()
123 FileUtil.writeToFile("contents1", file1); in testCreateAndExtractZip_fromFiles()
124 FileUtil.writeToFile("contents2", file2); in testCreateAndExtractZip_fromFiles()
165 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractFileFromZip()
DSubprocessTestResultsParserTest.java180 FileUtil.writeToFile(startRun, tmp, true); in testParse_testNotStarted()
186 FileUtil.writeToFile(testEnded, tmp, true); in testParse_testNotStarted()
214 FileUtil.writeToFile(startRun, tmp, true); in testParse_noTimeStamp()
219 FileUtil.writeToFile(testStarted, tmp, true); in testParse_noTimeStamp()
225 FileUtil.writeToFile(testEnded, tmp, true); in testParse_noTimeStamp()
256 FileUtil.writeToFile(startRun, tmp, true); in testParse_invocationFailed()
344 FileUtil.writeToFile(testTagEvent, tmp, true); in testParse_testTag()
371 FileUtil.writeToFile(testTagEvent, tmp, true); in testParse_testTagNotOverwrite()
401 FileUtil.writeToFile(moduleStart, tmp, true); in testParse_moduleStarted_end()
403 FileUtil.writeToFile(moduleEnd, tmp, true); in testParse_moduleStarted_end()
[all …]
DTarUtilTest.java60 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUnGzip()
80 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUntar()
100 FileUtil.writeToFile(logTarGz, logTarGzFile); in testExtractAndLog()
129 FileUtil.writeToFile(content, tmpFile); in testGzipDir_unGzip()
DHprofAllocSiteParserTest.java69 FileUtil.writeToFile(TEST_STRING, f); in testParse()
84 FileUtil.writeToFile("SITES BEGIN\nugh, we are in big trouble", f); in testParse_invalidContent()
DEmmaXmlReporterParserTest.java77 FileUtil.writeToFile(FULL_DATA, mXMLTestFile); in testNormalParsing()
91 FileUtil.writeToFile(FULL_DATA, mXMLTestFile); in testNormalParsingData()
DBugreportTest.java58 FileUtil.writeToFile(name, mainEntry); in setUp()
60 FileUtil.writeToFile(content, bugreport); in setUp()
164 FileUtil.writeToFile(content, bugreport); in testBugreportz_noMainFile()
DTestLoaderTest.java44 FileUtil.writeToFile(testJarStream, tmpJar); in testLoadTests()
DFileUtilFuncTest.java169 FileUtil.writeToFile(input, tmpFile); in testWriteToFile()
193 FileUtil.writeToFile("foo", subFile); in testRecursiveCopy()
214 FileUtil.writeToFile("foo", subFile); in testRecursiveCopyToNonexistentTarget()
337 FileUtil.writeToFile(source, tmpFile); in testCalculateMd5()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DLocalDeviceBuildProviderTest.java64 FileUtil.writeToFile(ANDROID_INFO, mAndroidInfo); in setUp()
66 FileUtil.writeToFile(BOOT_IMG, mBootImg); in setUp()
68 FileUtil.writeToFile(RADIO_IMG, mRadioImg); in setUp()
70 FileUtil.writeToFile(BOOTLOADER_IMG, mBootloaderImg); in setUp()
72 FileUtil.writeToFile(SYSTEM_IMG, mSystemImg); in setUp()
162 FileUtil.writeToFile("build_image", buildImageZip); in testSetDeviceImageFile()
179 FileUtil.writeToFile("tests", testFile); in testSetTestsDir_givenTestDir()
DFileDownloadCacheFuncTest.java82 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_concurrent()
137 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_multiConcurrent()
209 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_concurrentFail()
262 FileUtil.writeToFile(filecontents, file1); in testConstructor_createCache()
269 FileUtil.writeToFile(filecontents, nestedFile); in testConstructor_createCache()
289 FileUtil.writeToFile(filecontents, file1); in testConstructor_cacheExceeded()
294 FileUtil.writeToFile(filecontents, file2); in testConstructor_cacheExceeded()
DKernelDeviceBuildInfoTest.java44 FileUtil.writeToFile("device", mDeviceFile); in setUp()
48 FileUtil.writeToFile("kernel", mKernelFile); in setUp()
DKernelBuildInfoTest.java37 FileUtil.writeToFile("filedata", mKernelFile); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/
DZipUtil2.java71 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile); in extractZip()
106 FileUtil.writeToFile(zipFile.getInputStream(entry), createdFile); in extractFileFromZip()
/tools/tradefederation/core/prod-tests/src/com/android/monkey/
DAnrReportGenerator.java98 FileUtil.writeToFile(bugreportStream.createInputStream(), mCachedBugreport); in setBugReportInfo()
111 FileUtil.writeToFile(monkeyLogStream.createInputStream(), mCachedMonkeyLog); in setMonkeyLogInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/module/
DBaseModuleControllerTest.java48 FileUtil.writeToFile(TEST_CONFIG, mTestConfig); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNoisyDryRunTestTest.java60 FileUtil.writeToFile("tf/fake\n" in testRun()
92 FileUtil.writeToFile("tf/fake --fail-invocation-with-cause USE_KEYSTORE@fake\n", mFile); in testRun_withKeystore()
135 FileUtil.writeToFile("tf/fake\n" in testRun_invalidCmdLine()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DBuildInfoRecorder.java57 FileUtil.writeToFile(String.format("%s=%s\n%s=%s\n", in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/xml/
DAndroidManifestWriterTest.java89 FileUtil.writeToFile(testStream, tmpFile); in extractTestXml()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestSuiteInfoTest.java60 FileUtil.writeToFile( in testLoadConfig()
/tools/tradefederation/core/src/com/android/tradefed/result/
DRetentionFileSaver.java45 FileUtil.writeToFile(new SimpleDateFormat(RETENTION_DATE_FORMAT).format(date), in writeRetentionFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DVerifyTest.java53 FileUtil.writeToFile(cmdFileStream, tmpFile); in extractTestCmdFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java260 FileUtil.writeToFile(jacocoAgentStream, jacocoAgent); in extractJacocoAgent()
286 FileUtil.writeToFile(template, antConfig); in processExecData()
287 FileUtil.writeToFile(jacocoAntStream, jacocoAnt); in processExecData()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClientTest.java77 FileUtil.writeToFile(mJsonData, test); in testKeyStoreFetchFile()
DJSONFileKeyStoreFactoryTest.java45 FileUtil.writeToFile(mJsonData, mJsonFile); in setUp()

123