Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 58) sorted by relevance

123

/system/core/fs_mgr/libdm/
Dutility.cpp30 const std::chrono::milliseconds& timeout_ms) { in WaitForCondition() argument
41 if (time_elapsed > timeout_ms) return false; in WaitForCondition()
45 bool WaitForFile(const std::string& path, const std::chrono::milliseconds& timeout_ms) { in WaitForFile() argument
58 return WaitForCondition(condition, timeout_ms); in WaitForFile()
61 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds& timeout_ms) { in WaitForFileDeleted() argument
72 return WaitForCondition(condition, timeout_ms); in WaitForFileDeleted()
Dloop_control.cpp42 bool LoopControl::Attach(int file_fd, const std::chrono::milliseconds& timeout_ms, in Attach() argument
53 if (!WaitForFile(*loopdev, timeout_ms - time_elapsed)) { in Attach()
74 if (!WaitForCondition(condition, timeout_ms)) { in Attach()
136 LoopDevice::LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms, in LoopDevice() argument
142 Init(timeout_ms); in LoopDevice()
145 LoopDevice::LoopDevice(const std::string& path, const std::chrono::milliseconds& timeout_ms) in LoopDevice() argument
153 Init(timeout_ms); in LoopDevice()
162 void LoopDevice::Init(const std::chrono::milliseconds& timeout_ms) { in Init() argument
163 valid_ = control_.Attach(fd_.get(), timeout_ms, &device_); in Init()
Dutility.h25 bool WaitForFile(const std::string& path, const std::chrono::milliseconds& timeout_ms);
26 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds& timeout_ms);
28 const std::chrono::milliseconds& timeout_ms);
Ddm.cpp91 const std::chrono::milliseconds& timeout_ms) { in DeleteDeviceIfExists() argument
95 return DeleteDevice(name, timeout_ms); in DeleteDeviceIfExists()
103 const std::chrono::milliseconds& timeout_ms) { in DeleteDevice() argument
123 if (timeout_ms <= std::chrono::milliseconds::zero()) { in DeleteDevice()
129 if (!WaitForFileDeleted(unique_path, timeout_ms)) { in DeleteDevice()
174 const std::chrono::milliseconds& timeout_ms) { in CreateDevice() argument
190 if (timeout_ms <= std::chrono::milliseconds::zero()) { in CreateDevice()
203 if (!WaitForFile(unique_path, timeout_ms)) { in CreateDevice()
/system/core/fastboot/
Dsocket.cpp51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { in ReceiveAll() argument
55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); in ReceiveAll()
79 bool Socket::WaitForRecv(int timeout_ms) { in WaitForRecv() argument
84 if (timeout_ms <= 0) { in WaitForRecv()
98 timeout.tv_sec = timeout_ms / 1000; in WaitForRecv()
99 timeout.tv_usec = (timeout_ms % 1000) * 1000; in WaitForRecv()
118 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
153 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive() argument
154 if (!WaitForRecv(timeout_ms)) { in Receive()
176 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
[all …]
Dsocket.h85 virtual ssize_t Receive(void* data, size_t length, int timeout_ms) = 0;
88 virtual ssize_t ReceiveAll(void* data, size_t length, int timeout_ms);
111 bool WaitForRecv(int timeout_ms);
Dusb.h67 UsbTransport* usb_open(ifc_match_func callback, uint32_t timeout_ms = 0);
/system/core/fs_mgr/libdm/include/libdm/
Dloop_control.h40 bool Attach(int file_fd, const std::chrono::milliseconds& timeout_ms,
67 LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms,
71 LoopDevice(const std::string& path, const std::chrono::milliseconds& timeout_ms);
83 void Init(const std::chrono::milliseconds& timeout_ms);
Ddm.h95 bool DeleteDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms);
96 bool DeleteDeviceIfExists(const std::string& name, const std::chrono::milliseconds& timeout_ms);
142 const std::chrono::milliseconds& timeout_ms);
/system/core/fs_mgr/libfiemap/
Dpassthrough.cpp23 const std::chrono::milliseconds& timeout_ms, in Open() argument
25 (void)timeout_ms; in Open()
Dimage_manager.cpp299 const std::chrono::milliseconds& timeout_ms, std::string* path) { in MapWithDmLinear() argument
314 .timeout_ms = timeout_ms, in MapWithDmLinear()
334 const std::chrono::milliseconds& timeout_ms, std::string* path) { in CreateLoopDevice() argument
341 if (!control.Attach(file_fd, timeout_ms, path)) { in CreateLoopDevice()
373 const std::chrono::milliseconds& timeout_ms, in MapWithLoopDeviceList() argument
422 if (!dm.CreateDevice(name, table, path, timeout_ms)) { in MapWithLoopDeviceList()
459 const std::chrono::milliseconds& timeout_ms, in MapWithLoopDevice() argument
480 if (!CreateLoopDevice(control, file, timeout_ms - elapsed, &loop_device)) { in MapWithLoopDevice()
500 if (!MapWithLoopDeviceList(loop_devices, name, timeout_ms, path)) { in MapWithLoopDevice()
518 const std::chrono::milliseconds& timeout_ms, std::string* path) { in MapImageDevice() argument
[all …]
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h50 const std::chrono::milliseconds& timeout_ms,
81 const std::chrono::milliseconds& timeout_ms, std::string* path) = 0;
153 bool MapImageDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms,
182 bool MapWithLoopDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms,
185 const std::chrono::milliseconds& timeout_ms, std::string* path);
187 const std::chrono::milliseconds& timeout_ms, std::string* path);
207 const std::chrono::milliseconds& timeout_ms,
/system/core/init/
Depoll.cpp75 int timeout_ms = -1; in Wait() local
77 timeout_ms = timeout->count(); in Wait()
81 auto num_events = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd_, ev, max_events, timeout_ms)); in Wait()
Dproperty_service.cpp259 bool RecvUint32(uint32_t* value, uint32_t* timeout_ms) { in RecvUint32() argument
260 return RecvFully(value, sizeof(*value), timeout_ms); in RecvUint32()
263 bool RecvChars(char* chars, size_t size, uint32_t* timeout_ms) { in RecvChars() argument
264 return RecvFully(chars, size, timeout_ms); in RecvChars()
267 bool RecvString(std::string* value, uint32_t* timeout_ms) { in RecvString() argument
269 if (!RecvUint32(&len, timeout_ms)) { in RecvString()
286 if (!RecvChars(&chars[0], len, timeout_ms)) { in RecvString()
317 bool PollIn(uint32_t* timeout_ms) { in PollIn() argument
322 while (*timeout_ms > 0) { in PollIn()
324 int nr = poll(ufds, 1, *timeout_ms); in PollIn()
[all …]
/system/core/debuggerd/client/
Ddebuggerd_client.cpp114 bool debuggerd_trigger_dump(pid_t tid, DebuggerdDumpType dump_type, unsigned int timeout_ms, in debuggerd_trigger_dump() argument
130 const auto end = std::chrono::steady_clock::now() + std::chrono::milliseconds(timeout_ms); in debuggerd_trigger_dump()
132 auto set_timeout = [timeout_ms, &time_left](int sockfd) { in debuggerd_trigger_dump()
133 if (timeout_ms <= 0) { in debuggerd_trigger_dump()
258 if (timeout_ms <= 0) { in debuggerd_trigger_dump()
318 int timeout_ms = timeout_secs > 0 ? timeout_secs * 1000 : 0; in dump_backtrace_to_file_timeout() local
319 int ret = debuggerd_trigger_dump(tid, dump_type, timeout_ms, std::move(copy)) ? 0 : -1; in dump_backtrace_to_file_timeout()
/system/core/libsuspend/
Dautosuspend.c91 int autosuspend_force_suspend(int timeout_ms) { in autosuspend_force_suspend() argument
101 return autosuspend_ops->force_suspend(timeout_ms); in autosuspend_force_suspend()
Dautosuspend_ops.h23 int (*force_suspend)(int timeout_ms);
/system/bt/audio_hal_interface/
Dclient_interface.cc766 int timeout_ms = kDefaultDataReadTimeoutMs; in ReadAudioData() local
781 } else if (timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData()
784 timeout_ms -= kDefaultDataReadPollIntervalMs; in ReadAudioData()
788 << " no data " << (kDefaultDataReadTimeoutMs - timeout_ms) in ReadAudioData()
794 if (timeout_ms < in ReadAudioData()
796 timeout_ms >= kDefaultDataReadPollIntervalMs) { in ReadAudioData()
798 << " read " << (kDefaultDataReadTimeoutMs - timeout_ms) << " ms"; in ReadAudioData()
843 int timeout_ms = kDefaultDataWriteTimeoutMs; in WriteAudioData() local
858 } else if (timeout_ms >= kDefaultDataWritePollIntervalMs) { in WriteAudioData()
861 timeout_ms -= kDefaultDataWritePollIntervalMs; in WriteAudioData()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h233 const std::string& super_device, const std::chrono::milliseconds& timeout_ms = {}) = 0;
238 virtual bool MapAllSnapshots(const std::chrono::milliseconds& timeout_ms = {}) = 0;
364 const std::chrono::milliseconds& timeout_ms = {}) override;
373 bool MapAllSnapshots(const std::chrono::milliseconds& timeout_ms = {}) override;
486 const std::string& cow_device, const std::chrono::milliseconds& timeout_ms,
491 const std::string& base_device, const std::chrono::milliseconds& timeout_ms,
496 const std::chrono::milliseconds& timeout_ms, std::string* path);
500 const std::chrono::milliseconds& timeout_ms);
626 const std::chrono::milliseconds& timeout_ms);
751 bool WaitForDevice(const std::string& device, std::chrono::milliseconds timeout_ms);
[all …]
Dsnapshot_stub.h49 const std::chrono::milliseconds& timeout_ms = {}) override;
58 bool MapAllSnapshots(const std::chrono::milliseconds& timeout_ms) override;
Dmock_snapshot.h51 (const std::string& super_device, const std::chrono::milliseconds& timeout_ms),
53 MOCK_METHOD(bool, MapAllSnapshots, (const std::chrono::milliseconds& timeout_ms), (override));
/system/core/libsuspend/include/suspend/
Dautosuspend.h56 int autosuspend_force_suspend(int timeout_ms);
/system/core/trusty/metrics/
Dmetrics.cpp54 Result<void> TrustyMetrics::WaitForEvent(int timeout_ms) { in WaitForEvent() argument
64 int rc = poll(&pfd, 1, timeout_ms); in WaitForEvent()
/system/core/debuggerd/include/debuggerd/
Dclient.h29 bool debuggerd_trigger_dump(pid_t pid, enum DebuggerdDumpType dump_type, unsigned int timeout_ms,
/system/bt/gd/os/linux_generic/
Dreactor.cc90 int timeout_ms = -1; in Run() local
99 RUN_NO_INTR(count = epoll_wait(epoll_fd_, events, kEpollMaxEvents, timeout_ms)); in Run()
102 timeout_ms = -1; in Run()
120 timeout_ms = 30; in Run()

123