/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 187 assertEquals(FileUtil.readStringFromFile(testFile), "write1"); in testWriteToFile_overwrites_exists() 189 assertEquals(FileUtil.readStringFromFile(testFile), "write2"); in testWriteToFile_overwrites_exists() 206 assertEquals(FileUtil.readStringFromFile(testFile), "write1write2"); in testWriteToFile_appends_exists() 223 assertEquals("write1", FileUtil.readStringFromFile(testFile)); in testWriteToFile_overwrites_doesNotExist() 240 assertEquals("write1", FileUtil.readStringFromFile(testFile)); in testWriteToFile_appends_doesNotExist() 253 assertEquals(FileUtil.readStringFromFile(testFile), "write1"); in testWriteToFile_stream_overwrites() 255 assertEquals(FileUtil.readStringFromFile(testFile), "write2"); in testWriteToFile_stream_overwrites() 268 assertEquals(FileUtil.readStringFromFile(testFile), "write1"); in testWriteToFile_string_overwrites() 270 assertEquals(FileUtil.readStringFromFile(testFile), "write2"); in testWriteToFile_string_overwrites() 284 assertEquals(FileUtil.readStringFromFile(testFile), "write1write2"); in testWriteToFile_string_appends() [all …]
|
D | GCSFileDownloaderFuncTest.java | 202 String content = FileUtil.readStringFromFile(localFile); in testDownloadFile() 240 FileUtil.readStringFromFile( in checkDownloadedFolder() 245 FileUtil.readStringFromFile( in checkDownloadedFolder() 253 FileUtil.readStringFromFile( in checkDownloadedFolder()
|
D | RunUtilTest.java | 357 assertEquals("TEST STDOUT\n", FileUtil.readStringFromFile(stdout)); in testRuntimedCmd_withFileOutputStream() 358 assertEquals("TEST STDERR\n", FileUtil.readStringFromFile(stderr)); in testRuntimedCmd_withFileOutputStream() 414 assertEquals("TEST STDOUT\n", FileUtil.readStringFromFile(stdout)); in testRuntimedCmd_notWritable() 415 assertEquals("TEST STDERR\n", FileUtil.readStringFromFile(stderr)); in testRuntimedCmd_notWritable()
|
D | BugreportTest.java | 105 Assert.assertEquals(BUGREPORT_CONTENT, FileUtil.readStringFromFile(mainFile)); in testBugreport_zipped() 130 Assert.assertEquals(BUGREPORT_CONTENT, FileUtil.readStringFromFile(mainFile)); in testBugreport_getFileByName()
|
D | GCSFileDownloaderTest.java | 63 String content = FileUtil.readStringFromFile(localFile); in testDownloadFile()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/ |
D | XmlSuiteResultFormatterTest.java | 104 String content = FileUtil.readStringFromFile(res); in testBasicFormat() 156 String content = FileUtil.readStringFromFile(res); in testFailuresReporting() 208 String content = FileUtil.readStringFromFile(res); in testFailuresReporting_notDone() 264 String content = FileUtil.readStringFromFile(res); in testAssumptionFailures_Ignore_Reporting() 327 String content = FileUtil.readStringFromFile(res); in testLogReporting() 376 String content = FileUtil.readStringFromFile(res); in testMetricReporting() 438 String content = FileUtil.readStringFromFile(res); in testDeviceSerials() 463 String content = FileUtil.readStringFromFile(res); in testBasicFormat_shallow() 514 String content = FileUtil.readStringFromFile(res); in testMetricReporting_badKey() 581 String content = FileUtil.readStringFromFile(res); in testRunHistoryReporting()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationUtilTest.java | 78 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml() 125 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filtered() 301 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filterDeprecated() 343 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filterNotChanged()
|
D | ConfigurationTest.java | 601 String content = FileUtil.readStringFromFile(test); in testDumpXml() 622 String content = FileUtil.readStringFromFile(test); in testDumpXml_withFilter() 645 String content = FileUtil.readStringFromFile(test); in testDumpXml_multi_device() 668 String content = FileUtil.readStringFromFile(test); in testDumpXml_multi_device_fake()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | SubprocessTfLauncher.java | 387 FileUtil.readStringFromFile(stderrFile))); in run() 395 FileUtil.readStringFromFile(stderrFile))); in run() 485 if (!FileUtil.readStringFromFile(stdErrFile).isEmpty()) { in testCleanStdErr() 489 FileUtil.readStringFromFile(stdErrFile)); in testCleanStdErr()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | PassingTestFileReporterTest.java | 18 import static com.android.tradefed.util.FileUtil.readStringFromFile; 63 String output = readStringFromFile(mFile); in testPassed() 72 String output = readStringFromFile(mFile); in testFailed()
|
D | TestDescriptionsFileTest.java | 40 assertThat(FileUtil.readStringFromFile(file)).isEmpty(); in getFile_empty() 52 assertThat(FileUtil.readStringFromFile(file)).contains(td.toString()); in getFile_oneEntry()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/ |
D | SandboxConfigDumpTest.java | 60 String output = FileUtil.readStringFromFile(mOutputFile); in testParseCommandLine() 81 String output = FileUtil.readStringFromFile(mOutputFile); in testParseCommandLine_filtered() 102 String output = FileUtil.readStringFromFile(mOutputFile); in testParseCommandLine_run()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterLogSaverTest.java | 245 assertEquals(expectedFileNames, FileUtil.readStringFromFile(fileNamesFile)); in testInvocationEnded() 286 assertEquals(expectedFileNames, FileUtil.readStringFromFile(fileNamesFile)); in testInvocationEnded_uploadError() 314 assertEquals("foo.txt", FileUtil.readStringFromFile(fileNamesFile)); in testInvocationEnded_duplicateUpload()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FileUtil.java | 567 public static String readStringFromFile(File sourceFile) throws IOException { in readStringFromFile() method in FileUtil 568 return readStringFromFile(sourceFile, 0, 0); in readStringFromFile() 580 public static String readStringFromFile(File sourceFile, long startOffset, long length) in readStringFromFile() method in FileUtil
|
D | VersionParser.java | 51 String version = FileUtil.readStringFromFile(versionFile); in getPackageVersion()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/host/gcs/ |
D | GCSHostResourceManagerTest.java | 94 Assert.assertEquals(HOST_RESOURCE1, FileUtil.readStringFromFile(file1)); in testSetUpHostResources() 95 Assert.assertEquals(HOST_RESOURCE2, FileUtil.readStringFromFile(file2)); in testSetUpHostResources()
|
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/ |
D | ContentProviderTest.java | 144 assertEquals(FileUtil.readStringFromFile(tmpPullFile), fileContent); // Verify content. in testPullFile() 172 FileUtil.readStringFromFile(tmpPullDir.listFiles()[0].listFiles()[0]), in testPullDir()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandLauncher.java | 198 error = FileUtil.readStringFromFile(stderrFile); in run() 237 error = FileUtil.readStringFromFile(stderrFile); in runSetupScripts()
|
D | SubprocessReportingHelper.java | 84 FileUtil.readStringFromFile(patchedConfigFile)); in buildSubprocessReporterJar()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | BaseTargetPreparerTest.java | 60 String value = FileUtil.readStringFromFile(configFile); in testDisabledByDefault()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/clearcut/ |
D | ClearcutClientTest.java | 59 assertEquals(grouping, FileUtil.readStringFromFile(testFile)); in testGetGroupingKey()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | RetentionFileSaver.java | 60 timestamp = FileUtil.readStringFromFile(retentionFile); in shouldDelete()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | AcloudConfigParser.java | 68 String content = FileUtil.readStringFromFile(configFile); in parseConfig()
|
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreClient.java | 52 String data = FileUtil.readStringFromFile(mJsonFile); in JSONFileKeyStoreClient()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/ |
D | Bugreport.java | 88 String bugreportName = FileUtil.readStringFromFile(mainEntry).trim(); in getMainFile()
|