Home
last modified time | relevance | path

Searched refs:filePath (Results 1 – 19 of 19) sorted by relevance

/tools/treble/hacksaw/config/
Dconfig.go51 func (c *Config) ReadConfigFromFile(filePath string) error {
52 _, err := os.Stat(filePath)
56 cfgFile, err := os.Open(filePath)
65 func (c Config) WriteConfigToFile(filePath string) error {
66 cfgFile, err := os.Create(filePath)
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessExceptionParser.java48 String filePath = json.getString(TradefedSandboxRunner.EXCEPTION_KEY); in getPathFromStderr() local
49 return filePath; in getPathFromStderr()
65 String filePath = getPathFromStderr(stderr); in handleStderrException() local
71 if (filePath != null) { in handleStderrException()
73 File exception = new File(filePath); in handleStderrException()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DZipUtil2.java140 public static boolean extractFileFromZip(ZipFile zipFile, String filePath, File destFile) in extractFileFromZip() argument
142 ZipArchiveEntry entry = zipFile.getEntry(filePath); in extractFileFromZip()
158 public static File extractFileFromZip(ZipFile zipFile, String filePath) throws IOException { in extractFileFromZip() argument
159 ZipArchiveEntry entry = zipFile.getEntry(filePath); in extractFileFromZip()
163 File createdFile = FileUtil.createTempFile("extracted", FileUtil.getExtension(filePath)); in extractFileFromZip()
DFileUtil.java1123 public static File extractFileFromZip(ZipFile zipFile, String filePath) throws IOException { in extractFileFromZip() argument
1124 return ZipUtil.extractFileFromZip(zipFile, filePath); in extractFileFromZip()
1373 public static String getContentType(String filePath) { in getContentType() argument
1374 int index = filePath.lastIndexOf('.'); in getContentType()
1377 ext = filePath.substring(index + 1); in getContentType()
DZipUtil.java158 public static File extractFileFromZip(ZipFile zipFile, String filePath) throws IOException { in extractFileFromZip() argument
159 ZipEntry entry = zipFile.getEntry(filePath); in extractFileFromZip()
164 FileUtil.getExtension(filePath)); in extractFileFromZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTest.java201 for (String filePath : executableFiles) { in doRunAllTestsInSubdirectory()
202 if (shouldRunFile(filePath)) { in doRunAllTestsInSubdirectory()
205 createResultParser(getFileName(filePath), listener); in doRunAllTestsInSubdirectory()
206 String flags = getAllGTestFlags(filePath); in doRunAllTestsInSubdirectory()
207 CLog.i("Running gtest %s %s on %s", filePath, flags, testDevice.getSerialNumber()); in doRunAllTestsInSubdirectory()
209 runTestXml(testDevice, filePath, flags, listener); in doRunAllTestsInSubdirectory()
211 runTest(testDevice, resultParser, filePath, flags); in doRunAllTestsInSubdirectory()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DSideloadOtaTargetPreparer.java93 String filePath = getDeviceUpdateImage().getAbsolutePath(); in performDeviceUpdate() local
94 CLog.i("Sideloading package from %s onto %s", filePath, device.getSerialNumber()); in performDeviceUpdate()
95 device.executeAdbCommand(mSideloadTimeout, SIDELOAD_CMD, filePath); in performDeviceUpdate()
/tools/asuite/atest/bazel/reporter/javatests/com/android/tradefed/result/
DBazelXmlResultReporterTest.java173 private static StringSubject assertThatFileContents(Path filePath) throws IOException { in assertThatFileContents() argument
174 return assertThat(Files.readString(filePath)); in assertThatFileContents()
178 Path filePath, String tagName, String attributeName, String attributeValue) in assertXmlFileContainsTagWithAttribute() argument
182 Document doc = dBuilder.parse(Files.newInputStream(filePath)); in assertXmlFileContainsTagWithAttribute()
DBazelExitCodeResultReporterTest.java147 private static void assertFileContentsEquals(String expected, Path filePath) in assertFileContentsEquals() argument
149 assertEquals(expected, Files.readAllLines(filePath).get(0)); in assertFileContentsEquals()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryHostTest.java98 File filePath = new File(fileName); in findFiles() local
100 if (filePath.isAbsolute()) { in findFiles()
101 res = filePath; // accept absolute file path from unit tests in findFiles()
107 String baseName = filePath.getName(); in findFiles()
/tools/tradefederation/core/src/com/android/tradefed/result/
DFileSystemLogSaver.java266 final String filePath = file.getAbsolutePath(); in getUrl() local
276 if (filePath.startsWith(reportPath)) { in getUrl()
277 String relativePath = filePath.substring(reportPath.length()); in getUrl()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DAtestRunnerTest.java169 String filePath = createModuleConfig(tmpDir, "TestModule"); in testLoadTests_WithModuleAndTFConfigSpecified() local
175 setter.setOptionValue("module-config-path", filePath); in testLoadTests_WithModuleAndTFConfigSpecified()
190 String filePath = createModuleConfig(tmpDir, "TestModule"); in testLoadTests_WithModuleConfigSpecified() local
194 setter.setOptionValue("module-config-path", filePath); in testLoadTests_WithModuleConfigSpecified()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DRemoteInvocationExecution.java895 String filePath = file.toString(); in handleFileTypeValue() local
896 if (filePath.startsWith("/")) { in handleFileTypeValue()
899 String remoteName = mBaseRemoteDir + filePath.substring(1).replace('/', '_'); in handleFileTypeValue()
900 mRenamedFiles.put(filePath, remoteName); in handleFileTypeValue()
901 CLog.v("File to be transferred: local=%s -> remote=%s", filePath, remoteName); in handleFileTypeValue()
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/
DTestMapping.java185 for (Path filePath : filePaths) { in getTestCollection()
186 Path importPath = testMappingsDir.relativize(filePath).getParent(); in getTestCollection()
197 for (Path filePath : filePaths) { in getTestCollection()
201 filePath, testMappingsDir, matchedPatternPaths); in getTestCollection()
/tools/tradefederation/core/test_framework/com/android/tradefed/util/
DDeviceActionUtil.java136 for (String filePath : FileUtil.findFiles(mGenDir, ANY_TXT_FILE_PATTERN)) { in saveToLogs()
137 File file = new File(filePath); in saveToLogs()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTest.java729 protected String[] buildCommandLineArray(String filePath, String configPath) { in buildCommandLineArray() argument
730 return buildCommandLineArray(filePath, configPath, new ArrayList<>()); in buildCommandLineArray()
734 String filePath, String configPath, List<String> tests) { in buildCommandLineArray() argument
736 commandLine.add(filePath); in buildCommandLineArray()
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java398 filePath -> { in getTestCases()
400 dirPath.getParent().relativize(filePath).toString(); in getTestCases()
401 return new UiConductorTestCase(id, key, filePath.toFile()); in getTestCases()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DTestDeviceFileFuncTest.java179 String filePath = "/data/system/packages.xml"; in testPull_NoPermissions() local
181 File returned = mTestDevice.pullFile(filePath); in testPull_NoPermissions()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DModulePusher.java429 for (String filePath : paths) { in getPreloadPaths()
430 res.add(Paths.get(filePath)); in getPreloadPaths()