Searched refs:RemoveFileIfExists (Results 1 – 15 of 15) sorted by relevance
/system/libbase/ |
D | file_test.cpp | 210 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()
|
D | file.cpp | 365 bool RemoveFileIfExists(const std::string& path, std::string* err) { in RemoveFileIfExists() function
|
/system/core/fs_mgr/libfiemap/ |
D | metadata.cpp | 109 if (exported->partitions.empty() && android::base::RemoveFileIfExists(metadata_file)) { in SaveMetadata() 122 if (!android::base::RemoveFileIfExists(metadata_file, &err)) { in RemoveAllMetadata()
|
D | split_fiemap_writer.cpp | 195 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles() 198 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
|
D | image_manager.cpp | 275 if (!android::base::RemoveFileIfExists(status_file)) { in DeleteBackingImage() 611 if (!android::base::RemoveFileIfExists(status_file, &message)) { in UnmapImageDevice()
|
/system/gsid/ |
D | libgsi.cpp | 71 android::base::RemoveFileIfExists(kGsiBootedIndicatorFile); in CanBootIntoGsi()
|
D | gsi_service.cpp | 55 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/ |
D | file.h | 109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_stats.cpp | 62 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState()
|
D | snapshot.cpp | 209 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()
|
D | snapshot_test.cpp | 139 android::base::RemoveFileIfExists(status_file); in CleanupTestArtifacts()
|
/system/core/storaged/ |
D | storaged.cpp | 174 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
|
/system/extras/boottime_tools/bootio/ |
D | bootio_collector.cpp | 60 if (!android::base::RemoveFileIfExists(path, &err)) { in ClearPreviousResults()
|
/system/extras/simpleperf/ |
D | record_file_writer.cpp | 43 if (!android::base::RemoveFileIfExists(filename, &err)) { in CreateInstance()
|
/system/vold/ |
D | Checkpoint.cpp | 210 if (!android::base::RemoveFileIfExists(kMetadataCPFile, &err_str)) in cp_commitChanges()
|