/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FileUtil.java | 461 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 …]
|
D | ZipUtil2.java | 61 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()
|
D | ZipUtil.java | 105 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/ |
D | RemoteZipTest.java | 98 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 …]
|
D | FileUtilFuncTest.java | 201 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()
|
D | ZipUtil2Test.java | 90 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/ |
D | TraceUtils.kt | 27 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/ |
D | UiConductorTest.java | 276 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/ |
D | BundletoolUtil.java | 126 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()
|
D | RemoteZip.java | 150 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/ |
D | GkiDeviceFlashPreparer.java | 304 File destDir = in getRequestedFile() local 306 ZipUtil2.extractZip(sourceFile, destDir); in getRequestedFile() 307 requestedFile = FileUtil.findFile(destDir, requestedFileName); in getRequestedFile()
|
D | GsiDeviceFlashPreparer.java | 298 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/ |
D | FileDownloadCacheWrapper.java | 61 File destDir, in downloadZippedFiles() argument 67 destDir, remoteFilePath, includeFilters, excludeFilters); in downloadZippedFiles()
|
D | IFileDownloader.java | 96 File destDir, in downloadZippedFiles() argument
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterBuildProvider.java | 73 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/ |
D | DynamicRemoteFileResolver.java | 292 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/ |
D | ITestSuiteTest.java | 1784 File destDir, in testStageTestArtifacts() 1789 assertEquals(new File("tests_dir"), destDir); in testStageTestArtifacts()
|