/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | FileUtilTest.java | 46 FileUtil.setChmodBinary("chmod"); in setUp() 52 assertEquals("", FileUtil.getExtension("filewithoutext")); in testGetExtension() 53 assertEquals(".txt", FileUtil.getExtension("file.txt")); in testGetExtension() 54 assertEquals(".txt", FileUtil.getExtension("foo.file.txt")); in testGetExtension() 62 if (!FileUtil.chmodExists()) { in testChmodGroupRW() 66 testFile = FileUtil.createTempFile("testChmodRW", ".txt"); in testChmodGroupRW() 67 assertTrue(FileUtil.chmodGroupRW(testFile)); in testChmodGroupRW() 72 FileUtil.deleteFile(testFile); in testChmodGroupRW() 83 FileUtil.setChmodBinary("fake_not_existing_chmod"); in testChmodGroupRW_noChmod() 85 testFile = FileUtil.createTempFile("testChmodRW", ".txt"); in testChmodGroupRW_noChmod() [all …]
|
D | FileUtilFuncTest.java | 55 FileUtil.recursiveDelete(file); in tearDown() 77 FileUtil.mkdirsRWX(subdirs[subdirs.length - 1]); in testMkdirsRWX_multiLevel() 91 FileUtil.mkdirsRWX(subdir); in testMkdirsRWX_singleLevel() 110 FileUtil.mkdirsRWX(subdir); in testMkdirsRWX_preExisting() 121 FileUtil.chmodGroupRW(tmpFile); in testChmodGroupRW() 173 FileUtil.writeToFile(input, tmpFile); in testWriteToFile() 183 FileUtil.recursiveDelete(tmpParentDir); in testRecursiveDelete() 199 FileUtil.writeToFile("foo", subFile); in testRecursiveCopy() 203 FileUtil.recursiveCopy(tmpParentDir, destDir); in testRecursiveCopy() 208 assertTrue(FileUtil.compareFileContents(subFile, subFileCopy)); in testRecursiveCopy() [all …]
|
D | SubprocessTestResultsParserTest.java | 117 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_randomEvents() 126 FileUtil.deleteFile(tmp); in testParse_randomEvents() 159 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_invalidEventOrder() 168 FileUtil.deleteFile(tmp); in testParse_invalidEventOrder() 188 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_testNotStarted() 196 FileUtil.writeToFile(startRun, tmp, true); in testParse_testNotStarted() 202 FileUtil.writeToFile(testEnded, tmp, true); in testParse_testNotStarted() 207 FileUtil.deleteFile(tmp); in testParse_testNotStarted() 227 File tmp = FileUtil.createTempFile("sub", "unit"); in testParse_noTimeStamp() 234 FileUtil.writeToFile(startRun, tmp, true); in testParse_noTimeStamp() [all …]
|
D | TarUtilTest.java | 45 mWorkDir = FileUtil.createTempDir("tarutil_unit_test_dir"); in setUp() 50 FileUtil.recursiveDelete(mWorkDir); in tearDown() 57 File tmpFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testIsGzip() 59 FileUtil.writeToFile(logTarGz, tmpFile); in testIsGzip() 62 FileUtil.writeToFile("test", tmpFile); in testIsGzip() 65 FileUtil.writeToFile("", tmpFile); in testIsGzip() 68 FileUtil.deleteFile(tmpFile); in testIsGzip() 78 File logTarGzFile = FileUtil.createTempFile("log_tarutil_test", ".tar.gz"); in testUnGzip() 80 FileUtil.writeToFile(logTarGz, logTarGzFile); in testUnGzip() 88 FileUtil.deleteFile(logTarGzFile); in testUnGzip() [all …]
|
D | ZipUtilTest.java | 51 FileUtil.recursiveDelete(file); in tearDown() 63 FileUtil.writeToFile(inputStream, zipFile); in getTestDataFile() 105 FileUtil.writeToFile("contents", subFile); in testCreateAndExtractZip() 116 assertTrue(FileUtil.compareFileContents(subFile, extractedSubFile)); in testCreateAndExtractZip() 118 FileUtil.deleteFile(zipFile); in testCreateAndExtractZip() 134 FileUtil.writeToFile("contents1", file1); in testCreateAndExtractZip_fromFiles() 135 FileUtil.writeToFile("contents2", file2); in testCreateAndExtractZip_fromFiles() 144 assertTrue(FileUtil.compareFileContents(file1, extractedFile1)); in testCreateAndExtractZip_fromFiles() 145 assertTrue(FileUtil.compareFileContents(file2, extractedFile2)); in testCreateAndExtractZip_fromFiles() 147 FileUtil.deleteFile(zipFile); in testCreateAndExtractZip_fromFiles() [all …]
|
D | BugreportTest.java | 51 mRegularFile = FileUtil.createTempFile("bugreport-test", "txt"); in setUp() 54 tempDir = FileUtil.createTempDir("bugreportz"); in setUp() 55 File mainEntry = FileUtil.createTempFile("main_entry", ".txt", tempDir); in setUp() 56 File bugreport = FileUtil.createTempFile(BUGREPORT_PREFIX, ".txt", tempDir); in setUp() 58 FileUtil.writeToFile(name, mainEntry); in setUp() 60 FileUtil.writeToFile(content, bugreport); in setUp() 70 FileUtil.recursiveDelete(tempDir); in setUp() 76 FileUtil.deleteFile(mRegularFile); in tearDown() 77 FileUtil.deleteFile(mZipFile); in tearDown() 105 Assert.assertEquals(BUGREPORT_CONTENT, FileUtil.readStringFromFile(mainFile)); in testBugreport_zipped() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | PushFilePreparerTest.java | 36 import com.android.tradefed.util.FileUtil; 122 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_RemoteIsDir() 138 FileUtil.recursiveDelete(testsDir); in testPushFile_RemoteIsDir() 146 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushFile_duplicateKey() 169 FileUtil.recursiveDelete(testsDir); in testPushFile_duplicateKey() 177 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsDir() 197 FileUtil.recursiveDelete(testsDir); in testPushDir_RemoteIsDir() 205 File testsDir = FileUtil.createTempDir("tests_dir"); in testPushDir_RemoteIsFile() 223 FileUtil.recursiveDelete(testsDir); in testPushDir_RemoteIsFile() 234 File testsDir = FileUtil.createTempDir("tests_dir"); in testRemotePush_override() [all …]
|
D | GsiDeviceFlashPreparerTest.java | 36 import com.android.tradefed.util.FileUtil; 99 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 116 FileUtil.recursiveDelete(mTmpDir); in tearDown() 166 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_NoSystemImageInGsiZip() 168 File gsiZip = FileUtil.createTempFile("gsi_image", ".zip", mTmpDir); in testSetUp_NoSystemImageInGsiZip() 184 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetUp_NoVbmetaImageInGsiZip() 186 File gsiZip = FileUtil.createTempFile("gsi_image", ".zip", mTmpDir); in testSetUp_NoVbmetaImageInGsiZip() 202 File gsiDir = FileUtil.createTempDir("gsi_folder", mTmpDir); in testSetup_Success() 205 FileUtil.writeToFile("ddd", systemImg); in testSetup_Success() 206 FileUtil.writeToFile("ddd", vbmetaImg); in testSetup_Success() [all …]
|
D | GkiDeviceFlashPreparerTest.java | 36 import com.android.tradefed.util.FileUtil; 99 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 116 FileUtil.recursiveDelete(mTmpDir); in tearDown() 182 File otaDir = FileUtil.createTempDir("otatool_folder", mTmpDir); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip() 184 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testValidateGkiBootImg_NoMkbootimgInOtatoolsZip() 204 File otaDir = FileUtil.createTempDir("otatool_folder", mTmpDir); in testValidateGkiBootImg_FailToGenerateBootImg() 206 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testValidateGkiBootImg_FailToGenerateBootImg() 259 File otaDir = FileUtil.createTempDir("otatool_folder", mTmpDir); in testSetUp_NoMkbootimgInOtatoolsZip() 261 File otatoolsZip = FileUtil.createTempFile("otatools", ".zip", mTmpDir); in testSetUp_NoMkbootimgInOtatoolsZip() 277 File bootImg = FileUtil.createTempFile("boot", ".img", mTmpDir); in testSetup_Success() [all …]
|
D | InstallApexModuleTargetPreparerTest.java | 34 import com.android.tradefed.util.FileUtil; 94 mFakeApex = FileUtil.createTempFile("fakeApex", ".apex"); in setUp() 95 mFakeApk = FileUtil.createTempFile("fakeApk", ".apk"); in setUp() 96 mFakeApk2 = FileUtil.createTempFile("fakeSecondApk", ".apk"); in setUp() 97 mFakePersistentApk = FileUtil.createTempFile("fakePersistentApk", ".apk"); in setUp() 211 FileUtil.deleteFile(mFakeApex); in tearDown() 212 FileUtil.deleteFile(mFakeApk); in tearDown() 213 FileUtil.deleteFile(mFakeApk2); in tearDown() 214 FileUtil.deleteFile(mFakePersistentApk); in tearDown() 773 FileUtil.deleteFile(mFakeApexApks); in testSetupAndTearDown_ApkAndApks() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 40 import com.android.tradefed.util.FileUtil; 239 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZip() 241 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZip() 245 FileUtil.saveResourceFile(resourceStream, srcDir, DISABLED_PRESUBMIT_TESTS); in testLoadTests_testMappingsZip() 249 FileUtil.saveResourceFile(resourceStream, srcDir, TEST_MAPPING); in testLoadTests_testMappingsZip() 250 File subDir = FileUtil.createTempDir("sub_dir", srcDir); in testLoadTests_testMappingsZip() 253 FileUtil.saveResourceFile(resourceStream, subDir, TEST_MAPPING); in testLoadTests_testMappingsZip() 294 FileUtil.recursiveDelete(tempDir); in testLoadTests_testMappingsZip() 309 tempDir = FileUtil.createTempDir("test_mapping"); in testLoadTests_testMappingsZipFoundTestsWithKeywords() 311 File srcDir = FileUtil.createTempDir("src", tempDir); in testLoadTests_testMappingsZipFoundTestsWithKeywords() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 23 import com.android.tradefed.util.FileUtil; 62 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping() 65 File testMappingRootDir = FileUtil.createTempDir("subdir", tempDir); in testparseTestMapping() 68 FileUtil.saveResourceFile(resourceStream, testMappingRootDir, TEST_MAPPING); in testparseTestMapping() 120 FileUtil.recursiveDelete(tempDir); in testparseTestMapping() 130 tempDir = FileUtil.createTempDir("test_mapping"); in testparseTestMapping_BadJson() 132 FileUtil.writeToFile("bad format json file", testMappingFile); in testparseTestMapping_BadJson() 137 FileUtil.recursiveDelete(tempDir); in testparseTestMapping_BadJson() 146 tempDir = FileUtil.createTempDir("test_mapping"); in testGetTests() 148 File srcDir = FileUtil.createTempDir("src", tempDir); in testGetTests() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationUtilTest.java | 30 import com.android.tradefed.util.FileUtil; 56 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml() 78 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml() 87 FileUtil.deleteFile(tmpXml); in testDumpClassToXml() 97 File tmpXml = FileUtil.createTempFile("global_config", ".xml"); in testDumpClassToXml_filtered() 125 String content = FileUtil.readStringFromFile(tmpXml); in testDumpClassToXml_filtered() 136 FileUtil.deleteFile(tmpXml); in testDumpClassToXml_filtered() 148 tmpDir = FileUtil.createTempDir("test_configs_dir"); in testGetConfigNamesFromDirs() 150 File config1 = FileUtil.createTempFile("config", ".config", tmpDir); in testGetConfigNamesFromDirs() 151 FileUtil.writeToFile("<configuration></configuration>", config1); in testGetConfigNamesFromDirs() [all …]
|
D | ConfigurationFactoryTest.java | 30 import com.android.tradefed.util.FileUtil; 261 File tmpFile = FileUtil.createTempFile(TEST_CONFIG, ".xml"); in testGetConfiguration_xmlpath() 263 FileUtil.writeToFile(configStream, tmpFile); in testGetConfiguration_xmlpath() 268 FileUtil.deleteFile(tmpFile); in testGetConfiguration_xmlpath() 286 File tmpFile = FileUtil.createTempFile(GLOBAL_TEST_CONFIG, ".xml"); in testGetGlobalConfiguration_xmlpath() 288 FileUtil.writeToFile(configStream, tmpFile); in testGetGlobalConfiguration_xmlpath() 293 FileUtil.deleteFile(tmpFile); in testGetGlobalConfiguration_xmlpath() 622 File tmpConfig = FileUtil.createTempFile(INCLUDE_CONFIG, ".xml"); in testCreateConfigurationFromArgs_templateInclude_local() 624 FileUtil.writeToFile(configStream, tmpConfig); in testCreateConfigurationFromArgs_templateInclude_local() 635 FileUtil.deleteFile(tmpConfig); in testCreateConfigurationFromArgs_templateInclude_local() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/suite/ |
D | SuiteApkInstallerTest.java | 32 import com.android.tradefed.util.FileUtil; 63 mTmpDepDir = FileUtil.createTempDir("suite-apk-installer-dep"); in setUp() 73 FileUtil.recursiveDelete(mTmpDepDir); in tearDown() 82 File apk = FileUtil.createTempFile("testapk", ".apk", mTmpDepDir); in testGetLocalPathForFilename_withVariable() 95 File varDir = FileUtil.createTempFile("suite-apk-installer-var", ".txt"); in testGetTestsDir_notDir() 97 File tmpDir = FileUtil.createTempDir("suite-apk-installer"); in testGetTestsDir_notDir() 99 File apkFile = FileUtil.createTempFile("apk-test", ".apk", tmpDir); in testGetTestsDir_notDir() 105 FileUtil.recursiveDelete(varDir); in testGetTestsDir_notDir() 106 FileUtil.recursiveDelete(tmpDir); in testGetTestsDir_notDir() 116 File tmpApk = FileUtil.createTempFile("suite-apk-installer", ".apk"); in testGetLocalPathForFileName() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceFuncTest.java | 37 import com.android.tradefed.util.FileUtil; 163 FileUtil.deleteFile(tmpFile); in testInstallUninstall() 182 FileUtil.deleteFile(tmpFile); in assertWifiApkInstall() 194 tmpFileSpaces = FileUtil.createTempFile("wifi util (3)", ".apk"); in testInstallUninstall_space() 195 FileUtil.copyFile(tmpFile, tmpFileSpaces); in testInstallUninstall_space() 198 FileUtil.deleteFile(tmpFile); in testInstallUninstall_space() 199 FileUtil.deleteFile(tmpFileSpaces); in testInstallUninstall_space() 223 tmpDestFile = FileUtil.createTempFile("tmp", "txt"); in testPushPull_normal() 227 FileUtil.deleteFile(tmpFile); in testPushPull_normal() 263 tmpDestFile = FileUtil.createTempFile("tmp", "txt"); in testPushPull_extStorageVariable() [all …]
|
D | NativeDeviceTest.java | 54 import com.android.tradefed.util.FileUtil; 280 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childFile() 281 FileUtil.createTempFile("test1", ".txt", testDir); in testPushDir_childFile() 283 FileUtil.recursiveDelete(testDir); 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() 304 FileUtil.recursiveDelete(testDir); in testPushDir_childDir() 310 File testDir = FileUtil.createTempDir("pushDirTest"); in testPushDir_childDir_filtered() 313 File subDir = FileUtil.createTempDir("testSubDir", testDir); in testPushDir_childDir_filtered() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | AndroidJUnitTestTest.java | 41 import com.android.tradefed.util.FileUtil; 274 File tmpFile = FileUtil.createTempFile("testFile", ".txt"); in testRun_includeFile() 275 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_includeFile() 281 FileUtil.deleteFile(tmpFile); in testRun_includeFile() 300 File tmpFile = FileUtil.createTempFile("notTestFile", ".txt"); in testRun_excludeFile() 301 FileUtil.writeToFile(TEST1.toString(), tmpFile); in testRun_excludeFile() 307 FileUtil.deleteFile(tmpFile); in testRun_excludeFile() 332 File tmpFileInclude = FileUtil.createTempFile("includeFile", ".txt"); in testRun_testFileAndFilters() 333 FileUtil.writeToFile(TEST1.toString(), tmpFileInclude); in testRun_testFileAndFilters() 334 File tmpFileExclude = FileUtil.createTempFile("excludeFile", ".txt"); in testRun_testFileAndFilters() [all …]
|
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/ |
D | ContentProviderTest.java | 25 import com.android.tradefed.util.FileUtil; 68 File tmpFile = FileUtil.createTempFile("tmpFileToPush (test)", ".txt"); in testPushFile_encode() 74 FileUtil.deleteFile(tmpFile); in testPushFile_encode() 85 File tmpFile = FileUtil.createTempFile("tmpFileToPush+(test)", ".txt"); in testPushFile_encode_plus() 91 FileUtil.deleteFile(tmpFile); in testPushFile_encode_plus() 97 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPushFile() 105 FileUtil.deleteFile(tmpFile); in testPushFile() 112 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testDeleteFile() 122 FileUtil.deleteFile(tmpFile); in testDeleteFile() 131 File tmpFile = FileUtil.createTempFile("tmpFileToPush", ".txt"); in testPullFile() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/ |
D | PythonBinaryHostTestTest.java | 35 import com.android.tradefed.util.FileUtil; 79 mFakeAdb = FileUtil.createTempFile("adb-python-tests", ""); in setUp() 103 mPythonBinary = FileUtil.createTempFile("python-dir", ""); in setUp() 109 FileUtil.deleteFile(mFakeAdb); in tearDown() 110 FileUtil.deleteFile(mPythonBinary); in tearDown() 116 File binary = FileUtil.createTempFile("python-dir", ""); in testRun() 150 FileUtil.deleteFile(binary); in testRun() 157 File binary = FileUtil.createTempFile("python-dir", ""); in testRun_failWithIncludeFilters() 186 FileUtil.deleteFile(binary); in testRun_failWithIncludeFilters() 196 File binary = FileUtil.createTempFile("python-dir", ""); in testRun_withIncludeFilters() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProviderTest.java | 23 import com.android.tradefed.util.FileUtil; 60 mTmpDir = FileUtil.createTempDir("tmp"); in setUp() 61 mBuildDir = FileUtil.createTempDir("buildOutput"); in setUp() 62 mTestDir = FileUtil.createTempDir("tests"); in setUp() 64 FileUtil.writeToFile(ANDROID_INFO, mAndroidInfo); in setUp() 66 FileUtil.writeToFile(BOOT_IMG, mBootImg); in setUp() 68 FileUtil.writeToFile(RADIO_IMG, mRadioImg); in setUp() 70 FileUtil.writeToFile(BOOTLOADER_IMG, mBootloaderImg); in setUp() 72 FileUtil.writeToFile(SYSTEM_IMG, mSystemImg); in setUp() 79 FileUtil.recursiveDelete(mTmpDir); in tearDown() [all …]
|
D | FileDownloadCacheTest.java | 28 import com.android.tradefed.util.FileUtil; 65 mCacheDir = FileUtil.createTempDir("unittest"); in setUp() 72 FileUtil.recursiveDelete(mCacheDir); in tearDown() 91 File destFile = FileUtil.createTempFile("test-download-cache", "txt"); in testFetchRemoteFile_destFile() 237 FileUtil.deleteFile(file); in testFetchRemoteFile_cacheMissing() 253 FileUtil.deleteFile(cachedFile); in testFetchRemoteFile_copyFailed() 298 File cacheDir = FileUtil.createTempDir("cache-unittest"); in testCacheRebuild() 299 File subDir = FileUtil.createTempDir("subdir", cacheDir); in testCacheRebuild() 300 File file = FileUtil.createTempFile("test-cache-file", ".txt", subDir); in testCacheRebuild() 301 FileUtil.writeToFile("test", file); in testCacheRebuild() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreFactoryTest.java | 25 import com.android.tradefed.util.FileUtil; 53 mJsonFile = FileUtil.createTempFile("json-keystore", ".json"); in setUp() 54 FileUtil.writeToFile(mJsonData, mJsonFile); in setUp() 55 mJsonFile2 = FileUtil.createTempFile("json-keystore-2", ".json"); in setUp() 56 FileUtil.writeToFile(mJsonData2, mJsonFile2); in setUp() 57 mJsonFile3 = FileUtil.createTempFile("json-keystore-3", ".json"); in setUp() 58 FileUtil.writeToFile(mJsonData3, mJsonFile3); in setUp() 63 FileUtil.recursiveDelete(mJsonFile); in tearDown() 64 FileUtil.recursiveDelete(mJsonFile2); in tearDown() 65 FileUtil.recursiveDelete(mJsonFile3); in tearDown() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | TfTestLauncher.java | 29 import com.android.tradefed.util.FileUtil; 124 mDestCoverageFile = FileUtil.createTempFile("coverage", ".exec"); in addJavaArguments() 129 mHprofFile = FileUtil.createTempFile("java.hprof", ".txt"); in addJavaArguments() 202 FileUtil.deleteFile(mAgent); in postRun() 221 FileUtil.deleteFile(mDestCoverageFile); in postRun() 223 FileUtil.deleteFile(xmlResult); in postRun() 238 FileUtil.deleteFile(mHprofFile); in cleanTmpFile() 239 FileUtil.deleteFile(mDestCoverageFile); in cleanTmpFile() 240 FileUtil.deleteFile(mAgent); in cleanTmpFile() 276 File jacocoAgent = FileUtil.createTempFile("jacocoagent", ".jar"); in extractJacocoAgent() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/ |
D | ContentProviderHandlerTest.java | 30 import com.android.tradefed.util.FileUtil; 155 File toPush = FileUtil.createTempFile("content-provider-test", ".txt"); in testPushFile() 169 FileUtil.deleteFile(toPush); in testPushFile() 181 FileUtil.deleteFile(toPush); in testPushFile_notExists() 191 File toPush = FileUtil.createTempDir("content-provider-test"); in testPushFile_directory() 196 FileUtil.recursiveDelete(toPush); in testPushFile_directory() 203 File pullTo = FileUtil.createTempFile("content-provider-test", ".txt"); in testPullFile_verifyShellCommand() 222 FileUtil.deleteFile(pullTo); in testPullFile_verifyShellCommand() 238 FileUtil.deleteFile(pullTo); in testPullFile_createLocalFileIfNotExist() 252 FileUtil.deleteFile(pullTo); in testPullFile_success() [all …]
|