/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | GsiDeviceFlashPreparerTest.java | 205 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success() 206 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success() 248 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success_FromZipFile() 249 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success_FromZipFile() 294 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success_WithGkiBootImg() 295 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success_WithGkiBootImg() 296 FileUtil.writeToFile("ddd", bootImg); in testSetup_Success_WithGkiBootImg() 347 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success_WithGkiBootImgInZip() 348 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success_WithGkiBootImgInZip() 349 FileUtil.writeToFile("ddd", bootImg); in testSetup_Success_WithGkiBootImgInZip() [all …]
|
D | GkiDeviceFlashPreparerTest.java | 279 FileUtil.writeToFile("ddd", bootImg); in testSetup_Success() 303 FileUtil.writeToFile("ddd", bootImg); in testSetup_Success_FromZip() 329 FileUtil.writeToFile("ddd", bootImg); in testSetUp_GkiFlashFailure() 332 FileUtil.writeToFile("not an empty file", deviceImg); in testSetUp_GkiFlashFailure() 359 FileUtil.writeToFile("ddd", bootImg); in testSetUp_BootFailure() 362 FileUtil.writeToFile("not an empty file", deviceImg); in testSetUp_BootFailure()
|
D | PerfettoPreparerTest.java | 103 FileUtil.writeToFile( in createPerfettoFile() 112 FileUtil.writeToFile("xyz", tempFile); in createPerfettoFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 186 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, false); in testWriteToFile_overwrites_exists() 188 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile, false); in testWriteToFile_overwrites_exists() 204 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, true); in testWriteToFile_appends_exists() 205 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile, true); in testWriteToFile_appends_exists() 222 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, false); in testWriteToFile_overwrites_doesNotExist() 239 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, true); in testWriteToFile_appends_doesNotExist() 252 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile); in testWriteToFile_stream_overwrites() 254 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile); in testWriteToFile_stream_overwrites() 267 FileUtil.writeToFile("write1", testFile, false); in testWriteToFile_string_overwrites() 269 FileUtil.writeToFile("write2", testFile, false); in testWriteToFile_string_overwrites() [all …]
|
D | SubprocessTestResultsParserTest.java | 196 FileUtil.writeToFile(startRun, tmp, true); in testParse_testNotStarted() 202 FileUtil.writeToFile(testEnded, tmp, true); in testParse_testNotStarted() 234 FileUtil.writeToFile(startRun, tmp, true); in testParse_noTimeStamp() 239 FileUtil.writeToFile(testStarted, tmp, true); in testParse_noTimeStamp() 245 FileUtil.writeToFile(testEnded, tmp, true); in testParse_noTimeStamp() 276 FileUtil.writeToFile(startRun, tmp, true); in testParse_invocationFailed() 381 FileUtil.writeToFile(testTagEvent, tmp, true); in testParse_testTag() 406 FileUtil.writeToFile(event, tmp, true); in testParse_testInvocationEndedWithoutBuildInfo() 432 FileUtil.writeToFile(event, tmp, true); in testParse_testInvocationEnded() 462 FileUtil.writeToFile(testTagEvent, tmp, true); in testParse_testTagNotOverwrite() [all …]
|
D | TarUtilTest.java | 59 FileUtil.writeToFile(logTarGz, tmpFile); in testIsGzip() 62 FileUtil.writeToFile("test", tmpFile); in testIsGzip() 65 FileUtil.writeToFile("", tmpFile); in testIsGzip() 80 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUnGzip() 100 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUntar() 119 FileUtil.writeToFile(logTarGz, tarGzFile); in testExtractTarGzipToTemp() 138 FileUtil.writeToFile(logTarGz, logTarGzFile); in testExtractAndLog() 167 FileUtil.writeToFile(content, tmpFile); in testGzipDir_unGzip()
|
D | FileUtilFuncTest.java | 173 FileUtil.writeToFile(input, tmpFile); in testWriteToFile() 199 FileUtil.writeToFile("foo", subFile); in testRecursiveCopy() 221 FileUtil.writeToFile("foo", subFile); in testRecursiveCopyToNonexistentTarget() 342 FileUtil.writeToFile(source, tmpFile); in testCalculateMd5() 361 FileUtil.writeToFile(source, tmpFile); in testCalculateBase64Md5()
|
D | ZipUtilTest.java | 63 FileUtil.writeToFile(inputStream, zipFile); in getTestDataFile() 105 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractZip() 134 FileUtil.writeToFile("contents1", file1); in testCreateAndExtractZip_fromFiles() 135 FileUtil.writeToFile("contents2", file2); in testCreateAndExtractZip_fromFiles() 176 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractFileFromZip()
|
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 | 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()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FileUtil.java | 526 writeToFile(new FileInputStream(origFile), destFile); in copyFile() 601 public static void writeToFile(String inputString, File destFile) throws IOException { in writeToFile() method in FileUtil 602 writeToFile(inputString, destFile, false); in writeToFile() 612 public static void writeToFile(String inputString, File destFile, boolean append) in writeToFile() method in FileUtil 614 writeToFile(new ByteArrayInputStream(inputString.getBytes()), destFile, append); in writeToFile() 623 public static void writeToFile(InputStream input, File destFile) throws IOException { in writeToFile() method in FileUtil 624 writeToFile(input, destFile, false); in writeToFile() 634 public static void writeToFile( in writeToFile() method in FileUtil 637 writeToFile(input, destFile, append, 0, -1); in writeToFile() 650 public static void writeToFile( in writeToFile() method in FileUtil
|
D | ZipUtil.java | 115 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile); in extractZip() 135 FileUtil.writeToFile(zipFile.getInputStream(entry), createdFile); in extractFileFromZip() 545 FileUtil.writeToFile( in unzipPartialZipFile()
|
D | ZipUtil2.java | 75 FileUtil.writeToFile(zipFile.getInputStream(entry), childFile); in extractZip() 118 FileUtil.writeToFile(zipFile.getInputStream(entry), createdFile); in extractFileFromZip()
|
/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 | 88 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_concurrent() 147 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_multiConcurrent() 220 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_concurrentFail() 276 FileUtil.writeToFile(filecontents, file1); in testConstructor_createCache() 283 FileUtil.writeToFile(filecontents, nestedFile); in testConstructor_createCache() 302 FileUtil.writeToFile(filecontents, file1); in testConstructor_cacheExceeded() 307 FileUtil.writeToFile(filecontents, file2); in testConstructor_cacheExceeded()
|
D | FileDownloadCacheTest.java | 301 FileUtil.writeToFile("test", file); in testCacheRebuild() 408 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in setDownloadExpections() 415 FileUtil.writeToFile(DOWNLOADED_CONTENTS, file); in setDownloadExpections()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | AndroidJUnitTestTest.java | 275 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_includeFile() 301 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_excludeFile() 333 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_testFileAndFilters() 335 FileUtil.writeToFile(TEST2.toString(), tmpFileExclude); in testRun_testFileAndFilters() 369 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_testFileAndFilters_fails() 371 FileUtil.writeToFile(TEST2.toString(), tmpFileExclude); in testRun_testFileAndFilters_fails() 408 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_setTestFileOptions() 410 FileUtil.writeToFile(TEST2.toString(), tmpFileExclude); in testRun_setTestFileOptions()
|
D | NoisyDryRunTestTest.java | 88 FileUtil.writeToFile("tf/fake\n" in testRun() 117 FileUtil.writeToFile("tf/fake --fail-invocation-with-cause USE_KEYSTORE@fake\n", mFile); in testRun_withKeystore() 157 FileUtil.writeToFile("tf/fake\n" in testRun_invalidCmdLine() 256 FileUtil.writeToFile("tf/fake\n" + "tf/fake --use-sandbox", mFile); in testLoading_sandboxed() 281 FileUtil.writeToFile( in testLoading_sandboxed() 317 FileUtil.writeToFile("tf/fake\n" + "tf/fake --use-sandbox", mFile); in testLoading_sandboxed_failed() 371 FileUtil.writeToFile("tf/fake --delegated-tf .\n" + "tf/fake", mFile); in testRun_withDelegation()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 54 FileUtil.writeToFile(mJsonData, mJsonFile); in setUp() 56 FileUtil.writeToFile(mJsonData2, mJsonFile2); in setUp() 58 FileUtil.writeToFile(mJsonData3, mJsonFile3); in setUp() 219 FileUtil.writeToFile(jsonData, jsonFile); in testLoadKeyStore_multipleHostNameMatches() 246 FileUtil.writeToFile(jsonData, jsonFile); in testLoadKeyStore_badKeyStoreFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 263 FileUtil.writeToFile(configStream, tmpFile); in testGetConfiguration_xmlpath() 288 FileUtil.writeToFile(configStream, tmpFile); in testGetGlobalConfiguration_xmlpath() 624 FileUtil.writeToFile(configStream, tmpConfig); in testCreateConfigurationFromArgs_templateInclude_local() 857 FileUtil.writeToFile(source, localConfigFile); in testCreateConfigurationFromArgs_localConfigReload() 877 FileUtil.writeToFile(source, localConfigFile); in testCreateConfigurationFromArgs_localConfigReload() 1564 FileUtil.writeToFile("<configuration></configuration>", config1); in testGetConfigNamesFromTestCases_subpath() 1567 FileUtil.writeToFile("<configuration></configuration>", config2); in testGetConfigNamesFromTestCases_subpath() 1777 FileUtil.writeToFile(normalConfig, tmpConfig); in testParse_multiTargetPrep()
|
D | ConfigurationUtilTest.java | 151 FileUtil.writeToFile("<configuration></configuration>", config1); in testGetConfigNamesFromDirs() 156 FileUtil.writeToFile("<configuration></configuration>", config2); in testGetConfigNamesFromDirs() 189 FileUtil.writeToFile("<configuration></configuration>", config2); in testGetConfigNamesFromDirs_patterns() 217 FileUtil.writeToFile("<configuration></configuration>", targetConfig); in testGetConfigNamesFromDirs_prioritizeHostConfig() 221 FileUtil.writeToFile("<configuration></configuration>", hostConfig); in testGetConfigNamesFromDirs_prioritizeHostConfig()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | TfTestLauncher.java | 277 FileUtil.writeToFile(jacocoAgentStream, jacocoAgent); in extractJacocoAgent() 303 FileUtil.writeToFile(template, antConfig); in processExecData() 304 FileUtil.writeToFile(jacocoAntStream, jacocoAnt); in processExecData()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceFuncTest.java | 350 FileUtil.writeToFile(fileContents, tmpFile); in createTempTestFile() 750 FileUtil.writeToFile(source.createInputStream(), tmpPngFile); in testGetScreenshot() 781 FileUtil.writeToFile(source.createInputStream(), tmpTxtFile); in testGetLogcat_size()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | SuiteModuleLoaderTest.java | 128 FileUtil.writeToFile(TEST_CONFIG, module); in createModuleConfig() 133 FileUtil.writeToFile(TEST_INSTANT_CONFIG, module); in createInstantModuleConfig() 138 FileUtil.writeToFile(TEST_MAINLINE_CONFIG, moduleConfig); in createMainlineModuleConfig()
|
D | TestSuiteInfoTest.java | 60 FileUtil.writeToFile( in testLoadConfig() 86 FileUtil.writeToFile( in testLoadConfig_multiArch()
|