Home
last modified time | relevance | path

Searched refs:before_cancel (Results 1 – 5 of 5) sorted by relevance

/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz.cpp95 std::function<bool()> before_cancel; in SNAPSHOT_FUZZ_FUNCTION() local
97 before_cancel = [&]() { return args.fail_before_cancel(); }; in SNAPSHOT_FUZZ_FUNCTION()
99 return snapshot->ProcessUpdateState({}, before_cancel); in SNAPSHOT_FUZZ_FUNCTION()
Dsnapshot.cpp896 const std::function<bool()>& before_cancel) { in ProcessUpdateState() argument
898 auto result = CheckMergeState(before_cancel); in ProcessUpdateState()
920 auto SnapshotManager::CheckMergeState(const std::function<bool()>& before_cancel) -> MergeResult { in CheckMergeState() argument
926 auto result = CheckMergeState(lock.get(), before_cancel); in CheckMergeState()
934 if (!device_->IsRecovery() && !RemoveAllUpdateState(lock.get(), before_cancel)) { in CheckMergeState()
941 auto SnapshotManager::CheckMergeState(LockedFile* lock, const std::function<bool()>& before_cancel) in CheckMergeState() argument
963 if (HandleCancelledUpdate(lock, before_cancel)) { in CheckMergeState()
1421 const std::function<bool()>& before_cancel) { in HandleCancelledUpdate() argument
1430 return RemoveAllUpdateState(lock, before_cancel); in HandleCancelledUpdate()
1452 return RemoveAllUpdateState(lock, before_cancel); in HandleCancelledUpdate()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot_stub.h35 const std::function<bool()>& before_cancel = {}) override;
Dmock_snapshot.h34 (const std::function<bool()>& callback, const std::function<bool()>& before_cancel),
Dsnapshot.h174 const std::function<bool()>& before_cancel = {}) = 0;
351 const std::function<bool()>& before_cancel = {}) override;
524 bool HandleCancelledUpdate(LockedFile* lock, const std::function<bool()>& before_cancel);
606 MergeResult CheckMergeState(const std::function<bool()>& before_cancel);
607 MergeResult CheckMergeState(LockedFile* lock, const std::function<bool()>& before_cancel);