Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 29) sorted by relevance

12

/system/core/init/
Dwatchdogd.c35 int timeout; in watchdogd_main() local
48 timeout = interval + margin; in watchdogd_main()
56 ret = ioctl(fd, WDIOC_SETTIMEOUT, &timeout); in watchdogd_main()
58 ERROR("watchdogd: Failed to set timeout to %d: %s\n", timeout, strerror(errno)); in watchdogd_main()
59 ret = ioctl(fd, WDIOC_GETTIMEOUT, &timeout); in watchdogd_main()
63 if (timeout > margin) in watchdogd_main()
64 interval = timeout - margin; in watchdogd_main()
68 timeout, interval, margin); in watchdogd_main()
Dbootchart.c303 int timeout = 0, count = 0; in bootchart_init() local
308 timeout = atoi(buff); in bootchart_init()
323 timeout = atoi(s); in bootchart_init()
326 if (timeout == 0) in bootchart_init()
329 if (timeout > BOOTCHART_MAX_TIME_SEC) in bootchart_init()
330 timeout = BOOTCHART_MAX_TIME_SEC; in bootchart_init()
332 count = (timeout*1000 + BOOTCHART_POLLING_MS-1)/BOOTCHART_POLLING_MS; in bootchart_init()
Dinit.c1112 int nr, i, timeout = -1; in main() local
1140 timeout = (process_needs_restart - gettime()) * 1000; in main()
1141 if (timeout < 0) in main()
1142 timeout = 0; in main()
1146 timeout = 0; in main()
1150 if (timeout < 0 || timeout > BOOTCHART_POLLING_MS) in main()
1151 timeout = BOOTCHART_POLLING_MS; in main()
1159 nr = poll(ufds, fd_count, timeout); in main()
Dutil.h38 int wait_for_file(const char *filename, int timeout);
DREADME.BOOTCHART10 On the emulator, use the new -bootchart <timeout> option to boot with bootcharting
11 activated for <timeout> seconds.
Dutil.c374 int wait_for_file(const char *filename, int timeout) in wait_for_file() argument
377 time_t timeout_time = gettime() + timeout; in wait_for_file()
Dreadme.txt142 init "stuck". (??? maybe there should be a timeout?)
255 wait <path> [ <timeout> ]
257 or the timeout has been reached. If timeout is not specified it
/system/netd/server/
DIdletimerController.cpp190 uint32_t timeout, in modifyInterfaceIdletimer() argument
200 snprintf(timeout_str, sizeof(timeout_str), "%u", timeout); in modifyInterfaceIdletimer()
247 uint32_t timeout, in addInterfaceIdletimer() argument
249 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); in addInterfaceIdletimer()
253 uint32_t timeout, in removeInterfaceIdletimer() argument
255 return modifyInterfaceIdletimer(IptOpDelete, iface, timeout, classLabel); in removeInterfaceIdletimer()
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,
/system/core/toolbox/
Dreadtty.c65 int timeout = 0; in readtty_main() local
81 timeout = atoi(optarg); in readtty_main()
112 ttyarg.c_cc[VMIN] = (timeout > 0 || nonblock) ? 0 : 1; /* minimum of 0 chars */ in readtty_main()
113 ttyarg.c_cc[VTIME] = timeout; /* wait max 15/10 sec */ in readtty_main()
Dalarm.c172 res = select(fd + 1, &rfds, NULL, NULL, &timeout); in alarm_main()
/system/core/libcutils/
Dsocket_network_client.c44 int socket_network_client_timeout(const char *host, int port, int type, int timeout) in socket_network_client_timeout() argument
55 ts.tv_sec = timeout; in socket_network_client_timeout()
93 if ((ret = select(s + 1, &rset, &wset, NULL, (timeout) ? &ts : NULL)) < 0) { in socket_network_client_timeout()
/system/core/healthd/
Dhealthd.cpp280 int timeout = awake_poll_interval; in healthd_mainloop() local
284 if (timeout < 0 || (mode_timeout > 0 && mode_timeout < timeout)) in healthd_mainloop()
285 timeout = mode_timeout; in healthd_mainloop()
286 nevents = epoll_wait(epollfd, events, eventct, timeout); in healthd_mainloop()
Dhealthd_mode_charger.cpp502 int64_t timeout) in set_next_key_check() argument
504 int64_t then = key->timestamp + timeout; in set_next_key_check()
620 int64_t timeout; in healthd_mode_charger_preparetowait() local
636 timeout = max(0, next_event - now); in healthd_mode_charger_preparetowait()
638 timeout = -1; in healthd_mode_charger_preparetowait()
640 return (int)timeout; in healthd_mode_charger_preparetowait()
/system/core/libsync/
Dsync.c30 int sync_wait(int fd, int timeout) in sync_wait() argument
32 __s32 to = timeout; in sync_wait()
/system/core/debuggerd/
Dgetevent.h22 int get_event(struct input_event* event, int timeout);
Dgetevent.cpp195 int get_event(struct input_event* event, int timeout) { in get_event() argument
201 pollres = poll(ufds, nfds, timeout); in get_event()
/system/core/libnetutils/
Ddhcpclient.c402 unsigned int timeout; in dhcp_init_ifc() local
416 timeout = TIMEOUT_INITIAL; in dhcp_init_ifc()
425 r = poll(&pfd, 1, timeout); in dhcp_init_ifc()
431 if (timeout >= TIMEOUT_MAX) { in dhcp_init_ifc()
441 timeout = timeout * 2; in dhcp_init_ifc()
507 timeout = TIMEOUT_INITIAL; in dhcp_init_ifc()
/system/core/include/usbhost/
Dusbhost.h207 unsigned int timeout);
216 unsigned int timeout);
/system/core/libsync/include/sync/
Dsync.h45 int sync_wait(int fd, int timeout);
/system/core/include/cutils/
Dsockets.h90 int timeout);
/system/core/libusbhost/
Dusbhost.c572 unsigned int timeout) in usb_device_control_transfer() argument
587 ctrl.timeout = timeout; in usb_device_control_transfer()
595 unsigned int timeout) in usb_device_bulk_transfer() argument
607 ctrl.timeout = timeout; in usb_device_bulk_transfer()
/system/core/libutils/
DThreads.cpp490 DWORD timeout = INFINITE;
495 timeout = reltime/1000000;
500 SignalObjectAndWait(hMutex, condState->sema, timeout, FALSE);
/system/core/fastboot/
Dusb_linux.c377 bulk.timeout = 0; in usb_write()
411 bulk.timeout = 0; in usb_read()
/system/core/libsync/tests/
Dsync_test.cpp171 int wait(int timeout = -1) { in wait() argument
172 return sync_wait(m_fd, timeout); in wait()

12