Home
last modified time | relevance | path

Searched refs:WaitResult (Results 1 – 7 of 7) sorted by relevance

/system/core/fs_mgr/libdm/
Dutility.cpp29 bool WaitForCondition(const std::function<WaitResult()>& condition, in WaitForCondition()
34 if (result == WaitResult::Done) return true; in WaitForCondition()
35 if (result == WaitResult::Fail) return false; in WaitForCondition()
46 auto condition = [&]() -> WaitResult { in WaitForFile()
51 return WaitResult::Wait; in WaitForFile()
54 return WaitResult::Fail; in WaitForFile()
56 return WaitResult::Done; in WaitForFile()
62 auto condition = [&]() -> WaitResult { in WaitForFileDeleted()
64 return WaitResult::Wait; in WaitForFileDeleted()
68 return WaitResult::Fail; in WaitForFileDeleted()
[all …]
Dloop_control.cpp45 auto condition = [&]() -> WaitResult { in Attach()
48 return WaitResult::Fail; in Attach()
55 return WaitResult::Fail; in Attach()
62 return WaitResult::Fail; in Attach()
66 return WaitResult::Done; in Attach()
70 return WaitResult::Fail; in Attach()
72 return WaitResult::Wait; in Attach()
Dutility.h23 enum class WaitResult { Wait, Done, Fail }; enum
27 bool WaitForCondition(const std::function<WaitResult()>& condition,
/system/incremental_delivery/incfs/include/
Dincfs_inline.h228 inline WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout, in waitForPendingReads()
240 return WaitResult::HaveData; in waitForPendingReads()
242 return WaitResult::Timeout; in waitForPendingReads()
244 return WaitResult(err); in waitForPendingReads()
247 inline WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout, in waitForPageReads()
260 return WaitResult::HaveData; in waitForPageReads()
262 return WaitResult::Timeout; in waitForPageReads()
264 return WaitResult(err); in waitForPageReads()
Dincfs.h223 enum class WaitResult { HaveData, Timeout, Error }; enum
225 WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout,
227 WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout,
/system/incremental_delivery/libdataloader/
DDataLoaderConnector.cpp384 android::incfs::WaitResult::HaveData || in onPendingReadsLooperEvent()
398 android::incfs::WaitResult::HaveData || in onLogLooperEvent()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp411 ASSERT_EQ(WaitResult::HaveData, in TEST_F()
433 ASSERT_EQ(WaitResult::HaveData, in TEST_F()