Home
last modified time | relevance | path

Searched refs:destDir (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java461 public static void recursiveHardlink(File sourceDir, File destDir) throws IOException { in recursiveHardlink() argument
462 recursiveHardlink(sourceDir, destDir, false); in recursiveHardlink()
477 public static void recursiveHardlink(File sourceDir, File destDir, boolean ignoreExistingFile) in recursiveHardlink() argument
479 if (!destDir.isDirectory() && !destDir.mkdir()) { in recursiveHardlink()
481 destDir.getAbsolutePath())); in recursiveHardlink()
484 File destChild = new File(destDir, childFile.getName()); in recursiveHardlink()
503 public static void recursiveSymlink(File sourceDir, File destDir) throws IOException { in recursiveSymlink() argument
504 if (!destDir.isDirectory() && !destDir.mkdir()) { in recursiveSymlink()
506 String.format("Could not create directory %s", destDir.getAbsolutePath())); in recursiveSymlink()
509 File destChild = new File(destDir, childFile.getName()); in recursiveSymlink()
[all …]
DZipUtil2.java61 public static void extractZip(ZipFile zipFile, File destDir) throws IOException { in extractZip() argument
66 File childFile = new File(destDir, entry.getName()); in extractZip()
97 public static void extractZip(File zipFile, File destDir) throws IOException { in extractZip() argument
99 extractZip(zip, destDir); in extractZip()
DZipUtil.java105 public static void extractZip(ZipFile zipFile, File destDir) throws IOException { in extractZip() argument
110 File childFile = new File(destDir, entry.getName()); in extractZip()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRemoteZipTest.java98 File destDir = null; in testGetZipEntries() local
100 destDir = FileUtil.createTempDir("test"); in testGetZipEntries()
109 FileUtil.recursiveDelete(destDir); in testGetZipEntries()
120 File destDir = null; in testGetZipEntriesWithUseZip64() local
122 destDir = FileUtil.createTempDir("test"); in testGetZipEntriesWithUseZip64()
128 FileUtil.recursiveDelete(destDir); in testGetZipEntriesWithUseZip64()
134 File destDir = null; in testDownloadFilesFromZip() local
136 destDir = FileUtil.createTempDir("test"); in testDownloadFilesFromZip()
147 remoteZip.downloadFiles(destDir, files); in testDownloadFilesFromZip()
149 File targetFile = Paths.get(destDir.getPath(), "large_text", "file.txt").toFile(); in testDownloadFilesFromZip()
[all …]
DFileUtilFuncTest.java201 File destDir = createTempDir("dest"); in testRecursiveCopy() local
203 FileUtil.recursiveCopy(tmpParentDir, destDir); in testRecursiveCopy()
205 File subFileCopy = new File(destDir, String.format("%s%s%s", childDir.getName(), in testRecursiveCopy()
223 File destDir = createTempDir("dest"); in testRecursiveCopyToNonexistentTarget() local
224 assertTrue(destDir.delete()); in testRecursiveCopyToNonexistentTarget()
225 assertFalse(destDir.exists()); in testRecursiveCopyToNonexistentTarget()
227 FileUtil.recursiveCopy(tmpParentDir, destDir); in testRecursiveCopyToNonexistentTarget()
229 File subFileCopy = new File(destDir, String.format("%s%s%s", childDir.getName(), in testRecursiveCopyToNonexistentTarget()
231 assertTrue(destDir.exists()); in testRecursiveCopyToNonexistentTarget()
DZipUtil2Test.java90 final File destDir = createTempDir("ZipUtil2Test"); in testExtractZip() local
94 ZipUtil2.extractZip(zipFile, destDir); in testExtractZip()
96 for (File file : destDir.listFiles()) { in testExtractZip()
/tools/trebuchet/trebuchet/traceutils/src/
DTraceUtils.kt27 fun validateSrcDest(source: File, destDir: File) { in <lambda>()
31 if (!destDir.exists()) { in <lambda>()
32 destDir.mkdirs() in <lambda>()
33 if (!destDir.exists() && destDir.isDirectory) { in <lambda>()
34 throw IllegalArgumentException("'$destDir' isn't a directory") in <lambda>()
80 fun extract(source: File, destDir: File) { in extract()
81 validateSrcDest(source, destDir) in extract()
86 val destFile = File(destDir, "${source.nameWithoutExtension}_$traceCount") in extract()
102 val destDir = File(args[1]) in main() constant
103 extract(source, destDir) in main()
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java276 File destDir = new File(destDirPath); in copyFile() local
282 if (!destDir.isDirectory() && !destDir.mkdirs()) { in copyFile()
284 String.format("Could not create directory %s", destDir.getAbsolutePath())); in copyFile()
286 File destFile = new File(Paths.get(destDir.toString(), srcFile.getName()).toString()); in copyFile()
296 File destDir = new File(destDirPath); in copyFile() local
306 if (!destDir.isDirectory() && !destDir.mkdirs()) { in copyFile()
308 String.format("Could not create directory %s", destDir.getAbsolutePath())); in copyFile()
311 File destFile = new File(Paths.get(destDir.toString(), srcFile.getName()).toString()); in copyFile()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBundletoolUtil.java126 File destDir; in extractSplitsFromApks() local
131 destDir = new File(destDirPath, moduleName + SPLITS_KEYWORD); in extractSplitsFromApks()
132 destDir.mkdir(); in extractSplitsFromApks()
135 String outputPathArg = OUTPUT_DIR_FLAG + destDir.getAbsolutePath(); in extractSplitsFromApks()
150 FileUtil.recursiveDelete(destDir); in extractSplitsFromApks()
156 return destDir; in extractSplitsFromApks()
DRemoteZip.java150 public void downloadFiles(File destDir, List<CentralDirectoryInfo> files) in downloadFiles() argument
183 new File(Paths.get(destDir.toString(), entry.getFileName()).toString()); in downloadFiles()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparer.java304 File destDir = in getRequestedFile() local
306 ZipUtil2.extractZip(sourceFile, destDir); in getRequestedFile()
307 requestedFile = FileUtil.findFile(destDir, requestedFileName); in getRequestedFile()
DGsiDeviceFlashPreparer.java298 File destDir = in getRequestedFile() local
300 ZipUtil2.extractZip(sourceFile, destDir); in getRequestedFile()
301 requestedFile = FileUtil.findFile(destDir, requestedFileName); in getRequestedFile()
/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCacheWrapper.java61 File destDir, in downloadZippedFiles() argument
67 destDir, remoteFilePath, includeFilters, excludeFilters); in downloadZippedFiles()
DIFileDownloader.java96 File destDir, in downloadZippedFiles() argument
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterBuildProvider.java73 private void extractZip(File zip, File destDir) throws IOException { in extractZip() argument
75 ZipUtil2.extractZip(zipFile, destDir); in extractZip()
/tools/tradefederation/core/src/com/android/tradefed/config/
DDynamicRemoteFileResolver.java292 File destDir, in resolvePartialDownloadZip() argument
309 queryArgs.put("partial_download_dir", destDir.getAbsolutePath()); in resolvePartialDownloadZip()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteTest.java1784 File destDir, in testStageTestArtifacts()
1789 assertEquals(new File("tests_dir"), destDir); in testStageTestArtifacts()