/external/adhd/cras/src/tests/ |
util_unittest.cc | 271 struct timespec timeout; local 289 timeout.tv_sec = 0; 290 timeout.tv_nsec = -10000000; 291 EXPECT_EQ(-ETIMEDOUT, cras_poll(&poll_fd, 1, &timeout, NULL)); 292 timeout.tv_sec = -1; 293 timeout.tv_nsec = 10000000; 294 EXPECT_EQ(-ETIMEDOUT, cras_poll(&poll_fd, 1, &timeout, NULL)); 296 // Timeout. 297 timeout.tv_sec = 0; 298 timeout.tv_nsec = 0 [all...] |
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 103 * @throws SocketTimeoutException if timeout expires before connecting 131 int timeout = HttpConnectionParams.getConnectionTimeout(params); local 141 sock.connect(new InetSocketAddress(address, port), timeout);
|
/external/apache-http/src/org/apache/http/conn/scheme/ |
PlainSocketFactory.java | 115 int timeout = HttpConnectionParams.getConnectionTimeout(params); local 124 sock.connect(remoteAddress, timeout);
|
/external/boringssl/src/ssl/test/ |
packeted_bio.cc | 38 OPENSSL_memset(&timeout, 0, sizeof(timeout)); 42 return timeout.tv_sec != 0 || timeout.tv_usec != 0; 45 timeval timeout; member in struct:__anon14391::PacketedBio 123 fprintf(stderr, "Unprocessed timeout!\n"); 127 // Process the timeout. 134 uint64_t timeout = (static_cast<uint64_t>(buf[0]) << 56) | local 142 timeout /= 1000; // Convert nanoseconds to microseconds. 144 data->timeout.tv_usec = timeout % 1000000 [all...] |
/external/curl/docs/examples/ |
http2-download.c | 219 struct timeval timeout; local 234 /* set a suitable timeout to play around with */ 235 timeout.tv_sec = 1; 236 timeout.tv_usec = 0; 240 timeout.tv_sec = curl_timeo / 1000; 241 if(timeout.tv_sec > 1) 242 timeout.tv_sec = 1; 244 timeout.tv_usec = (curl_timeo % 1000) * 1000; 272 /* Note that on some platforms 'timeout' may be modified by select(). 274 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); [all...] |
smtp-multi.c | 159 struct timeval timeout; local 174 /* Set a suitable timeout to play around with */ 175 timeout.tv_sec = 1; 176 timeout.tv_usec = 0; 180 timeout.tv_sec = curl_timeo / 1000; 181 if(timeout.tv_sec > 1) 182 timeout.tv_sec = 1; 184 timeout.tv_usec = (curl_timeo % 1000) * 1000; 212 /* Note that on some platforms 'timeout' may be modified by select(). 214 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); [all...] |
/external/curl/tests/libtest/ |
lib1515.c | 79 struct timeval timeout; local 86 timeout.tv_sec = 1; 87 timeout.tv_usec = 0; 90 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
|
/external/drm_hwcomposer/ |
queue_worker.h | 97 auto timeout = std::chrono::milliseconds(max_msecs); local 98 ret = cond_.wait_for(lock, timeout, wait_func);
|
/external/google-breakpad/src/tools/windows/symupload/ |
symupload.cc | 159 L" symupload [--timeout NN] [--product product_name] ^\n" 162 wprintf(L" - Timeout is in milliseconds, or can be 0 to be unlimited.\n"); 167 L" symupload.exe --timeout 0 --product Chrome ^\n" 174 int timeout = -1; local 177 if (!wcscmp(L"--timeout", argv[currentarg])) { 178 timeout = _wtoi(argv[currentarg + 1]); 237 timeout == -1 ? NULL : &timeout,
|
/external/iproute2/include/uapi/linux/netfilter/ |
xt_set.h | 63 __u32 timeout; member in struct:xt_set_info_target_v2 82 __u32 timeout; member in struct:xt_set_info_target_v3
|
/external/ipsec-tools/ |
main.c | 184 int timeout = tv->tv_sec * 1000 + tv->tv_usec / 1000 + 1; local 186 if (poll(pollfds, monitors, timeout) > 0) {
|
/external/iptables/include/linux/netfilter/ |
xt_set.h | 62 __u32 timeout; member in struct:xt_set_info_target_v2 90 __u32 timeout; member in struct:xt_set_info_target_v3
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
xt_set.h | 63 __u32 timeout; member in struct:xt_set_info_target_v2 82 __u32 timeout; member in struct:xt_set_info_target_v3
|
/external/libchrome/base/process/ |
kill_posix.cc | 158 BackgroundReaper(pid_t child, unsigned timeout) 160 timeout_(timeout) { 217 const unsigned timeout = 2; // seconds local 218 BackgroundReaper* reaper = new BackgroundReaper(process.Pid(), timeout);
|
/external/libdrm/tests/vbltest/ |
vbltest.c | 166 struct timeval timeout = { .tv_sec = 3, .tv_usec = 0 }; local 172 ret = select(fd + 1, &fds, NULL, NULL, &timeout);
|
/external/libevent/ |
devpoll.c | 173 int i, res, timeout = -1; local 179 timeout = tv->tv_sec * 1000 + (tv->tv_usec + 999) / 1000; 183 dvp.dp_timeout = timeout;
|
/external/libmicrohttpd/src/examples/ |
mhd2spdy.c | 69 struct timeval timeout; local 126 timeout.tv_sec = 0; 127 timeout.tv_usec = 0; 142 timeout.tv_sec = 5; 145 timeout.tv_sec = timeoutlong / 1000; 146 timeout.tv_usec = (timeoutlong % 1000) * 1000; 167 PRINT_INFO2("MHD timeout %lld %lld", (unsigned long long)timeout.tv_sec, (unsigned long long)timeout.tv_usec); 171 ret = select(maxfd+1, &rs, &ws, &es, &timeout); [all...] |
/external/libnl/src/lib/ |
ct.c | 70 uint32_t timeout = nl_cli_parse_u32(arg); local 71 nfnl_ct_set_timeout(ct, timeout);
|
/external/libxcam/xcore/ |
xcam_analyzer.cpp | 64 const static int32_t timeout = -1; local 66 SmartPtr<VideoBuffer> stats = _stats_queue.pop (timeout);
|
/external/ltp/testcases/kernel/io/aio/aio02/ |
aio_tio.c | 96 struct timespec timeout; local 166 timeout.tv_sec = 30; 167 timeout.tv_nsec = 0; 174 res = io_wait_run(myctx, &timeout);
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
aiodio_append.c | 92 struct timespec timeout; local 129 n = io_getevents(myctx, 1, 1, &event, &timeout);
|
/external/ltp/testcases/kernel/syscalls/syslog/ |
syslog12.c | 122 void timeout(int sig) function 124 tst_resm(TWARN, "syslog() timeout after 1s" 139 sa.sa_handler = timeout;
|
/external/ltp/testcases/network/rpc/basic_tests/rpc01/ |
rpc1.c | 35 struct timeval timeout; local 135 timeout.tv_usec = 0; 136 timeout.tv_sec = 10; 137 clnt = clntudp_create(&server_sin, program, version, timeout, &sock); 142 timeout.tv_usec = 0; 143 timeout.tv_sec = 30; 146 (char *)&return_buffer, timeout); 157 timeout.tv_usec = 0; 158 timeout.tv_sec = 30; 161 (char *)&return_buffer, timeout); [all...] |
/external/ltp/testcases/network/stress/ns-tools/ |
ns-tcpclient.c | 148 double timeout = 0.0; /* timeout */ local 197 timeout = strtod(optarg, NULL); 198 if (timeout < 0) { 200 "Timeout value is bigger than 0\n"); 328 /* client timeout */ 329 if (timeout) 330 if (timeout < difftime(time(NULL), start_time))
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
nv98_video.c | 94 uint32_t timeout; local 248 timeout = 0; 252 PUSH_DATA (push[0], timeout); 256 PUSH_DATA (push[1], timeout); 260 PUSH_DATA (push[2], timeout);
|