Home
last modified time | relevance | path

Searched refs:deleteFile (Results 1 – 25 of 191) sorted by relevance

12345678

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparerTest.java211 FileUtil.deleteFile(mFakeApex); in tearDown()
212 FileUtil.deleteFile(mFakeApk); in tearDown()
213 FileUtil.deleteFile(mFakeApk2); in tearDown()
214 FileUtil.deleteFile(mFakePersistentApk); in tearDown()
220 mMockDevice.deleteFile(APEX_DATA_DIR + "*"); in testSetupSuccess_removeExistingStagedApexSuccess()
222 mMockDevice.deleteFile(SESSION_DATA_DIR + "*"); in testSetupSuccess_removeExistingStagedApexSuccess()
224 mMockDevice.deleteFile(STAGING_DATA_DIR + "*"); in testSetupSuccess_removeExistingStagedApexSuccess()
277 mMockDevice.deleteFile(APEX_DATA_DIR + "*"); in testSetupSuccess_getActivatedPackageSuccess()
279 mMockDevice.deleteFile(SESSION_DATA_DIR + "*"); in testSetupSuccess_getActivatedPackageSuccess()
281 mMockDevice.deleteFile(STAGING_DATA_DIR + "*"); in testSetupSuccess_getActivatedPackageSuccess()
[all …]
DAppSetupTest.java77 FileUtil.deleteFile(f.getFile()); in tearDown()
121 FileUtil.deleteFile(tmpFile); in testSetup_failToInstall()
149 FileUtil.deleteFile(tmpFile); in testSetup_aaptCannotParse()
184 FileUtil.deleteFile(tmpFile); in testSetup_noPackageName()
217 FileUtil.deleteFile(tmpFile); in testSetup_checkMinSdk_failParsing()
246 FileUtil.deleteFile(tmpFile); in testSetup_checkMinSdk_apiLow()
279 FileUtil.deleteFile(tmpFile); in testSetup_checkMinSdk_apiOk()
DFastbootDeviceFlasherTest.java547 FileUtil.deleteFile(bootloaderFake); in testCheckAndFlashBootloader()
594 FileUtil.deleteFile(deviceImage); in testCheckAndFlashSystem_flashing()
638 FileUtil.deleteFile(deviceImage); in testFlashingSystemWithRamdisk()
639 FileUtil.deleteFile(ramdisk); in testFlashingSystemWithRamdisk()
678 FileUtil.deleteFile(ramdisk); in testSkipFlashingSystemWithRamdisk()
712 FileUtil.deleteFile(deviceImage); in testCheckAndFlashSystem_withFlashOptions()
746 FileUtil.deleteFile(deviceImage); in testCheckAndFlashSystem_exception()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java126 FileUtil.deleteFile(tmp); in testParse_randomEvents()
168 FileUtil.deleteFile(tmp); in testParse_invalidEventOrder()
207 FileUtil.deleteFile(tmp); in testParse_testNotStarted()
250 FileUtil.deleteFile(tmp); in testParse_noTimeStamp()
283 FileUtil.deleteFile(tmp); in testParse_invocationFailed()
388 FileUtil.deleteFile(tmp); in testParse_testTag()
411 FileUtil.deleteFile(tmp); in testParse_testInvocationEndedWithoutBuildInfo()
442 FileUtil.deleteFile(tmp); in testParse_testInvocationEnded()
468 FileUtil.deleteFile(tmp); in testParse_testTagNotOverwrite()
500 FileUtil.deleteFile(tmp); in testParse_moduleStarted_end()
[all …]
DFileUtilTest.java72 FileUtil.deleteFile(testFile); in testChmodGroupRW()
91 FileUtil.deleteFile(testFile); in testChmodGroupRW_noChmod()
110 FileUtil.deleteFile(testFile); in testChmodGroupRWX()
129 FileUtil.deleteFile(testFile); in testChmodGroupRWX_noChmod()
149 FileUtil.deleteFile(testFile); in testCreateTempFile_filenameTooLong()
173 FileUtil.deleteFile(testFile); in testCreateTempFile_filenameTooLongEdge()
191 FileUtil.deleteFile(testFile); in testWriteToFile_overwrites_exists()
208 FileUtil.deleteFile(testFile); in testWriteToFile_appends_exists()
221 FileUtil.deleteFile(testFile); in testWriteToFile_overwrites_doesNotExist()
225 FileUtil.deleteFile(testFile); in testWriteToFile_overwrites_doesNotExist()
[all …]
DFileUtilFuncTest.java276 FileUtil.deleteFile(tmpFile); in testCreateTempFileForRemote()
289 FileUtil.deleteFile(tmpFile); in testCreateTempFileForRemote_nested()
301 FileUtil.deleteFile(tmpFile); in testCreateTempFileForRemote_noext()
314 FileUtil.deleteFile(tmpFile); in testCreateTempFileForRemote_short()
327 FileUtil.deleteFile(tmpFile); in testCreateTempFileForRemote_singleFile()
346 FileUtil.deleteFile(tmpFile); in testCalculateMd5()
365 FileUtil.deleteFile(tmpFile); in testCalculateBase64Md5()
DZipUtilTest.java118 FileUtil.deleteFile(zipFile); in testCreateAndExtractZip()
147 FileUtil.deleteFile(zipFile); in testCreateAndExtractZip_fromFiles()
184 FileUtil.deleteFile(zipFile); in testCreateAndExtractFileFromZip()
185 FileUtil.deleteFile(extractedSubFile); in testCreateAndExtractFileFromZip()
201 FileUtil.deleteFile(tmpFile); in testExtractZipToTemp()
354 FileUtil.deleteFile(partialZipFile); in testPartipUnzip()
515 FileUtil.deleteFile(partialZipFile); in testPartialUnzipWithUseZip64()
DTarUtilTest.java68 FileUtil.deleteFile(tmpFile); in testIsGzip()
88 FileUtil.deleteFile(logTarGzFile); in testUnGzip()
106 FileUtil.deleteFile(logTarGzFile); in testUntar()
124 FileUtil.deleteFile(tarGzFile); in testExtractTarGzipToTemp()
152 FileUtil.deleteFile(logTarGzFile); in testExtractAndLog()
DBugreportTest.java76 FileUtil.deleteFile(mRegularFile); in tearDown()
77 FileUtil.deleteFile(mZipFile); in tearDown()
107 FileUtil.deleteFile(mainFile); in testBugreport_zipped()
132 FileUtil.deleteFile(mainFile); in testBugreport_getFileByName()
176 FileUtil.deleteFile(zipFile); in testBugreportz_noMainFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceFuncTest.java163 FileUtil.deleteFile(tmpFile); in testInstallUninstall()
182 FileUtil.deleteFile(tmpFile); in assertWifiApkInstall()
198 FileUtil.deleteFile(tmpFile); in testInstallUninstall_space()
199 FileUtil.deleteFile(tmpFileSpaces); in testInstallUninstall_space()
217 mTestDevice.deleteFile(deviceFilePath); in testPushPull_normal()
227 FileUtil.deleteFile(tmpFile); in testPushPull_normal()
232 mTestDevice.deleteFile(deviceFilePath); in testPushPull_normal()
271 FileUtil.deleteFile(tmpFile); in testPushPull_extStorageVariable()
272 FileUtil.deleteFile(tmpDestFile); in testPushPull_extStorageVariable()
273 FileUtil.deleteFile(tmpDestFile2); in testPushPull_extStorageVariable()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DAndroidJUnitTestTest.java271 mMockTestDevice.deleteFile("/data/local/tmp/ajur"); in testRun_includeFile()
281 FileUtil.deleteFile(tmpFile); in testRun_includeFile()
297 mMockTestDevice.deleteFile("/data/local/tmp/ajur"); in testRun_excludeFile()
307 FileUtil.deleteFile(tmpFile); in testRun_excludeFile()
329 mMockTestDevice.deleteFile("/data/local/tmp/ajur"); in testRun_testFileAndFilters()
344 FileUtil.deleteFile(tmpFileInclude); in testRun_testFileAndFilters()
345 FileUtil.deleteFile(tmpFileExclude); in testRun_testFileAndFilters()
382 FileUtil.deleteFile(tmpFileInclude); in testRun_testFileAndFilters_fails()
383 FileUtil.deleteFile(tmpFileExclude); in testRun_testFileAndFilters_fails()
404 mMockTestDevice.deleteFile("/data/local/tmp/ajur"); in testRun_setTestFileOptions()
[all …]
DGTestXmlResultParserTest.java104 FileUtil.deleteFile(contents); in testParseSimpleFile()
132 FileUtil.deleteFile(contents); in testParseLargerFile()
169 FileUtil.deleteFile(contents); in testParseWithFailures()
193 FileUtil.deleteFile(contents); in testParseWithEmptyFile()
223 FileUtil.deleteFile(contents); in testParseUnexpectedNumberTest()
256 FileUtil.deleteFile(contents); in testParseSimpleFile_badXmltag()
288 FileUtil.deleteFile(contents); in testParseWithEmptyFile_AdditionalOutput()
323 FileUtil.deleteFile(contents); in testParseSimpleFile_skipped()
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java56 getDevice().deleteFile(delete); in tearDown()
74 FileUtil.deleteFile(tmpFile); in testPushFile_encode()
91 FileUtil.deleteFile(tmpFile); in testPushFile_encode_plus()
105 FileUtil.deleteFile(tmpFile); in testPushFile()
120 assertTrue(mHandler.deleteFile(devicePath)); in testDeleteFile()
122 FileUtil.deleteFile(tmpFile); in testDeleteFile()
146 FileUtil.deleteFile(tmpFile); in testPullFile()
147 FileUtil.deleteFile(tmpPullFile); in testPullFile()
176 FileUtil.deleteFile(tmpFile); in testPullDir()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java202 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()
318 FileUtil.deleteFile(antConfig); in processExecData()
319 FileUtil.deleteFile(jacocoAnt); in processExecData()
410 FileUtil.deleteFile(tmpGzip); in logHprofResults()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceManagerTest.java91 FileUtil.deleteFile(mAvdBinary); in tearDown()
189 FileUtil.deleteFile(reportFile); in testBuildGceCommand()
229 FileUtil.deleteFile(reportFile); in testBuildGceCommand_withServiceAccountJsonKeyFile()
278 FileUtil.deleteFile(reportFile); in testBuildGceCommandWithEmulatorBuild()
319 FileUtil.deleteFile(reportFile); in testBuildGceCommandWithGceDriverParam()
406 FileUtil.deleteFile(reportFile); in testBuildGceCommandWithKernelBuild()
487 FileUtil.deleteFile(reportFile); in testStartGce_failed()
724 FileUtil.deleteFile(bugreport); in testGetSshBugreport()
800 FileUtil.deleteFile(bugreport); in testGetNestedSshBugreport()
838 FileUtil.deleteFile(bugreport); in testGetSshBugreport_Fail()
[all …]
DRemoteAndroidVirtualDeviceTest.java146 FileUtil.deleteFile(mTestDevice.getExecuteShellCommandLog()); in tearDown()
181 FileUtil.deleteFile(reportFile); in testExceptionFromParser()
526 FileUtil.deleteFile(tmpKeyFile); in testDeviceNotStoreShutdownState()
578 FileUtil.deleteFile(tmpKeyFile); in testDeviceNotStoreShutdownState()
629 FileUtil.deleteFile(tmpKeyFile); in testDevice_skipTearDown()
665 FileUtil.deleteFile(tmpKeyFile); in testDevice_skipTearDown()
716 FileUtil.deleteFile(tmpKeyFile); in testDeviceBoot_offline()
773 FileUtil.deleteFile(tmpKeyFile); in testDeviceBoot_offline()
801 FileUtil.deleteFile(f); in testGetRemoteTombstone()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java114 assertTrue(mProvider.deleteFile(devicePath)); in testDeleteFile()
132 assertFalse(mProvider.deleteFile(devicePath)); in testDeleteFile_fail()
149 assertFalse(mProvider.deleteFile(devicePath)); in testError()
169 FileUtil.deleteFile(toPush); in testPushFile()
181 FileUtil.deleteFile(toPush); in testPushFile_notExists()
222 FileUtil.deleteFile(pullTo); in testPullFile_verifyShellCommand()
238 FileUtil.deleteFile(pullTo); in testPullFile_createLocalFileIfNotExist()
252 FileUtil.deleteFile(pullTo); in testPullFile_success()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustBinaryHostTestTest.java164 FileUtil.deleteFile(binary); in testRun()
189 FileUtil.deleteFile(binary); in testRun_withAdbPath()
209 FileUtil.deleteFile(binary); in testRunFail_exception()
239 FileUtil.deleteFile(binary); in testRunFail_list()
259 FileUtil.deleteFile(binary); in testRunFail_failureOnly()
298 FileUtil.deleteFile(binary); in testExcludeFilter()
342 FileUtil.deleteFile(binary); in testIncludeExcludeFilter()
414 FileUtil.deleteFile(binary); in testMultipleIncludeExcludeFilter()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java109 FileUtil.deleteFile(mFakeAdb); in tearDown()
110 FileUtil.deleteFile(mPythonBinary); in tearDown()
150 FileUtil.deleteFile(binary); in testRun()
186 FileUtil.deleteFile(binary); in testRun_failWithIncludeFilters()
248 FileUtil.deleteFile(binary); in testRun_withIncludeFilters()
309 FileUtil.deleteFile(binary); in testRun_withExcludeFilters()
350 FileUtil.deleteFile(binary); in testRun_withAdbPath()
486 FileUtil.deleteFile(binary); in testRunFail_exception()
524 FileUtil.deleteFile(binary); in testRunFail_failureOnly()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandbox.java285 FileUtil.deleteFile(mStdoutFile); in tearDown()
286 FileUtil.deleteFile(mStderrFile); in tearDown()
288 FileUtil.deleteFile(mSerializedContext); in tearDown()
289 FileUtil.deleteFile(mSerializedConfiguration); in tearDown()
290 FileUtil.deleteFile(mGlobalConfig); in tearDown()
399 FileUtil.deleteFile(parentConfig); in prepareConfiguration()
502 FileUtil.deleteFile(tmpParentConfig); in handleChildMissingConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java61 FileUtil.deleteFile(mFile); in tearDown()
78 FileUtil.deleteFile(copy.getFile(FILE_KEY)); in testClone()
147 FileUtil.deleteFile(testFile); in testCleanUpWithExemption()
148 FileUtil.deleteFile(testFile2); in testCleanUpWithExemption()
179 FileUtil.deleteFile(testFile); in testListFiles()
180 FileUtil.deleteFile(testFile2); in testListFiles()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java234 FileUtil.deleteFile(reportFile); in startGce()
420 FileUtil.deleteFile(config); in AcloudShutdown()
438 FileUtil.deleteFile(config); in AcloudShutdown()
441 FileUtil.deleteFile(f); in AcloudShutdown()
468 FileUtil.deleteFile(localTmpFile); in getBugreportzWithSsh()
512 FileUtil.deleteFile(localTmpFile); in getNestedDeviceSshBugreportz()
770 FileUtil.deleteFile(mConfigFile); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/
DMixImageZipPreparerTest.java264 FileUtil.deleteFile(mDeviceImageZip); in tearDown()
265 FileUtil.deleteFile(mSystemImageZip); in tearDown()
266 FileUtil.deleteFile(mMiscInfoFile); in tearDown()
267 FileUtil.deleteFile(mOtaToolsZip); in tearDown()
268 FileUtil.deleteFile(mRepackSuperImageFile); in tearDown()
462 FileUtil.deleteFile(file); in runCreateZipTest()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparer.java593 device.deleteFile(APEX_DATA_DIR + "*"); in cleanUpStagedAndActiveSession()
594 device.deleteFile(STAGING_DATA_DIR + "*"); in cleanUpStagedAndActiveSession()
595 device.deleteFile(SESSION_DATA_DIR + "*"); in cleanUpStagedAndActiveSession()
599 device.deleteFile(APEX_DATA_DIR + "*"); in cleanUpStagedAndActiveSession()
603 device.deleteFile(STAGING_DATA_DIR + "*"); in cleanUpStagedAndActiveSession()
607 device.deleteFile(SESSION_DATA_DIR + "*"); in cleanUpStagedAndActiveSession()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java124 FileUtil.deleteFile(mContentProviderApk); in setUp()
136 FileUtil.deleteFile(mContentProviderApk); in setUp()
150 FileUtil.deleteFile(mContentProviderApk); in setUp()
156 FileUtil.deleteFile(mContentProviderApk); in tearDown()
168 public boolean deleteFile(String deviceFilePath) throws DeviceNotAvailableException { in deleteFile() method in ContentProviderHandler

12345678