/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 347 File subDir = new File(tmpDir, "subfolder"); in testFindFilesSuccess() local 348 subDir.mkdirs(); in testFindFilesSuccess() 349 File matchFile2 = FileUtil.createTempFile("test", ".config", subDir); in testFindFilesSuccess() 350 FileUtil.createTempFile("test", ".xml", subDir); in testFindFilesSuccess() 367 File subDir = FileUtil.createTempDir("subfolder"); in testFindFilesSuccess_symlink() local 370 File matchFile2 = FileUtil.createTempFile("test", ".config", subDir); in testFindFilesSuccess_symlink() 372 FileUtil.symlinkFile(subDir, destLink); in testFindFilesSuccess_symlink() 373 FileUtil.createTempFile("test", ".xml", subDir); in testFindFilesSuccess_symlink() 383 FileUtil.recursiveDelete(subDir); in testFindFilesSuccess_symlink() 395 File subDir = new File(tmpDir, "subfolder"); in testFindFilesFail() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 250 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZip() local 253 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZip() 320 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords() local 323 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZipFoundTestsWithKeywords() 392 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFailWithKeywords() local 395 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZipFailWithKeywords() 440 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipHostTests() local 443 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZipHostTests() 489 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_shard() local 492 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_shard() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 152 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests() local 155 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetTests() 206 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests_matchKeywords() local 209 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetTests_matchKeywords() 247 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetAllTestMappingPaths_FromChildDirectory() local 250 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetAllTestMappingPaths_FromChildDirectory() 253 Path relPath = testMappingsRootPath.relativize(Paths.get(subDir.getAbsolutePath())); in testGetAllTestMappingPaths_FromChildDirectory() 278 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetAllTestMappingPaths_FromParentDirectory() local 281 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetAllTestMappingPaths_FromParentDirectory() 502 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetAllTests() local [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationUtilTest.java | 153 File subDir = FileUtil.getFileForPath(tmpDir, "sub"); in testGetConfigNamesFromDirs() local 154 FileUtil.mkdirsRWX(subDir); in testGetConfigNamesFromDirs() 155 File config2 = FileUtil.createTempFile("config", ".xml", subDir); in testGetConfigNamesFromDirs() 186 File subDir = FileUtil.getFileForPath(tmpDir, "sub"); in testGetConfigNamesFromDirs_patterns() local 187 FileUtil.mkdirsRWX(subDir); in testGetConfigNamesFromDirs_patterns() 188 File config2 = FileUtil.createTempFile("config", ".otherext", subDir); in testGetConfigNamesFromDirs_patterns()
|
D | ConfigurationFactoryTest.java | 425 final String subDir = "suite/"; in testListSubConfig() local 426 List<String> listConfigs = mRealFactory.getConfigList(subDir, false); in testListSubConfig() 433 assertTrue(config.startsWith(subDir)); in testListSubConfig() 1565 File subDir = FileUtil.createTempDir("subdir", tmpDir); in testGetConfigNamesFromTestCases_subpath() local 1566 File config2 = FileUtil.createTempFile("testconfig2", ".xml", subDir); in testGetConfigNamesFromTestCases_subpath() 1573 res = spyFactory.getConfigNamesFromTestCases(subDir.getName()); in testGetConfigNamesFromTestCases_subpath()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | FileReadSandboxTest.kt | 44 val subDir = File(root, "subdir").apply { mkdirs() } in Test sandbox() constant 45 val subSubDir = File(subDir, "subdir").apply { mkdirs() } in Test sandbox() 46 val subSubDir2 = File(subDir, "subdir2").apply { mkdirs() } in Test sandbox() 76 …val allowedSet = mutableSetOf(root, goodFile, goodDir, goodDirFile, subDir, subSubDir, subSubDirGo… in Test sandbox() 136 subDir.listFiles() // Implicitly allowed. in Test sandbox()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 838 File subDir = FileUtil.createTempDir(baseName, testsDir); 839 subDir.delete(); 840 FileUtil.symlinkFile(externalDir, subDir); 844 subDir, 848 subDir.deleteOnExit(); 849 return subDir;
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | FileDownloadCacheTest.java | 299 File subDir = FileUtil.createTempDir("subdir", cacheDir); in testCacheRebuild() local 300 File file = FileUtil.createTempFile("test-cache-file", ".txt", subDir); in testCacheRebuild() 310 mMockDownloader, subDir.getName() + "/" + file.getName()); in testCacheRebuild()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 301 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir() local 302 FileUtil.createTempDir("test1", subDir); in testPushDir_childDir() 313 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered() local 314 File childDir = FileUtil.createTempDir("test1", subDir); in testPushDir_childDir_filtered()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 1644 File subDir = new File(localDir, item.getName()); in pullDir() local 1645 if (!subDir.mkdir()) { in pullDir() 1647 subDir.getAbsolutePath()); in pullDir() 1651 if (!pullDir(deviceSubDir, subDir)) { in pullDir()
|