/tools/treble/hacksaw/config/ |
D | config.go | 51 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/ |
D | SubprocessExceptionParser.java | 48 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/ |
D | ZipUtil2.java | 140 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()
|
D | FileUtil.java | 1123 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()
|
D | ZipUtil.java | 158 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/ |
D | GTest.java | 201 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/ |
D | SideloadOtaTargetPreparer.java | 93 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/ |
D | BazelXmlResultReporterTest.java | 173 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()
|
D | BazelExitCodeResultReporterTest.java | 147 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/ |
D | RustBinaryHostTest.java | 98 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/ |
D | FileSystemLogSaver.java | 266 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/ |
D | AtestRunnerTest.java | 169 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/ |
D | RemoteInvocationExecution.java | 895 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/ |
D | TestMapping.java | 185 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/ |
D | DeviceActionUtil.java | 136 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/ |
D | MoblyBinaryHostTest.java | 729 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/ |
D | UiConductorTest.java | 398 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/ |
D | TestDeviceFileFuncTest.java | 179 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/ |
D | ModulePusher.java | 429 for (String filePath : paths) { in getPreloadPaths() 430 res.add(Paths.get(filePath)); in getPreloadPaths()
|