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

/system/core/debuggerd/
H A Dgetevent.h22 int get_event(struct input_event* event, int timeout);
H A Dgetevent.c191 int get_event(struct input_event* event, int timeout) argument
198 pollres = poll(ufds, nfds, timeout);
H A Ddebuggerd.c135 int timeout = abs((int)(codes[s])) * ms; local
136 int res = get_event(&e, 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.c1083 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 Dutil.c366 int wait_for_file(const char *filename, int timeout) argument
369 time_t timeout_time = gettime() + timeout;
/system/netd/
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.cpp44 * 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 Dsync.h44 /* timeout in msecs */
45 int sync_wait(int fd, int 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/include/usbhost/
H A Dusbhost.h200 unsigned int timeout);
209 unsigned int timeout);
/system/core/libnetutils/
H A Ddhcpclient.c400 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 Dusb_linux.c151 ctrl.timeout = 50;
326 bulk.timeout = 0;
344 bulk.timeout = 0;
378 bulk.timeout = 0;
/system/core/libusbhost/
H A Dusbhost.c566 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 Dcharger.c821 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 DThreads.cpp484 DWORD timeout = INFINITE;
489 timeout = reltime/1000000;
494 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.c129 static int wait_for_file(const char *filename, int timeout) argument
132 time_t timeout_time = gettime() + timeout;
/system/core/logcat/
H A Dlogcat.cpp269 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

Completed in 321 milliseconds