/system/core/init/ |
D | watchdogd.c | 35 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()
|
D | bootchart.c | 303 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()
|
D | init.c | 1112 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()
|
D | util.h | 38 int wait_for_file(const char *filename, int timeout);
|
D | README.BOOTCHART | 10 On the emulator, use the new -bootchart <timeout> option to boot with bootcharting 11 activated for <timeout> seconds.
|
D | util.c | 374 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()
|
D | readme.txt | 142 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/ |
D | IdletimerController.cpp | 190 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()
|
D | IdletimerController.h | 27 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/ |
D | readtty.c | 65 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()
|
D | alarm.c | 172 res = select(fd + 1, &rfds, NULL, NULL, &timeout); in alarm_main()
|
/system/core/libcutils/ |
D | socket_network_client.c | 44 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/ |
D | healthd.cpp | 280 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()
|
D | healthd_mode_charger.cpp | 502 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/ |
D | sync.c | 30 int sync_wait(int fd, int timeout) in sync_wait() argument 32 __s32 to = timeout; in sync_wait()
|
/system/core/debuggerd/ |
D | getevent.h | 22 int get_event(struct input_event* event, int timeout);
|
D | getevent.cpp | 195 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/ |
D | dhcpclient.c | 402 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/ |
D | usbhost.h | 207 unsigned int timeout); 216 unsigned int timeout);
|
/system/core/libsync/include/sync/ |
D | sync.h | 45 int sync_wait(int fd, int timeout);
|
/system/core/include/cutils/ |
D | sockets.h | 90 int timeout);
|
/system/core/libusbhost/ |
D | usbhost.c | 572 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/ |
D | Threads.cpp | 490 DWORD timeout = INFINITE; 495 timeout = reltime/1000000; 500 SignalObjectAndWait(hMutex, condState->sema, timeout, FALSE);
|
/system/core/fastboot/ |
D | usb_linux.c | 377 bulk.timeout = 0; in usb_write() 411 bulk.timeout = 0; in usb_read()
|
/system/core/libsync/tests/ |
D | sync_test.cpp | 171 int wait(int timeout = -1) { in wait() argument 172 return sync_wait(m_fd, timeout); in wait()
|