Searched refs:relative_timeout (Results 1 – 8 of 8) sorted by relevance
/system/core/fs_mgr/ |
D | file_wait.cpp | 41 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() 218 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout) { in WaitForFile() argument 220 OneShotInotify inotify(path, IN_CREATE, relative_timeout); in WaitForFile() 223 return PollForFile(path, relative_timeout); in WaitForFile() [all …]
|
/system/libbase/ |
D | properties.cpp | 164 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/ |
D | file_wait.h | 29 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout); 34 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds relative_timeout);
|
/system/core/init/ |
D | uevent_listener.cpp | 184 const std::optional<std::chrono::milliseconds> relative_timeout) const { in Poll() 198 if (relative_timeout) { in Poll() 201 if (time_elapsed > *relative_timeout) return; in Poll() 203 auto remaining_timeout = *relative_timeout - time_elapsed; in Poll()
|
D | uevent_listener.h | 56 const std::optional<std::chrono::milliseconds> relative_timeout = {}) const;
|
/system/libbase/include/android-base/ |
D | properties.h | 62 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/ |
D | util.cpp | 89 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()
|
D | util.h | 62 bool WaitForFile(const std::string& filename, const std::chrono::milliseconds relative_timeout,
|