Home
last modified time | relevance | path

Searched refs:tempDir (Results 1 – 13 of 13) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java58 File tempDir = null; in testparseTestMapping() local
62 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping()
65 File testMappingRootDir = FileUtil.createTempDir("subdir", tempDir); in testparseTestMapping()
70 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping()
79 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping()
88 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping()
105 new TestMapping(testMappingFile.toPath(), Paths.get(tempDir.getAbsolutePath())) in testparseTestMapping()
120 FileUtil.recursiveDelete(tempDir); in testparseTestMapping()
127 File tempDir = null; in testparseTestMapping_BadJson() local
130 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping_BadJson()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java234 File tempDir = null; in testLoadTests_testMappingsZip() local
238 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZip()
240 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZip()
255 Arrays.asList(srcDir, new File(tempDir, DISABLED_PRESUBMIT_TESTS)); in testLoadTests_testMappingsZip()
256 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_testMappingsZip()
293 FileUtil.recursiveDelete(tempDir); in testLoadTests_testMappingsZip()
303 File tempDir = null; in testLoadTests_testMappingsZipFoundTestsWithKeywords() local
308 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
310 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
325 Arrays.asList(srcDir, new File(tempDir, DISABLED_PRESUBMIT_TESTS)); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBugreportTest.java52 File tempDir = null; in setUp() local
54 tempDir = FileUtil.createTempDir("bugreportz"); in setUp()
55 File mainEntry = FileUtil.createTempFile("main_entry", ".txt", tempDir); in setUp()
56 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in setUp()
61 mainEntry.renameTo(new File(tempDir, "main_entry.txt")); in setUp()
67 ZipUtil.addToZip(out, new File(tempDir, "main_entry.txt"), new LinkedList<String>()); in setUp()
70 FileUtil.recursiveDelete(tempDir); in setUp()
158 File tempDir = null; in testBugreportz_noMainFile() local
161 tempDir = FileUtil.createTempDir("bugreportz"); in testBugreportz_noMainFile()
162 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in testBugreportz_noMainFile()
[all …]
DTarUtilTest.java117 File tempDir = null; in testExtractTarGzipToTemp() local
120 tempDir = TarUtil.extractTarGzipToTemp(tarGzFile, "extract_tar_gz_test"); in testExtractTarGzipToTemp()
121 Assert.assertEquals(2, tempDir.list().length); in testExtractTarGzipToTemp()
123 FileUtil.recursiveDelete(tempDir); in testExtractTarGzipToTemp()
DZipUtil2Test.java136 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local
137 mTempFiles.add(tempDir); in createTempDir()
138 return tempDir; in createTempDir()
DFileUtilFuncTest.java439 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local
440 mTempFiles.add(tempDir); in createTempDir()
441 return tempDir; in createTempDir()
DZipUtilTest.java526 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local
527 mTempFiles.add(tempDir); in createTempDir()
528 return tempDir; in createTempDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DDynamicSystemPreparerTest.java75 File tempDir = FileUtil.createTempDir("createImageDir"); in createImageDir() local
77 new File(tempDir, fileName).createNewFile(); in createImageDir()
79 return tempDir; in createImageDir()
83 File tempDir = null; in createImageZip() local
85 tempDir = createImageDir(fileNames); in createImageZip()
89 tempFiles.add(new File(tempDir, fileName)); in createImageZip()
94 FileUtil.recursiveDelete(tempDir); in createImageZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DFolderSaver.java99 File tempDir = null; in tearDown() local
101 tempDir = FileUtil.createTempDir("tf-pulled-dir"); in tearDown()
102 if (!device.pullDir(path, tempDir)) { in tearDown()
108 zip = ZipUtil.createZip(tempDir); in tearDown()
123 FileUtil.recursiveDelete(tempDir); in tearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/
DMixImageZipPreparerTest.java290 File tempDir = FileUtil.createTempDir("createImageDir"); in createImageDir() local
292 FileUtil.writeToFile(content, new File(tempDir, fileName)); in createImageDir()
294 return tempDir; in createImageDir()
299 File tempDir = null; in createImageZip() local
301 tempDir = createImageDir(content, fileNames); in createImageZip()
305 tempFiles.add(new File(tempDir, fileName)); in createImageZip()
310 FileUtil.recursiveDelete(tempDir); in createImageZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/
DMixImageZipPreparer.java521 File tempDir = null; in repackSuperImage() local
523 tempDir = FileUtil.createTempDir("RepackSuperImage"); in repackSuperImage()
529 tempDir.getAbsolutePath(), in repackSuperImage()
550 FileUtil.recursiveDelete(tempDir); in repackSuperImage()
/tools/tradefederation/core/src/com/android/tradefed/device/
DLocalAndroidVirtualDevice.java257 for (File tempDir : mTempDirs) { in deleteTempDirs()
258 FileUtil.recursiveDelete(tempDir); in deleteTempDirs()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...