Home
last modified time | relevance | path

Searched full:retries (Results 1 – 25 of 695) sorted by relevance

12345678910>>...28

/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_wrapper.py94 raw_version = AdbWrapper._RunAdbCmd(['version'], timeout=2, retries=0)
132 @decorators.WithExplicitTimeoutAndRetries(timeout=60, retries=3)
300 retries=None, argument
348 def _RunDeviceAdbCmd(self, args, timeout, retries, check_error=True): argument
354 retries: Number of retries.
365 retries=retries,
423 def KillServer(cls, timeout=DEFAULT_TIMEOUT, retries=DEFAULT_RETRIES): argument
424 cls._RunAdbCmd(['kill-server'], timeout=timeout, retries=retries)
430 retries=DEFAULT_RETRIES): argument
436 retries: (optional) Number of retries to attempt.
[all …]
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dretry_util_unittest.py21 @retry_util.RetryOnException(Exception, retries=3)
22 def Test(retries=None): argument
23 del retries
32 @retry_util.RetryOnException(KeyError, retries=5)
33 def Test(retries=None): argument
34 del retries
43 # Waits between retries do follow exponential backoff.
49 @retry_util.RetryOnException(KeyError, retries=3)
50 def Test(retries=None): argument
51 del retries
[all …]
Dretry_util.py13 def RetryOnException(exc_type, retries): argument
19 Note: the default number of retries is defined on the decorator, the decorated
20 function *must* also receive a "retries" argument (although its assigned
22 number of retries at the call site.
24 The "unused" retries argument on the decorated function must be given to
30 @retry_util.RetryOnException(OSError, retries=3) # default no. of retries
31 def ProcessSomething(thing, retries=None): # this default value is ignored
32 del retries # Unused. Handled by the decorator.
35 ProcessSomething(a_thing) # retries 3 times.
36 ProcessSomething(b_thing, retries=5) # retries 5 times.
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddecorators_test.py30 def alwaysTimesOut(timeout=None, retries=None): argument
36 alwaysTimesOut(timeout=1, retries=0)
42 """Tests that the base decorator handles the retries logic."""
46 def alwaysRaisesCommandFailedError(timeout=None, retries=None): argument
51 alwaysRaisesCommandFailedError(timeout=30, retries=10)
55 """Tests that the base decorator requires timeout and retries params."""
58 def requiresExplicitTimeoutAndRetries(timeout=None, retries=None): argument
59 return (timeout, retries)
66 requiresExplicitTimeoutAndRetries(retries=0)
70 timeout=expected_timeout, retries=expected_retries))
[all …]
Ddecorators.py33 retries_func: A callable that returns the retries value.
36 'retries' kwargs, respectively.
44 retries = retries_func(*args, **kwargs)
47 kwargs['retries'] = retries
63 impl, timeout, retries, desc=desc, retry_if_func=retry_if_func)
79 """A decorator that handles timeouts and retries.
81 'timeout' and 'retries' kwargs must be passed to the function.
89 get_retries = lambda *a, **kw: kw['retries']
94 """Returns a decorator that handles timeouts and, in some cases, retries.
96 'timeout' and 'retries' kwargs must be passed to the function.
[all …]
Dbattery_utils.py205 def SupportsFuelGauge(self, timeout=None, retries=None): argument
210 retries: number of retries
221 def GetFuelGaugeChargeCounter(self, timeout=None, retries=None): argument
229 retries: number of retries
243 def GetPowerData(self, timeout=None, retries=None): argument
248 retries: number of retries
308 def GetBatteryInfo(self, timeout=None, retries=None): argument
313 retries: number of retries
334 def GetCharging(self, timeout=None, retries=None): argument
339 retries: number of retries
[all …]
Ddevice_utils.py508 def IsOnline(self, timeout=None, retries=None): argument
513 retries: number of retries
528 def HasRoot(self, timeout=None, retries=None): argument
547 retries: number of retries
565 def NeedsSU(self, timeout=DEFAULT, retries=DEFAULT): argument
570 retries: number of retries
600 retries=self._default_retries if retries is DEFAULT else retries)
612 def EnableRoot(self, timeout=None, retries=None): argument
617 retries: number of retries
650 def IsUserBuild(self, timeout=None, retries=None): argument
[all …]
Dcrash_handler.py13 def RetryOnSystemCrash(f, device, retries=3): argument
14 """Retries the given function on a device crash.
24 retries: the number of retries.
33 if num_try > retries:
/external/chromium-trace/catapult/devil/docs/
Dadb_wrapper.md21 retries: (optional) Number of retries to attempt.
43 retries: (optional) Number of retries to attempt.
78 retries: (optional) Number of retries to attempt.
88 retries: (optional) Number of retries to attempt.
101 retries: (optional) Number of retries to attempt.
111 retries: (optional) Number of retries to attempt.
133 retries: (optional) Number of retries to attempt.
155 retries: (optional) Number of retries to attempt.
175 retries: (optional) Number of retries to attempt.
198 retries: (optional) Number of retries to attempt.
[all …]
Ddevice_utils.md14 retries: number of retries
57 retries: number of retries
83 retries: number of retries
96 retries: number of retries
125 retries: number of retries
145 retries: number of retries
159 retries: number of retries
176 retries: number of retries
226 retries: number of retries
288 retries: number of retries
[all …]
/external/autotest/client/common_lib/cros/
Dvpd_utils.py25 def dump_vpd_log(host, force=True, retries=3): argument
33 @param retries: Number of times to try rerunning the command in case of
38 retry_util.RetryException(error.AutoservRunError, retries, host.run,
42 def vpd_get(host, key, partition='RW_VPD', retries=3): argument
49 @param retries: Number of times to try rerunning the command in case of
56 return retry_util.RetryException(error.AutoservRunError, retries,
66 retries=3): argument
78 @param retries: Number of times to try rerunning the command in case of
86 retry_util.RetryException(error.AutoservRunError, retries,
90 dump_vpd_log(host, force=force_dump, retries=retries)
[all …]
/external/autotest/server/cros/ap_configurators/
Dap_batch_locker.py27 @attribute retries: an integer, max number of retry attempts to lock ap.
31 def __init__(self, configurator, retries): argument
35 @param retries: an integer, max number of retry attempts to lock ap.
39 self.retries = retries
43 """@return class name, ap host name, lock status and retries."""
44 return 'class: %s, host name: %s, to_be_locked = %s, retries = %d' % (
48 self.retries)
51 def construct_ap_lockers(ap_spec, retries, hostname_matching_only=False, argument
56 @param retries: an integer, max number of retry attempts to lock ap.
70 ap_lockers_list.append(ApLocker(ap, retries))
[all …]
/external/autotest/server/cros/clique_lib/
Dclique_dut_locker.py46 """@return class name, dut host name, lock status and retries."""
73 @attribute retries: an integer, max number of retry attempts to lock DUT.
78 def __init__(self, dut_spec, retries): argument
83 @param retries: an integer, max number of retry attempts to lock DUT.
86 self.retries = retries
90 """@return class name, dut host name, lock status and retries."""
91 return 'class: %s, host name: %s, to_be_locked = %s, retries = %d' % (
95 self.retries)
102 retries.
112 def __init__(self, lock_manager, dut_pool_spec, retries=MAX_RETRIES): argument
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DErrors.kt93 * Retries collection of the given flow up to [retries] times when an exception that matches the
99 …* The default value of [retries] parameter is [Long.MAX_VALUE]. This value effectively means to re…
101 * and [predicate] is not called when it reaches the given number of [retries]:
104 * retryWhen { cause, attempt -> attempt < retries && predicate(cause) }
117 * @throws IllegalArgumentException when [retries] is not positive.
120 retries: Long = Long.MAX_VALUE, in retry()
123 require(retries > 0) { "Expected positive amount of retries, but had $retries" } in <lambda>()
124 return retryWhen { cause, attempt -> attempt < retries && predicate(cause) } in cause()
128 @Deprecated(level = DeprecationLevel.HIDDEN, message = "binary compatibility with retries: Int prev…
130 retries: Int = Int.MAX_VALUE, in retry()
[all …]
/external/llvm-project/llvm/utils/lit/tests/
Dallow-retries.py3 # This test uses a file that's stable across retries of the test to fail and
7 # RUN: %{lit} -j 1 %{inputs}/allow-retries/succeeds-within-limit.py -Dcounter=%t.counter -Dpython=%…
13 # RUN: %{lit} -j 1 %{inputs}/allow-retries/succeeds-within-limit.py -Dtest_retry_attempts=2 -Dcount…
18 # RUN: not %{lit} -j 1 %{inputs}/allow-retries/does-not-succeed-within-limit.py | FileCheck --check…
20 # CHECK-TEST3: allow-retries :: does-not-succeed-within-limit.py
25 # RUN: not %{lit} -j 1 %{inputs}/allow-retries/more-than-one-allow-retries-lines.py | FileCheck --c…
27 # CHECK-TEST4: allow-retries :: more-than-one-allow-retries-lines.py
32 # RUN: not %{lit} -j 1 %{inputs}/allow-retries/not-a-valid-integer.py | FileCheck --check-prefix=CH…
34 # CHECK-TEST5: allow-retries :: not-a-valid-integer.py
/external/tensorflow/tensorflow/core/kernels/
Dclustering_ops_test.cc46 // Number of retries for tests.
91 #define RUN_BM_KmeansPlusPlusInitialization(retries) \ argument
92 BENCHMARK_KMEANS_PLUS_PLUS(k10Points, k2Centers, k100Dim, retries); \
93 BENCHMARK_KMEANS_PLUS_PLUS(k10Points, k5Centers, k100Dim, retries); \
94 BENCHMARK_KMEANS_PLUS_PLUS(k10Points, k10Centers, k100Dim, retries); \
95 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k10Centers, k100Dim, retries); \
96 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k20Centers, k100Dim, retries); \
97 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k50Centers, k100Dim, retries); \
98 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k100Centers, k100Dim, retries); \
99 BENCHMARK_KMEANS_PLUS_PLUS(k1kPoints, k100Centers, k100Dim, retries); \
[all …]
/external/autotest/client/cros/cellular/pseudomodem/
Dsim.py130 'retries' : pin_retries
134 'retries' : puk_retries
188 Returns the number of unlock retries left.
190 @returns: The number of unlock retries for each lock type the SIM
194 retries = dbus.Dictionary(signature='uu')
196 return retries
198 retries[dbus.types.UInt32(k)] = dbus.types.UInt32(v['retries'])
199 return retries
283 # - if the number of retries left for |lock_data| drops down to 0,
296 # remaining retries.
[all …]
/external/arm-trusted-firmware/drivers/rpi3/mailbox/
Drpi3_mbox.c26 unsigned int retries; in rpi3_vc_mailbox_request_send() local
35 retries = 0U; in rpi3_vc_mailbox_request_send()
40 retries++; in rpi3_vc_mailbox_request_send()
41 if (retries == RPI3_MAILBOX_MAX_RETRIES) { in rpi3_vc_mailbox_request_send()
53 retries = 0U; in rpi3_vc_mailbox_request_send()
58 retries++; in rpi3_vc_mailbox_request_send()
59 if (retries == RPI3_MAILBOX_MAX_RETRIES) { in rpi3_vc_mailbox_request_send()
/external/toolchain-utils/crosperf/
Dexperiment_factory.py104 show_all_results, retries, run_local, cwp_dso, weight): argument
109 suite, show_all_results, retries, run_local, cwp_dso, weight)
239 retries = benchmark_settings.GetField('retries')
261 show_all_results, retries, run_local, cwp_dso,
266 perf_args, suite, show_all_results, retries,
272 retries, run_local, cwp_dso, weight)
282 retries,
289 perf_args, suite, show_all_results, retries,
304 retries))
319 # retries,
[all …]
/external/ppp/pppd/plugins/radius/
Dbuildreq.c64 int timeout, int retries) in rc_buildreq() argument
70 data->retries = retries; in rc_buildreq()
196 int retries = rc_conf_int("radius_retries"); in rc_auth_using_server() local
224 authserver->port[i], timeout, retries); in rc_auth_using_server()
254 int retries = rc_conf_int("radius_retries"); in rc_auth_proxy() local
268 authserver->port[i], timeout, retries); in rc_auth_proxy()
300 int retries = rc_conf_int("radius_retries"); in rc_acct_using_server() local
337 acctserver->port[i], timeout, retries); in rc_acct_using_server()
383 int retries = rc_conf_int("radius_retries"); in rc_acct_proxy() local
397 acctserver->port[i], timeout, retries); in rc_acct_proxy()
[all …]
/external/chromium-trace/catapult/devil/devil/utils/
Dtimeout_retry.py4 """A utility to run functions with timeouts and retries."""
121 retries, argument
127 """Runs the passed function in a separate thread with timeouts and retries.
132 retries: the number of retries.
171 if num_try > retries or not retry_if_func(e):
175 if num_try > retries or not retry_if_func(e):
178 desc, num_try, retries + 1, e)
/external/libwebsockets/READMEs/
DREADME.udp.md10 ## Implementing UDP retries
12 Retries are important in udp but there's no standardized ack method
16 retries must live in the user's transaction object like this
33 /* we have reached the end of our concealed retries */
34 lwsl_warn("%s: concealed retries done, failing\n", __func__);
/external/autotest/server/cros/dynamic_suite/
Dfrontend_wrappers.py52 """Wrapper around frontend.AFE that retries all RPCs.
54 Timeout for retries and delay between retries are configurable.
60 @param delay_sec: pre-jittered delay between retries in seconds.
146 """Wrapper around frontend.TKO that retries all RPCs.
148 Timeout for retries and delay between retries are configurable.
154 @param delay_sec: pre-jittered delay between retries in seconds.
/external/webrtc/rtc_base/experiments/
Dfield_trial_parser_unittest.cc25 FieldTrialParameter<int> retries = FieldTrialParameter<int>("r", 5); member
32 ParseFieldTrial({&enabled, &factor, &retries, &size, &ping, &hash}, in DummyExperiment()
37 ParseFieldTrial({&enabled, &factor, &retries, &size, &ping, &hash}, in DummyExperiment()
54 EXPECT_EQ(exp.retries.Get(), 2); in TEST()
67 EXPECT_EQ(exp.retries.Get(), 2); in TEST()
76 EXPECT_EQ(exp.retries.Get(), 5); in TEST()
85 EXPECT_EQ(exp.retries.Get(), 5); in TEST()
103 EXPECT_EQ(exp.retries.Get(), -11); in TEST()
109 EXPECT_EQ(exp.retries.Get(), 5); in TEST()
/external/autotest/server/hosts/
Dfile_store_unittest.py61 # file_lock_timeout of 0 forces no retries (speeds up the test)
77 # file_lock_timeout of 0 forces no retries (speeds up the test)
90 # file_lock_timeout of 0 forces no retries (speeds up the test)
99 # file_lock_timeout of 0 forces no retries (speeds up the test)
110 # file_lock_timeout of 0 forces no retries (speeds up the test)
124 """Tests that commit succeeds when locking requires retries.
144 """Tests that refresh succeeds when locking requires retries.

12345678910>>...28