Home
last modified time | relevance | path

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

12345678910>>...718

/aosp_15_r20/external/okio/okio/src/jvmTest/kotlin/okio/
H A DAsyncTimeoutTest.kt47 a.timeout(250, TimeUnit.MILLISECONDS) in setUp()
48 b.timeout(500, TimeUnit.MILLISECONDS) in setUp()
49 c.timeout(750, TimeUnit.MILLISECONDS) in setUp()
50 d.timeout(1000, TimeUnit.MILLISECONDS) in setUp()
55 val timeout = RecordingAsyncTimeout() in zeroTimeoutIsNoTimeout() constant
56 timeout.timeout(0, TimeUnit.MILLISECONDS) in zeroTimeoutIsNoTimeout()
57 timeout.enter() in zeroTimeoutIsNoTimeout()
59 assertFalse(timeout.exit()) in zeroTimeoutIsNoTimeout()
146 a.timeout(10, TimeUnit.SECONDS) in reEnter()
155 a.timeout(1, TimeUnit.MILLISECONDS) in reEnterAfterTimeout()
[all …]
H A DPipeKotlinTest.kt29 import org.junit.rules.Timeout as JUnitTimeout
33 val timeout = JUnitTimeout(5, TimeUnit.SECONDS) constant
136 underlying.timeout.timeout(biggerTimeoutNanos, TimeUnit.NANOSECONDS) in honorsPipeSinkTimeoutOnWritingWhenItIsSmaller()
137 pipe.sink.timeout().timeout(smallerTimeoutNanos, TimeUnit.NANOSECONDS) in honorsPipeSinkTimeoutOnWritingWhenItIsSmaller()
144 assertEquals(biggerTimeoutNanos, underlying.timeout().timeoutNanos()) in honorsPipeSinkTimeoutOnWritingWhenItIsSmaller()
151 underlying.timeout.timeout(smallerTimeoutNanos, TimeUnit.NANOSECONDS) in honorsUnderlyingTimeoutOnWritingWhenItIsSmaller()
152 pipe.sink.timeout().timeout(biggerTimeoutNanos, TimeUnit.NANOSECONDS) in honorsUnderlyingTimeoutOnWritingWhenItIsSmaller()
159 assertEquals(smallerTimeoutNanos, underlying.timeout().timeoutNanos()) in honorsUnderlyingTimeoutOnWritingWhenItIsSmaller()
166 underlying.timeout.timeout(biggerTimeoutNanos, TimeUnit.NANOSECONDS) in honorsPipeSinkTimeoutOnFlushingWhenItIsSmaller()
167 pipe.sink.timeout().timeout(smallerTimeoutNanos, TimeUnit.NANOSECONDS) in honorsPipeSinkTimeoutOnFlushingWhenItIsSmaller()
[all …]
H A DWaitUntilNotifiedTest.kt35 private val timeout = factory.newTimeout() constant
46 timeout.timeout(5000, TimeUnit.MILLISECONDS) in notified()
57 timeout.waitUntilNotified(this) in notified()
63 fun timeout() { in timeout() method
65 timeout.timeout(1000, TimeUnit.MILLISECONDS) in timeout()
68 timeout.waitUntilNotified(this) in timeout()
71 assertEquals("timeout", expected.message) in timeout()
80 timeout.deadline(1000, TimeUnit.MILLISECONDS) in deadline()
83 timeout.waitUntilNotified(this) in deadline()
86 assertEquals("timeout", expected.message) in deadline()
[all …]
/aosp_15_r20/external/chromium-trace/catapult/devil/docs/
H A Ddevice_utils.md13 timeout: timeout in seconds
17 CommandTimeoutError on timeout.
56 timeout: timeout in seconds
60 CommandTimeoutError on timeout.
82 timeout: timeout in seconds
95 timeout: timeout in seconds
100 CommandTimeoutError on timeout.
124 timeout: timeout in seconds
133 CommandTimeoutError on timeout.
144 timeout: timeout in seconds
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/util/
Dtimeout.py5 # The default socket timeout, used by httplib to indicate that no timeout was; specified by the user
10 # A sentinel value to indicate that no timeout was specified by the user in
19 class Timeout(object): class
20 """Timeout configuration.
26 timeout = Timeout(connect=2.0, read=7.0)
27 http = PoolManager(timeout=timeout)
34 response = http.request('GET', 'http://example.com/', timeout=Timeout(10))
40 no_timeout = Timeout(connect=None, read=None)
41 response = http.request('GET', 'http://example.com/, timeout=no_timeout)
45 This combines the connect and read timeouts into one; the read timeout
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/util/
Dtimeout.py5 # The default socket timeout, used by httplib to indicate that no timeout was; specified by the user
10 # A sentinel value to indicate that no timeout was specified by the user in
19 class Timeout(object): class
20 """Timeout configuration.
26 timeout = Timeout(connect=2.0, read=7.0)
27 http = PoolManager(timeout=timeout)
34 response = http.request('GET', 'http://example.com/', timeout=Timeout(10))
40 no_timeout = Timeout(connect=None, read=None)
41 response = http.request('GET', 'http://example.com/, timeout=no_timeout)
45 This combines the connect and read timeouts into one; the read timeout
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/util/
Dtimeout.py5 # The default socket timeout, used by httplib to indicate that no timeout was; specified by the user
10 # A sentinel value to indicate that no timeout was specified by the user in
19 class Timeout(object): class
20 """Timeout configuration.
26 timeout = Timeout(connect=2.0, read=7.0)
27 http = PoolManager(timeout=timeout)
34 response = http.request('GET', 'http://example.com/', timeout=Timeout(10))
40 no_timeout = Timeout(connect=None, read=None)
41 response = http.request('GET', 'http://example.com/, timeout=no_timeout)
45 This combines the connect and read timeouts into one; the read timeout
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/util/
Dtimeout.py5 # The default socket timeout, used by httplib to indicate that no timeout was; specified by the user
10 # A sentinel value to indicate that no timeout was specified by the user in
19 class Timeout(object): class
20 """Timeout configuration.
26 timeout = Timeout(connect=2.0, read=7.0)
27 http = PoolManager(timeout=timeout)
34 response = http.request('GET', 'http://example.com/', timeout=Timeout(10))
40 no_timeout = Timeout(connect=None, read=None)
41 response = http.request('GET', 'http://example.com/, timeout=no_timeout)
45 This combines the connect and read timeouts into one; the read timeout
[all …]
/aosp_15_r20/external/chromium-trace/catapult/devil/devil/android/sdk/
H A Dadb_wrapper.py94 raw_version = AdbWrapper._RunAdbCmd(['version'], timeout=2, retries=0)
132 @decorators.WithExplicitTimeoutAndRetries(timeout=60, retries=3)
299 timeout=None, argument
305 if timeout:
308 # Use a slightly smaller timeout than remaining time to ensure that we
310 timeout = 0.95 * remaining
312 timeout = None
319 timeout,
327 logger.error('Timeout on adb command: %r', adb_cmd)
348 def _RunDeviceAdbCmd(self, args, timeout, retries, check_error=True): argument
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202302/MdePkg/Include/Library/
H A DUefiScsiLib.h22 If Timeout is zero, then this function waits indefinitely for the command to complete.
23 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
35 @param[in] Timeout The timeout in 100 ns units to use for the execution
36 of this SCSI Request Packet. A Timeout value of
38 for the SCSI Request Packet to execute. If Timeout
41 Request Packet is greater than Timeout.
78 @retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request
89 IN UINT64 Timeout,
100 If Timeout is zero, then this function waits indefinitely for the command to complete.
101 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202111/MdePkg/Include/Library/
H A DUefiScsiLib.h22 If Timeout is zero, then this function waits indefinitely for the command to complete.
23 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
35 @param[in] Timeout The timeout in 100 ns units to use for the execution
36 of this SCSI Request Packet. A Timeout value of
38 for the SCSI Request Packet to execute. If Timeout
41 Request Packet is greater than Timeout.
78 @retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request
89 IN UINT64 Timeout,
101 If Timeout is zero, then this function waits indefinitely for the command to complete.
102 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/edk2-stable202005/MdePkg/Include/Library/
H A DUefiScsiLib.h22 If Timeout is zero, then this function waits indefinitely for the command to complete.
23 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
35 @param[in] Timeout The timeout in 100 ns units to use for the execution
36 of this SCSI Request Packet. A Timeout value of
38 for the SCSI Request Packet to execute. If Timeout
41 Request Packet is greater than Timeout.
78 @retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request
89 IN UINT64 Timeout,
101 If Timeout is zero, then this function waits indefinitely for the command to complete.
102 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
[all …]
/aosp_15_r20/external/coreboot/src/vendorcode/intel/edk2/UDK2017/MdePkg/Include/Library/
H A DUefiScsiLib.h28 If Timeout is zero, then this function waits indefinitely for the command to complete.
29 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
41 @param[in] Timeout The timeout in 100 ns units to use for the execution
42 of this SCSI Request Packet. A Timeout value of
44 for the SCSI Request Packet to execute. If Timeout
47 Request Packet is greater than Timeout.
84 @retval EFI_TIMEOUT A timeout occurred while waiting for the SCSI Request
95 IN UINT64 Timeout,
107 If Timeout is zero, then this function waits indefinitely for the command to complete.
108 …If Timeout is greater than zero, then the command is executed and will timeout after Timeout 100 n…
[all …]
/aosp_15_r20/external/okhttp/okio/okio/src/test/java/okio/
H A 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 …]
/aosp_15_r20/cts/tests/inputmethod/src/android/view/inputmethod/cts/
H A DKeyboardVisibilityControlTest.java156 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(6); field in KeyboardVisibilityControlTest
259 expectEvent(stream, editorMatcher("onStartInput", marker), TIMEOUT); in testBasicShowHideSoftInput()
260 notExpectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testBasicShowHideSoftInput()
261 expectImeInvisible(TIMEOUT); in testBasicShowHideSoftInput()
271 expectEvent(stream, showSoftInputMatcher(InputMethod.SHOW_EXPLICIT), TIMEOUT); in testBasicShowHideSoftInput()
272 expectEvent(stream, editorMatcher("onStartInputView", marker), TIMEOUT); in testBasicShowHideSoftInput()
274 View.VISIBLE, TIMEOUT); in testBasicShowHideSoftInput()
275 expectImeVisible(TIMEOUT); in testBasicShowHideSoftInput()
281 expectEvent(stream, hideSoftInputMatcher(), TIMEOUT); in testBasicShowHideSoftInput()
282 expectEvent(stream, onFinishInputViewMatcher(false), TIMEOUT); in testBasicShowHideSoftInput()
[all …]
H A DInputMethodServiceTest.java142 private static final long TIMEOUT = TimeUnit.SECONDS.toMillis(20); field in InputMethodServiceTest
215 expectEvent(stream, editorMatcher("onStartInputView", mMarker), TIMEOUT);
220 expectCommand(stream, command, TIMEOUT).getReturnBooleanValue());
233 expectEvent(stream, eventMatcher("onStartInput"), TIMEOUT);
236 final ImeEvent event = expectCommand(stream, cmd, TIMEOUT);
257 expectEvent(stream, eventMatcher("onStartInput"), TIMEOUT);
260 final ImeEvent event = expectCommand(stream, cmd, TIMEOUT);
281 expectEvent(stream, editorMatcher("onStartInputView", mMarker), TIMEOUT);
284 expectCommand(stream, command, TIMEOUT);
291 expectEvent(stream, backKeyDownMatcher(true), CHECK_EXIT_EVENT_ONLY, TIMEOUT);
[all …]
/aosp_15_r20/external/junit/src/main/java/org/junit/rules/
H A DTimeout.java10 * The Timeout Rule applies the same timeout to all test methods in a class:
15 * public Timeout globalTimeout = Timeout.millis(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 …]
/aosp_15_r20/external/python/python-api-core/google/api_core/gapic_v1/
Dmethod.py17 This is used by gapic clients to provide common error mapping, retry, timeout,
25 from google.api_core import timeout
41 """Sentinel value indicating that a retry or timeout argument was unspecified,
64 """Determines how timeout should be applied to a wrapped method.
67 default_timeout (Optional[Timeout]): The default timeout specified
69 specified_timeout (Optional[Timeout]): The timeout specified at
75 Optional[Timeout]: The timeout to apply to the method or ``None``.
77 # If timeout is specified as a number instead of a Timeout instance,
80 specified_timeout = timeout.ConstantTimeout(specified_timeout)
82 default_timeout = timeout.ConstantTimeout(default_timeout)
[all …]
/aosp_15_r20/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
H A DTimeoutTest.java27 import com.android.compatibility.common.util.Timeout.Sleeper;
50 assertThrows(IllegalArgumentException.class, ()-> new Timeout(null, 1, 2, 2)); in testInvalidConstructor()
51 assertThrows(IllegalArgumentException.class, ()-> new Timeout("", 1, 2, 2)); in testInvalidConstructor()
53 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, -1, 2, 2)); in testInvalidConstructor()
54 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 0, 2, 2)); in testInvalidConstructor()
56 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, -1, 2)); in testInvalidConstructor()
57 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 0, 2)); in testInvalidConstructor()
58 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 1, 2)); in testInvalidConstructor()
60 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, -1)); in testInvalidConstructor()
61 assertThrows(IllegalArgumentException.class, ()-> new Timeout(NAME, 1, 2, 0)); in testInvalidConstructor()
[all …]
/aosp_15_r20/external/okio/okio/src/jvmMain/kotlin/okio/
H A DTimeout.kt27 actual open class Timeout { class
38 * before and after an operation to test if the timeout was canceled during the operation.
43 * Wait at most `timeout` time before aborting an operation. Using a per-operation timeout means
46 * If `timeout == 0`, operations will run indefinitely. (Operating system timeouts may still
49 open fun timeout(timeout: Long, unit: TimeUnit): Timeout { in timeout() method in okio.Timeout
50 require(timeout >= 0) { "timeout < 0: $timeout" } in timeout()
51 timeoutNanos = unit.toNanos(timeout) in timeout()
55 /** Returns the timeout in nanoseconds, or `0` for no timeout. */
76 open fun deadlineNanoTime(deadlineNanoTime: Long): Timeout { in deadlineNanoTime()
83 fun deadline(duration: Long, unit: TimeUnit): Timeout { in deadline()
[all …]
/aosp_15_r20/external/wpa_supplicant_8/src/utils/
H A 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 …]
/aosp_15_r20/external/llvm/utils/lit/tests/
H A 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 …]
/aosp_15_r20/external/grpc-grpc/src/python/grpcio/grpc/beta/
H A D_client_adaptations.py106 def result(self, timeout=None): argument
108 return self._future.result(timeout=timeout)
116 def exception(self, timeout=None): argument
118 rpc_error_call = self._future.exception(timeout=timeout)
128 def traceback(self, timeout=None): argument
130 return self._future.traceback(timeout=timeout)
188 timeout, argument
207 timeout=timeout,
215 timeout=timeout,
227 timeout, argument
[all …]
/aosp_15_r20/external/python/python-api-core/google/api_core/
Dtimeout.py15 """Decorators for applying timeout arguments to functions.
18 or exponential timeout argument.
25 def is_thing_ready(timeout=None):
35 timeout_ = timeout.ExponentialTimeout()
45 small timeout (like 1 second). If the resource is available and the request
47 and the request times out, it'll be retried - this time with a larger timeout.
51 matches ``api_method(request, timeout=None, retry=None)``.
65 # timeout calculation.
70 """A decorator that adds a constant timeout argument.
73 ``functools.partial(func, timeout=timeout)``.
[all …]
/aosp_15_r20/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
H A DTimeouts.java19 import com.android.compatibility.common.util.Timeout;
36 * Timeout until framework binds / unbinds from service.
38 public static final Timeout CONNECTION_TIMEOUT = new Timeout("CONNECTION_TIMEOUT",
42 * Timeout for {@link MyAutofillCallback#assertNotCalled()} - test will sleep for that amount of
48 * Timeout until framework unbinds from a service.
52 public static final Timeout IDLE_UNBIND_TIMEOUT = new Timeout("IDLE_UNBIND_TIMEOUT",
56 * Timeout to get the expected number of fill events.
58 public static final Timeout FILL_EVENTS_TIMEOUT = new Timeout("FILL_EVENTS_TIMEOUT",
62 * Timeout for expected autofill requests.
64 public static final Timeout FILL_TIMEOUT = new Timeout("FILL_TIMEOUT",
[all …]

12345678910>>...718