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.h244 WaitResult waitForReads(const Control& control, std::chrono::milliseconds timeout, in waitForReads()
255 return WaitResult::HaveData; in waitForReads()
257 return WaitResult::Timeout; in waitForReads()
259 return WaitResult(err); in waitForReads()
262 inline WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout, in waitForPendingReads()
268 inline WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout, in waitForPendingReads()
274 inline WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout, in waitForPageReads()
282 inline WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout, in waitForPageReads()
407 inline WaitResult waitForLoadingComplete(const Control& control, in waitForLoadingComplete()
412 return WaitResult::HaveData; in waitForLoadingComplete()
[all …]
Dincfs.h241 enum class WaitResult { HaveData, Timeout, Error }; enum
243 WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout,
245 WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout,
247 WaitResult waitForPendingReads(const Control& control, std::chrono::milliseconds timeout,
249 WaitResult waitForPageReads(const Control& control, std::chrono::milliseconds timeout,
273 WaitResult waitForLoadingComplete(const Control& control, std::chrono::milliseconds timeout);
/system/incremental_delivery/libdataloader/
DDataLoaderConnector.cpp427 android::incfs::WaitResult::HaveData || in onPendingReadsLooperEvent()
453 android::incfs::WaitResult::HaveData || in onLogLooperEvent()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp135 ASSERT_EQ(WaitResult::HaveData, res) << (int)res; in testWriteBlockAndPageRead()
166 ASSERT_EQ(WaitResult::HaveData, in testWaitForPendingReads()
1332 ASSERT_EQ(WaitResult::HaveData, in TEST_F()