Searched refs:subFile (Results 1 – 4 of 4) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ZipUtilTest.java | 93 File subFile = new File(childDir, "foo.txt"); in testCreateAndExtractZip() local 94 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractZip() 101 File extractedSubFile = new File(extractedChildDir, subFile.getName()); in testCreateAndExtractZip() 105 assertTrue(FileUtil.compareFileContents(subFile, extractedSubFile)); in testCreateAndExtractZip() 164 File subFile = new File(childDir, "foo.txt"); in testCreateAndExtractFileFromZip() local 165 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractFileFromZip() 171 assertTrue(FileUtil.compareFileContents(subFile, extractedSubFile)); in testCreateAndExtractFileFromZip()
|
D | FileUtilFuncTest.java | 177 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveDelete() local 179 assertFalse(subFile.exists()); in testRecursiveDelete() 192 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveCopy() local 193 FileUtil.writeToFile("foo", subFile); in testRecursiveCopy() 200 File.separator, subFile.getName())); in testRecursiveCopy() 202 assertTrue(FileUtil.compareFileContents(subFile, subFileCopy)); in testRecursiveCopy() 213 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveCopyToNonexistentTarget() local 214 FileUtil.writeToFile("foo", subFile); in testRecursiveCopyToNonexistentTarget() 223 File.separator, subFile.getName())); in testRecursiveCopyToNonexistentTarget() 226 assertTrue(FileUtil.compareFileContents(subFile, subFileCopy)); in testRecursiveCopyToNonexistentTarget()
|
D | FileUtilTest.java | 427 File subFile = FileUtil.createTempFile("find_file_file", ".txt", subDir); in testFindFile() local 428 File res = FileUtil.findFile(tmpDir, subFile.getName()); in testFindFile() 429 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile() 444 File subFile = FileUtil.createTempFile("find_file_file", "", subDir); in testFindFile_sameDirName() local 445 File res = FileUtil.findFile(tmpDir, subFile.getName()); in testFindFile_sameDirName() 446 assertEquals(subFile.getAbsolutePath(), res.getAbsolutePath()); in testFindFile_sameDirName()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ZipUtil.java | 250 for (File subFile : subFiles) { in addToZip() 251 addToZip(out, subFile, relativePathSegs); in addToZip()
|