Home
last modified time | relevance | path

Searched refs:createTempDir (Results 1 – 25 of 91) sorted by relevance

1234

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileUtilFuncTest.java69 File tmpParentDir = createTempDir("foo"); in testMkdirsRWX_multiLevel()
88 File tmpParentDir = createTempDir("foo"); in testMkdirsRWX_singleLevel()
102 File tmpParentDir = createTempDir("foo"); in testMkdirsRWX_preExisting()
129 File tmpDir = createTempDir("foo"); in testCreateTempDir()
137 File tmpParentDir = createTempDir("foo"); in testCreateTempDir_parentFile()
138 File childDir = createTempDir("foochild", tmpParentDir); in testCreateTempDir_parentFile()
157 File tmpParentDir = createTempDir("foo"); in testCreateTempFile_parentDir()
180 File tmpParentDir = createTempDir("foo"); in testRecursiveDelete()
181 File childDir = createTempDir("foochild", tmpParentDir); in testRecursiveDelete()
196 File tmpParentDir = createTempDir("foo"); in testRecursiveCopy()
[all …]
DZipUtilTest.java87 File tmpParentDir = createTempDir("foo"); in testCreateAndExtractZip()
89 File extractedDir = createTempDir("extract-foo"); in testCreateAndExtractZip()
117 File tmpParentDir = createTempDir("foo"); in testCreateAndExtractZip_fromFiles()
119 File extractedDir = createTempDir("extract-foo"); in testCreateAndExtractZip_fromFiles()
158 File tmpParentDir = createTempDir("foo"); in testCreateAndExtractFileFromZip()
195 private File createTempDir(String prefix) throws IOException { in createTempDir() method in ZipUtilTest
196 return createTempDir(prefix, null); in createTempDir()
199 private File createTempDir(String prefix, File parentDir) throws IOException { in createTempDir() method in ZipUtilTest
200 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir()
DFileUtilTest.java344 File tmpDir = FileUtil.createTempDir("find_files_test"); in testFindFilesSuccess()
366 File tmpDir = FileUtil.createTempDir("find_files_test"); in testFindFilesSuccess_symlink()
367 File subDir = FileUtil.createTempDir("subfolder"); in testFindFilesSuccess_symlink()
392 File tmpDir = FileUtil.createTempDir("find_files_test"); in testFindFilesFail()
426 File tmpDir = FileUtil.createTempDir("find_file_test"); in testFindFile()
428 File subDir = FileUtil.createTempDir("sub_find_file_test", tmpDir); in testFindFile()
443 File tmpDir = FileUtil.createTempDir("find_file_test"); in testFindFile_sameDirName()
445 File subDir = FileUtil.createTempDir("find_file_file", tmpDir); in testFindFile_sameDirName()
460 File tmpDir = FileUtil.createTempDir("find_file_test"); in testFindFile_directory()
462 File subDir = FileUtil.createTempDir("find_file_file", tmpDir); in testFindFile_directory()
[all …]
DZipUtil2Test.java90 final File destDir = createTempDir("ZipUtil2Test"); in testExtractZip()
131 private File createTempDir(String prefix) throws IOException { in createTempDir() method in ZipUtil2Test
132 return createTempDir(prefix, null); in createTempDir()
135 private File createTempDir(String prefix, File parentDir) throws IOException { in createTempDir() method in ZipUtil2Test
136 File tempDir = FileUtil.createTempDir(prefix, parentDir); in createTempDir()
DBuildTestsZipUtilsTest.java43 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_notFound()
64 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir()
93 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir_testCase()
DSystemUtilTest.java46 targetOutDir = FileUtil.createTempDir("target_out_dir"); in testGetExternalTestCasesDirs()
47 hostOutDir = FileUtil.createTempDir("host_out_dir"); in testGetExternalTestCasesDirs()
DTarUtilTest.java44 mWorkDir = FileUtil.createTempDir("tarutil_unit_test_dir"); in setUp()
127 File unzipped = FileUtil.createTempDir("unzip-test-dir", mWorkDir); in testGzipDir_unGzip()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java59 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping()
62 File testMappingRootDir = FileUtil.createTempDir("subdir", tempDir); in testparseTestMapping()
127 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping_BadJson()
143 tempDir = FileUtil.createTempDir("test_mapping"); in testGetTests()
145 File srcDir = FileUtil.createTempDir("src", tempDir); in testGetTests()
149 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests()
197 tempDir = FileUtil.createTempDir("test_mapping"); in testGetTests_matchKeywords()
199 File srcDir = FileUtil.createTempDir("src", tempDir); in testGetTests_matchKeywords()
203 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests_matchKeywords()
406 tempDir = FileUtil.createTempDir("test_mapping"); in testGetAllTests()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java139 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZip()
141 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZip()
150 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZip()
226 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
228 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
237 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
298 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipFailWithKeywords()
300 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZipFailWithKeywords()
309 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFailWithKeywords()
347 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipHostTests()
[all …]
DBaseTestSuiteTest.java91 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_noMatch()
109 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_match_parameterized()
138 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_match()
162 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_oneMatch()
188 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_multiMatchNoExactMatch()
213 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_multiMatchOneExactMatch()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java116 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_RemoteIsDir()
139 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsDir()
166 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsFile()
194 File testsDir = FileUtil.createTempDir("tests_dir"); in testRemotePush_conflict()
274 testsDir = FileUtil.createTempDir("tests_dir"); in testResolveRelativeFilePath_withDeviceBuildInfo()
303 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_abiDirectory_noBitness()
339 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_abiDirectory_noBitness_withModule()
376 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_abiDirectory()
412 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_moduleName_dirs()
452 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_moduleName_files()
[all …]
DAllTestAppsInstallSetupTest.java78 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in testSetup()
83 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in testSetup()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java94 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); in testGetTestsDir_noVar()
113 File varDir = FileUtil.createTempDir("suite-apk-installer-var"); in testGetLocalPathForFilename_withVariable()
140 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); in testGetTestsDir_notDir()
229 tmpDir = FileUtil.createTempDir("test"); in testGetLocalPathForFileName_testsDir()
266 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); in testGetLocalPathForFileName_inSharedDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DLocalDeviceBuildProviderTest.java60 mTmpDir = FileUtil.createTempDir("tmp"); in setUp()
61 mBuildDir = FileUtil.createTempDir("buildOutput"); in setUp()
62 mTestDir = FileUtil.createTempDir("tests"); in setUp()
192 File testDir = FileUtil.createTempDir("test_dir", mBuildDir); in testSetTestsDir_givenTestDirPattern()
DFileDownloadCacheTest.java60 mCacheDir = FileUtil.createTempDir("unittest"); in setUp()
264 File cacheDir = FileUtil.createTempDir("cache-unittest"); in testCacheRebuild()
265 File subDir = FileUtil.createTempDir("subdir", cacheDir); in testCacheRebuild()
DFileDownloadCacheFuncTest.java62 mTmpDir = FileUtil.createTempDir("functest"); in setUp()
270 File cacheRoot = FileUtil.createTempDir("constructorTest"); in testConstructor_createCache()
295 File cacheRoot = FileUtil.createTempDir("testConstructor_cacheExceeded"); in testConstructor_cacheExceeded()
DDeviceBuildInfoTest.java53 mTestsDir = FileUtil.createTempDir("device-info-tests-dir"); in setUp()
55 mHostLinkedDir = FileUtil.createTempDir("host-linked-dir"); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogFileSaver.java70 private File createTempDir() { in createTempDir() method in LogFileSaver
72 return FileUtil.createTempDir("inv_"); in createTempDir()
120 invocationDir = FileUtil.createTempDir("inv_", buildDir); in createInvLogDir()
129 invocationDir = createTempDir(); in createInvLogDir()
DFileSystemLogSaver.java199 logReportDir = FileUtil.createTempDir("inv_", buildDir); in createLogReportDir()
205 logReportDir = createTempDir(); in createLogReportDir()
268 private File createTempDir() { in createTempDir() method in FileSystemLogSaver
270 return FileUtil.createTempDir("inv_"); in createTempDir()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DIonHeapInfoMetricCollector.java47 String.format("%s/ion-audio-%s", createTempDir(), getFileSuffix()); in collectIonAudio()
65 String.format("%s/ion-system-%s", createTempDir(), getFileSuffix()); in collectIonSystem()
DScheduledDeviceMetricCollector.java160 File createTempDir() throws IOException { in createTempDir() method in ScheduledDeviceMetricCollector
161 return FileUtil.createTempDir(String.format("tmp_%s", getTag())); in createTempDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationUtilTest.java144 tmpDir = FileUtil.createTempDir("test_configs_dir"); in testGetConfigNamesFromDirs()
176 tmpDir = FileUtil.createTempDir("test_configs_dir"); in testGetConfigNamesFromDirs_patterns()
206 tmpDir = FileUtil.createTempDir("tests_dir"); in testGetConfigNamesFromDirs_prioritizeHostConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DTradefedSandboxTest.java80 mTmpFolder = FileUtil.createTempDir("tmp-tf-jar-dir"); in setUp()
220 File tmpDir = FileUtil.createTempDir("tmp-sandbox-dir"); in testSandboxOptions()
246 File tmpDir = FileUtil.createTempDir("tmp-sandbox-dir"); in testSandboxOptions_exclusion()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java278 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile()
298 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir()
299 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir()
300 FileUtil.createTempDir("test1", subDir); in testPushDir_childDir()
308 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir_filtered()
311 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered()
312 File childDir = FileUtil.createTempDir("test1", subDir); in testPushDir_childDir_filtered()
355 File dir = FileUtil.createTempDir("tf-test"); in testPullDir_nothingToDo()
411 File dir = FileUtil.createTempDir("tf-test"); in testPullDir()
485 File dir = FileUtil.createTempDir("tf-test"); in testPullDir_pullFail()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java231 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_EmptyDirectory()
248 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_OneFile()
277 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_RecursiveSubDir()

1234