/external/syslinux/core/thread/ |
H A D | semaphore.c | 12 mstime_t __sem_down_slow(struct semaphore *sem, mstime_t timeout) argument 24 } else if (timeout == -1) { 25 /* Immediate timeout */ 38 block.timeout = timeout ? now+timeout : 0;
|
/external/boringssl/src/ssl/test/ |
H A D | 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:__anon720::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 [all...] |
/external/autotest/client/cros/multimedia/ |
H A D | facade_resource.py | 269 self, tab_descriptor, expression, timeout): 274 @param timeout: Indicate the timeout of the expression. 279 expression, timeout=timeout) 282 def execute_javascript(self, tab_descriptor, statement, timeout): 287 @param timeout: Indicate the timeout of the statement. 292 statement, timeout=timeout) [all...] |
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
H A D | dbus_common.c | 160 DBusTimeout *timeout = sock_ctx; local 161 dbus_timeout_handle(timeout); 165 static dbus_bool_t add_timeout(DBusTimeout *timeout, void *data) argument 169 if (!dbus_timeout_get_enabled(timeout)) 172 eloop_register_timeout(0, dbus_timeout_get_interval(timeout) * 1000, 173 process_timeout, priv, timeout); 175 dbus_timeout_set_data(timeout, priv, NULL); 181 static void remove_timeout(DBusTimeout *timeout, void *data) argument 185 eloop_cancel_timeout(process_timeout, priv, timeout); 186 dbus_timeout_set_data(timeout, NUL 190 timeout_toggled(DBusTimeout *timeout, void *data) argument [all...] |
/external/autotest/client/site_tests/p2p_ShareFiles/ |
H A D | p2p_ShareFiles.py | 43 def _run_lansim_loop(self, timeout=None, until=None): 46 self._sim.run(timeout=timeout, until=until) 74 self._run_lansim_loop(timeout=20, until=p2pcli.get_peers()) 111 self._run_lansim_loop(timeout=30, 126 self._run_lansim_loop(timeout=3)
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
H A D | __init__.py | 65 # Decorator that adds timeout functionality to a function. 69 # Note: Even though the "timeout" keyword argument is the only 80 if 'timeout' in kwargs: 81 timeout = kwargs['timeout'] 83 timeout = default_timeout 85 return timeout_retry.Run(func, timeout, 0, args=args) 96 def WaitFor(condition, timeout): 97 """Waits for up to |timeout| secs for the function |condition| to return True. 119 while elapsed_time < timeout [all...] |
/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | ForwardingExecutorService.java | 48 public boolean awaitTermination(long timeout, TimeUnit unit) argument 50 return delegate().awaitTermination(timeout, unit); 61 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) 63 return delegate().invokeAll(tasks, timeout, unit); 74 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) 76 return delegate().invokeAny(tasks, timeout, unit); 60 invokeAll( Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument 73 invokeAny( Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
|
/external/jmdns/src/javax/jmdns/ |
H A D | JmDNS.java | 188 * Get service information. If the information is not cached, the method will block for the given timeout until updated information is received. 190 * Usage note: If you call this method from the AWT event dispatcher thread, use a small timeout, or you will make the user interface unresponsive. 196 * @param timeout 197 * timeout in milliseconds. Typical timeout should be 5s. 200 public abstract ServiceInfo getServiceInfo(String type, String name, long timeout); argument 218 * Get service information. If the information is not cached, the method will block for the given timeout until updated information is received. 220 * Usage note: If you call this method from the AWT event dispatcher thread, use a small timeout, or you will make the user interface unresponsive. 226 * @param timeout 227 * timeout i 232 getServiceInfo(String type, String name, boolean persistent, long timeout) argument 270 requestServiceInfo(String type, String name, long timeout) argument 284 requestServiceInfo(String type, String name, boolean persistent, long timeout) argument 395 list(String type, long timeout) argument 415 listBySubtype(String type, long timeout) argument [all...] |
H A D | JmmDNS.java | 164 * Usage note: If you call this method from the AWT event dispatcher thread, use a small timeout, or you will make the user interface unresponsive. 170 * @param timeout 171 * timeout in milliseconds. Typical timeout should be 5s. 175 public abstract ServiceInfo[] getServiceInfos(String type, String name, long timeout); argument 180 * Usage note: If you call this method from the AWT event dispatcher thread, use a small timeout, or you will make the user interface unresponsive. 196 * Usage note: If you call this method from the AWT event dispatcher thread, use a small timeout, or you will make the user interface unresponsive. 202 * @param timeout 203 * timeout in milliseconds. Typical timeout shoul 209 getServiceInfos(String type, String name, boolean persistent, long timeout) argument 246 requestServiceInfo(String type, String name, long timeout) argument 261 requestServiceInfo(String type, String name, boolean persistent, long timeout) argument 360 list(String type, long timeout) argument 382 listBySubtype(String type, long timeout) argument [all...] |
/external/libdrm/tests/kms/ |
H A D | kms-steal-crtc.c | 119 struct timeval timeout; local 122 memset(&timeout, 0, sizeof(timeout)); 123 timeout.tv_sec = 5; 124 timeout.tv_usec = 0; 129 err = select(nfds, &fds, NULL, NULL, &timeout);
|
/external/ltp/testcases/kernel/syscalls/times/ |
H A D | times03.c | 60 volatile int timeout; /* Did we timeout in alarm() ? */ variable 92 timeout = 0; 137 timeout = 0; 199 * Set the timeout to indicate we timed out in the alarm(). 205 timeout = 1; 212 * Do some work in user space, until we get a timeout. 219 while (!timeout) 223 timeout = 0;
|
/external/autotest/client/common_lib/ |
H A D | pxssh.py | 73 def __init__ (self, timeout=30, maxread=2000, searchwindowsize=None, logfile=None, cwd=None, env=None): 74 spawn.__init__(self, None, timeout=timeout, maxread=maxread, searchwindowsize=searchwindowsize, logfile=logfile, cwd=cwd, env=env) 136 self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt 140 x = self.read_nonblocking(size=1000,timeout=1) 144 a = self.read_nonblocking(size=1000,timeout=1) 148 b = self.read_nonblocking(size=1000,timeout=1) 171 a timeout when looking for the prompt we assume that the original 194 i = self.expect(["(?i)are you sure you want to continue connecting", original_prompt, "(?i)(?:password)|(?:passphrase for key)", "(?i)permission denied", "(?i)terminal type", TIMEOUT, "(?i)connection closed by remote host"], timeout=login_timeout) 268 def prompt (self, timeout [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome/ |
H A D | chrome_browser_backend.py | 154 timeout = self.browser_options.browser_startup_timeout 155 py_utils.WaitFor(self.HasBrowserFinishedLaunching, timeout=timeout) 170 py_utils.WaitFor(self._AllExtensionsLoaded, timeout=60) 229 timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT): 234 return self.devtools_client.StartChromeTracing(trace_options, timeout) 276 return self._system_info_backend.GetSystemInfo(timeout=30) 283 def DumpMemory(self, timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT): 284 return self.devtools_client.DumpMemory(timeout) 291 self, suppressed, timeout [all...] |
/external/curl/tests/libtest/ |
H A D | lib582.c | 128 * Callback invoked by curl to set a timeout. 132 struct timeval* timeout = userp; local 136 *timeout = tutil_tvnow(); 137 timeout->tv_usec += timeout_ms * 1000; 140 timeout->tv_sec = -1; 172 static int getMicroSecondTimeout(struct timeval* timeout) argument 177 result = (timeout->tv_sec - now.tv_sec) * 1000000 + 178 timeout->tv_usec - now.tv_usec; 235 struct timeval timeout = {-1, 0}; local 299 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); [all...] |
/external/libmicrohttpd/src/examples/ |
H A D | spdy_event_loop.c | 357 struct timeval timeout; local 376 timeout.tv_sec = 1; 377 timeout.tv_usec = 0; 381 timeout.tv_sec = timeoutlong / 1000; 382 timeout.tv_usec = (timeoutlong % 1000) * 1000; 385 printf("ret=%i; timeoutlong=%llu; sec=%llu; usec=%llu\n", ret, timeoutlong, (long long unsigned)timeout.tv_sec, (long long unsigned)timeout.tv_usec); 396 rc = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); 436 timeout.tv_sec = 1; 437 timeout [all...] |
/external/autotest/client/common_lib/cros/ |
H A D | enrollment.py | 15 timeout=10) 27 utils.poll_for_condition(lambda: browser.oobe_exists, timeout=30)
|
/external/autotest/client/cros/cellular/ |
H A D | base_station_interface.py | 87 timeout=cellular.DEFAULT_TIMEOUT): 93 timeout: in seconds. 98 timeout=cellular.DEFAULT_TIMEOUT): 102 timeout: in seconds.
|
/external/autotest/client/site_tests/cellular_Signal/ |
H A D | cellular_Signal.py | 36 self, label, condition, exception=None, timeout=10, sleep_interval=0.5): 43 timeout: maximum number of seconds to wait 55 timeout=timeout, 89 service = env.CheckedConnectToCellular(timeout=CELLULAR_TIMEOUT) 103 timeout=CELLULAR_TIMEOUT, 111 timeout=CELLULAR_TIMEOUT, 120 timeout=CELLULAR_TIMEOUT, 131 timeout=CELLULAR_TIMEOUT,
|
/external/autotest/client/site_tests/desktopui_KillRestart/ |
H A D | desktopui_KillRestart.py | 23 timeout=60) 37 timeout=60)
|
/external/autotest/client/site_tests/platform_CryptohomeStress/ |
H A D | platform_CryptohomeStress.py | 34 timeout=30, sleep_interval=1) 41 timeout=runtime, sleep_interval=10)
|
/external/c-ares/ |
H A D | ares_timeout.c | 43 /* No queries, no timeout (and no fetch of the current time). */ 47 /* Find the minimum timeout for the current set of queries. */ 56 if (query->timeout.tv_sec == 0) 58 offset = ares__timeoffset(&now, &query->timeout); 70 /* If we found a minimum timeout and it's sooner than the one specified in
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/forwarders/ |
H A D | do_nothing_forwarder_unittest.py | 20 def _WaitForConnectionEstablished(self, address, timeout): 27 def _WaitForConnectionEstablished(self, address, timeout):
|
/external/curl/docs/examples/ |
H A D | multi-debugcallback.c | 151 struct timeval timeout; local 166 /* set a suitable timeout to play around with */ 167 timeout.tv_sec = 1; 168 timeout.tv_usec = 0; 172 timeout.tv_sec = curl_timeo / 1000; 173 if(timeout.tv_sec > 1) 174 timeout.tv_sec = 1; 176 timeout.tv_usec = (curl_timeo % 1000) * 1000; 204 /* Note that on some platforms 'timeout' may be modified by select(). 206 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout); [all...] |
/external/libbrillo/brillo/message_loops/ |
H A D | message_loop_utils.cc | 14 base::TimeDelta timeout, 21 timeout); 12 MessageLoopRunUntil( MessageLoop* loop, base::TimeDelta timeout, base::Callback<bool()> terminate) argument
|
/external/libdrm/freedreno/ |
H A D | freedreno_pipe.c | 79 uint64_t timeout) 81 return pipe->funcs->wait(pipe, timestamp, timeout); 78 fd_pipe_wait_timeout(struct fd_pipe *pipe, uint32_t timestamp, uint64_t timeout) argument
|