/external/chromium_org/tools/site_compare/utils/ |
browser_iterate.py | 64 ["-t", "--timeout"], "Amount of time (seconds) to wait for browser to " 82 def AttachToBrowser(path, timeout): 109 s.settimeout(timeout) 155 timeout = command["--timeout"] 165 AttachToBrowser(browser, timeout) 183 except socket.timeout: 191 # If we received a timeout response, restart the browser 192 if response[-9:] == ",timeout\n":
|
/external/chromium_org/tools/valgrind/ |
common.py | 28 def RunSubprocess(proc, timeout=0): 29 """ Runs a subprocess, until it finishes or |timeout| is exceeded and the 30 process is killed with taskkill. A |timeout| <= 0 means no timeout. 34 timeout: how long to wait before killing, <= 0 means wait forever 37 logging.info("running %s, timeout %d sec" % (" ".join(proc), timeout)) 55 if timeout > 0: 56 wait_until = time.time() + timeout 65 if timeout > 0 [all...] |
/external/chromium_org/v8/tools/testrunner/local/ |
commands.py | 66 def RunProcess(verbose, timeout, args, **rest): 87 if timeout is None: end_time = None 88 else: end_time = time.time() + timeout 133 def Execute(args, verbose=False, timeout=None): 140 timeout,
|
/external/webrtc/src/system_wrappers/source/ |
event_posix.cc | 126 EventTypeWrapper EventPosix::Wait(unsigned long timeout) 136 if (WEBRTC_EVENT_INFINITE != timeout) 153 tEnd.tv_sec += timeout / 1000; 154 tEnd.tv_nsec += (timeout - (timeout / 1000) * 1000) * E6;
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
BlockingStateListener.java | 189 * @param timeout how long to wait in milliseconds 191 * @throws TimeoutRuntimeException if the desired state is not observed before timeout. 193 public void waitForState(int state, long timeout) { 196 waitForAnyOfStates(Arrays.asList(stateArray), timeout); local 206 * @param timeout how long to wait in milliseconds 209 * @throws TimeoutRuntimeException if none of the states is observed before timeout. 212 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { 224 long timeoutLeft = timeout; 247 s.append(timeout);
|
/external/chromium/base/ |
message_pump_win.cc | 71 double timeout = local 75 int delay = static_cast<int>(timeout); 488 int timeout = GetCurrentDelay(); local 489 if (timeout < 0) // Negative value means no timers waiting. 490 timeout = INFINITE; 492 WaitForIOCompletion(timeout, NULL); 495 bool MessagePumpForIO::WaitForIOCompletion(DWORD timeout, IOHandler* filter) { 499 if (!GetIOItem(timeout, &item)) 525 bool MessagePumpForIO::GetIOItem(DWORD timeout, IOItem* item) { 530 &overlapped, timeout)) { [all...] |
/external/chromium_org/tools/telemetry/telemetry/core/backends/chrome/ |
chrome_browser_backend.py | 126 def _WaitForBrowserToComeUp(self, wait_for_extensions=True, timeout=None): 129 self.Request('', timeout=timeout) 136 util.WaitFor(IsBrowserUp, timeout=30) 174 util.WaitFor(AllExtensionsLoaded, timeout=60) 215 def Request(self, path, timeout=None, throw_network_exception=False): 222 req = opener.open(url, timeout=timeout) 253 timeout=web_contents.DEFAULT_WEB_CONTENTS_TIMEOUT): 262 return self._tracing_backend.StartTracing(custom_categories, timeout) [all...] |
/hardware/ril/libril/ |
ril_event.cpp | 86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); 168 // walk list, see if now >= ev->timeout for any events 171 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { 231 (int)tev->timeout.tv_sec, (int)tev->timeout.tv_usec); 232 if (timercmp(&tev->timeout, &now, >)) { 233 timersub(&tev->timeout, &now, tv); 300 timeradd(&now, tv, &ev->timeout); [all...] |
/external/chromium_org/third_party/npapi/npspy/extern/nspr/ |
prio.h | 340 PRIntervalTime timeout); 342 PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout); 344 PRFileDesc *fd, PRNetAddr *addr, PRIntervalTime timeout); 350 PRIntn flags, PRIntervalTime timeout); 353 PRIntn flags, PRIntervalTime timeout); 356 PRIntn flags, PRNetAddr *addr, PRIntervalTime timeout); 359 PRIntn flags, const PRNetAddr *addr, PRIntervalTime timeout); 376 PRTransmitFileFlags flags, PRIntervalTime timeout); 774 * PRIntervalTime timeout 789 PRIntervalTime timeout); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
SelectorTest.java | 49 NULL, TIMEOUT, NOW 238 assert_select_OP_ACCEPT(SelectType.TIMEOUT, 0); 239 assert_select_OP_CONNECT(SelectType.TIMEOUT, 0); 240 assert_select_OP_READ(SelectType.TIMEOUT, 0); 241 assert_select_OP_WRITE(SelectType.TIMEOUT, 0); 243 assert_select_OP_ACCEPT(SelectType.TIMEOUT, WAIT_TIME); 244 assert_select_OP_CONNECT(SelectType.TIMEOUT, WAIT_TIME); 245 assert_select_OP_READ(SelectType.TIMEOUT, WAIT_TIME); 246 assert_select_OP_WRITE(SelectType.TIMEOUT, WAIT_TIME); 253 assert_select_SelectorClosed(SelectType.TIMEOUT, 0) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_smtplib.py | 26 except socket.timeout: 93 smtp = smtplib.SMTP(HOST, self.port, timeout=None) 100 smtp = smtplib.SMTP(HOST, self.port, timeout=30) 127 except socket.timeout: 182 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 186 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 192 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 199 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 206 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 215 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3 [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_smtplib.py | 26 except socket.timeout: 93 smtp = smtplib.SMTP(HOST, self.port, timeout=None) 100 smtp = smtplib.SMTP(HOST, self.port, timeout=30) 127 except socket.timeout: 182 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 186 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 192 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 199 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 206 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3) 215 smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3 [all...] |
/external/chromium_org/base/ |
sync_socket_posix.cc | 123 TimeDelta timeout) { 132 // return a timeout error (0) if not. See http://crbug.com/314364. 137 DCHECK_GT(timeout.InMicroseconds(), 0); 138 DCHECK_LT(timeout.InMicroseconds(), 141 // Track the start time so we can reduce the timeout as data is read. 143 const TimeTicks finish_time = start_time + timeout; 148 bytes_read_total < length && timeout.InMicroseconds() > 0; 149 timeout = finish_time - base::TimeTicks::Now()) { 155 { 0, static_cast<suseconds_t>(timeout.InMicroseconds()) }; 158 // Handle EINTR manually since we need to update the timeout value [all...] |
/external/chromium_org/net/dns/ |
dns_session_unittest.cc | 227 // Expect default calculated timeout to be within 10ms of in DnsConfig. 230 base::TimeDelta timeoutDelta = session_->NextTimeout(0, 0) - config_.timeout; 234 // Expect short calculated timeout to be within 10ms of in DnsConfig. 236 config_.timeout = base::TimeDelta::FromMilliseconds(15); 238 base::TimeDelta timeoutDelta = session_->NextTimeout(0, 0) - config_.timeout; 242 // Expect long calculated timeout to be equal to one in DnsConfig. 244 config_.timeout = base::TimeDelta::FromSeconds(15); 246 base::TimeDelta timeout = session_->NextTimeout(0, 0); local 247 EXPECT_EQ(config_.timeout.InMilliseconds(), timeout.InMilliseconds()) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/egl/common/ |
egl_g3d_sync.c | 42 egl_g3d_wait_sync_condvar(struct egl_g3d_sync *gsync, EGLTimeKHR timeout) 51 /* No timed wait. Always treat timeout as EGL_FOREVER_KHR */ 96 egl_g3d_wait_fence_sync(struct egl_g3d_sync *gsync, EGLTimeKHR timeout) 120 ret = egl_g3d_wait_sync_condvar(gsync, timeout); 223 EGLint flags, EGLTimeKHR timeout) 238 if (timeout) { 244 ret = egl_g3d_wait_sync_condvar(gsync, timeout); 247 ret = egl_g3d_wait_fence_sync(gsync, timeout);
|
/external/ipsec-tools/src/racoon/ |
schedule.c | 61 static struct timeval timeout; variable in typeref:struct:timeval 117 timeout.tv_sec = delta < 0 ? 0 : delta; 118 timeout.tv_usec = 0; 120 return &timeout; 335 struct timeval *timeout; local 348 timeout = schedular(); 350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
|
/external/mesa3d/src/gallium/state_trackers/egl/common/ |
egl_g3d_sync.c | 42 egl_g3d_wait_sync_condvar(struct egl_g3d_sync *gsync, EGLTimeKHR timeout) 51 /* No timed wait. Always treat timeout as EGL_FOREVER_KHR */ 96 egl_g3d_wait_fence_sync(struct egl_g3d_sync *gsync, EGLTimeKHR timeout) 120 ret = egl_g3d_wait_sync_condvar(gsync, timeout); 223 EGLint flags, EGLTimeKHR timeout) 238 if (timeout) { 244 ret = egl_g3d_wait_sync_condvar(gsync, timeout); 247 ret = egl_g3d_wait_fence_sync(gsync, timeout);
|
/cts/tests/tests/location2/src/android/location2/cts/ |
LocationManagerTest.java | 378 public boolean hasCalledLocationRequested(long timeout) throws InterruptedException { 380 if (timeout > 0 && !mHasCalledRequestLocation) { 381 mLocationRequestLock.wait(timeout); 388 * Check whether onLocationChanged() has been called. Wait up to timeout milliseconds 390 * @param timeout Maximum time to wait for the callback, 0 to return immediately. 392 public boolean hasCalledOnLocationChanged(long timeout) { 394 if (timeout > 0 && !mHasCalledOnLocationChanged) { 396 mLocationLock.wait(timeout); 413 public boolean hasCalledOnStatusChanged(long timeout) throws InterruptedException { 416 if (timeout > 0 && !mHasCalledOnStatusChanged) [all...] |
/external/iptables/extensions/ |
libxt_SET.c | 262 " --add-set name flags [--exist] [--timeout n]\n" 273 {.name = "timeout", .has_arg = true, .val = '4'}, 289 "Option `--timeout' can be used with `--add-set' only"); 302 info->timeout = UINT32_MAX; 311 unsigned int timeout; local 327 if (!xtables_strtoui(optarg, NULL, &timeout, 0, UINT32_MAX - 1)) 329 "Invalid value for option --timeout " 331 myinfo->timeout = timeout; 347 if (info->timeout != UINT32_MAX [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
AsyncQueryHandlerTest.java | 387 public synchronized boolean hadInserted(long timeout) throws InterruptedException { 389 // do not wait if timeout is 0 390 if (timeout > 0 && !mHadInserted) { 391 wait(timeout); 397 public synchronized boolean hadUpdated(long timeout) throws InterruptedException { 398 // do not wait if timeout is 0 399 if (timeout > 0 && !mHadUpdated) { 400 wait(timeout); 405 public synchronized boolean hadDeleted(long timeout) throws InterruptedException { 406 // do not wait if timeout is [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
SSLServerSocketImplTest.java | 78 int timeout = 10; // wait no more than 5 seconds for handshake local 84 timeout--; 85 if (timeout < 0) { 136 int timeout = 10; // wait no more than 5 seconds for handshake local 142 timeout--; 143 if (timeout < 0) { 194 int timeout = 10; // wait no more than 5 seconds for handshake local 200 timeout--; 201 if (timeout < 0) { 252 int timeout = 10; // wait no more than 5 seconds for handshak local [all...] |
SSLSocketImplTest.java | 91 int timeout = 10; // wait no more than 10*500 ms for handshake local 97 timeout--; 98 if (timeout < 0) { 149 int timeout = 10; // wait no more than 5 seconds for handshake local 155 timeout--; 156 if (timeout < 0) { 210 int timeout = 10; // wait no more than 5 seconds for handshake local 216 timeout--; 217 if (timeout < 0) { 270 int timeout = 10; // wait no more than 5 seconds for handshak local 331 int timeout = 10; \/\/ wait no more than 5 seconds for handshake local 776 int timeout = 10; \/\/ wait no more than 5 seconds for handshake local 881 int timeout = 10; \/\/ wait no more than 5 seconds for handshake local 937 int timeout = 10; \/\/ wait no more than 5 seconds for handshake local 993 int timeout = 10; \/\/ wait no more than 5 seconds for handshake local [all...] |
/external/bluetooth/bluedroid/hci/src/ |
utils.c | 260 ** Description sleep unconditionally for timeout milliseconds 265 void utils_delay (uint32_t timeout) 270 delay.tv_sec = timeout / 1000; 271 delay.tv_nsec = 1000 * 1000 * (timeout%1000);
|
/external/chromium_org/base/test/launcher/ |
test_launcher.h | 95 // the child process was terminated because of a timeout, and fourth one 102 // command line. If the child process is still running after |timeout|, it 107 base::TimeDelta timeout, 200 // after |timeout|, it is terminated and |*was_timeout| is set to true. 203 base::TimeDelta timeout, 212 // running after |timeout|, it is terminated and |*was_timeout| is set to true. 216 base::TimeDelta timeout,
|
/external/chromium_org/chrome/test/automation/ |
automation_proxy.h | 39 // received or a timeout has expired. 42 // there is a failure or timeout (in milliseconds). 44 // NOTE: When timeout occurs, the connection between proxy provider may be 80 // Returns TIMEOUT if there was no response by action_timeout_ 189 // Sets the timeout for subsequent automation calls. 190 void set_action_timeout(base::TimeDelta timeout) { 191 DCHECK(timeout <= base::TimeDelta::FromMinutes(10)) 192 << "10+ min of automation timeout " 194 action_timeout_ = timeout;
|