/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilFuncTest.java | 69 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 …]
|
D | ZipUtilTest.java | 87 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()
|
D | FileUtilTest.java | 344 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 …]
|
D | ZipUtil2Test.java | 90 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()
|
D | BuildTestsZipUtilsTest.java | 43 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()
|
D | SystemUtilTest.java | 46 targetOutDir = FileUtil.createTempDir("target_out_dir"); in testGetExternalTestCasesDirs() 47 hostOutDir = FileUtil.createTempDir("host_out_dir"); in testGetExternalTestCasesDirs()
|
D | TarUtilTest.java | 44 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/ |
D | TestMappingTest.java | 59 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/ |
D | TestMappingSuiteRunnerTest.java | 139 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 …]
|
D | BaseTestSuiteTest.java | 91 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/ |
D | PushFilePreparerTest.java | 116 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 …]
|
D | AllTestAppsInstallSetupTest.java | 78 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/ |
D | SuiteApkInstallerTest.java | 94 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/ |
D | LocalDeviceBuildProviderTest.java | 60 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()
|
D | FileDownloadCacheTest.java | 60 mCacheDir = FileUtil.createTempDir("unittest"); in setUp() 264 File cacheDir = FileUtil.createTempDir("cache-unittest"); in testCacheRebuild() 265 File subDir = FileUtil.createTempDir("subdir", cacheDir); in testCacheRebuild()
|
D | FileDownloadCacheFuncTest.java | 62 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()
|
D | DeviceBuildInfoTest.java | 53 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/ |
D | LogFileSaver.java | 70 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()
|
D | FileSystemLogSaver.java | 199 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/ |
D | IonHeapInfoMetricCollector.java | 47 String.format("%s/ion-audio-%s", createTempDir(), getFileSuffix()); in collectIonAudio() 65 String.format("%s/ion-system-%s", createTempDir(), getFileSuffix()); in collectIonSystem()
|
D | ScheduledDeviceMetricCollector.java | 160 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/ |
D | ConfigurationUtilTest.java | 144 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/ |
D | TradefedSandboxTest.java | 80 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/ |
D | NativeDeviceTest.java | 278 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/ |
D | ContentProviderHandlerTest.java | 231 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()
|