Searched refs:timeout (Results 1 - 25 of 27) sorted by relevance

12

/system/core/debuggerd/
H A Dgetevent.h22 int get_event(struct input_event* event, int timeout);
H A Dgetevent.cpp195 int get_event(struct input_event* event, int timeout) { argument
201 pollres = poll(ufds, nfds, timeout);
/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 Dutil.h38 int wait_for_file(const char *filename, int timeout);
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 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);
H A Dutil.c374 int wait_for_file(const char *filename, int timeout) argument
377 time_t timeout_time = gettime() + timeout;
/system/netd/server/
H A DIdletimerController.h27 int addInterfaceIdletimer(const char *iface, uint32_t timeout,
29 int removeInterfaceIdletimer(const char *iface, uint32_t timeout,
40 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
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/libsync/include/sync/
H A Dsync.h44 /* timeout in msecs */
45 int sync_wait(int fd, int 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/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 */
H A Dalarm.c22 // struct timeval timeout = { 0, 0 };
50 //timeout.tv_sec = strtol(optarg, NULL, 0);
172 res = select(fd + 1, &rfds, NULL, NULL, &timeout);
183 fprintf(stderr, "timeout waiting for alarm\n");
/system/core/libsync/
H A Dsync.c30 int sync_wait(int fd, int timeout) argument
32 __s32 to = 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/include/usbhost/
H A Dusbhost.h207 unsigned int timeout);
216 unsigned int timeout);
/system/core/include/cutils/
H A Dsockets.h90 int 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/fastboot/
H A Dusb_linux.c377 bulk.timeout = 0;
411 bulk.timeout = 0;
472 * Returns 0 for success, -1 for timeout.
/system/core/libutils/
H A DThreads.cpp490 DWORD timeout = INFINITE;
495 timeout = reltime/1000000;
500 SignalObjectAndWait(hMutex, condState->sema, timeout, FALSE);
/system/core/adb/
H A Dusb_linux.c488 D("[ timeout ]\n");
633 ctrl.timeout = 1000;
649 ctrl.timeout = 1000;
/system/core/fs_mgr/
H A Dfs_mgr.c80 static int wait_for_file(const char *filename, int timeout) argument
83 time_t timeout_time = gettime() + timeout;
/system/core/libsync/tests/
H A Dsync_test.cpp171 int wait(int timeout = -1) {
172 return sync_wait(m_fd, timeout);
252 // Wait on fence until timeout.
259 // Wait on fence until timeout.
285 // Poll the fence, and wait till timeout.

Completed in 2034 milliseconds

12