Home
last modified time | relevance | path

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

123456

/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 …]
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 …]
DZipUtilTest.java98 File tmpParentDir = createTempDir("foo"); in testCreateAndExtractZip()
100 File extractedDir = createTempDir("extract-foo"); in testCreateAndExtractZip()
128 File tmpParentDir = createTempDir("foo"); in testCreateAndExtractZip_fromFiles()
130 File extractedDir = createTempDir("extract-foo"); in testCreateAndExtractZip_fromFiles()
169 File tmpParentDir = createTempDir("foo"); in testCreateAndExtractFileFromZip()
225 tmpDir = FileUtil.createTempDir("partial_unzip"); in testPartipUnzip()
386 tmpDir = FileUtil.createTempDir("partial_unzip"); in testPartialUnzipWithUseZip64()
521 private File createTempDir(String prefix) throws IOException { in createTempDir() method in ZipUtilTest
522 return createTempDir(prefix, null); in createTempDir()
525 private File createTempDir(String prefix, File parentDir) throws IOException { in createTempDir() method in ZipUtilTest
[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()
124 File testDir = FileUtil.createTempDir("test-dir-build-tests"); in testGetApkFile_fromTestDir_differentModule_testCase()
DRemoteZipTest.java100 destDir = FileUtil.createTempDir("test"); in testGetZipEntries()
122 destDir = FileUtil.createTempDir("test"); in testGetZipEntriesWithUseZip64()
136 destDir = FileUtil.createTempDir("test"); in testDownloadFilesFromZip()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java239 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZip()
241 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZip()
250 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZip()
309 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
311 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
320 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords()
381 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipFailWithKeywords()
383 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZipFailWithKeywords()
392 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZipFailWithKeywords()
429 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipHostTests()
[all …]
DBaseTestSuiteTest.java106 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_noMatch()
124 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_match_parameterized()
156 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_parameterized_filter()
186 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_match()
209 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_oneMatch()
233 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_multiMatchNoExactMatch()
256 File tmpDir = FileUtil.createTempDir(TEST_MODULE); in testSetupFilters_multiMatchOneExactMatch()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java62 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping()
65 File testMappingRootDir = FileUtil.createTempDir("subdir", tempDir); in testparseTestMapping()
130 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping_BadJson()
146 tempDir = FileUtil.createTempDir("test_mapping"); in testGetTests()
148 File srcDir = FileUtil.createTempDir("src", tempDir); in testGetTests()
152 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests()
200 tempDir = FileUtil.createTempDir("test_mapping"); in testGetTests_matchKeywords()
202 File srcDir = FileUtil.createTempDir("src", tempDir); in testGetTests_matchKeywords()
206 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testGetTests_matchKeywords()
241 tempDir = FileUtil.createTempDir("test_mapping"); in testGetAllTestMappingPaths_FromChildDirectory()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPushFilePreparerTest.java122 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_RemoteIsDir()
146 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_duplicateKey()
177 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsDir()
205 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsFile()
234 File testsDir = FileUtil.createTempDir("tests_dir"); in testRemotePush_override()
267 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFileAndPush_override()
339 testsDir = FileUtil.createTempDir("tests_dir"); in testResolveRelativeFilePath_withDeviceBuildInfo()
370 testsDir = FileUtil.createTempDir("tests_dir"); in testResolveRelativeFilePath_withDeviceBuildInfo_remoteZip()
402 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_abiDirectory_noBitness()
438 File tmpFolder = FileUtil.createTempDir("push-file-tests-dir"); in testPush_abiDirectory_noBitness_withModule()
[all …]
DGsiDeviceFlashPreparerTest.java99 mTmpDir = FileUtil.createTempDir("tmp"); in setUp()
166 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_NoSystemImageInGsiZip()
184 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_NoVbmetaImageInGsiZip()
202 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success()
245 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success_FromZipFile()
290 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success_WithGkiBootImg()
343 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success_WithGkiBootImgInZip()
398 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success_Api28()
436 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_GsiFlashFailure()
482 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_BootFailure()
DGkiDeviceFlashPreparerTest.java99 mTmpDir = FileUtil.createTempDir("tmp"); in setUp()
182 File otaDir = FileUtil.createTempDir("otatool_folder", mTmpDir); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip()
204 File otaDir = FileUtil.createTempDir("otatool_folder", mTmpDir); in testValidateGkiBootImg_FailToGenerateBootImg()
259 File otaDir = FileUtil.createTempDir("otatool_folder", mTmpDir); in testSetUp_NoMkbootimgInOtatoolsZip()
301 File gkiDir = FileUtil.createTempDir("gki_folder", mTmpDir); in testSetup_Success_FromZip()
DAllTestAppsInstallSetupTest.java77 File testDir = FileUtil.createTempDir("TestAppSetupTest"); in testSetup()
82 File subTestDir = FileUtil.createTempDir("SubTestAppSetupTest", testDir); in testSetup()
97 File testDir = FileUtil.createTempDir("TestAppSetupForceQueryableTest"); in testSetupForceQueryable()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java280 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile()
300 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir()
301 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir()
302 FileUtil.createTempDir("test1", subDir); in testPushDir_childDir()
310 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir_filtered()
313 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered()
314 File childDir = FileUtil.createTempDir("test1", subDir); in testPushDir_childDir_filtered()
357 File dir = FileUtil.createTempDir("tf-test"); in testPullDir_nothingToDo()
413 File dir = FileUtil.createTempDir("tf-test"); in testPullDir()
487 File dir = FileUtil.createTempDir("tf-test"); in testPullDir_pullFail()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java191 File toPush = FileUtil.createTempDir("content-provider-test"); in testPushFile_directory()
259 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_EmptyDirectory()
272 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_failedDevice()
289 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_OneFile()
318 File pullTo = FileUtil.createTempDir("content-provider-test"); in testPullDir_RecursiveSubDir()
/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()
DFileDownloadCacheFuncTest.java63 mTmpDir = FileUtil.createTempDir("functest"); in setUp()
272 File cacheRoot = FileUtil.createTempDir("constructorTest"); in testConstructor_createCache()
297 File cacheRoot = FileUtil.createTempDir("testConstructor_cacheExceeded"); in testConstructor_cacheExceeded()
DFileDownloadCacheTest.java65 mCacheDir = FileUtil.createTempDir("unittest"); in setUp()
298 File cacheDir = FileUtil.createTempDir("cache-unittest"); in testCacheRebuild()
299 File subDir = FileUtil.createTempDir("subdir", cacheDir); in testCacheRebuild()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java63 mTmpDepDir = FileUtil.createTempDir("suite-apk-installer-dep"); in setUp()
97 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); in testGetTestsDir_notDir()
152 tmpDir = FileUtil.createTempDir("test"); in testGetLocalPathForFileName_testsDir()
187 tmpDir = FileUtil.createTempDir("test"); in testGetLocalPathForFileName_remoteZip()
/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.java204 logReportDir = createTempDir(); in createLogReportDir()
228 return FileUtil.createTempDir("inv_", buildDir); in generateLogReportDir()
279 private File createTempDir() { in createTempDir() method in FileSystemLogSaver
281 return FileUtil.createTempDir("inv_"); in createTempDir()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTarUtil.java198 unGzipDir = FileUtil.createTempDir("extractTarGzip"); in extractTarGzipToTemp()
200 unTarDir = FileUtil.createTempDir(nameHint); in extractTarGzipToTemp()
230 File dir = FileUtil.createTempDir("tmp_tar_dir"); in extractAndLog()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationUtilTest.java148 tmpDir = FileUtil.createTempDir("test_configs_dir"); in testGetConfigNamesFromDirs()
182 tmpDir = FileUtil.createTempDir("test_configs_dir"); in testGetConfigNamesFromDirs_patterns()
213 tmpDir = FileUtil.createTempDir("tests_dir"); in testGetConfigNamesFromDirs_prioritizeHostConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandLauncherTest.java72 private File createTempDir(final String key) throws IOException { in createTempDir() method in ClusterCommandLauncherTest
73 return FileUtil.createTempDir(this.getClass().getName() + "_" + key); in createTempDir()
89 mRootDir = createTempDir("RootDir"); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DTradefedSandboxTest.java80 mTmpFolder = FileUtil.createTempDir("tmp-tf-jar-dir"); in setUp()
262 File tmpDir = FileUtil.createTempDir("tmp-sandbox-dir"); in testSandboxOptions()
288 File tmpDir = FileUtil.createTempDir("tmp-sandbox-dir"); in testSandboxOptions_exclusion()

123456