/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 184 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 …]
|
D | ZipUtilTest.java | 52 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()
|
D | SubprocessTestResultsParserTest.java | 180 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 …]
|
D | TarUtilTest.java | 60 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()
|
D | HprofAllocSiteParserTest.java | 69 FileUtil.writeToFile(TEST_STRING, f); in testParse() 84 FileUtil.writeToFile("SITES BEGIN\nugh, we are in big trouble", f); in testParse_invalidContent()
|
D | EmmaXmlReporterParserTest.java | 77 FileUtil.writeToFile(FULL_DATA, mXMLTestFile); in testNormalParsing() 91 FileUtil.writeToFile(FULL_DATA, mXMLTestFile); in testNormalParsingData()
|
D | BugreportTest.java | 58 FileUtil.writeToFile(name, mainEntry); in setUp() 60 FileUtil.writeToFile(content, bugreport); in setUp() 164 FileUtil.writeToFile(content, bugreport); in testBugreportz_noMainFile()
|
D | TestLoaderTest.java | 44 FileUtil.writeToFile(testJarStream, tmpJar); in testLoadTests()
|
D | FileUtilFuncTest.java | 169 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/ |
D | LocalDeviceBuildProviderTest.java | 64 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()
|
D | FileDownloadCacheFuncTest.java | 82 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()
|
D | KernelDeviceBuildInfoTest.java | 44 FileUtil.writeToFile("device", mDeviceFile); in setUp() 48 FileUtil.writeToFile("kernel", mKernelFile); in setUp()
|
D | KernelBuildInfoTest.java | 37 FileUtil.writeToFile("filedata", mKernelFile); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ZipUtil2.java | 71 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/ |
D | AnrReportGenerator.java | 98 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/ |
D | BaseModuleControllerTest.java | 48 FileUtil.writeToFile(TEST_CONFIG, mTestConfig); in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | NoisyDryRunTestTest.java | 60 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/ |
D | BuildInfoRecorder.java | 57 FileUtil.writeToFile(String.format("%s=%s\n%s=%s\n", in setUp()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/xml/ |
D | AndroidManifestWriterTest.java | 89 FileUtil.writeToFile(testStream, tmpFile); in extractTestXml()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestSuiteInfoTest.java | 60 FileUtil.writeToFile( in testLoadConfig()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | RetentionFileSaver.java | 45 FileUtil.writeToFile(new SimpleDateFormat(RETENTION_DATE_FORMAT).format(date), in writeRetentionFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | VerifyTest.java | 53 FileUtil.writeToFile(cmdFileStream, tmpFile); in extractTestCmdFile()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | TfTestLauncher.java | 260 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/ |
D | JSONFileKeyStoreClientTest.java | 77 FileUtil.writeToFile(mJsonData, test); in testKeyStoreFetchFile()
|
D | JSONFileKeyStoreFactoryTest.java | 45 FileUtil.writeToFile(mJsonData, mJsonFile); in setUp()
|