Home
last modified time | relevance | path

Searched refs:relative_timeout (Results 1 – 8 of 8) sorted by relevance

/system/core/fs_mgr/
Dfile_wait.cpp41 bool PollForFile(const std::string& path, const std::chrono::milliseconds relative_timeout) { in PollForFile() argument
51 if (time_elapsed > relative_timeout) return false; in PollForFile()
55 bool PollForFileDeleted(const std::string& path, const std::chrono::milliseconds relative_timeout) { in PollForFileDeleted() argument
65 if (time_elapsed > relative_timeout) return false; in PollForFileDeleted()
73 const std::chrono::milliseconds relative_timeout);
94 const std::chrono::milliseconds relative_timeout) in OneShotInotify() argument
98 relative_timeout_(relative_timeout), in OneShotInotify()
215 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout) { in WaitForFile() argument
217 OneShotInotify inotify(path, IN_CREATE, relative_timeout); in WaitForFile()
220 return PollForFile(path, relative_timeout); in WaitForFile()
[all …]
/system/libbase/
Dproperties.cpp164 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, in UpdateTimeSpec() argument
168 if (time_elapsed >= relative_timeout) { in UpdateTimeSpec()
171 auto remaining_timeout = relative_timeout - time_elapsed; in UpdateTimeSpec()
181 const std::chrono::milliseconds& relative_timeout, in WaitForPropertyCreation() argument
190 UpdateTimeSpec(ts, relative_timeout, start_time); in WaitForPropertyCreation()
197 std::chrono::milliseconds relative_timeout) { in WaitForProperty() argument
199 const prop_info* pi = WaitForPropertyCreation(key, relative_timeout, start_time); in WaitForProperty()
212 UpdateTimeSpec(ts, relative_timeout, start_time); in WaitForProperty()
219 std::chrono::milliseconds relative_timeout) { in WaitForPropertyCreation() argument
221 return (WaitForPropertyCreation(key, relative_timeout, start_time) != nullptr); in WaitForPropertyCreation()
/system/core/fs_mgr/include/fs_mgr/
Dfile_wait.h26 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout);
31 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds relative_timeout);
/system/core/init/
Duevent_listener.cpp184 const std::optional<std::chrono::milliseconds> relative_timeout) const { in Poll()
197 if (relative_timeout) { in Poll()
200 if (time_elapsed > *relative_timeout) return; in Poll()
202 auto remaining_timeout = *relative_timeout - time_elapsed; in Poll()
Duevent_listener.h56 const std::optional<std::chrono::milliseconds> relative_timeout = {}) const;
/system/libbase/include/android-base/
Dproperties.h62 std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max());
69 bool WaitForPropertyCreation(const std::string& key, std::chrono::milliseconds relative_timeout =
/system/core/fs_mgr/libfs_avb/
Dutil.cpp89 bool WaitForFile(const std::string& filename, const std::chrono::milliseconds relative_timeout, in WaitForFile() argument
105 if (time_elapsed > relative_timeout) return false; in WaitForFile()
Dutil.h62 bool WaitForFile(const std::string& filename, const std::chrono::milliseconds relative_timeout,