Home
last modified time | relevance | path

Searched refs:createTempFile (Results 1 – 25 of 143) sorted by relevance

123456

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileUtilTest.java66 testFile = FileUtil.createTempFile("testChmodRW", ".txt"); in testChmodGroupRW()
85 testFile = FileUtil.createTempFile("testChmodRW", ".txt"); in testChmodGroupRW_noChmod()
104 testFile = FileUtil.createTempFile("testChmodRWX", ".txt"); in testChmodGroupRWX()
123 testFile = FileUtil.createTempFile("testChmodRWX", ".txt"); in testChmodGroupRWX_noChmod()
146 testFile = FileUtil.createTempFile(prefix, ".gz"); in testCreateTempFile_filenameTooLong()
170 testFile = FileUtil.createTempFile(prefix, suffix); in testCreateTempFile_filenameTooLongEdge()
185 testFile = File.createTempFile("doesnotmatter", ".txt"); in testWriteToFile_overwrites_exists()
203 testFile = File.createTempFile("doesnotmatter", ".txt"); in testWriteToFile_appends_exists()
220 testFile = FileUtil.createTempFile("fileutiltest", ".test"); in testWriteToFile_overwrites_doesNotExist()
237 testFile = FileUtil.createTempFile("fileutiltest", ".test"); in testWriteToFile_appends_doesNotExist()
[all …]
DFileUtilFuncTest.java118 File tmpFile = createTempFile("foo", "txt"); in testChmodGroupRW()
147 File tmpFile = createTempFile("foo", ".txt"); in testCreateTempFile()
159 File tmpFile = createTempFile("foo", ".txt", tmpParentDir); in testCreateTempFile_parentDir()
172 File tmpFile = createTempFile("foo", ".txt"); in testWriteToFile()
182 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveDelete()
198 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveCopy()
220 File subFile = createTempFile("foo", ".txt", childDir); in testRecursiveCopyToNonexistentTarget()
244 File aFile = createTempFile("aFile", ".txt", absSubDir2); in testFindDirsUnder()
340 File tmpFile = FileUtil.createTempFile("testCalculateMd5", ".txt"); in testCalculateMd5()
359 File tmpFile = FileUtil.createTempFile("testCalculateMd5", ".txt"); in testCalculateBase64Md5()
[all …]
DSubprocessTestResultsParserTest.java112 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_randomEvents()
150 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_invalidEventOrder()
175 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testNotStarted()
210 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_noTimeStamp()
245 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_invocationFailed()
339 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testTag()
367 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testInvocationEndedWithoutBuildInfo()
393 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testInvocationEnded()
423 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testTagNotOverwrite()
447 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_moduleStarted_end()
[all …]
DZipUtil2Test.java111 File tmpFile = FileUtil.createTempFile("ziputiltest", ".zip"); in testExtractZipToTemp()
125 final File zipFile = createTempFile(name, ".zip"); in getTestDataFile()
141 private File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() method in ZipUtil2Test
142 File tempFile = FileUtil.createTempFile(prefix, suffix); in createTempFile()
DTarUtilTest.java58 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUnGzip()
78 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUntar()
98 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testExtractAndLog()
125 File tmpFile = FileUtil.createTempFile("base_file", ".txt", mWorkDir); in testGzipDir_unGzip()
DZipUtilTest.java51 final File zipFile = createTempFile(name, ".zip"); in getTestDataFile()
183 File tmpFile = FileUtil.createTempFile("ziputiltest", ".zip"); in testExtractZipToTemp()
205 private File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() method in ZipUtilTest
206 File tempFile = FileUtil.createTempFile(prefix, suffix); in createTempFile()
DBugreportTest.java51 mRegularFile = FileUtil.createTempFile("bugreport-test", "txt"); in setUp()
55 File mainEntry = FileUtil.createTempFile("main_entry", ".txt", tempDir); in setUp()
56 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in setUp()
162 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in testBugreportz_noMainFile()
DGCSBucketUtilFuncTest.java51 File tempFile = FileUtil.createTempFile(GCSBucketUtilFuncTest.class.getSimpleName(), ""); in setUp()
103 File tempSrc = FileUtil.createTempFile("src", "", mLocalRoot); in testUploadDownload()
104 File tempDst = FileUtil.createTempFile("dst", "", mLocalRoot); in testUploadDownload()
208 File localFile = FileUtil.createTempFile(FILE_NAME, "", mLocalRoot); in testmd5Hash()
DBundletoolUtilTest.java52 mBundletoolJar = File.createTempFile("bundletool", ".jar"); in setUp()
103 File fakeApks = File.createTempFile("fakeApks", ".apks"); in testextractSplitsFromApks()
135 File fakeApks = File.createTempFile("fakeApks", ".apks"); in test_extractSplitsFromApksFail()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java102 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve()
138 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteFileList()
185 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteFileList_downloadError()
222 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteMap()
223 File fake2 = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteMap()
267 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteMultiMap()
268 File fake2 = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteMultiMap()
269 File fake3 = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_remoteMultiMap()
319 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_withNoGlobalNameSpace()
399 File fake = FileUtil.createTempFile("gs-option-setter-test", "txt"); in testResolve_addition()
DConfigurationUtilTest.java55 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml()
95 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml_filtered()
146 File config1 = FileUtil.createTempFile("config", ".config", tmpDir); in testGetConfigNamesFromDirs()
150 File config2 = FileUtil.createTempFile("config", ".xml", subDir); in testGetConfigNamesFromDirs()
178 FileUtil.createTempFile("whatevername", ".whateverextension", tmpDir); in testGetConfigNamesFromDirs_patterns()
182 File config2 = FileUtil.createTempFile("config", ".otherext", subDir); in testGetConfigNamesFromDirs_patterns()
272 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml_filterDeprecated()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstallerTest.java114 File apk = FileUtil.createTempFile("testapk", ".apk", varDir); in testGetLocalPathForFilename_withVariable()
139 File varDir = FileUtil.createTempFile("suite-apk-installer-var", ".txt"); in testGetTestsDir_notDir()
141 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); in testGetTestsDir_notDir()
171 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName()
195 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName_noFound()
230 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk", tmpDir); in testGetLocalPathForFileName_testsDir()
246 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName_inBuildKey()
267 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk", tmpDir); in testGetLocalPathForFileName_inSharedDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparerTest.java81 mFakeApex = FileUtil.createTempFile("fakeApex", ".apex"); in setUp()
82 mFakeApk = FileUtil.createTempFile("fakeApk", ".apk"); in setUp()
337 mFakeApkApks = File.createTempFile("fakeApk", ".apks"); in testSetupAndTearDown_ApkAndApks()
339 File fakeSplitApkApks = File.createTempFile("ApkSplits", ""); in testSetupAndTearDown_ApkAndApks()
342 File splitApk1 = File.createTempFile("fakeSplitApk1", ".apk", fakeSplitApkApks); in testSetupAndTearDown_ApkAndApks()
343 mBundletoolJar = File.createTempFile("bundletool", ".jar"); in testSetupAndTearDown_ApkAndApks()
344 File splitApk2 = File.createTempFile("fakeSplitApk2", ".apk", fakeSplitApkApks); in testSetupAndTearDown_ApkAndApks()
500 mFakeApexApks = File.createTempFile("fakeApex", ".apks"); in testInstallUsingBundletool()
501 mFakeApkApks = File.createTempFile("fakeApk", ".apks"); in testInstallUsingBundletool()
503 File fakeSplitApexApks = File.createTempFile("ApexSplits", ""); in testInstallUsingBundletool()
[all …]
DAppSetupTest.java100 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_failToInstall()
125 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_aaptCannotParse()
156 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_noPackageName()
191 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_checkMinSdk_failParsing()
222 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_checkMinSdk_apiLow()
252 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_checkMinSdk_apiOk()
DAllTestAppsInstallSetupTest.java80 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetup()
81 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in testSetup()
82 FileUtil.createTempFile("notAnApk", ".txt", testDir); in testSetup()
84 FileUtil.createTempFile("subfakeApk", ".apk", subTestDir); in testSetup()
DInstallAllTestZipAppsSetupTest.java91 FileUtil.createTempFile("fakeApk", ".apk", testDir); in setMockUnzipDir()
92 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in setMockUnzipDir()
93 FileUtil.createTempFile("notAnApk", ".txt", testDir); in setMockUnzipDir()
95 FileUtil.createTempFile("subfakeApk", ".apk", subTestDir); in setMockUnzipDir()
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java68 File tmpFile = FileUtil.createTempFile("tmpFileToPush (test)", ".txt"); in testPushFile_encode()
80 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPushFile()
95 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testDeleteFile()
114 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPullFile()
142 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPullDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DAndroidJUnitTestTest.java271 File tmpFile = FileUtil.createTempFile("testFile", ".txt"); in testRun_includeFile()
297 File tmpFile = FileUtil.createTempFile("notTestFile", ".txt"); in testRun_excludeFile()
329 File tmpFileInclude = FileUtil.createTempFile("includeFile", ".txt"); in testRun_testFileAndFilters()
331 File tmpFileExclude = FileUtil.createTempFile("excludeFile", ".txt"); in testRun_testFileAndFilters()
363 File tmpFileInclude = FileUtil.createTempFile("includeFile", ".txt"); in testRun_testFileAndFilters_fails()
365 File tmpFileExclude = FileUtil.createTempFile("excludeFile", ".txt"); in testRun_testFileAndFilters_fails()
402 File tmpFileInclude = FileUtil.createTempFile("includeFile", ".txt"); in testRun_setTestFileOptions()
404 File tmpFileExclude = FileUtil.createTempFile("excludeFile", ".txt"); in testRun_setTestFileOptions()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java56 mFile = FileUtil.createTempFile("image", "tmp"); in setUp()
134 File testFile = FileUtil.createTempFile("fake-versioned-file", ".txt"); in testCleanUpWithExemption()
135 File testFile2 = FileUtil.createTempFile("fake-versioned-file2", ".txt"); in testCleanUpWithExemption()
169 File testFile = FileUtil.createTempFile("fake-versioned-file", ".txt"); in testListFiles()
170 File testFile2 = FileUtil.createTempFile("fake-versioned-file2", ".txt"); in testListFiles()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java116 mDestCoverageFile = FileUtil.createTempFile("coverage", ".exec"); in addJavaArguments()
121 mHprofFile = FileUtil.createTempFile("java.hprof", ".txt"); in addJavaArguments()
259 File jacocoAgent = FileUtil.createTempFile("jacocoagent", ".jar"); in extractJacocoAgent()
273 File xmlReport = FileUtil.createTempFile("coverage_xml", ".xml"); in processExecData()
283 File antConfig = FileUtil.createTempFile("ant-merge_", ".xml"); in processExecData()
284 File jacocoAnt = FileUtil.createTempFile("jacocoant", ".jar"); in processExecData()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java53 mFakeAdb = FileUtil.createTempFile("adb-python-tests", ""); in setUp()
86 File binary = FileUtil.createTempFile("python-dir", ""); in testRun()
126 File binary = FileUtil.createTempFile("python-dir", ""); in testRun_withAdbPath()
161 File binary = FileUtil.createTempFile("python-dir", ""); in testRunFail_exception()
201 File binary = FileUtil.createTempFile("python-dir", ""); in testRunFail_failureOnly()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java190 tmpFileSpaces = FileUtil.createTempFile("wifi util (3)", ".apk"); in testInstallUninstall_space()
219 tmpDestFile = FileUtil.createTempFile("tmp", "txt"); in testPushPull_normal()
259 tmpDestFile = FileUtil.createTempFile("tmp", "txt"); in testPushPull_extStorageVariable()
313 tmpFile = FileUtil.createTempFile("testPull_nopermissions", ".txt"); in testPull_nopermissions()
344 tmpFile = FileUtil.createTempFile("tmp", ".txt", dir); in createTempTestFile()
689 File tmpPngFile = FileUtil.createTempFile("screenshot", ".png"); in testGetScreenshot()
719 File tmpTxtFile = FileUtil.createTempFile("logcat", ".txt"); in testGetLogcat_size()
837 File testFile = FileUtil.createTempFile("test-screenshot", ".testpng"); in testScreenshot()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/
DExecutableHostTestTest.java96 File tmpBinary = FileUtil.createTempFile("test-executable", ""); in testRunHostExecutable()
120 File tmpBinary = FileUtil.createTempFile("test-executable", ""); in testRunHostExecutable_dnae()
157 File tmpBinary = FileUtil.createTempFile("test-executable", "", testsDir); in testRunHostExecutable_search()
185 File tmpBinary = FileUtil.createTempFile("test-executable", "", testsDir); in testRunHostExecutable_notFound()
217 File tmpBinary = FileUtil.createTempFile("test-executable", ""); in testRunHostExecutable_failure()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/
DJSONFileKeyStoreClientTest.java54 File test = FileUtil.createTempFile("keystore", "test"); in testKeyStoreFetchUnreadableFile()
71 File test = FileUtil.createTempFile("keystore", "test"); in testKeyStoreFetchEmptyFile()
84 File test = FileUtil.createTempFile("keystore", "test"); in testKeyStoreFetchFile()
/tools/tradefederation/contrib/src/com/android/monkey/
DAnrReportGenerator.java106 mCachedBugreport = FileUtil.createTempFile("monkey-anr-report-bugreport", ".txt"); in setBugReportInfo()
121 mCachedMonkeyLog = FileUtil.createTempFile("monkey-anr-report-monkey-log", ".txt"); in setMonkeyLogInfo()
157 FileUtil.createTempFile( in genereateAnrReport()

123456