Searched defs:timeout (Results 1 - 15 of 15) sorted by relevance

/system/core/init/
H A Dwatchdogd.c35 int timeout; local
48 timeout = interval + margin;
56 ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
58 ERROR("watchdogd: Failed to set timeout to %d: %s\n", timeout, strerror(errno));
59 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
61 ERROR("watchdogd: Failed to get timeout: %s\n", strerror(errno));
63 if (timeout > margin)
64 interval = timeout - margin;
67 ERROR("watchdogd: Adjusted interval to timeout returne
[all...]
H A Dbootchart.c303 int timeout = 0, count = 0; local
308 timeout = atoi(buff);
311 /* when running with emulator, androidboot.bootchart=<timeout>
313 * timeout. this is useful when using -wipe-data since the /data
323 timeout = atoi(s);
326 if (timeout == 0)
329 if (timeout > BOOTCHART_MAX_TIME_SEC)
330 timeout = BOOTCHART_MAX_TIME_SEC;
332 count = (timeout*1000 + BOOTCHART_POLLING_MS-1)/BOOTCHART_POLLING_MS;
H A Dutil.c374 int wait_for_file(const char *filename, int timeout) argument
377 time_t timeout_time = gettime() + timeout;
H A Dinit.c1112 int nr, i, timeout = -1; local
1140 timeout = (process_needs_restart - gettime()) * 1000;
1141 if (timeout < 0)
1142 timeout = 0;
1146 timeout = 0;
1150 if (timeout < 0 || timeout > BOOTCHART_POLLING_MS)
1151 timeout = BOOTCHART_POLLING_MS;
1159 nr = poll(ufds, fd_count, timeout);
/system/core/libcutils/
H A Dsocket_network_client.c42 * timeout in seconds return is a file descriptor or -1 on error
44 int socket_network_client_timeout(const char *host, int port, int type, int timeout) argument
55 ts.tv_sec = timeout;
93 if ((ret = select(s + 1, &rset, &wset, NULL, (timeout) ? &ts : NULL)) < 0) {
97 if (ret == 0) { // we had a timeout
/system/core/libsync/
H A Dsync.c30 int sync_wait(int fd, int timeout) argument
32 __s32 to = timeout;
/system/core/toolbox/
H A Dreadtty.c65 int timeout = 0; local
81 timeout = atoi(optarg);
112 ttyarg.c_cc[VMIN] = (timeout > 0 || nonblock) ? 0 : 1; /* minimum of 0 chars */
113 ttyarg.c_cc[VTIME] = timeout; /* wait max 15/10 sec */
/system/netd/server/
H A DIdletimerController.cpp42 * iptables -t raw -A idletimer_PREROUTING -i rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1
43 * iptables -t mangle -A idletimer_POSTROUTING -o rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1
53 * ndc idletimer add <iface> <timeout> <class label>
54 * ndc idletimer remove <iface> <timeout> <class label>
60 * Remember that the timeout value has to be same at the time of the
190 uint32_t timeout,
200 snprintf(timeout_str, sizeof(timeout_str), "%u", timeout);
212 "--timeout",
234 "--timeout",
247 uint32_t timeout,
189 modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout, const char *classLabel) argument
246 addInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument
252 removeInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument
[all...]
/system/core/debuggerd/
H A Dgetevent.cpp195 int get_event(struct input_event* event, int timeout) { argument
201 pollres = poll(ufds, nfds, timeout);
/system/core/healthd/
H A Dhealthd.cpp70 // -1 for no epoll timeout
280 int timeout = awake_poll_interval; local
284 if (timeout < 0 || (mode_timeout > 0 && mode_timeout < timeout))
285 timeout = mode_timeout;
286 nevents = epoll_wait(epollfd, events, eventct, timeout);
H A Dhealthd_mode_charger.cpp502 int64_t timeout)
504 int64_t then = key->timestamp + timeout;
530 /* if the key is pressed but timeout hasn't expired,
620 int64_t timeout; local
636 timeout = max(0, next_event - now);
638 timeout = -1;
640 return (int)timeout;
500 set_next_key_check(struct charger *charger, struct key_state *key, int64_t timeout) argument
/system/core/fs_mgr/
H A Dfs_mgr.c77 static int wait_for_file(const char *filename, int timeout) argument
80 time_t timeout_time = gettime() + timeout;
/system/core/libnetutils/
H A Ddhcpclient.c402 unsigned int timeout; local
416 timeout = TIMEOUT_INITIAL;
425 r = poll(&pfd, 1, timeout);
431 if (timeout >= TIMEOUT_MAX) {
441 timeout = timeout * 2;
507 timeout = TIMEOUT_INITIAL;
/system/core/libusbhost/
H A Dusbhost.c572 unsigned int timeout)
587 ctrl.timeout = timeout;
595 unsigned int timeout)
607 ctrl.timeout = timeout;
565 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
591 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
/system/core/adb/
H A Dsysdeps_win32.c705 int socket_network_client_timeout(const char *host, int port, int type, int timeout) argument

Completed in 480 milliseconds