Home
last modified time | relevance | path

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

12345

/aosp_15_r20/system/libbase/
H A 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()
/aosp_15_r20/system/core/fs_mgr/libfiemap/
H A Dmetadata.cpp110 if (exported->partitions.empty() && android::base::RemoveFileIfExists(metadata_file)) { in SaveMetadata()
125 if (!android::base::RemoveFileIfExists(metadata_file, &err)) { in RemoveAllMetadata()
H A Dsplit_fiemap_writer.cpp200 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles()
204 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
/aosp_15_r20/system/gsid/
H A 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()
H A Dlibgsi.cpp71 android::base::RemoveFileIfExists(kGsiBootedIndicatorFile); in CanBootIntoGsi()
/aosp_15_r20/bootable/deprecated-ota/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()
/aosp_15_r20/system/apex/apexd/
H A Dapexd.cpp102 using android::base::RemoveFileIfExists;
2476 RemoveFileIfExists(decompressed_apex_path); in ProcessCompressedApex()
2496 RemoveFileIfExists(ota_apex_path); in ProcessCompressedApex()
2521 RemoveFileIfExists(decompressed_apex_path); in ProcessCompressedApex()
2539 [&]() { RemoveFileIfExists(decompression_dest); }); in ProcessCompressedApex()
3126 RemoveFileIfExists(ota_apex); in ReserveSpaceForCompressedApex()
3133 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
3150 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
3159 RemoveFileIfExists(file_path); in ReserveSpaceForCompressedApex()
H A Dapex_file.cpp43 using android::base::RemoveFileIfExists;
441 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
H A Dapex_classpath.cpp61 android::base::RemoveFileIfExists(temp_output_path); in DeriveClassPath()
/aosp_15_r20/system/core/fastboot/
H A Dstorage.cpp56 if (!android::base::RemoveFileIfExists(devices_path_)) { in Clear()
/aosp_15_r20/prebuilts/module_sdk/art/7/common_os/include/system/libbase/include/android-base/
Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/module_sdk/art/1/common_os/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/module_sdk/art/13/common_os/include/system/libbase/include/android-base/
Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v34/arm/include/system/libbase/include/android-base/
Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v31/x86_64/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v32/x86/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/system/libbase/include/android-base/
H A Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v31/x86/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v30/x86/include/system/core/base/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v32/x86_64/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/module_sdk/art/13/include/system/libbase/include/android-base/
Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v32/arm64/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/module_sdk/art/3/common_os/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/module_sdk/art/current/host-exports/include/system/libbase/include/android-base/
Dfile.h110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
/aosp_15_r20/prebuilts/vndk/v33/arm64/include/system/libbase/include/android-base/
Dfile.h109 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);

12345