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

12

/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.c133 int timeout = abs((int)(codes[s])) * ms; local
134 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.c962 int nr, i, timeout = -1; local
990 timeout = (process_needs_restart - gettime()) * 1000;
991 if (timeout < 0)
992 timeout = 0;
996 timeout = 0;
1000 if (timeout < 0 || timeout > BOOTCHART_POLLING_MS)
1001 timeout = BOOTCHART_POLLING_MS;
1009 nr = poll(ufds, fd_count, timeout);
H A Dutil.c360 int wait_for_file(const char *filename, int timeout) argument
363 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 " --timeout %u --label %s --send_nl_msg 1",
180 (op == IptOpAdd) ? 'A' : 'D', LOCAL_RAW_PREROUTING, iface, timeout, classLabel);
188 " --timeout %u --label %s --send_nl_msg 1",
189 (op == IptOpAdd) ? 'A' : 'D', LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabe
173 modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout, const char *classLabel) argument
196 addInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument
202 removeInterfaceIdletimer(const char *iface, uint32_t timeout, const char *classLabel) argument
[all...]
/system/core/include/cutils/
H A Dabort_socket.h69 /* Blocking socket I/O with timeout.
72 * timeout is in ms, use -1 to indicate no timeout. On timeout -1 is returned
78 socklen_t addrlen, int timeout);
81 socklen_t *addrlen, int timeout);
83 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout);
86 int timeout);
/system/core/include/sync/
H A Dsync.h44 /* timeout in msecs */
45 int sync_wait(int fd, int timeout);
/system/core/libcutils/
H A Dabort_socket.c60 socklen_t addrlen, int timeout) {
81 ret = poll(pfd, 2, timeout);
87 /* timeout */
120 socklen_t *addrlen, int timeout) {
133 ret = poll(pfd, 2, timeout);
139 /* timeout */
166 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout) { argument
178 ret = poll(pfd, 2, timeout);
184 /* timeout */
212 int timeout) {
59 asocket_connect(struct asocket *s, const struct sockaddr *addr, socklen_t addrlen, int timeout) argument
119 asocket_accept(struct asocket *s, struct sockaddr *addr, socklen_t *addrlen, int timeout) argument
211 asocket_write(struct asocket *s, const void *buf, size_t count, int timeout) argument
[all...]
/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/include/usbhost/
H A Dusbhost.h187 unsigned int timeout);
196 unsigned int timeout);
/system/core/libsync/
H A Dsync.c30 int sync_wait(int fd, int timeout) argument
32 __s32 to = 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.c507 unsigned int timeout)
522 ctrl.timeout = timeout;
530 unsigned int timeout)
542 ctrl.timeout = timeout;
500 usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void* buffer, int length, unsigned int timeout) argument
526 usb_device_bulk_transfer(struct usb_device *device, int endpoint, void* buffer, int length, unsigned int timeout) argument
/system/core/charger/
H A Dcharger.c800 int64_t timeout)
802 int64_t then = key->timestamp + timeout;
820 /* if the key is pressed but timeout hasn't expired,
869 int64_t timeout; local
885 timeout = max(0, next_event - now);
887 timeout = -1;
888 LOGV("[%lld] blocking (%lld)\n", now, timeout);
889 ret = ev_wait((int)timeout);
798 set_next_key_check(struct charger *charger, struct key_state *key, int64_t timeout) argument
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Dhci.h624 uint16_t timeout; member in struct:__anon41
836 uint16_t timeout; member in struct:__anon67
842 uint16_t timeout; member in struct:__anon68
850 uint16_t timeout; member in struct:__anon69
856 uint16_t timeout; member in struct:__anon70
991 uint16_t timeout; member in struct:__anon84
999 uint16_t timeout; member in struct:__anon85
1234 uint16_t timeout; member in struct:__anon119
1240 uint16_t timeout; member in struct:__anon120
1265 uint32_t timeout; member in struct:__anon122
1272 uint32_t timeout; member in struct:__anon123
2147 uint16_t timeout; member in struct:__anon223
[all...]
/system/bluetooth/tools/
H A Dpipetest.c55 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { argument
59 ret = poll(ufds, nfds, timeout);
H A Dasocket_test.c297 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { argument
304 ret = poll(ufds, nfds, timeout);
/system/core/fs_mgr/
H A Dfs_mgr.c97 static int wait_for_file(const char *filename, int timeout) argument
100 time_t timeout_time = gettime() + timeout;

Completed in 164 milliseconds

12