Home
last modified time | relevance | path

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

12

/aosp12/system/libbase/
H A 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()
H A Dfile.cpp365 bool RemoveFileIfExists(const std::string& path, std::string* err) { in RemoveFileIfExists() function
/aosp12/system/core/fs_mgr/libfiemap/
H A Dmetadata.cpp109 if (exported->partitions.empty() && android::base::RemoveFileIfExists(metadata_file)) { in SaveMetadata()
122 if (!android::base::RemoveFileIfExists(metadata_file, &err)) { in RemoveAllMetadata()
H A Dsplit_fiemap_writer.cpp195 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles()
198 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
H A Dimage_manager.cpp290 if (!android::base::RemoveFileIfExists(status_file)) { in DeleteBackingImage()
632 if (!android::base::RemoveFileIfExists(status_file, &message)) { in UnmapImageDevice()
/aosp12/system/gsid/
H A Dlibgsi.cpp67 android::base::RemoveFileIfExists(kGsiBootedIndicatorFile); in CanBootIntoGsi()
H A Dgsi_service.cpp61 using android::base::RemoveFileIfExists;
146 if (!RemoveFileIfExists(GetCompleteIndication(dsu_slot), &message)) { in openInstall()
549 if (!android::base::RemoveFileIfExists(kDsuOneShotBootFile, &error)) { in SetBootMode()
978 if (!RemoveFileIfExists(file, &message)) { in RemoveGsiFiles()
987 if (!RemoveFileIfExists(DsuMetadataKeyDirFile(dsu_slot), &message)) { in RemoveGsiFiles()
/aosp12/system/libbase/include/android-base/
H A Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp12/bootable/recovery/tests/unit/
H A Dapplypatch_test.cpp73 ASSERT_TRUE(android::base::RemoveFileIfExists(cache_temp_source.path)); in TearDown()
195 ASSERT_TRUE(android::base::RemoveFileIfExists(file)); in TearDown()
H A Dupdater_test.cpp155 ASSERT_TRUE(android::base::RemoveFileIfExists(last_command_file_)); in TearDown()
160 ASSERT_TRUE(android::base::RemoveFileIfExists(updated_marker)); in TearDown()
/aosp12/system/apex/apexd/
H A Dapex_file.cpp43 using android::base::RemoveFileIfExists;
449 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
H A Dapexd.cpp96 using android::base::RemoveFileIfExists;
2628 RemoveFileIfExists(decompressed_apex_path); in ProcessCompressedApex()
2648 RemoveFileIfExists(ota_apex_path); in ProcessCompressedApex()
2673 RemoveFileIfExists(decompressed_apex_path); in ProcessCompressedApex()
2691 [&]() { RemoveFileIfExists(decompression_dest); }); in ProcessCompressedApex()
3269 RemoveFileIfExists(ota_apex); in ReserveSpaceForCompressedApex()
3276 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
3292 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
H A Dapexd_test.cpp51 using android::base::RemoveFileIfExists;
3230 RemoveFileIfExists(old_capex); in TEST_F()
/aosp12/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_stats.cpp62 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState()
H A Dsnapshot.cpp243 static bool RemoveFileIfExists(const std::string& path) { in RemoveFileIfExists() function
245 if (!android::base::RemoveFileIfExists(path, &message)) { in RemoveFileIfExists()
278 RemoveFileIfExists(file); in RemoveAllUpdateState()
313 if (!RemoveFileIfExists(GetRollbackIndicatorPath())) { in FinishedSnapshotWrites()
634 if (!android::base::RemoveFileIfExists(file_path, &error)) { in DeleteSnapshot()
3609 return RemoveFileIfExists(path); in UpdateForwardMergeIndicator()
/aosp12/bootable/recovery/updater/
H A Ddynamic_partitions.cpp116 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in UpdateDynamicPartitionsFn()
H A Dblockimg.cpp1731 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in PerformBlockImageUpdate()
/aosp12/system/iorap/src/db/
H A Dfile_models.cc172 if (!::android::base::RemoveFileIfExists(raw_trace.file_path, /*out*/&err_msg)) { in DeleteOlderFiles()
/aosp12/packages/services/Car/cpp/computepipe/runner/client_interface/
H A DDebuggerImpl.cpp237 if (!android::base::RemoveFileIfExists(profilingDataFilePath, &fileRemoveError)) { in deliverGraphDebugInfo()
/aosp12/system/core/storaged/
H A Dstoraged.cpp178 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
/aosp12/system/extras/boottime_tools/bootio/
H A Dbootio_collector.cpp60 if (!android::base::RemoveFileIfExists(path, &err)) { in ClearPreviousResults()
/aosp12/system/extras/simpleperf/
H A Drecord_file_writer.cpp46 if (!android::base::RemoveFileIfExists(filename, &err)) { in CreateInstance()
/aosp12/bootable/recovery/uncrypt/
H A Duncrypt.cpp246 if (!android::base::RemoveFileIfExists(map_file, &err)) { in ProductBlockMap()
/aosp12/system/vold/
H A DCheckpoint.cpp209 if (!android::base::RemoveFileIfExists(kMetadataCPFile, &err_str)) in cp_commitChanges()
/aosp12/frameworks/native/cmds/dumpstate/tests/
H A Ddumpstate_test.cpp132 android::base::RemoveFileIfExists(to); in CopyTextFileFixture()
1190 android::base::RemoveFileIfExists(path); in TEST_F()

12