/system/core/libcutils/ |
H A D | sockets_windows.cpp | 57 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms) { argument 59 reinterpret_cast<char*>(&timeout_ms), sizeof(timeout_ms));
|
H A D | sockets_unix.cpp | 70 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms) { argument 72 tv.tv_sec = timeout_ms / 1000; 73 tv.tv_usec = (timeout_ms % 1000) * 1000;
|
/system/core/debuggerd/include/debuggerd/ |
H A D | client.h | 29 bool debuggerd_trigger_dump(pid_t pid, enum DebuggerdDumpType dump_type, unsigned int timeout_ms,
|
/system/core/fastboot/ |
H A D | socket.cpp | 51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { argument 55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); 77 bool Socket::WaitForRecv(int timeout_ms) { argument 80 // In our usage |timeout_ms| <= 0 means block forever, so just return true immediately and let 82 if (timeout_ms <= 0) { 86 // select() doesn't always check this case and will block for |timeout_ms| if we let it. 96 timeout.tv_sec = timeout_ms / 1000; 97 timeout.tv_usec = (timeout_ms % 1000) * 1000; 116 ssize_t Receive(void* data, size_t length, int timeout_ms) override; 151 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { argument 230 Receive(void* data, size_t length, int timeout_ms) argument [all...] |
H A D | socket.h | 83 // Waits up to |timeout_ms| to receive up to |length| bytes of data. |timout_ms| of 0 will 86 virtual ssize_t Receive(void* data, size_t length, int timeout_ms) = 0; 89 virtual ssize_t ReceiveAll(void* data, size_t length, int timeout_ms); 109 // Blocks up to |timeout_ms| until a read is possible on |sock_|, and sets |receive_timed_out_| 111 // a subsequent recv() on |sock_| will complete without blocking or if |timeout_ms| <= 0. 112 bool WaitForRecv(int timeout_ms);
|
H A D | socket_mock.h | 61 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
|
/system/core/init/ |
H A D | property_service.cpp | 299 bool RecvUint32(uint32_t* value, uint32_t* timeout_ms) { argument 300 return RecvFully(value, sizeof(*value), timeout_ms); 303 bool RecvChars(char* chars, size_t size, uint32_t* timeout_ms) { argument 304 return RecvFully(chars, size, timeout_ms); 307 bool RecvString(std::string* value, uint32_t* timeout_ms) { argument 309 if (!RecvUint32(&len, timeout_ms)) { 326 if (!RecvChars(&chars[0], len, timeout_ms)) { 348 bool PollIn(uint32_t* timeout_ms) { argument 353 while (*timeout_ms > 0) { 355 int nr = poll(ufds, 1, *timeout_ms); 384 RecvFully(void* data_ptr, size_t size, uint32_t* timeout_ms) argument 475 uint32_t timeout_ms = kDefaultSocketTimeout; local [all...] |
H A D | uevent_listener.cpp | 192 int timeout_ms = -1; local 199 timeout_ms = remaining_timeout.count(); 202 int nr = poll(&ufd, 1, timeout_ms);
|
/system/core/debuggerd/client/ |
H A D | debuggerd_client.cpp | 65 bool debuggerd_trigger_dump(pid_t pid, DebuggerdDumpType dump_type, unsigned int timeout_ms, argument 69 const auto end = std::chrono::steady_clock::now() + std::chrono::milliseconds(timeout_ms); 71 auto set_timeout = [timeout_ms, &time_left](int sockfd) { 72 if (timeout_ms <= 0) { 185 if (timeout_ms <= 0) { 240 int timeout_ms = timeout_secs > 0 ? timeout_secs * 1000 : 0; local 241 return debuggerd_trigger_dump(tid, dump_type, timeout_ms, std::move(copy)) ? 0 : -1;
|
/system/core/adb/ |
H A D | fdevent.h | 75 void fdevent_set_timeout(fdevent *fde, int64_t timeout_ms);
|
/system/core/include/cutils/ |
H A D | sockets.h | 107 * Sets socket receive timeout using SO_RCVTIMEO. Setting |timeout_ms| to 0 112 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms);
|
/system/core/libcutils/include/cutils/ |
H A D | sockets.h | 107 * Sets socket receive timeout using SO_RCVTIMEO. Setting |timeout_ms| to 0 112 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms);
|
/system/core/libcutils/include_vndk/cutils/ |
H A D | sockets.h | 107 * Sets socket receive timeout using SO_RCVTIMEO. Setting |timeout_ms| to 0 112 int socket_set_receive_timeout(cutils_socket_t sock, int timeout_ms);
|
/system/tpm/trunks/ |
H A D | trunks_ftdi_spi.h | 72 int timeout_ms = 10000);
|
H A D | trunks_ftdi_spi.cc | 220 int timeout_ms) { 224 target_time = time(NULL) + timeout_ms / 1000; 218 WaitForStatus(uint32_t statusMask, uint32_t statusExpected, int timeout_ms) argument
|
/system/bt/stack/l2cap/ |
H A D | l2c_ucd.cc | 970 period_ms_t timeout_ms = p_ccb->fixed_chnl_idle_tout * 1000; 971 alarm_set_on_mloop(p_ccb->l2c_ccb_timer, timeout_ms, 981 period_ms_t timeout_ms = p_ccb->fixed_chnl_idle_tout * 1000; 982 alarm_set_on_mloop(p_ccb->l2c_ccb_timer, timeout_ms, 1018 period_ms_t timeout_ms = p_ccb->fixed_chnl_idle_tout * 1000; 1019 alarm_set_on_mloop(p_ccb->l2c_ccb_timer, timeout_ms, 1033 period_ms_t timeout_ms = p_ccb->fixed_chnl_idle_tout * 1000; 1034 alarm_set_on_mloop(p_ccb->l2c_ccb_timer, timeout_ms,
|
H A D | l2c_link.cc | 220 period_ms_t timeout_ms = L2CAP_LINK_STARTUP_TOUT * 1000; local 221 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, 559 period_ms_t timeout_ms; local 570 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; 584 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; 587 timeout_ms = BT_1SEC_TIMEOUT_MS; 591 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms,
|
H A D | l2c_utils.cc | 1549 period_ms_t timeout_ms = L2CAP_BONDING_TIMEOUT * 1000; local 1554 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; 1556 alarm_set_on_mloop(p_lcb->l2c_lcb_timer, timeout_ms, l2c_lcb_timer_timeout, 2605 period_ms_t timeout_ms = p_lcb->idle_timeout * 1000; local 2613 (p_lcb->p_fixed_ccbs[xx]->fixed_chnl_idle_tout * 1000 > timeout_ms)) { 2614 timeout_ms = p_lcb->p_fixed_ccbs[xx]->fixed_chnl_idle_tout * 1000; 2622 if (timeout_ms == 0) { 2630 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; 2641 timeout_ms = L2CAP_LINK_DISCONNECT_TIMEOUT_MS; 2644 timeout_ms [all...] |
/system/bt/bta/dm/ |
H A D | bta_dm_pm.cc | 272 period_ms_t timeout_ms, uint8_t srvc_id, 286 alarm_set_on_mloop(p_timer->timer[timer_idx], timeout_ms, 503 period_ms_t timeout_ms = 0; local 557 timeout_ms = p_act0->timeout; 567 timeout_ms = p_act1->timeout; 583 timeout_ms = 0; 588 if ((pm_req != BTA_DM_PM_EXECUTE) && (timeout_ms > 0)) { 596 if (remaining_ms < timeout_ms) { 606 bta_dm_pm_start_timer(&bta_dm_cb.pm_timer[i], timer_idx, timeout_ms, 613 APPL_TRACE_DEBUG("%s dm_pm_timer:%d, %d ms", __func__, i, timeout_ms); 271 bta_dm_pm_start_timer(tBTA_PM_TIMER* p_timer, uint8_t timer_idx, period_ms_t timeout_ms, uint8_t srvc_id, uint8_t pm_action) argument [all...] |
/system/bt/stack/btm/ |
H A D | btm_int.h | 55 uint8_t origin, period_ms_t timeout_ms,
|
H A D | btm_inq.cc | 2055 period_ms_t timeout_ms, tBTM_CMPL_CB* p_cb) { 2077 alarm_set_on_mloop(p_inq->remote_name_timer, timeout_ms, 2054 btm_initiate_rem_name(const RawAddress& remote_bda, uint8_t origin, period_ms_t timeout_ms, tBTM_CMPL_CB* p_cb) argument
|
/system/bt/stack/gatt/ |
H A D | gatt_utils.cc | 659 period_ms_t timeout_ms = GATT_WAIT_FOR_RSP_TIMEOUT_MS; local 663 timeout_ms = GATT_WAIT_FOR_DISC_RSP_TIMEOUT_MS; 671 alarm_set_on_mloop(p_clcb->gatt_rsp_timer_ent, timeout_ms, gatt_rsp_timeout,
|
/system/bt/btif/src/ |
H A D | btif_rc.cc | 216 static void sleep_ms(period_ms_t timeout_ms); 5321 * |timeout_ms| milliseconds. 5325 static void sleep_ms(period_ms_t timeout_ms) { 5327 delay.tv_sec = timeout_ms / 1000; 5328 delay.tv_nsec = 1000 * 1000 * (timeout_ms % 1000);
|