/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 66 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 …]
|
D | FileUtilFuncTest.java | 118 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 …]
|
D | SubprocessTestResultsParserTest.java | 112 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 …]
|
D | ZipUtil2Test.java | 111 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()
|
D | TarUtilTest.java | 58 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()
|
D | ZipUtilTest.java | 51 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()
|
D | BugreportTest.java | 51 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()
|
D | GCSBucketUtilFuncTest.java | 51 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()
|
D | BundletoolUtilTest.java | 52 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/ |
D | DynamicRemoteFileResolverTest.java | 102 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()
|
D | ConfigurationUtilTest.java | 55 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/ |
D | SuiteApkInstallerTest.java | 114 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/ |
D | InstallApexModuleTargetPreparerTest.java | 81 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 …]
|
D | AppSetupTest.java | 100 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()
|
D | AllTestAppsInstallSetupTest.java | 80 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()
|
D | InstallAllTestZipAppsSetupTest.java | 91 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/ |
D | ContentProviderTest.java | 68 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/ |
D | AndroidJUnitTestTest.java | 271 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/ |
D | BuildInfoTest.java | 56 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/ |
D | TfTestLauncher.java | 116 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/ |
D | PythonBinaryHostTestTest.java | 53 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/ |
D | TestDeviceFuncTest.java | 190 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/ |
D | ExecutableHostTestTest.java | 96 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/ |
D | JSONFileKeyStoreClientTest.java | 54 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/ |
D | AnrReportGenerator.java | 106 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()
|