Searched refs:RemoveFileIfExists (Results 1 – 21 of 21) sorted by relevance
| /system/libbase/ |
| D | file_test.cpp | 236 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()
|
| D | file.cpp | 412 bool RemoveFileIfExists(const std::string& path, std::string* err) { in RemoveFileIfExists() function
|
| /system/core/fastboot/ |
| D | storage.cpp | 56 if (!android::base::RemoveFileIfExists(devices_path_)) { in Clear()
|
| /system/core/fs_mgr/libfiemap/ |
| D | metadata.cpp | 110 if (exported->partitions.empty() && android::base::RemoveFileIfExists(metadata_file)) { in SaveMetadata() 125 if (!android::base::RemoveFileIfExists(metadata_file, &err)) { in RemoveAllMetadata()
|
| D | split_fiemap_writer.cpp | 200 ok &= android::base::RemoveFileIfExists(file, message); in RemoveSplitFiles() 204 ok &= android::base::RemoveFileIfExists(file_path, message); in RemoveSplitFiles()
|
| D | image_manager.cpp | 290 if (!android::base::RemoveFileIfExists(status_file)) { in DeleteBackingImage() 632 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 | 62 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/ |
| D | file.h | 110 bool RemoveFileIfExists(const std::string& path, std::string* err = nullptr);
|
| /system/apex/apexd/ |
| D | apex_classpath.cpp | 61 android::base::RemoveFileIfExists(temp_output_path); in DeriveClassPath()
|
| D | apex_file.cpp | 43 using android::base::RemoveFileIfExists; 441 [&dest_path] { RemoveFileIfExists(dest_path); }); in Decompress()
|
| D | apexd.cpp | 104 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()
|
| D | apexd_test.cpp | 71 using android::base::RemoveFileIfExists; 3611 RemoveFileIfExists(old_capex); in TEST_F()
|
| /system/core/fs_mgr/libsnapshot/ |
| D | snapshot_stats.cpp | 65 if (!android::base::RemoveFileIfExists(path_, &error)) { in DeleteState()
|
| D | snapshot.cpp | 337 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()
|
| D | snapshot_test.cpp | 274 android::base::RemoveFileIfExists(status_file); in CleanupSnapshotArtifacts()
|
| /system/core/fs_mgr/libsnapshot/snapuserd/ |
| D | snapuserd_client.cpp | 373 if (!android::base::RemoveFileIfExists(filePath, &error)) { in RemoveTransitionedDaemonIndicator()
|
| /system/core/storaged/ |
| D | storaged.cpp | 233 RemoveFileIfExists(proto_path(user_id), nullptr); in remove_user_ce()
|
| /system/extras/boottime_tools/bootio/ |
| D | bootio_collector.cpp | 66 if (!android::base::RemoveFileIfExists(path, &err)) { in ClearPreviousResults()
|
| /system/extras/simpleperf/ |
| D | record_file_writer.cpp | 46 if (!android::base::RemoveFileIfExists(filename, &err)) { in CreateInstance()
|
| /system/vold/ |
| D | Checkpoint.cpp | 239 if (!android::base::RemoveFileIfExists(kMetadataCPFile, &err_str)) in cp_commitChanges()
|