/system/core/debuggerd/ |
H A D | getevent.h | 22 int get_event(struct input_event* event, int timeout);
|
H A D | getevent.cpp | 195 int get_event(struct input_event* event, int timeout) { argument 201 pollres = poll(ufds, nfds, timeout);
|
/system/core/init/ |
H A D | watchdogd.c | 35 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 D | util.h | 38 int wait_for_file(const char *filename, int timeout);
|
H A D | bootchart.c | 303 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 D | init.c | 1112 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 D | util.c | 374 int wait_for_file(const char *filename, int timeout) argument 377 time_t timeout_time = gettime() + timeout;
|
/system/netd/server/ |
H A 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,
|
H A D | IdletimerController.cpp | 42 * 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 D | sync.h | 44 /* timeout in msecs */ 45 int sync_wait(int fd, int timeout);
|
/system/core/libcutils/ |
H A D | socket_network_client.c | 42 * 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 D | readtty.c | 65 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 D | alarm.c | 22 // 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 D | sync.c | 30 int sync_wait(int fd, int timeout) argument 32 __s32 to = timeout;
|
/system/core/healthd/ |
H A D | healthd.cpp | 70 // -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 D | healthd_mode_charger.cpp | 502 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 D | usbhost.h | 207 unsigned int timeout); 216 unsigned int timeout);
|
/system/core/include/cutils/ |
H A D | sockets.h | 90 int timeout);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 402 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 D | usbhost.c | 572 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 D | usb_linux.c | 377 bulk.timeout = 0; 411 bulk.timeout = 0; 472 * Returns 0 for success, -1 for timeout.
|
/system/core/libutils/ |
H A D | Threads.cpp | 490 DWORD timeout = INFINITE; 495 timeout = reltime/1000000; 500 SignalObjectAndWait(hMutex, condState->sema, timeout, FALSE);
|
/system/core/adb/ |
H A D | usb_linux.c | 488 D("[ timeout ]\n"); 633 ctrl.timeout = 1000; 649 ctrl.timeout = 1000;
|
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 80 static int wait_for_file(const char *filename, int timeout) argument 83 time_t timeout_time = gettime() + timeout;
|
/system/core/libsync/tests/ |
H A D | sync_test.cpp | 171 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.
|