Home
last modified time | relevance | path

Searched full:timeout (Results 1 – 25 of 5091) sorted by relevance

12345678910>>...204

/external/junit/src/main/java/org/junit/rules/
DTimeout.java10 * The Timeout Rule applies the same timeout to all test methods in a class:
15 * public Timeout globalTimeout= new Timeout(20);
29 * Each test is run in a new thread. If the specified timeout elapses before
34 * A specified timeout of 0 will be interpreted as not set, however tests will
40 public class Timeout implements TestRule { class
41 private final long timeout; field in Timeout
54 * Create a {@code Timeout} instance with the timeout specified
59 * Instead use {@link #Timeout(long, java.util.concurrent.TimeUnit)},
60 * {@link Timeout#millis(long)}, or {@link Timeout#seconds(long)}.
63 * test to run before it should timeout
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DAsyncTimeoutTest.java37 private final List<Timeout> timedOut = new CopyOnWriteArrayList<Timeout>();
44 a.timeout( 250, TimeUnit.MILLISECONDS); in setUp()
45 b.timeout( 500, TimeUnit.MILLISECONDS); in setUp()
46 c.timeout( 750, TimeUnit.MILLISECONDS); in setUp()
47 d.timeout(1000, TimeUnit.MILLISECONDS); in setUp()
51 AsyncTimeout timeout = new RecordingAsyncTimeout(); in zeroTimeoutIsNoTimeout() local
52 timeout.timeout(0, TimeUnit.MILLISECONDS); in zeroTimeoutIsNoTimeout()
53 timeout.enter(); in zeroTimeoutIsNoTimeout()
55 assertFalse(timeout.exit()); in zeroTimeoutIsNoTimeout()
135 RecordingAsyncTimeout timeout = new RecordingAsyncTimeout(); in deadlineOnly() local
[all …]
/external/llvm/utils/lit/tests/
Dshtest-timeout.py3 # Test per test timeout using external shell
5 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
6 # RUN: %{inputs}/shtest-timeout/quick_then_slow.py \
7 # RUN: %{inputs}/shtest-timeout/short.py \
8 # RUN: %{inputs}/shtest-timeout/slow.py \
9 # RUN: -j 1 -v --debug --timeout 1 --param external=1 > %t.extsh.out 2> %t.extsh.err
15 # Test per test timeout using internal shell
17 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
18 # RUN: %{inputs}/shtest-timeout/quick_then_slow.py \
19 # RUN: %{inputs}/shtest-timeout/short.py \
[all …]
/external/chromium-trace/catapult/devil/docs/
Ddevice_utils.md56 timeout: timeout in seconds
66 CommandTimeoutError on timeout.
76 timeout: timeout in seconds
83 CommandTimeoutError on timeout.
92 timeout: timeout in seconds
99 CommandTimeoutError on timeout.
109 timeout: timeout in seconds
114 CommandTimeoutError on timeout.
123 timeout: timeout in seconds
131 CommandTimeoutError on timeout.
[all …]
Dadb_wrapper.md36 timeout: (optional) Timeout per try in seconds.
48 timeout: (optional) Timeout per try in seconds.
61 timeout: (optional) Timeout per try in seconds.
79 timeout: Timeout in seconds.
92 timeout: (optional) Timeout per try in seconds.
123 timeout: (optional) If set, timeout per try in seconds. If clear or dump
151 timeout: (optional) Timeout per try in seconds.
162 timeout: (optional) Timeout per try in seconds.
172 timeout: (optional) Timeout per try in seconds.
184 timeout: (optional) Timeout per try in seconds.
[all …]
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_wrapper.py91 raw_version = AdbWrapper._RunAdbCmd(['version'], timeout=2, retries=0)
264 def _RunAdbCmd(cls, args, timeout=None, retries=None, device_serial=None, argument
267 timeout = timeout_retry.CurrentTimeoutThreadGroup().GetRemainingTime()
269 timeout = 0.95 * timeout
273 timeout, env=cls._ADB_ENV)
298 self, args, timeout, retries, check_error=True, argument
304 timeout: Timeout in seconds.
312 return self._RunAdbCmd(args, timeout=timeout, retries=retries,
317 def _IterRunDeviceAdbCmd(self, args, iter_timeout, timeout): argument
322 iter_timeout: Timeout for each iteration in seconds.
[all …]
/external/strace/tests-m32/
Drt_sigtimedwait.c46 const struct timespec *const timeout, const unsigned long size) in k_sigtimedwait() argument
48 return syscall(__NR_rt_sigtimedwait, set, info, timeout, size); in k_sigtimedwait()
53 const struct timespec *const timeout, unsigned int size) in iterate() argument
56 assert(k_sigtimedwait(set, NULL, timeout, size) == -1); in iterate()
61 (long long) timeout->tv_sec, in iterate()
62 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
69 set, (long long) timeout->tv_sec, in iterate()
70 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
76 text, (long long) timeout->tv_sec, in iterate()
77 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
[all …]
/external/strace/tests-mx32/
Drt_sigtimedwait.c46 const struct timespec *const timeout, const unsigned long size) in k_sigtimedwait() argument
48 return syscall(__NR_rt_sigtimedwait, set, info, timeout, size); in k_sigtimedwait()
53 const struct timespec *const timeout, unsigned int size) in iterate() argument
56 assert(k_sigtimedwait(set, NULL, timeout, size) == -1); in iterate()
61 (long long) timeout->tv_sec, in iterate()
62 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
69 set, (long long) timeout->tv_sec, in iterate()
70 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
76 text, (long long) timeout->tv_sec, in iterate()
77 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
[all …]
/external/strace/tests/
Drt_sigtimedwait.c46 const struct timespec *const timeout, const unsigned long size) in k_sigtimedwait() argument
48 return syscall(__NR_rt_sigtimedwait, set, info, timeout, size); in k_sigtimedwait()
53 const struct timespec *const timeout, unsigned int size) in iterate() argument
56 assert(k_sigtimedwait(set, NULL, timeout, size) == -1); in iterate()
61 (long long) timeout->tv_sec, in iterate()
62 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
69 set, (long long) timeout->tv_sec, in iterate()
70 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
76 text, (long long) timeout->tv_sec, in iterate()
77 zero_extend_signed_to_ull(timeout->tv_nsec), in iterate()
[all …]
/external/wpa_supplicant_8/src/utils/
Deloop_win.c55 struct dl_list timeout; member
78 dl_list_init(&eloop.timeout); in eloop_init()
241 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local
244 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout()
245 if (timeout == NULL) in eloop_register_timeout()
247 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout()
248 os_free(timeout); in eloop_register_timeout()
251 now_sec = timeout->time.sec; in eloop_register_timeout()
252 timeout->time.sec += secs; in eloop_register_timeout()
253 if (timeout->time.sec < now_sec) { in eloop_register_timeout()
[all …]
Deloop.c105 struct dl_list timeout; member
164 dl_list_init(&eloop.timeout); in eloop_init()
771 struct eloop_timeout *timeout, *tmp; in eloop_register_timeout() local
774 timeout = os_zalloc(sizeof(*timeout)); in eloop_register_timeout()
775 if (timeout == NULL) in eloop_register_timeout()
777 if (os_get_reltime(&timeout->time) < 0) { in eloop_register_timeout()
778 os_free(timeout); in eloop_register_timeout()
781 now_sec = timeout->time.sec; in eloop_register_timeout()
782 timeout->time.sec += secs; in eloop_register_timeout()
783 if (timeout->time.sec < now_sec) { in eloop_register_timeout()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddecorators_test.py27 """Tests that the base decorator handles the timeout logic."""
31 def alwaysTimesOut(timeout=None, retries=None): argument
37 alwaysTimesOut(timeout=1, retries=0)
47 def alwaysRaisesCommandFailedError(timeout=None, retries=None): argument
52 alwaysRaisesCommandFailedError(timeout=30, retries=10)
56 """Tests that the base decorator requires timeout and retries params."""
58 def requiresExplicitTimeoutAndRetries(timeout=None, retries=None): argument
59 return (timeout, retries)
64 requiresExplicitTimeoutAndRetries(timeout=10)
70 requiresExplicitTimeoutAndRetries(timeout=expected_timeout,
[all …]
Ddecorators.py6 Function/method decorators that provide timeout and retry logic.
25 """ Wraps a funcion with timeout and retry handling logic.
29 timeout_func: A callable that returns the timeout value.
32 |retries_func| to the wrapped function as 'timeout' and
39 timeout = timeout_func(*args, **kwargs)
42 kwargs['timeout'] = timeout
50 # Don't wrap if there's already an outer timeout thread.
56 return timeout_retry.Run(impl, timeout, retries, desc=desc,
70 'timeout' and 'retries' kwargs must be passed to the function.
77 get_timeout = lambda *a, **kw: kw['timeout']
[all …]
/external/grpc-grpc/src/python/grpcio/grpc/beta/
D_client_adaptations.py93 def result(self, timeout=None): argument
95 return self._future.result(timeout=timeout)
103 def exception(self, timeout=None): argument
105 rpc_error_call = self._future.exception(timeout=timeout)
115 def traceback(self, timeout=None): argument
117 return self._future.traceback(timeout=timeout)
172 def _blocking_unary_unary(channel, group, method, timeout, with_call, argument
184 timeout=timeout,
191 timeout=timeout,
198 def _future_unary_unary(channel, group, method, timeout, protocol_options, argument
[all …]
/external/autotest/client/cros/
Dlogin.py36 def wait_for_condition(condition, timeout_msg, timeout, process, crash_msg): argument
39 Poll for |condition| to become true, for |timeout| seconds. If the timeout
45 @param timeout: float number of seconds to poll on |condition|.
50 @raise: TimeoutError if timeout is reached.
61 timeout=timeout)
71 def wait_for_browser(timeout=cros_ui.RESTART_UI_TIMEOUT): argument
74 @param timeout: float number of seconds to wait.
76 @raise: TimeoutError: Chrome didn't start before timeout.
81 timeout=timeout,
86 def wait_for_browser_exit(crash_msg, timeout=cros_ui.RESTART_UI_TIMEOUT): argument
[all …]
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DTimeout.java31 * This class offers two complementary controls to define a timeout policy.
44 public class Timeout { class
46 * An empty timeout that neither tracks nor detects timeouts. Use this when
50 public static final Timeout NONE = new Timeout() {
51 @Override public Timeout timeout(long timeout, TimeUnit unit) {
55 @Override public Timeout deadlineNanoTime(long deadlineNanoTime) {
71 public Timeout() { in Timeout() method in Timeout
75 * Wait at most {@code timeout} time before aborting an operation. Using a
76 * per-operation timeout means that as long as forward progress is being made,
79 * <p>If {@code timeout == 0}, operations will run indefinitely. (Operating
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DTimeout.java30 * This class offers two complementary controls to define a timeout policy.
42 public class Timeout { class
44 * An empty timeout that neither tracks nor detects timeouts. Use this when
48 public static final Timeout NONE = new Timeout() {
49 @Override public Timeout timeout(long timeout, TimeUnit unit) {
53 @Override public Timeout deadlineNanoTime(long deadlineNanoTime) {
69 public Timeout() { in Timeout() method in Timeout
73 * Wait at most {@code timeout} time before aborting an operation. Using a
74 * per-operation timeout means that as long as forward progress is being made,
77 * <p>If {@code timeout == 0}, operations will run indefinitely. (Operating
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/tests/
Dshtest-timeout.py11 # Test per test timeout using external shell
13 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
14 # RUN: %{inputs}/shtest-timeout/short.py \
15 # RUN: -j 1 -v --debug --timeout 2 --param external=1 > %t.extsh.out 2> %t.extsh.err
21 # Test per test timeout using internal shell
23 # RUN: %{inputs}/shtest-timeout/infinite_loop.py \
24 # RUN: %{inputs}/shtest-timeout/short.py \
25 # RUN: -j 1 -v --debug --timeout 2 --param external=0 > %t.intsh.out 2> %t.intsh.err
30 # CHECK-INTSH-OUT: TIMEOUT: per_test_timeout :: infinite_loop.py
32 # CHECK-INTSH-OUT: command reached timeout: True
[all …]
/external/webrtc/webrtc/base/
Dgunit.h22 // Wait until "ex" is true, or "timeout" expires.
23 #define WAIT(ex, timeout) \ argument
24 for (uint32_t start = rtc::Time(); !(ex) && rtc::Time() < start + timeout;) \
30 #define WAIT_(ex, timeout, res) \ argument
34 while (!res && rtc::Time() < start + timeout) { \
40 // The typical EXPECT_XXXX and ASSERT_XXXXs, but done until true or a timeout.
41 #define EXPECT_TRUE_WAIT(ex, timeout) \ argument
44 WAIT_(ex, timeout, res); \
48 #define EXPECT_EQ_WAIT(v1, v2, timeout) \ argument
51 WAIT_(v1 == v2, timeout, res); \
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/
Dtimeout.cpp2 #include "rxcpp/operators/rx-timeout.hpp"
6 SCENARIO("should timeout if the source never emits any items", "[timeout][operators]"){
13 rxcpp::timeout_error ex("timeout has occurred");
19 WHEN("timeout is set"){
24 | rxo::timeout(milliseconds(10), so); in __anon34a1c21a0102()
47 SCENARIO("should not timeout if completed before the specified timeout duration", "[timeout][operat…
59 WHEN("timeout is set"){
63 return xs.timeout(so, milliseconds(100)); in __anon34a1c21a0202()
87 SCENARIO("should not timeout if all items are emitted within the specified timeout duration", "[tim…
101 WHEN("timeout is set"){
[all …]
/external/u-boot/board/micronas/vct/
Dsmc_eeprom.c73 int timeout = req_to; in mac_busy() local
75 while (timeout--) { in mac_busy()
79 return 1; /* Timeout */ in mac_busy()
82 return 0; /* No timeout */ in mac_busy()
98 printf("get_mac_reg: timeout waiting for response from MAC\n"); in get_mac_reg()
138 ulong timeout = 100000; in eeprom_read_location() local
150 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_read_location()
152 timeout--; in eeprom_read_location()
155 if (timeout == 0) { in eeprom_read_location()
156 printf("Timeout\n"); in eeprom_read_location()
[all …]
/external/chromium-trace/catapult/systrace/systrace/tracing_agents/
D__init__.py13 # Timeout interval constants.
32 def StartAgentTracing(self, config, timeout=None): argument
33 '''Starts running the trace for this agent. Stops with timeout if
34 not completed within timeout interval.
39 timeout: Timeout interval in seconds.
46 def StopAgentTracing(self, timeout=None): argument
48 Stops with timeout if not completed within timeout interval.
51 timeout: Timeout interval in seconds.
78 def GetResults(self, timeout=None): argument
79 '''Get the completed trace for this agent, stopping with timeout
[all …]
/external/curl/tests/unit/
Dunit1303.c54 #define TIMEOUTS(x,y) data->set.timeout = x; data->set.connecttimeout = y
84 {BASE + 10, 0, 10000, 8000, FALSE, -1, "timeout is -1, expired"},
90 {BASE + 8, 0, 10000, 8000, TRUE, -1, "timeout is -1, expired"},
93 /* no connect timeout set, not connecting */
96 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"},
99 /* no connect timeout set, connecting */
102 {BASE + 10, 0, 10000, 0, FALSE, -1, "timeout is -1, expired"},
105 /* only connect timeout set, not connecting */
106 {BASE + 4, 0, 0, 10000, FALSE, 0, "no timeout active"},
107 {BASE + 4, 990000, 0, 10000, FALSE, 0, "no timeout active"},
[all …]
/external/grpc-grpc/src/python/grpcio/grpc/
D_interceptor.py49 ('method', 'timeout', 'metadata', 'credentials')),
61 timeout = call_details.timeout
63 timeout = default_details.timeout
75 return method, timeout, metadata, credentials
196 def __call__(self, request, timeout=None, metadata=None, credentials=None): argument
199 timeout=timeout,
204 def _with_call(self, request, timeout=None, metadata=None, argument
206 client_call_details = _ClientCallDetails(self._method, timeout,
215 timeout=new_timeout,
228 def with_call(self, request, timeout=None, metadata=None, credentials=None): argument
[all …]
/external/python/cpython2/Lib/
Dtelnetlib.py30 - timeout should be intrinsic to the connection object instead of an
150 read_until(expected, [timeout])
151 Read until the expected string has been seen, or a timeout is
152 hit (default is no timeout); may block.
189 timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
194 and timeout are optional.
199 self.timeout = timeout
211 self.open(host, port, timeout)
213 def open(self, host, port=0, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): argument
226 self.timeout = timeout
[all …]

12345678910>>...204