/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | FileUtilTest.java | 366 File subDir = new File(tmpDir, "subfolder"); in testFindFilesSuccess() local 367 subDir.mkdirs(); in testFindFilesSuccess() 368 File matchFile2 = FileUtil.createTempFile("test", ".config", subDir); in testFindFilesSuccess() 369 FileUtil.createTempFile("test", ".xml", subDir); in testFindFilesSuccess() 386 File subDir = FileUtil.createTempDir("subfolder"); in testFindFilesSuccess_symlink() local 389 File matchFile2 = FileUtil.createTempFile("test", ".config", subDir); in testFindFilesSuccess_symlink() 391 FileUtil.symlinkFile(subDir, destLink); in testFindFilesSuccess_symlink() 392 FileUtil.createTempFile("test", ".xml", subDir); in testFindFilesSuccess_symlink() 402 FileUtil.recursiveDelete(subDir); in testFindFilesSuccess_symlink() 414 File subDir = new File(tmpDir, "subfolder"); in testFindFilesFail() local [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 209 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests() local 212 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetTests() 265 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests_matchKeywords() local 268 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetTests_matchKeywords() 309 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests_withIgnoreKeywords() local 312 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetTests_withIgnoreKeywords() 347 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetAllTestMappingPaths_FromChildDirectory() local 350 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testGetAllTestMappingPaths_FromChildDirectory() 353 Path relPath = testMappingsRootPath.relativize(Paths.get(subDir.getAbsolutePath())); in testGetAllTestMappingPaths_FromChildDirectory() 377 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetAllTestMappingPaths_FromParentDirectory() local [all …]
|
/tools/tradefederation/core/javatests/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 | 435 final String subDir = "suite/"; in testListSubConfig() local 436 List<String> listConfigs = mRealFactory.getConfigList(subDir, false); in testListSubConfig() 443 assertTrue(config.startsWith(subDir)); in testListSubConfig() 1603 File subDir = FileUtil.createTempDir("subdir", tmpDir); in testGetConfigNamesFromTestCases_subpath() local 1604 File config2 = FileUtil.createTempFile("testconfig2", ".xml", subDir); in testGetConfigNamesFromTestCases_subpath() 1611 res = spyFactory.getConfigNamesFromTestCases(subDir.getName()); in testGetConfigNamesFromTestCases_subpath()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 231 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTestsWhenRemoteTestTimeoutIsSet() local 234 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTestsWhenRemoteTestTimeoutIsSet() 325 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZip() local 328 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZip() 390 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords() local 393 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZipFoundTestsWithKeywords() 457 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFailWithKeywords() local 460 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZipFailWithKeywords() 503 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipHostTests() local 506 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZipHostTests() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTest.java | 429 List<String> subDir = new ArrayList<>(); in findAllSubdir() local 430 subDir.add(parentDir.getAbsolutePath()); in findAllSubdir() 432 return subDir; in findAllSubdir() 438 subDir.addAll(findAllSubdir(child, knownPaths)); in findAllSubdir() 441 return subDir; in findAllSubdir()
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | FileDownloadCacheTest.java | 313 File subDir = FileUtil.createTempDir("subdir", cacheDir); in testCacheRebuild() local 314 File file = FileUtil.createTempFile("test-cache-file", ".txt", subDir); in testCacheRebuild() 329 mMockDownloader, subDir.getName() + "/" + file.getName()); in testCacheRebuild()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTestTest.java | 671 File subDir = new File(moduleDir, "x86_64"); in testFindBinaryWithBitness() local 672 subDir.mkdirs(); in testFindBinaryWithBitness() 673 File testModuleBinary64 = new File(subDir, moduleName + "64"); in testFindBinaryWithBitness()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | InvocationExecution.java | 1594 File subDir = FileUtil.createTempDir(baseName, testsDir); 1595 subDir.delete(); 1596 FileUtil.symlinkFile(externalDir, subDir); 1600 subDir, 1604 subDir.deleteOnExit(); 1605 return subDir;
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 377 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir() local 378 FileUtil.createTempDir("test1", subDir); in testPushDir_childDir() 389 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered() local 390 File childDir = FileUtil.createTempDir("test1", subDir); in testPushDir_childDir_filtered()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | NativeDevice.java | 2157 File subDir = new File(localDir, item.getName()); in pullDirInternal() local 2158 if (!subDir.mkdir()) { in pullDirInternal() 2161 subDir.getAbsolutePath()); in pullDirInternal() 2165 if (!pullDirInternal(deviceSubDir, subDir, userId)) { in pullDirInternal()
|