Searched refs:subFile (Results 1 – 6 of 6) sorted by relevance
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | FileUtilFuncTest.java | 182 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveDelete() local 184 assertFalse(subFile.exists()); in testRecursiveDelete() 198 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveCopy() local 199 FileUtil.writeToFile("foo", subFile); in testRecursiveCopy() 206 File.separator, subFile.getName())); in testRecursiveCopy() 208 assertTrue(FileUtil.compareFileContents(subFile, subFileCopy)); in testRecursiveCopy() 220 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveCopyToNonexistentTarget() local 221 FileUtil.writeToFile("foo", subFile); in testRecursiveCopyToNonexistentTarget() 230 File.separator, subFile.getName())); in testRecursiveCopyToNonexistentTarget() 233 assertTrue(FileUtil.compareFileContents(subFile, subFileCopy)); in testRecursiveCopyToNonexistentTarget()
|
D | ZipUtilTest.java | 119 File subFile = new File(childDir, "foo.txt"); in testCreateAndExtractZip() local 120 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractZip() 127 File extractedSubFile = new File(extractedChildDir, subFile.getName()); in testCreateAndExtractZip() 131 assertTrue(FileUtil.compareFileContents(subFile, extractedSubFile)); in testCreateAndExtractZip() 192 File subFile = new File(childDir, "foo.txt"); in testCreateAndExtractFileFromZip() local 193 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractFileFromZip() 199 assertTrue(FileUtil.compareFileContents(subFile, extractedSubFile)); in testCreateAndExtractFileFromZip()
|
D | FileUtilTest.java | 448 File subFile = FileUtil.createTempFile("find_file_file", ".txt", subDir); in testFindFile() local 449 File res = FileUtil.findFile(tmpDir, subFile.getName()); in testFindFile() 450 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile() 465 File subFile = FileUtil.createTempFile("find_file_file", "", subDir); in testFindFile_sameDirName() local 466 File res = FileUtil.findFile(tmpDir, subFile.getName()); in testFindFile_sameDirName() 467 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile_sameDirName()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/ |
D | MoblyBinaryHostTest.java | 761 for (File subFile : logDir.listFiles()) { in reportLogs() 762 if (subFile.isDirectory()) { in reportLogs() 763 reportLogs(subFile, listener); in reportLogs() 765 if (!subFile.exists()) { in reportLogs() 768 try (InputStreamSource dataStream = new FileInputStreamSource(subFile, true)) { in reportLogs() 769 String cleanName = subFile.getName().replace(",", "_"); in reportLogs()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | IsolatedHostTest.java | 446 for (File subFile : logDir.listFiles()) { in uploadTestArtifacts() 447 if (subFile.isDirectory()) { in uploadTestArtifacts() 448 uploadTestArtifacts(subFile, listener); in uploadTestArtifacts() 450 if (!subFile.exists()) { in uploadTestArtifacts() 453 try (InputStreamSource dataStream = new FileInputStreamSource(subFile, true)) { in uploadTestArtifacts() 454 String cleanName = subFile.getName().replace(",", "_"); in uploadTestArtifacts()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | ZipUtil.java | 297 for (File subFile : subFiles) { in addToZip() 298 addToZip(out, subFile, relativePathSegs); in addToZip()
|