/system/core/debuggerd/ |
H A D | getevent.h | 22 int get_event(struct input_event* event, int timeout);
|
H A D | getevent.c | 191 int get_event(struct input_event* event, int timeout) argument 198 pollres = poll(ufds, nfds, timeout);
|
H A D | debuggerd.c | 135 int timeout = abs((int)(codes[s])) * ms; local 136 int res = get_event(&e, 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 | 1083 int nr, i, timeout = -1; local 1111 timeout = (process_needs_restart - gettime()) * 1000; 1112 if (timeout < 0) 1113 timeout = 0; 1117 timeout = 0; 1121 if (timeout < 0 || timeout > BOOTCHART_POLLING_MS) 1122 timeout = BOOTCHART_POLLING_MS; 1130 nr = poll(ufds, fd_count, timeout);
|
H A D | util.c | 366 int wait_for_file(const char *filename, int timeout) argument 369 time_t timeout_time = gettime() + timeout;
|
/system/netd/ |
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 | 44 * iptables -t raw -A idletimer_PREROUTING -i rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1 45 * iptables -t mangle -A idletimer_POSTROUTING -o rmnet0 -j IDLETIMER --timeout 5 --label test-chain --send_nl_msg 1 55 * ndc idletimer add <iface> <timeout> <class label> 56 * ndc idletimer remove <iface> <timeout> <class label> 62 * Remember that the timeout value has to be same at the time of the 174 uint32_t timeout, 179 snprintf(timeout_str, sizeof(timeout_str), "%u", timeout); 191 "--timeout", 213 "--timeout", 226 uint32_t timeout, 173 modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout, const char *classLabel) argument 225 addInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument 231 removeInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument [all...] |
/system/core/include/sync/ |
H A D | sync.h | 44 /* timeout in msecs */ 45 int sync_wait(int fd, int 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/include/usbhost/ |
H A D | usbhost.h | 200 unsigned int timeout); 209 unsigned int timeout);
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 400 unsigned int timeout; local 414 timeout = TIMEOUT_INITIAL; 423 r = poll(&pfd, 1, timeout); 429 if (timeout >= TIMEOUT_MAX) { 439 timeout = timeout * 2; 505 timeout = TIMEOUT_INITIAL;
|
/system/core/fastboot/ |
H A D | usb_linux.c | 151 ctrl.timeout = 50; 326 bulk.timeout = 0; 344 bulk.timeout = 0; 378 bulk.timeout = 0;
|
/system/core/libusbhost/ |
H A D | usbhost.c | 566 unsigned int timeout) 581 ctrl.timeout = timeout; 589 unsigned int timeout) 601 ctrl.timeout = timeout; 559 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument 585 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
|
/system/core/charger/ |
H A D | charger.c | 821 int64_t timeout) 823 int64_t then = key->timestamp + timeout; 841 /* if the key is pressed but timeout hasn't expired, 893 int64_t timeout; local 909 timeout = max(0, next_event - now); 911 timeout = -1; 912 LOGV("[%lld] blocking (%lld)\n", now, timeout); 913 ret = ev_wait((int)timeout); 819 set_next_key_check(struct charger *charger, struct key_state *key, int64_t timeout) argument
|
/system/core/libutils/ |
H A D | Threads.cpp | 484 DWORD timeout = INFINITE; 489 timeout = reltime/1000000; 494 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 | 129 static int wait_for_file(const char *filename, int timeout) argument 132 time_t timeout_time = gettime() + timeout;
|
/system/core/logcat/ |
H A D | logcat.cpp | 269 timeval timeout = { 0, 5000 /* 5ms */ }; // If we oversleep it's ok, i.e. ignore EINTR. local 274 result = select(max + 1, &readset, NULL, NULL, sleep ? NULL : &timeout); 313 // we did our short timeout trick and there's nothing new
|