Searched refs:tempDir (Results 1 – 7 of 7) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | TestMappingTest.java | 46 File tempDir = null; in testparseTestMapping() local 50 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping() 53 testMappingFile = FileUtil.saveResourceFile(resourceStream, tempDir, TEST_MAPPING); in testparseTestMapping() 70 FileUtil.recursiveDelete(tempDir); in testparseTestMapping() 77 File tempDir = null; in testparseTestMapping_BadJson() local 80 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping_BadJson() 81 File testMappingFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPING).toFile(); in testparseTestMapping_BadJson() 86 FileUtil.recursiveDelete(tempDir); in testparseTestMapping_BadJson() 93 File tempDir = null; in testGetTests() local 95 tempDir = FileUtil.createTempDir("test_mapping"); in testGetTests() [all …]
|
D | BugreportTest.java | 52 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 …]
|
D | ZipUtil2Test.java | 136 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local 137 mTempFiles.add(tempDir); in createTempDir() 138 return tempDir; in createTempDir()
|
D | ZipUtilTest.java | 200 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local 201 mTempFiles.add(tempDir); in createTempDir() 202 return tempDir; in createTempDir()
|
D | FileUtilFuncTest.java | 410 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local 411 mTempFiles.add(tempDir); in createTempDir() 412 return tempDir; in createTempDir()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | FolderSaver.java | 82 File tempDir = null; in tearDown() local 84 tempDir = FileUtil.createTempDir("tf-pulled-dir"); in tearDown() 85 if (!device.pullDir(path, tempDir)) { in tearDown() 91 zip = ZipUtil.createZip(tempDir); in tearDown() 106 FileUtil.recursiveDelete(tempDir); in tearDown()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 108 File tempDir = null; in testLoadTests_testMappingsZip() local 113 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZip() 115 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZip() 124 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_testMappingsZip() 159 FileUtil.recursiveDelete(tempDir); in testLoadTests_testMappingsZip() 166 File tempDir = null; in testLoadTests_noTest() local 171 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_noTest() 173 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_noTest() 175 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTests_noTest() 187 FileUtil.recursiveDelete(tempDir); in testLoadTests_noTest()
|