/aosp12/system/libbase/ |
H A 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()
|
H A D | file.cpp | 365 bool RemoveFileIfExists(const std::string& path, std::string* err) { in RemoveFileIfExists() function
|
/aosp12/system/core/fs_mgr/libfiemap/ |
H A 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()
|
H A D | split_fiemap_writer.cpp | 195 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles() 198 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
|
H A D | image_manager.cpp | 290 if (!android::base::RemoveFileIfExists(status_file)) { in DeleteBackingImage() 632 if (!android::base::RemoveFileIfExists(status_file, &message)) { in UnmapImageDevice()
|
/aosp12/system/gsid/ |
H A D | libgsi.cpp | 67 android::base::RemoveFileIfExists(kGsiBootedIndicatorFile); in CanBootIntoGsi()
|
H A D | gsi_service.cpp | 61 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 D | file.h | 109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
|
/aosp12/bootable/recovery/tests/unit/ |
H A D | applypatch_test.cpp | 73 ASSERT_TRUE(android::base::RemoveFileIfExists(cache_temp_source.path)); in TearDown() 195 ASSERT_TRUE(android::base::RemoveFileIfExists(file)); in TearDown()
|
H A D | updater_test.cpp | 155 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 D | apex_file.cpp | 43 using android::base::RemoveFileIfExists; 449 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
|
H A D | apexd.cpp | 96 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 D | apexd_test.cpp | 51 using android::base::RemoveFileIfExists; 3230 RemoveFileIfExists(old_capex); in TEST_F()
|
/aosp12/system/core/fs_mgr/libsnapshot/ |
H A D | snapshot_stats.cpp | 62 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState()
|
H A D | snapshot.cpp | 243 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 D | dynamic_partitions.cpp | 116 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in UpdateDynamicPartitionsFn()
|
H A D | blockimg.cpp | 1731 if (!android::base::RemoveFileIfExists(updated_marker, &err)) { in PerformBlockImageUpdate()
|
/aosp12/system/iorap/src/db/ |
H A D | file_models.cc | 172 if (!::android::base::RemoveFileIfExists(raw_trace.file_path, /*out*/&err_msg)) { in DeleteOlderFiles()
|
/aosp12/packages/services/Car/cpp/computepipe/runner/client_interface/ |
H A D | DebuggerImpl.cpp | 237 if (!android::base::RemoveFileIfExists(profilingDataFilePath, &fileRemoveError)) { in deliverGraphDebugInfo()
|
/aosp12/system/core/storaged/ |
H A D | storaged.cpp | 178 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
|
/aosp12/system/extras/boottime_tools/bootio/ |
H A D | bootio_collector.cpp | 60 if (!android::base::RemoveFileIfExists(path, &err)) { in ClearPreviousResults()
|
/aosp12/system/extras/simpleperf/ |
H A D | record_file_writer.cpp | 46 if (!android::base::RemoveFileIfExists(filename, &err)) { in CreateInstance()
|
/aosp12/bootable/recovery/uncrypt/ |
H A D | uncrypt.cpp | 246 if (!android::base::RemoveFileIfExists(map_file, &err)) { in ProductBlockMap()
|
/aosp12/system/vold/ |
H A D | Checkpoint.cpp | 209 if (!android::base::RemoveFileIfExists(kMetadataCPFile, &err_str)) in cp_commitChanges()
|
/aosp12/frameworks/native/cmds/dumpstate/tests/ |
H A D | dumpstate_test.cpp | 132 android::base::RemoveFileIfExists(to); in CopyTextFileFixture() 1190 android::base::RemoveFileIfExists(path); in TEST_F()
|