/tools/tradefederation/core/javatests/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 72 File tempDir = null; in testparseTestMapping() local 76 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping() 79 File testMappingRootDir = FileUtil.createTempDir("subdir", tempDir); in testparseTestMapping() 87 Paths.get(tempDir.getAbsolutePath()), in testparseTestMapping() 105 Paths.get(tempDir.getAbsolutePath()), in testparseTestMapping() 123 Paths.get(tempDir.getAbsolutePath()), in testparseTestMapping() 149 Paths.get(tempDir.getAbsolutePath()), in testparseTestMapping() 169 FileUtil.recursiveDelete(tempDir); in testparseTestMapping() 176 File tempDir = null; in testparseTestMapping_BadJson() local 179 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping_BadJson() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 214 File tempDir = null; in testLoadTestsWhenRemoteTestTimeoutIsSet() local 220 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTestsWhenRemoteTestTimeoutIsSet() 222 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTestsWhenRemoteTestTimeoutIsSet() 237 Arrays.asList(srcDir, new File(tempDir, DISABLED_PRESUBMIT_TESTS)); in testLoadTestsWhenRemoteTestTimeoutIsSet() 238 File zipFile = Paths.get(tempDir.getAbsolutePath(), TEST_MAPPINGS_ZIP).toFile(); in testLoadTestsWhenRemoteTestTimeoutIsSet() 262 FileUtil.recursiveDelete(tempDir); in testLoadTestsWhenRemoteTestTimeoutIsSet() 310 File tempDir = null; in testLoadTests_testMappingsZip() local 314 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZip() 316 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZip() 331 Arrays.asList(srcDir, new File(tempDir, DISABLED_PRESUBMIT_TESTS)); in testLoadTests_testMappingsZip() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | BugreportTest.java | 57 File tempDir = null; in setUp() local 59 tempDir = FileUtil.createTempDir("bugreportz"); in setUp() 60 File mainEntry = FileUtil.createTempFile("main_entry", ".txt", tempDir); in setUp() 61 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in setUp() 66 mainEntry.renameTo(new File(tempDir, "main_entry.txt")); in setUp() 72 ZipUtil.addToZip(out, new File(tempDir, "main_entry.txt"), new LinkedList<String>()); in setUp() 75 FileUtil.recursiveDelete(tempDir); in setUp() 153 File tempDir = null; in testBugreportz_noMainFile() local 156 tempDir = FileUtil.createTempDir("bugreportz"); in testBugreportz_noMainFile() 157 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in testBugreportz_noMainFile() [all …]
|
D | ZipUtil2Test.java | 178 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local 179 mTempFiles.add(tempDir); in createTempDir() 180 return tempDir; in createTempDir()
|
D | TarUtilTest.java | 196 File tempDir = null; in testExtractTarGzipToTemp() local 199 tempDir = TarUtil.extractTarGzipToTemp(tarGzFile, "extract_tar_gz_test"); in testExtractTarGzipToTemp() 200 Assert.assertEquals(2, tempDir.list().length); in testExtractTarGzipToTemp() 202 FileUtil.recursiveDelete(tempDir); in testExtractTarGzipToTemp()
|
D | FileUtilFuncTest.java | 439 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local 440 mTempFiles.add(tempDir); in createTempDir() 441 return tempDir; in createTempDir()
|
D | ZipUtilTest.java | 610 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir() local 611 mTempFiles.add(tempDir); in createTempDir() 612 return tempDir; in createTempDir()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | FolderSaver.java | 105 File tempDir = null; in tearDown() local 107 tempDir = FileUtil.createTempDir("tf-pulled-dir"); in tearDown() 108 if (!device.pullDir(path, tempDir)) { in tearDown() 114 zip = ZipUtil.createZip(tempDir); in tearDown() 129 FileUtil.recursiveDelete(tempDir); in tearDown()
|
D | ArtChrootPreparer.java | 90 File tempDir = null; in setUp() local 97 tempDir = FileUtil.createTempDir("art-test-apex"); in setUp() 98 activateApex(device, tempDir, art_apex); in setUp() 102 FileUtil.recursiveDelete(tempDir); in setUp() 106 private void activateApex(ITestDevice device, File tempDir, File apex) in activateApex() argument 111 File temp = FileUtil.createTempFile("payload-", ".img", tempDir); in activateApex()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | GcovKernelCodeCoverageCollector.java | 195 String tempDir = result.getStdout().strip(); in collectGcovDebugfsCoverage() local 198 String gcdaTempDir = tempDir + gcda; in collectGcovDebugfsCoverage() 210 String tarFullPath = String.format("%s/%s", tempDir, tarName); in collectGcovDebugfsCoverage() 224 TAR_GCOV_DATA_COMMAND_FMT, tarFullPath, tempDir, gcda.substring(1)); in collectGcovDebugfsCoverage() 253 device.deleteFile(tempDir); in collectGcovDebugfsCoverage()
|
/tools/treble/hacksaw/codebase/ |
D | codebase_test.go | 89 tempDir, err := ioutil.TempDir("", "codebase") 93 defer os.RemoveAll(tempDir) 94 testCodebaseDir := path.Join(tempDir, "doesnotexist")
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparerTest.java | 345 File tempDir = FileUtil.createTempDir("createImageDir"); in createImageDir() local 347 FileUtil.writeToFile(content, new File(tempDir, fileName)); in createImageDir() 349 return tempDir; in createImageDir() 354 File tempDir = null; in createImageZip() local 356 tempDir = createImageDir(content, fileNames); in createImageZip() 360 tempFiles.add(new File(tempDir, fileName)); in createImageZip() 365 FileUtil.recursiveDelete(tempDir); in createImageZip()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | LocalAndroidVirtualDevice.java | 249 File tempDir = FileUtil.createTempDir("LocalVirtualDevice"); in createTempDir() local 250 mTempDirs.add(tempDir); in createTempDir() 251 return tempDir; in createTempDir() 319 for (File tempDir : mTempDirs) { in deleteTempDirs() 320 FileUtil.recursiveDelete(tempDir); in deleteTempDirs()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/ |
D | BaseModelTest.kt | 176 val tempDir = temporaryFolder.newFolder() in <lambda>() constant 177 val mainSourceDir = ModelSuiteRunner.SourceDir(dir = tempDir, contents = inputSet.testFiles) in <lambda>()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/multi/ |
D | MixImageZipPreparer.java | 545 File tempDir = null; in repackSuperImage() local 547 tempDir = FileUtil.createTempDir("RepackSuperImage"); in repackSuperImage() 553 tempDir.getAbsolutePath(), in repackSuperImage() 574 FileUtil.recursiveDelete(tempDir); in repackSuperImage()
|
/tools/asuite/atest/bazel/runner/tests/src/com/android/tradefed/testtype/bazel/ |
D | BazelTestTest.java | 108 @Rule public final TemporaryFolder tempDir = new TemporaryFolder(); field in BazelTestTest 118 Files.createDirectory(tempDir.getRoot().toPath().resolve("bazel_temp_dir")); in setUp() 120 tempDir.getRoot() in setUp() 123 mWorkspaceArchivePath = tempDir.getRoot().toPath().resolve("bazel_suite_root"); in setUp()
|