/tools/tradefederation/core/javatests/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 testEnsureGroupRWX() 142 testFile = FileUtil.createTempFile("testChmodRWX", ".txt"); in testChmodGroupRWX_noChmod() 165 testFile = FileUtil.createTempFile(prefix, ".gz"); in testCreateTempFile_filenameTooLong() 189 testFile = FileUtil.createTempFile(prefix, suffix); in testCreateTempFile_filenameTooLongEdge() 204 testFile = File.createTempFile("doesnotmatter", ".txt"); in testWriteToFile_overwrites_exists() 222 testFile = File.createTempFile("doesnotmatter", ".txt"); in testWriteToFile_appends_exists() 239 testFile = FileUtil.createTempFile("fileutiltest", ".test"); in testWriteToFile_overwrites_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 | TarUtilTest.java | 70 File tmpFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testIsGzip() 89 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUnGzip_withTargzFormat() 107 File logTgzFile = FileUtil.createTempFile("log_tarutil_test", ".tgz"); in testUnGzip_withTgzFormat() 124 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUntar() 140 File tarFile = FileUtil.createTempFile("symlink", ".tar"); in testUnTar_symlink() 158 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUnTar_withFileNames() 175 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUnTar_withFileNamesNotFound() 195 File tarGzFile = FileUtil.createTempFile("extract_tar_gz_test", ".tar.gz"); in testExtractTarGzipToTemp() 215 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testExtractAndLog() 240 File tmpFile = FileUtil.createTempFile("base_file", ".txt", mWorkDir); in testGzipDir_unGzip()
|
D | SubprocessTestResultsParserTest.java | 94 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_randomEvents() 133 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_invalidEventOrder() 169 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testNotStarted() 207 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_noTimeStamp() 250 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_invocationFailed() 357 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testTag() 384 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testInvocationEndedWithoutBuildInfo() 408 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testInvocationEnded() 436 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testTagNotOverwrite() 457 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_moduleStarted_end() [all …]
|
D | ZipUtil2Test.java | 77 final File destFile = createTempFile("testExtractFileFromZip", ".out"); in testExtractFileFromZip() 153 File tmpFile = FileUtil.createTempFile("ziputiltest", ".zip"); in testExtractZipToTemp() 167 final File zipFile = createTempFile(name, ".zip"); in getTestDataFile() 183 private File createTempFile(String prefix, String suffix) throws IOException { in createTempFile() method in ZipUtil2Test 184 File tempFile = FileUtil.createTempFile(prefix, suffix); in createTempFile()
|
D | RunUtilTest.java | 133 File stdout = FileUtil.createTempFile("stdout_", ".txt"); in uploadCache() 137 stderr = FileUtil.createTempFile("stderr_", ".txt"); in uploadCache() 240 firstStdout = FileUtil.createTempFile("stdout_subprocess_1_", ".txt"); in runTimedCmdWithOutputMonitor_cache_same_run() 242 firstStderr = FileUtil.createTempFile("stderr_subprocess_1_", ".txt"); in runTimedCmdWithOutputMonitor_cache_same_run() 245 secondStdout = FileUtil.createTempFile("stdout_subprocess_2_", ".txt"); in runTimedCmdWithOutputMonitor_cache_same_run() 247 secondStderr = FileUtil.createTempFile("stderr_subprocess_2_", ".txt"); in runTimedCmdWithOutputMonitor_cache_same_run() 356 File stdout = FileUtil.createTempFile("stdout-test", "txt"); in testRunTimedCmdWithInput_failed() 357 File stderr = FileUtil.createTempFile("stderr-test", "txt"); in testRunTimedCmdWithInput_failed() 536 stdout = FileUtil.createTempFile("stdout_subprocess_", ".txt"); in testRuntimedCmd_withFileOutputStream() 538 stderr = FileUtil.createTempFile("stderr_subprocess_", ".txt"); in testRuntimedCmd_withFileOutputStream() [all …]
|
D | BundletoolUtilTest.java | 65 mBundletoolJar = File.createTempFile("bundletool", ".jar"); in setUp() 119 File fakeApks = File.createTempFile("fakeApks", ".apks"); in testextractSplitsFromApks() 144 File fakeApks = File.createTempFile("fakeApks", ".apks"); in test_extractSplitsFromApksFail() 169 File fakeApksZip = File.createTempFile("fakeApks", ".zip"); in test_installApksFromZip() 194 File fakeApksZip = File.createTempFile("fakeApks", ".zip"); in test_installApksFromZip_changeTimeout()
|
D | BugreportTest.java | 56 mRegularFile = FileUtil.createTempFile("bugreport-test", "txt"); in setUp() 60 File mainEntry = FileUtil.createTempFile("main_entry", ".txt", tempDir); in setUp() 61 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in setUp() 157 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in testBugreportz_noMainFile()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | MixKernelTargetPreparerTest.java | 60 File srcFile = FileUtil.createTempFile(deviceImageName + "_", ".zip", oldDir); in testCopyDeviceImageToDir() 82 File srcFile1 = FileUtil.createTempFile("Image", ".gz", tmpDir); in testCopyLabelFileToDir() 83 File srcFile2 = FileUtil.createTempFile("oriole-img-9089658", ".zip", tmpDir); in testCopyLabelFileToDir() 114 File deviceImage = FileUtil.createTempFile("device-img-12345", "zip"); in testFailsOnMissingKernelImage() 130 File deviceImage = FileUtil.createTempFile("device-img-12345", "zip"); in testFailsOnMissingKernelMixingTool() 132 File kernelImage = FileUtil.createTempFile("device-img-12345", "zip"); in testFailsOnMissingKernelMixingTool() 160 File deviceImage = FileUtil.createTempFile("device-img-12345", "zip"); in testFailsOnRunningKernelMixingTool() 161 File kernelImage = FileUtil.createTempFile("dtbo", "img"); in testFailsOnRunningKernelMixingTool() 165 File mixKernelTool = FileUtil.createTempFile("build_mixed_kernels_ramdisk", null, testsDir); in testFailsOnRunningKernelMixingTool() 198 File deviceImage = FileUtil.createTempFile("device-img-12345", "zip"); in testFailsOnNoNewDeviceImage() [all …]
|
D | InstallApexModuleTargetPreparerTest.java | 126 mFakeApex = FileUtil.createTempFile("fakeApex", ".apex"); in setUp() 127 mFakeApex2 = FileUtil.createTempFile("fakeApex_2", ".apex"); in setUp() 128 mFakeApex3 = FileUtil.createTempFile("fakeApex_3", ".apex"); in setUp() 129 mFakeApk = FileUtil.createTempFile("fakeApk", ".apk"); in setUp() 130 mFakeApk2 = FileUtil.createTempFile("fakeSecondApk", ".apk"); in setUp() 131 mFakeApkZip = FileUtil.createTempFile("fakeApkZip", ".zip"); in setUp() 1149 mFakeApkApks = File.createTempFile("fakeApk", ".apks"); in testSetupAndTearDown_ApkAndApks() 1151 File fakeSplitApkApks = File.createTempFile("ApkSplits", ""); in testSetupAndTearDown_ApkAndApks() 1154 File splitApk1 = File.createTempFile("fakeSplitApk1", ".apk", fakeSplitApkApks); in testSetupAndTearDown_ApkAndApks() 1155 mBundletoolJar = File.createTempFile("bundletool", ".jar"); in testSetupAndTearDown_ApkAndApks() [all …]
|
D | AllTestAppsInstallSetupTest.java | 100 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetup() 101 FileUtil.createTempFile("fakeApk2", ".apk", testDir); in testSetup() 102 FileUtil.createTempFile("notAnApk", ".txt", testDir); in testSetup() 104 FileUtil.createTempFile("subfakeApk", ".apk", subTestDir); in testSetup() 124 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetupForceQueryable() 150 FileUtil.createTempFile("fakeApk", ".apk", testDir); in testSetupDeviceApi34ForceQueryableIsFalse()
|
D | GkiDeviceFlashPreparerTest.java | 242 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip() 263 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testValidateGkiBootImg_FailToGenerateBootImg() 298 File bootImg = FileUtil.createTempFile("boot", ".img", mTmpDir); in testAddHashFooter() 307 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testAddHashFooter() 359 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testSetUp_NoMkbootimgInOtatoolsZip() 374 File bootImg = FileUtil.createTempFile("boot", ".img", mTmpDir); in testSetup_Success() 473 File imgZip = FileUtil.createTempFile("gki_image", ".zip", mTmpDir); in testSetup_Success_FromZip() 511 File bootImg = FileUtil.createTempFile("boot", ".img", mTmpDir); in testSetUp_GkiFlashFailure() 515 File deviceImg = FileUtil.createTempFile("device_image", ".zip", mTmpDir); in testSetUp_GkiFlashFailure() 538 File bootImg = FileUtil.createTempFile("boot", ".img", mTmpDir); in testSetUp_BootFailure() [all …]
|
D | AppSetupTest.java | 77 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in setUp() 105 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_failToInstall() 138 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_deviceApi34_forceQueryableIsFalse() 161 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_aaptCannotParse() 194 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_noPackageName() 232 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_checkMinSdk_failParsing() 264 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_checkMinSdk_apiLow() 296 File tmpFile = FileUtil.createTempFile("versioned", ".test"); in testSetup_checkMinSdk_apiOk()
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 83 File apk = FileUtil.createTempFile("testapk", ".apk", mTmpDepDir); in testGetLocalPathForFilename_withVariable() 96 File varDir = FileUtil.createTempFile("suite-apk-installer-var", ".txt"); in testGetTestsDir_notDir() 100 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); in testGetTestsDir_notDir() 117 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName() 133 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName_noFound() 155 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk", tmpDir); in testGetLocalPathForFileName_testsDir() 168 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName_inBuildKey() 190 File tmpApk = FileUtil.createTempFile("suite-apk-installer-2", ".apk", tmpDir); in testGetLocalPathForFileName_remoteZip() 206 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk", mTmpDepDir); in testGetLocalPathForFileName_inDependenciesDir()
|
/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() 85 File tmpFile = FileUtil.createTempFile("tmpFileToPush+(test)", ".txt"); in testPushFile_encode_plus() 97 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPushFile() 112 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testDeleteFile() 131 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPullFile() 136 File tmpPullFile = FileUtil.createTempFile("fileToPullTo", ".txt"); in testPullFile() 161 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPullDir()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/ |
D | OxygenUtilTest.java | 66 File file1 = FileUtil.createTempFile("kernel", ".log", tmpDir); in testDownloadLaunchFailureLogs() 68 File file2 = FileUtil.createTempFile("file2", ".txt", tmpDir2); in testDownloadLaunchFailureLogs() 101 File file1 = FileUtil.createTempFile("launcher.log", ".randomstring", tmpDir); in testCollectErrorSignatures() 125 File file1 = FileUtil.createTempFile("vdl_stdout.txt", ".randomstring", tmpDir); in testCollectDeviceLaunchMetrics() 154 File file1 = FileUtil.createTempFile("vdl_stdout.txt", ".randomstring", tmpDir); in testCollectDeviceLaunchMetricsV2() 181 File file1 = FileUtil.createTempFile("oxygen_version.txt", "", tmpDir); in testCollectOxygenVersion()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/image/ |
D | DeviceImageTrackerTest.java | 55 File deviceImage = FileUtil.createTempFile("cache-image", ".zip"); in testCache() 57 File bootloader = FileUtil.createTempFile("cache-bootloader", ".zip"); in testCache() 58 File baseband = FileUtil.createTempFile("cache-baseband", ".zip"); in testCache()
|
/tools/tradefederation/core/javatests/com/android/tradefed/config/ |
D | ConfigurationUtilTest.java | 56 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml() 97 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml_filtered() 150 File config1 = FileUtil.createTempFile("config", ".config", tmpDir); in testGetConfigNamesFromDirs() 155 File config2 = FileUtil.createTempFile("config", ".xml", subDir); in testGetConfigNamesFromDirs() 184 FileUtil.createTempFile("whatevername", ".whateverextension", tmpDir); in testGetConfigNamesFromDirs_patterns() 188 File config2 = FileUtil.createTempFile("config", ".otherext", subDir); in testGetConfigNamesFromDirs_patterns() 279 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml_filterDeprecated() 319 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml_filterNotChanged()
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | BuildInfoTest.java | 56 mFile = FileUtil.createTempFile("image", "tmp"); in setUp() 142 File testFile = FileUtil.createTempFile("fake-versioned-file", ".txt"); in testCleanUpWithExemption() 143 File testFile2 = FileUtil.createTempFile("fake-versioned-file2", ".txt"); in testCleanUpWithExemption() 177 File testFile = FileUtil.createTempFile("fake-versioned-file", ".txt"); in testListFiles() 178 File testFile2 = FileUtil.createTempFile("fake-versioned-file2", ".txt"); in testListFiles()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 53 mJsonFile = FileUtil.createTempFile("json-keystore", ".json"); in setUp() 55 mJsonFile2 = FileUtil.createTempFile("json-keystore-2", ".json"); in setUp() 57 mJsonFile3 = FileUtil.createTempFile("json-keystore-3", ".json"); in setUp() 218 File jsonFile = FileUtil.createTempFile("json-keystore-4", ".json"); in testLoadKeyStore_multipleHostNameMatches() 245 File jsonFile = FileUtil.createTempFile("json-keystore-5", ".json"); in testLoadKeyStore_badKeyStoreFile()
|
D | JSONFileKeyStoreClientTest.java | 58 File test = FileUtil.createTempFile("keystore", "test"); in testKeyStoreFetchUnreadableFile() 75 File test = FileUtil.createTempFile("keystore", "test"); in testKeyStoreFetchEmptyFile() 88 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()
|
/tools/tradefederation/core/javatests/com/android/tradefed/clearcut/ |
D | ClearcutClientTest.java | 54 File testFile = FileUtil.createTempFile("uuid-test", ""); in testGetGroupingKey() 67 File testFile = FileUtil.createTempFile("uuid-test", ""); in testGetGroupingKey_exists()
|
/tools/tradefederation/core/src/com/android/tradefed/build/content/ |
D | ContentInformation.java | 53 FileUtil.createTempFile( in cloneInformation() 63 FileUtil.createTempFile( in cloneInformation()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTestTest.java | 201 File binary = FileUtil.createTempFile("rust-dir", ""); in testRun() 235 File binary = FileUtil.createTempFile("rust-dir", ""); in testRun_withAdbPath() 262 File binary = FileUtil.createTempFile("rust-dir", ""); in testRunFail_exception() 295 File binary = FileUtil.createTempFile("rust-dir", ""); in testRunFail_list() 322 File binary = FileUtil.createTempFile("rust-dir", ""); in testRunFail_failureOnly() 350 File binary = FileUtil.createTempFile("rust-dir", ""); in testExcludeFilter() 401 File binary = FileUtil.createTempFile("rust-dir", ""); in testIncludeExcludeFilter() 456 File binary = FileUtil.createTempFile("rust-dir", ""); in testMultipleIncludeExcludeFilter() 546 File binary = FileUtil.createTempFile("rust-dir", ""); in testRun_benchmark() 586 File binary = FileUtil.createTempFile("rust-dir", ""); in testRun_benchmarkDoubleStart() [all …]
|