Home
last modified time | relevance | path

Searched refs:getPath (Results 1 – 25 of 64) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileSystemLogSaverTest.java90 File generatedDir = new File(saver.getLogReportDir().getPath()); in testGetFileDir()
108 File newGeneratedDir = new File(newSaver.getLogReportDir().getPath()); in testGetFileDir()
130 File generatedDir = new File(saver.getLogReportDir().getPath()); in testGetFileDir_nobranch()
150 File retentionFile = new File(new File(saver.getLogReportDir().getPath()), in testGetFileDir_retention()
180 assertTrue(logFile.getPath().endsWith(LogDataType.ZIP.getFileExt())); in testSaveLogData_uncompressed()
182 zipFile = new ZipFile(new File(logFile.getPath())); in testSaveLogData_uncompressed()
192 FileUtil.deleteFile(new File(logFile.getPath())); in testSaveLogData_uncompressed()
215 logFileReader = new BufferedReader(new FileReader(new File(logFile.getPath()))); in testSaveLogData_compressed()
220 FileUtil.deleteFile(new File(logFile.getPath())); in testSaveLogData_compressed()
243 logFileReader = new BufferedReader(new FileReader(new File(logFile.getPath()))); in testSaveLogDataRaw()
[all …]
DTestRunResultTest.java420 assertEquals("path1", result.getRunLoggedFiles().get("run log").get(0).getPath()); in testMergeRetriedRunResults_CheckMergeMapAttributes()
421 assertEquals("path2", result.getRunLoggedFiles().get("run log").get(1).getPath()); in testMergeRetriedRunResults_CheckMergeMapAttributes()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DBasePostProcessorTest.java79 TfMetricProtoUtil.stringToMetric(testLogs.get(dataName).getPath()) in processTestMetricsAndLogs()
105 TfMetricProtoUtil.stringToMetric(runLogs.get(dataName).getPath()) in processRunMetricsAndLogs()
137 allTestLogs.get(test).get(dataName).getPath()) in processAllTestMetricsAndLogs()
248 RUN_LOG_1.getPath(), in testRunLogsPostProcessing_processRunLogs()
373 TEST_LOG_1.getPath(), in testPerTestLogPostProcessing_processTestLogs()
381 TEST_LOG_2.getPath(), in testPerTestLogPostProcessing_processTestLogs()
472 TEST_LOG_1.getPath(), in testPerTestPostProcessing_logToTestAssociation()
485 TEST_LOG_2.getPath(), in testPerTestPostProcessing_logToTestAssociation()
593 .equals(TEST_LOG_1.getPath()))); in testAllTestLogsPostProcessing()
606 .equals(TEST_LOG_2.getPath()))); in testAllTestLogsPostProcessing()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java126 assertEquals("gs:/fake/path", object.remoteFile.getPath()); in testResolve()
153 assertEquals("gs:/fake/path?key=value", object.remoteFile.getPath()); in testResolveWithQuery()
179 assertEquals("gs:/fake/path?optional=true", object.remoteFile.getPath()); in testResolveOptional()
222 assertEquals("fake/file", notGsFile.getPath()); in testResolve_remoteFileList()
417 assertEquals("gs:/fake/path", object.remoteFile.getPath()); in testResolve_withNoGlobalNameSpace()
496 assertEquals("gs:/fake/path", object1.remoteFile.getPath()); in testResolveTwoObjects()
500 assertEquals("gs:/fake2/path2", object2.remoteFile.getPath()); in testResolveTwoObjects()
532 assertEquals("gs:/fake/path", object1.remoteFile.getPath()); in testResolveTwoObjects_sameValue()
536 assertEquals("gs:/fake/path", object2.remoteFile.getPath()); in testResolveTwoObjects_sameValue()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDynamicFileStubTest.java79 listener.testFailed(testId, String.format("%s doesn't exist.", mFile.getPath())); in checkDynamicFile()
92 nonExistFiles.add(file.getPath()); in checkDynamicFileList()
109 nonExistFiles.add(entry.getKey().getPath()); in checkDynamicFileMap()
112 nonExistFiles.add(entry.getValue().getPath()); in checkDynamicFileMap()
130 nonExistFiles.add(key.getPath()); in checkDynamicFileMultiMap()
134 nonExistFiles.add(value.getPath()); in checkDynamicFileMultiMap()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java520 info.getPath(), in handleLogs()
525 if (Strings.isNullOrEmpty(file.getPath())) { in handleLogs()
529 File path = new File(file.getPath()); in handleLogs()
534 if (file.getPath().endsWith(LogDataType.ZIP.getFileExt())) { in handleLogs()
537 log("Logging %s from subprocess: %s ", entry.getKey(), file.getPath()); in handleLogs()
543 entry.getKey(), file.getUrl(), file.getPath()); in handleLogs()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessTestResultsParser.java534 if (Strings.isNullOrEmpty(file.getPath())) { in handleEvent()
538 File path = new File(file.getPath()); in handleEvent()
551 if (file.getPath().endsWith(LogDataType.ZIP.getFileExt())) { in handleEvent()
568 CLog.d("Logging %s from subprocess: %s ", assosInfo.mDataName, toLog.getPath()); in handleEvent()
576 name, file.getUrl(), file.getPath()); in handleEvent()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/
DGCSConfigurationFactoryTest.java189 public void getPath() throws Exception { in getPath() method in GCSConfigurationFactoryTest
190 String path = mGCSConfigLoader.getPath("path/to/file.xml", "file1.xml"); in getPath()
196 String path = mGCSConfigLoader.getPath("path/to/file.xml", "../file1.xml"); in getPath_withRelative()
202 String path = mGCSConfigLoader.getPath("file1.xml", "file2.xml"); in getPath_parentSameLevel()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileUtilFuncTest.java252 new File(fakeRoot, relRootDir.getPath()), in testFindDirsUnder()
253 new File(fakeRoot, relSubDir1.getPath()), in testFindDirsUnder()
254 new File(fakeRoot, relSubDir2.getPath())); in testFindDirsUnder()
418 String perms = ls(file.getPath()); in assertUnixPerms()
DRemoteZipTest.java149 File targetFile = Paths.get(destDir.getPath(), "large_text", "file.txt").toFile(); in testDownloadFilesFromZip()
151 targetFile = Paths.get(destDir.getPath(), "executable", "executable_file").toFile(); in testDownloadFilesFromZip()
154 targetFile = Paths.get(destDir.getPath(), "empty_file").toFile(); in testDownloadFilesFromZip()
DSubprocessTestResultsParserTest.java534 assertEquals(logFile.getPath(), received.getPath()); in testParse_logAssociation()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java227 assertEquals(logFile.getPath(), capturedFile.getPath()); in testEvents()
634 assertEquals(logFile.getPath(), capturedFile.getPath()); in testEvents_subprocess()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DNativeCodeCoverageListenerTest.java127 Path path1 = filesystem.getPath("/path/to/coverage.gcda"); in test_logsCoverageZip()
131 Path path2 = filesystem.getPath("/path/to/.hidden/coverage2.gcda"); in test_logsCoverageZip()
265 Path path = filesystem.getPath("/path/to/coverage.gcda"); in testNoCollectOnTestEnd_noCoverageMeasurements()
/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCache.java579 return super.put(new File(key).getPath(), value); in put()
585 return super.get(new File((String) key).getPath()); in get()
593 return super.remove(new File((String) key).getPath()); in remove()
/tools/tradefederation/core/src/com/android/tradefed/config/
DDynamicRemoteFileResolver.java186 consideredFile.getPath(), e.getMessage()), in validateRemoteFilePath()
373 String path = consideredFile.getPath(); in resolveRemoteFiles()
380 fileToResolve = new File(protocol + ":" + uri.getPath()); in resolveRemoteFiles()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DTestOutputUploaderTest.java72 final File uploadedFile = new File(new URL(outputFileUrl).getPath()); in testUploadFile_fileProtocol_rootPath()
93 final File uploadedFile = new File(new URL(outputFileUrl).getPath()); in testUploadFile_fileProtocol_withDestPath()
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/gcs/
DGCSConfigurationFactory.java130 return getPath(parentName, name); in findConfigName()
141 String getPath(String parent, String filename) { in getPath() method in GCSConfigurationFactory.GCSConfigLoader
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiFile.java87 description.append(file.getPath()); in parseApi()
93 throw new ApiParseException("Error reading API file", file.getPath(), ex); in parseApi()
95 parseApiSingleFile(api, !first, file.getPath(), apiText, kotlinStyleNulls); in parseApi()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessReportingHelper.java93 .getPath()); in buildSubprocessReporterJar()
129 String path = file.getPath(); in createJar()
/tools/tradefederation/core/src/com/android/tradefed/result/
DXmlResultReporter.java118 "Failed %d", log.getPath(), getNumTotalTests(), getNumAllFailedTests()); in generateSummary()
221 logFile.getPath())); in testLogSaved()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDefaultTestsZipInstallerTest.java157 + SOME_PATH_1.getPath()))).andReturn(""); in testPushTestsZipOntoData()
160 + SOME_PATH_2.getPath()))).andReturn(""); in testPushTestsZipOntoData()
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DStatsdGenericPostProcessor.java116 File reportFile = new File(logs.get(key).getPath()); in processStatsdReportsFromLogs()
130 CLog.e("Report file does not exist at supposed path %s.", logs.get(key).getPath()); in processStatsdReportsFromLogs()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryHostTest.java101 paths += String.format(" found: %s\n", f.getPath()); in findFiles()
102 if (f.getPath().endsWith(fileName)) { in findFiles()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPushFilePreparer.java345 local.getPath(), remotePath)); in setUp()
384 String localPath = src.getPath(); in evaluatePushingPair()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java137 sb.append(String.format(" %s\n", url != null ? url : logFile.getPath())); in getInvocationSummary()
217 sb.append(logFile.getPath()); in getInvocationSummary()

123