Home
last modified time | relevance | path

Searched refs:readStringFromFile (Results 1 – 25 of 49) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileUtilTest.java187 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 …]
DGCSFileDownloaderFuncTest.java202 String content = FileUtil.readStringFromFile(localFile); in testDownloadFile()
240 FileUtil.readStringFromFile( in checkDownloadedFolder()
245 FileUtil.readStringFromFile( in checkDownloadedFolder()
253 FileUtil.readStringFromFile( in checkDownloadedFolder()
DRunUtilTest.java357 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()
DBugreportTest.java105 Assert.assertEquals(BUGREPORT_CONTENT, FileUtil.readStringFromFile(mainFile)); in testBugreport_zipped()
130 Assert.assertEquals(BUGREPORT_CONTENT, FileUtil.readStringFromFile(mainFile)); in testBugreport_getFileByName()
DGCSFileDownloaderTest.java63 String content = FileUtil.readStringFromFile(localFile); in testDownloadFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatterTest.java104 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/
DConfigurationUtilTest.java78 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()
DConfigurationTest.java601 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/
DSubprocessTfLauncher.java387 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/
DPassingTestFileReporterTest.java18 import static com.android.tradefed.util.FileUtil.readStringFromFile;
63 String output = readStringFromFile(mFile); in testPassed()
72 String output = readStringFromFile(mFile); in testFailed()
DTestDescriptionsFileTest.java40 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/
DSandboxConfigDumpTest.java60 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/
DClusterLogSaverTest.java245 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/
DFileUtil.java567 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
DVersionParser.java51 String version = FileUtil.readStringFromFile(versionFile); in getPackageVersion()
/tools/tradefederation/core/tests/src/com/android/tradefed/host/gcs/
DGCSHostResourceManagerTest.java94 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/
DContentProviderTest.java144 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/
DClusterCommandLauncher.java198 error = FileUtil.readStringFromFile(stderrFile); in run()
237 error = FileUtil.readStringFromFile(stderrFile); in runSetupScripts()
DSubprocessReportingHelper.java84 FileUtil.readStringFromFile(patchedConfigFile)); in buildSubprocessReporterJar()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DBaseTargetPreparerTest.java60 String value = FileUtil.readStringFromFile(configFile); in testDisabledByDefault()
/tools/tradefederation/core/tests/src/com/android/tradefed/clearcut/
DClearcutClientTest.java59 assertEquals(grouping, FileUtil.readStringFromFile(testFile)); in testGetGroupingKey()
/tools/tradefederation/core/src/com/android/tradefed/result/
DRetentionFileSaver.java60 timestamp = FileUtil.readStringFromFile(retentionFile); in shouldDelete()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DAcloudConfigParser.java68 String content = FileUtil.readStringFromFile(configFile); in parseConfig()
/tools/tradefederation/core/global_configuration/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClient.java52 String data = FileUtil.readStringFromFile(mJsonFile); in JSONFileKeyStoreClient()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/
DBugreport.java88 String bugreportName = FileUtil.readStringFromFile(mainEntry).trim(); in getMainFile()

12