Home
last modified time | relevance | path

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

/system/libbase/
Dfile_test.cpp236 TEST(file, RemoveFileIfExists) { in TEST() argument
242 ASSERT_TRUE(android::base::RemoveFileIfExists(tf.path, &err)) << err; in TEST()
243 ASSERT_TRUE(android::base::RemoveFileIfExists(tf.path)); in TEST()
245 ASSERT_FALSE(android::base::RemoveFileIfExists(td.path)); in TEST()
246 ASSERT_FALSE(android::base::RemoveFileIfExists(td.path, &err)); in TEST()
255 ASSERT_TRUE(android::base::RemoveFileIfExists(std::string{tf.path} + "/abc", &err)); in TEST()
276 ASSERT_FALSE(android::base::RemoveFileIfExists(tf.path, &err)); in TEST()
280 ASSERT_TRUE(android::base::RemoveFileIfExists(tf.path, &err)); in TEST()
Dfile.cpp412 bool RemoveFileIfExists(const std::string& path, std::string* err) { in RemoveFileIfExists() function
/system/core/fastboot/
Dstorage.cpp56 if (!android::base::RemoveFileIfExists(devices_path_)) { in Clear()
/system/core/fs_mgr/libfiemap/
Dmetadata.cpp110 if (exported->partitions.empty() && android::base::RemoveFileIfExists(metadata_file)) { in SaveMetadata()
125 if (!android::base::RemoveFileIfExists(metadata_file, &err)) { in RemoveAllMetadata()
Dsplit_fiemap_writer.cpp200 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles()
204 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
Dimage_manager.cpp290 if (!android::base::RemoveFileIfExists(status_file)) { in DeleteBackingImage()
632 if (!android::base::RemoveFileIfExists(status_file, &message)) { in UnmapImageDevice()
/system/gsid/
Dlibgsi.cpp71 android::base::RemoveFileIfExists(kGsiBootedIndicatorFile); in CanBootIntoGsi()
Dgsi_service.cpp62 using android::base::RemoveFileIfExists;
156 if (!RemoveFileIfExists(GetCompleteIndication(dsu_slot), &message)) { in openInstall()
566 if (!android::base::RemoveFileIfExists(kDsuOneShotBootFile, &error)) { in SetBootMode()
990 if (!RemoveFileIfExists(file, &message)) { in RemoveGsiFiles()
999 if (!RemoveFileIfExists(DsuMetadataKeyDirFile(dsu_slot), &message)) { in RemoveGsiFiles()
/system/libbase/include/android-base/
Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/system/apex/apexd/
Dapex_classpath.cpp61 android::base::RemoveFileIfExists(temp_output_path); in DeriveClassPath()
Dapex_file.cpp43 using android::base::RemoveFileIfExists;
441 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
Dapexd.cpp104 using android::base::RemoveFileIfExists;
2490 RemoveFileIfExists(decompressed_apex_path); in ProcessCompressedApex()
2510 RemoveFileIfExists(ota_apex_path); in ProcessCompressedApex()
2535 RemoveFileIfExists(decompressed_apex_path); in ProcessCompressedApex()
2553 [&]() { RemoveFileIfExists(decompression_dest); }); in ProcessCompressedApex()
3159 RemoveFileIfExists(ota_apex); in ReserveSpaceForCompressedApex()
3166 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
3183 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
3192 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
Dapexd_test.cpp71 using android::base::RemoveFileIfExists;
3611 RemoveFileIfExists(old_capex); in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dsnapshot_stats.cpp65 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState()
Dsnapshot.cpp337 static bool RemoveFileIfExists(const std::string& path) { in RemoveFileIfExists() function
339 if (!android::base::RemoveFileIfExists(path, &message)) { in RemoveFileIfExists()
376 RemoveFileIfExists(file); in RemoveAllUpdateState()
411 if (!RemoveFileIfExists(GetRollbackIndicatorPath())) { in FinishedSnapshotWrites()
827 if (!android::base::RemoveFileIfExists(file_path, &error)) { in DeleteSnapshot()
835 if (!android::base::RemoveFileIfExists(tmp_path, &error)) { in DeleteSnapshot()
4428 return RemoveFileIfExists(path); in UpdateForwardMergeIndicator()
4810 android::base::RemoveFileIfExists(GetSnapshotBootIndicatorPath()); in PrepareDeviceToBootWithoutSnapshot()
4811 android::base::RemoveFileIfExists(GetBootSnapshotsWithoutSlotSwitchPath()); in PrepareDeviceToBootWithoutSnapshot()
Dsnapshot_test.cpp274 android::base::RemoveFileIfExists(status_file); in CleanupSnapshotArtifacts()
/system/core/fs_mgr/libsnapshot/snapuserd/
Dsnapuserd_client.cpp373 if (!android::base::RemoveFileIfExists(filePath, &error)) { in RemoveTransitionedDaemonIndicator()
/system/core/storaged/
Dstoraged.cpp233 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp66 if (!android::base::RemoveFileIfExists(path, &err)) { in ClearPreviousResults()
/system/extras/simpleperf/
Drecord_file_writer.cpp46 if (!android::base::RemoveFileIfExists(filename, &err)) { in CreateInstance()
/system/vold/
DCheckpoint.cpp239 if (!android::base::RemoveFileIfExists(kMetadataCPFile, &err_str)) in cp_commitChanges()