Home
last modified time | relevance | path

Searched refs:RemoveFileIfExists (Results 1 – 15 of 15) sorted by relevance

/system/libbase/
Dfile_test.cpp210 TEST(file, RemoveFileIfExists) { in TEST() argument
216 ASSERT_TRUE(android::base::RemoveFileIfExists(tf.path, &err)) << err; in TEST()
217 ASSERT_TRUE(android::base::RemoveFileIfExists(tf.path)); in TEST()
219 ASSERT_FALSE(android::base::RemoveFileIfExists(td.path)); in TEST()
220 ASSERT_FALSE(android::base::RemoveFileIfExists(td.path, &err)); in TEST()
229 ASSERT_TRUE(android::base::RemoveFileIfExists(std::string{tf.path} + "/abc", &err)); in TEST()
250 ASSERT_FALSE(android::base::RemoveFileIfExists(tf.path, &err)); in TEST()
254 ASSERT_TRUE(android::base::RemoveFileIfExists(tf.path, &err)); in TEST()
Dfile.cpp365 bool RemoveFileIfExists(const std::string& path, std::string* err) { in RemoveFileIfExists() function
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp109 if (exported->partitions.empty() && android::base::RemoveFileIfExists(metadata_file)) { in SaveMetadata()
122 if (!android::base::RemoveFileIfExists(metadata_file, &err)) { in RemoveAllMetadata()
Dsplit_fiemap_writer.cpp195 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles()
198 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
Dimage_manager.cpp275 if (!android::base::RemoveFileIfExists(status_file)) { in DeleteBackingImage()
611 if (!android::base::RemoveFileIfExists(status_file, &message)) { in UnmapImageDevice()
/system/gsid/
Dlibgsi.cpp71 android::base::RemoveFileIfExists(kGsiBootedIndicatorFile); in CanBootIntoGsi()
Dgsi_service.cpp55 using android::base::RemoveFileIfExists;
128 if (!RemoveFileIfExists(GetCompleteIndication(dsu_slot), &message)) { in openInstall()
484 if (!android::base::RemoveFileIfExists(kDsuOneShotBootFile, &error)) { in SetBootMode()
897 if (!RemoveFileIfExists(file, &message)) { in RemoveGsiFiles()
/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/system/core/fs_mgr/libsnapshot/
Dsnapshot_stats.cpp62 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState()
Dsnapshot.cpp209 static bool RemoveFileIfExists(const std::string& path) { in RemoveFileIfExists() function
211 if (!android::base::RemoveFileIfExists(path, &message)) { in RemoveFileIfExists()
243 RemoveFileIfExists(file); in RemoveAllUpdateState()
278 if (!RemoveFileIfExists(GetRollbackIndicatorPath())) { in FinishedSnapshotWrites()
550 if (!android::base::RemoveFileIfExists(file_path, &error)) { in DeleteSnapshot()
2752 return RemoveFileIfExists(path); in UpdateForwardMergeIndicator()
Dsnapshot_test.cpp139 android::base::RemoveFileIfExists(status_file); in CleanupTestArtifacts()
/system/core/storaged/
Dstoraged.cpp174 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp60 if (!android::base::RemoveFileIfExists(path, &err)) { in ClearPreviousResults()
/system/extras/simpleperf/
Drecord_file_writer.cpp43 if (!android::base::RemoveFileIfExists(filename, &err)) { in CreateInstance()
/system/vold/
DCheckpoint.cpp210 if (!android::base::RemoveFileIfExists(kMetadataCPFile, &err_str)) in cp_commitChanges()