/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | EventsLoggerListener.java | 50 writeToFile("[invocation started]\n"); in invocationStarted() 55 writeToFile( in invocationFailed() 63 writeToFile(String.format("[invocation skipped: %s]\n", reason)); in invocationSkipped() 68 writeToFile("[invocation ended]\n"); in invocationEnded() 73 writeToFile( in testModuleStarted() 84 writeToFile(" [module ended]\n"); in testModuleEnded() 99 writeToFile( in testRunStarted() 107 writeToFile( in testRunFailed() 117 writeToFile(String.format(" [run failed with %s]\n", errorMessage)); in testRunFailed() 122 writeToFile(" [run ended]\n"); in testRunEnded() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | GkiDeviceFlashPreparerTest.java | 157 FileUtil.writeToFile("mmm", modulesLoad); in setUp() 158 FileUtil.writeToFile("mmm", modulesOrder); in setUp() 159 FileUtil.writeToFile("mmm", modulesDepBin); in setUp() 160 FileUtil.writeToFile("mmm", modulesDep); in setUp() 161 FileUtil.writeToFile("mmm", modulesAliasBin); in setUp() 162 FileUtil.writeToFile("mmm", modulesAlias); in setUp() 163 FileUtil.writeToFile("aaa", moduleA); in setUp() 164 FileUtil.writeToFile("bbb", moduleB); in setUp() 165 FileUtil.writeToFile("ccc", moduleFooC); in setUp() 300 FileUtil.writeToFile("ddd", bootImg); in testAddHashFooter() [all …]
|
D | GsiDeviceFlashPreparerTest.java | 190 FileUtil.writeToFile("ddd", systemImg); in testSetUp_Success_NoVbmetaImage() 223 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success() 224 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success() 265 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success_FromZipFile() 266 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success_FromZipFile() 310 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success_WithGkiBootImg() 311 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success_WithGkiBootImg() 312 FileUtil.writeToFile("ddd", bootImg); in testSetup_Success_WithGkiBootImg() 361 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success_WithGkiBootImgInZip() 362 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success_WithGkiBootImgInZip() [all …]
|
D | PerfettoPreparerTest.java | 108 FileUtil.writeToFile( in createPerfettoFile() 117 FileUtil.writeToFile("xyz", tempFile); in createPerfettoFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | TarUtilTest.java | 72 FileUtil.writeToFile(logTarGz, tmpFile); in testIsGzip() 75 FileUtil.writeToFile("test", tmpFile); in testIsGzip() 78 FileUtil.writeToFile("", tmpFile); in testIsGzip() 91 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUnGzip_withTargzFormat() 109 FileUtil.writeToFile(logTgz, logTgzFile); in testUnGzip_withTgzFormat() 126 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUntar() 142 FileUtil.writeToFile(tarStream, tarFile); in testUnTar_symlink() 160 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUnTar_withFileNames() 177 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUnTar_withFileNamesNotFound() 198 FileUtil.writeToFile(logTarGz, tarGzFile); in testExtractTarGzipToTemp() [all …]
|
D | FileUtilTest.java | 205 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, false); in testWriteToFile_overwrites_exists() 207 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile, false); in testWriteToFile_overwrites_exists() 223 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, true); in testWriteToFile_appends_exists() 224 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile, true); in testWriteToFile_appends_exists() 241 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, false); in testWriteToFile_overwrites_doesNotExist() 258 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile, true); in testWriteToFile_appends_doesNotExist() 271 FileUtil.writeToFile(new ByteArrayInputStream("write1".getBytes()), testFile); in testWriteToFile_stream_overwrites() 273 FileUtil.writeToFile(new ByteArrayInputStream("write2".getBytes()), testFile); in testWriteToFile_stream_overwrites() 286 FileUtil.writeToFile("write1", testFile, false); in testWriteToFile_string_overwrites() 288 FileUtil.writeToFile("write2", testFile, false); in testWriteToFile_string_overwrites() [all …]
|
D | SubprocessTestResultsParserTest.java | 177 FileUtil.writeToFile(startRun, tmp, true); in testParse_testNotStarted() 183 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() 264 FileUtil.writeToFile(startRun, tmp, true); in testParse_invocationFailed() 365 FileUtil.writeToFile(testTagEvent, tmp, true); in testParse_testTag() 389 FileUtil.writeToFile(event, tmp, true); in testParse_testInvocationEndedWithoutBuildInfo() 413 FileUtil.writeToFile(event, tmp, true); in testParse_testInvocationEnded() 441 FileUtil.writeToFile(testTagEvent, tmp, true); in testParse_testTagNotOverwrite() [all …]
|
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 | BugreportTest.java | 63 FileUtil.writeToFile(name, mainEntry); in setUp() 65 FileUtil.writeToFile(content, bugreport); in setUp() 159 FileUtil.writeToFile(content, bugreport); in testBugreportz_noMainFile()
|
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()
|
/tools/tradefederation/core/javatests/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 | 91 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_concurrent() 151 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_multiConcurrent() 222 FileUtil.writeToFile(DOWNLOADED_CONTENTS, fileArg); in testFetchRemoteFile_concurrentFail() 275 FileUtil.writeToFile(filecontents, file1); in testConstructor_createCache() 282 FileUtil.writeToFile(filecontents, nestedFile); in testConstructor_createCache() 301 FileUtil.writeToFile(filecontents, file1); in testConstructor_cacheExceeded() 306 FileUtil.writeToFile(filecontents, file2); in testConstructor_cacheExceeded()
|
/tools/tradefederation/core/javatests/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/javatests/com/android/tradefed/device/cloud/ |
D | OxygenUtilTest.java | 107 FileUtil.writeToFile(content, file1); in testCollectErrorSignatures() 135 FileUtil.writeToFile(content, file1); in testCollectDeviceLaunchMetrics() 166 FileUtil.writeToFile(content, file1); in testCollectDeviceLaunchMetricsV2() 183 FileUtil.writeToFile(content, file1); in testCollectOxygenVersion()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/ |
D | AndroidJUnitTestTest.java | 357 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_includeFile() 381 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_includeFileWithChown() 405 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_excludeFile() 431 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_testFileAndFilters() 433 FileUtil.writeToFile(TEST2.toString(), tmpFileExclude); in testRun_testFileAndFilters() 471 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_testFileAndFilters_fails() 473 FileUtil.writeToFile(TEST2.toString(), tmpFileExclude); in testRun_testFileAndFilters_fails() 504 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_setTestFileOptions() 506 FileUtil.writeToFile(TEST2.toString(), tmpFileExclude); in testRun_setTestFileOptions()
|
D | NoisyDryRunTestTest.java | 87 FileUtil.writeToFile("tf/fake\n" + "tf/fake", mFile); in testRun() 114 FileUtil.writeToFile("tf/fake --fail-invocation-with-cause USE_KEYSTORE@fake\n", mFile); in testRun_withKeystore() 152 FileUtil.writeToFile("tf/fake\n" + "invalid --option value2", mFile); in testRun_invalidCmdLine() 250 FileUtil.writeToFile("tf/fake\n" + "tf/fake --use-sandbox", mFile); in testLoading_sandboxed() 273 FileUtil.writeToFile( in testLoading_sandboxed() 308 FileUtil.writeToFile("tf/fake\n" + "tf/fake --use-sandbox", mFile); in testLoading_sandboxed_failed() 362 FileUtil.writeToFile("tf/fake --delegated-tf .\n" + "tf/fake", mFile); in testRun_withDelegation()
|
/tools/tradefederation/core/javatests/com/android/tradefed/config/ |
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/javatests/com/android/tradefed/build/content/ |
D | ArtifactDetailsTest.java | 107 FileUtil.writeToFile(baseContent, content); in generateBaseContent() 154 FileUtil.writeToFile(currentContent, content); in generateCurrentContent()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | ValidateSuiteConfigHelperTest.java | 230 FileUtil.writeToFile(configWithIncludeTag, configFile); in testValidateConfigFileWithIncludeTag_fail() 252 FileUtil.writeToFile(configWithIncludeTag, configFile); in testValidateConfigFileWithIncludeTagInComment_pass() 269 FileUtil.writeToFile(configWithIncludeTag, configFile); in testValidateConfigFileWithTemplateIncludeTag_fail() 289 FileUtil.writeToFile(configWithIncludeTag, configFile); in testValidateConfigFile_pass()
|
D | TestSuiteInfoTest.java | 60 FileUtil.writeToFile( in testLoadConfig() 86 FileUtil.writeToFile( in testLoadConfig_multiArch()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ResourceUtil.java | 37 FileUtil.writeToFile(resStream, output); in extractResourceToFile() 46 FileUtil.writeToFile(resStream, output); in extractResourceAsFile()
|
D | FileUtil.java | 605 writeToFile(new FileInputStream(origFile), destFile); in copyFile() 680 public static void writeToFile(String inputString, File destFile) throws IOException { in writeToFile() method in FileUtil 681 writeToFile(inputString, destFile, false); in writeToFile() 691 public static void writeToFile(String inputString, File destFile, boolean append) in writeToFile() method in FileUtil 693 writeToFile(new ByteArrayInputStream(inputString.getBytes()), destFile, append); in writeToFile() 702 public static void writeToFile(InputStream input, File destFile) throws IOException { in writeToFile() method in FileUtil 703 writeToFile(input, destFile, false); in writeToFile() 713 public static void writeToFile( in writeToFile() method in FileUtil 716 writeToFile(input, destFile, append, 0, -1); in writeToFile() 729 public static void writeToFile( in writeToFile() method in FileUtil
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | AnrReportGenerator.java | 107 FileUtil.writeToFile(bugreportStream.createInputStream(), mCachedBugreport); in setBugReportInfo() 122 FileUtil.writeToFile(monkeyLogStream.createInputStream(), mCachedMonkeyLog); in setMonkeyLogInfo()
|
/tools/tradefederation/contrib/tests/src/com/android/build/tests/ |
D | ImageStatsTest.java | 137 FileUtil.writeToFile(TEST_DATA, mTestStatsFile); in testParseFileSizes() 222 FileUtil.writeToFile(TEST_DATA_SMALL, mTestStatsFile); in testParseFinalMetrics()
|
/tools/tradefederation/core/util_apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/ |
D | ContentProviderTest.java | 132 FileUtil.writeToFile(fileContent, tmpFile); in testPullFile() 162 FileUtil.writeToFile(fileContent, tmpFile); in testPullDir()
|