/external/drm_hwcomposer/tests/ |
H A D | queue_worker_test.cpp | 70 auto timeout = std::chrono::milliseconds(timeout_ms); local 71 return qw.cond.wait_for(lk, timeout, [&] { return qw.value == val; }); 132 auto timeout = std::chrono::milliseconds(100); 134 qw.cond.wait_for(lock, timeout, [&] { return qw.value != 1; })); 173 auto timeout = std::chrono::milliseconds(200); 174 std::this_thread::sleep_for(timeout); 183 auto timeout = std::chrono::milliseconds(kIdleTimeoutMs + 10); 184 std::this_thread::sleep_for(timeout); 190 std::this_thread::sleep_for(3 * timeout);
|
/external/libmojo/third_party/catapult/devil/devil/utils/ |
H A D | cmd_helper.py | 203 """Module-specific timeout exception.""" 214 def _IterProcessStdout(process, timeout=None, buffer_size=4096, 223 end_time = (time.time() + timeout) if timeout else None 245 def GetCmdStatusAndOutputWithTimeout(args, timeout, cwd=None, shell=False, 247 """Executes a subprocess with a timeout. 252 timeout: the timeout in seconds or None to wait forever. 268 for data in _IterProcessStdout(process, timeout=timeout) [all...] |
/external/syslinux/gpxe/src/usr/ |
H A D | pxemenu.c | 66 * Negative indicates no timeout (i.e. wait indefinitely) 68 int timeout; member in struct:pxe_menu 172 (*menu)->timeout = 173 ( ( raw_menu_prompt->timeout == 0xff ) ? 174 -1 : raw_menu_prompt->timeout ); 177 (*menu)->timeout = -1; 291 if ( menu->timeout < 0 ) { 301 /* Wait for timeout, if specified */ 302 while ( menu->timeout > 0 ) { 304 len = printf ( " (%d)", menu->timeout ); [all...] |
/external/autotest/client/common_lib/ |
H A D | pexpect.py | 133 """Raised when a read time exceeds the timeout. """ 136 ## """Raised when the pattern match time exceeds the timeout. 144 def run (command, timeout=-1, withexitstatus=False, events=None, extra_args=None, logfile=None, cwd=None, env=None): 202 run ("mencoder dvd://1 -o video.avi -oac copy -ovc copy", events={TIMEOUT:print_ticks}, timeout=5) 218 if timeout == -1: 221 child = spawn(command, timeout=timeout, maxread=2000, logfile=logfile, cwd=cwd, env=env) 267 def __init__(self, command, args=[], timeout=30, maxread=2000, searchwindowsize=None, logfile=None, cwd=None, env=None): 397 self.timeout = timeout [all...] |
/external/autotest/server/hosts/ |
H A D | abstract_ssh.py | 106 assert connect_timeout > 0 # can't disable the timeout 190 command = ("rsync %s %s --timeout=1800 --rsh='%s' -az --no-o --no-g " 515 def ssh_ping(self, timeout=60, connect_timeout=None, base_cmd='true'): 519 @param timeout: Time in seconds before giving up. 528 ctimeout = min(timeout, connect_timeout or timeout) 530 self.run(base_cmd, timeout=timeout, connect_timeout=ctimeout, 533 msg = "Host (ssh) verify timed out (timeout = %d)" % timeout [all...] |
/external/chromium-trace/catapult/telemetry/third_party/websocket-client/websocket/ |
H A D | _core.py | 130 Get the websocket timeout(second). 132 return self.sock_opt.timeout 134 def settimeout(self, timeout): 136 Set the timeout to the websocket. 138 timeout: timeout time(second). 140 self.sock_opt.timeout = timeout 142 self.sock.settimeout(timeout) 144 timeout variable in class:WebSocket [all...] |
/external/mtpd/ |
H A D | mtpd.c | 159 int timeout; local 176 timeout = initialize(argc, argv); 192 while (timeout >= 0) { 193 if (poll(pollfds, 3, timeout ? timeout : -1) == -1 && errno != EINTR) { 203 timeout = pollfds[0].revents ? 204 the_protocol->process() : the_protocol->timeout(); 209 if (!timeout) { 210 timeout = 5000; 215 if (timeout < [all...] |
/external/apache-http/src/org/apache/http/conn/params/ |
H A D | ConnManagerParams.java | 61 * Returns the timeout in milliseconds used when retrieving a 65 * @return timeout in milliseconds. 75 * Sets the timeout in milliseconds used when retrieving a 79 * @param timeout the timeout in milliseconds 81 public static void setTimeout(final HttpParams params, long timeout) { argument 85 params.setLongParameter(TIMEOUT, timeout);
|
/external/apache-http/src/org/apache/http/impl/io/ |
H A D | SocketInputBuffer.java | 79 public boolean isDataAvailable(int timeout) throws IOException { argument 84 this.socket.setSoTimeout(timeout);
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
H A D | mbim_data_channel.py | 66 timeout=self._WRITE_TIMEOUT_MS, 95 timeout=self._READ_TIMEOUT_MS,
|
/external/autotest/client/cros/networking/chrome_testing/ |
H A D | chrome_networking_test_api.py | 98 def scan_for_networks(self, timeout=SHORT_TIMEOUT): 101 @param timeout int seconds to sleep while scanning for networks 106 time.sleep(timeout)
|
/external/autotest/client/cros/video/ |
H A D | native_html5_player.py | 114 timeout=30) 161 self.tab.WaitForJavaScriptCondition(cmd, timeout=(self.duration() * 2))
|
/external/autotest/client/site_tests/desktopui_CrashyReboot/ |
H A D | desktopui_CrashyReboot.py | 42 timeout=60, 66 timeout=5,
|
/external/autotest/client/site_tests/desktopui_GmailLatency/ |
H A D | desktopui_GmailLatency.py | 21 # timeout is in ms, so allow a 5 minute timeout 23 timeout = 5 * 60 * 1000 61 (url, js_expr, timeout))
|
/external/autotest/client/site_tests/login_LoginSuccess/ |
H A D | login_LoginSuccess.py | 19 # TODO(afakhry): Remove this timeout increase for asan bots once we figure 39 double the timeout. 50 timeout=self._SESSION_START_TIMEOUT) 58 timeout=self._SESSION_STOP_TIMEOUT)
|
/external/autotest/client/site_tests/security_ptraceRestrictions/ |
H A D | security_ptraceRestrictions.py | 66 timeout=30) 69 timeout=10)
|
/external/autotest/server/cros/ |
H A D | interactive_client.py | 89 def wait_for_button(self, timeout): 94 @param timeout: Maximum time, in seconds, to wait for a click. 96 @return index of button that was clicked, or -1 on timeout. 99 return self._proxy.wait_for_button(timeout)
|
H A D | remote_command.py | 65 def join(self, signal=None, timeout=5.0): 72 @param timeout float number of seconds to wait for join to finish. 85 self._thread.join(timeout)
|
/external/autotest/server/site_tests/desktopui_CrashyRebootServer/ |
H A D | desktopui_CrashyRebootServer.py | 50 if not host.wait_down(timeout=self.CRASHY_DEVICE_TIMEOUT_SECONDS, 64 # the entire given timeout waiting for it to succeed. If it 68 # a short timeout. 70 timeout=self.CRASHY_DEVICE_TIMEOUT_SECONDS)
|
/external/autotest/server/site_tests/firmware_ECKeyboardReboot/ |
H A D | firmware_ECKeyboardReboot.py | 34 if not self.host.ping_wait_down(timeout=10): 39 if not self.host.wait_up(timeout=60):
|
/external/autotest/server/site_tests/platform_ImageLoaderServer/ |
H A D | platform_ImageLoaderServer.py | 43 timeout=300, 54 timeout=300,
|
/external/autotest/site_utils/suite_scheduler/ |
H A D | deduping_scheduler.py | 27 # Minimum RPC timeout setting for calls expected to take long time, e.g., 30 # The value here is set to be the same as the timeout for the RetryingAFE object 131 def _Schedule(self, suite, board, build, pool, num, priority, timeout, 149 @param timeout: The max lifetime of the suite in hours. 222 # Update timeout settings for the suite job with delay_minutes. 223 # `timeout` is in hours. 224 if not timeout: 225 timeout = JOB_MAX_RUNTIME_MINS_DEFAULT / 60.0 226 timeout += delay_minutes / 60.0 234 pool=pool, priority=priority, timeout [all...] |
/external/chromium-trace/catapult/devil/devil/android/tools/ |
H A D | wait_for_devices.py | 25 parser.add_argument('-t', '--timeout', default=30, type=int, 45 parallel_devices.WaitUntilFullyBooted(timeout=args.timeout)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/actions/ |
H A D | tap_unittest.py | 39 'document.location.pathname === "/blank.html"', timeout=5) 41 'document.readyState === "complete"', timeout=5)
|
/external/curl/docs/examples/ |
H A D | http2-download.c | 216 struct timeval timeout; local 231 /* set a suitable timeout to play around with */ 232 timeout.tv_sec = 1; 233 timeout.tv_usec = 0; 237 timeout.tv_sec = curl_timeo / 1000; 238 if(timeout.tv_sec > 1) 239 timeout.tv_sec = 1; 241 timeout.tv_usec = (curl_timeo % 1000) * 1000; 269 /* Note that on some platforms 'timeout' may be modified by select(). 271 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout); [all...] |