Searched refs:deleteIfExists (Results 1 – 8 of 8) sorted by relevance
86 Files.deleteIfExists(file); in cleanAllOfCrates()93 Files.deleteIfExists(dir); in cleanAllOfCrates()97 Files.deleteIfExists(mCratesPath); in cleanAllOfCrates()343 Files.deleteIfExists(mContext.getCrateDir(mCrateId + "_" + 1).toPath()); in queryCratesForUid_removeCratedDir_shouldDecreaseTheNumberOfCrates()360 Files.deleteIfExists(mContext.getCrateDir(mCrateId + "_" + 1).toPath()); in queryCratesForPackage_removeCratedDir_shouldDecreaseTheNumberOfCrates()377 Files.deleteIfExists(mContext.getCrateDir(mCrateId + "_" + 1).toPath()); in queryCratesForUser_removeCratedDir_shouldDecreaseTheNumberOfCrates()
62 Files.deleteIfExists(file); in cleanAllOfCrates()69 Files.deleteIfExists(dir); in cleanAllOfCrates()74 Files.deleteIfExists(mCratesRoot); in cleanAllOfCrates()
59 Files.deleteIfExists(mTestStateFile.toPath()); in cleanUp()
95 Files.deleteIfExists(mContext.getFilesDir().toPath().resolve(TEST_FILE_NAME)); in tearDown()
205 Files.deleteIfExists(Path.of(fileName)); in checkLocationInFile()
1231 private void deleteIfExists(File file) throws IOException { in deleteIfExists() method in WebViewTest1270 deleteIfExists(test); in testSaveWebArchive()1274 deleteIfExists(index); in testSaveWebArchive()1278 deleteIfExists(index1); in testSaveWebArchive()1311 deleteIfExists(test); in testSaveWebArchive()1312 deleteIfExists(index); in testSaveWebArchive()1313 deleteIfExists(index1); in testSaveWebArchive()
94 Files.deleteIfExists(getApkInApexVersionFile().toPath()); in cleanUp()
221 Files.deleteIfExists(mTestStateFile.toPath()); in cleanUp()