/external/chromium-trace/catapult/common/py_utils/py_utils/ |
H A D | retry_util_unittest.py | 20 @retry_util.RetryOnException(Exception, retries=3) 21 def Test(retries=None): 22 del retries 31 @retry_util.RetryOnException(KeyError, retries=5) 32 def Test(retries=None): 33 del retries 42 # Waits between retries do follow exponential backoff. 48 @retry_util.RetryOnException(KeyError, retries=3) 49 def Test(retries=None): 50 del retries [all...] |
H A D | retry_util.py | 9 def RetryOnException(exc_type, retries): 15 Note: the default number of retries is defined on the decorator, the decorated 16 function *must* also receive a "retries" argument (although its assigned 18 number of retries at the call site. 20 The "unused" retries argument on the decorated function must be given to 26 @retry_util.RetryOnException(OSError, retries=3) # default no. of retries 27 def ProcessSomething(thing, retries=None): # this default value is ignored 28 del retries # Unused. Handled by the decorator. 31 ProcessSomething(a_thing) # retries [all...] |
/external/chromium-trace/catapult/devil/devil/android/sdk/ |
H A D | adb_wrapper.py | 86 raw_version = AdbWrapper._RunAdbCmd(['version'], timeout=2, retries=0) 255 def _RunAdbCmd(cls, args, timeout=None, retries=None, device_serial=None, 286 def _RunDeviceAdbCmd(self, args, timeout, retries, check_error=True): 292 retries: Number of retries. 299 return self._RunAdbCmd(args, timeout=timeout, retries=retries, 352 def KillServer(cls, timeout=DEFAULT_TIMEOUT, retries=DEFAULT_RETRIES): 353 cls._RunAdbCmd(['kill-server'], timeout=timeout, retries=retries) [all...] |
H A D | fastboot.py | 84 def Flash(self, partition, image, timeout=None, retries=None): 95 def Devices(cls, timeout=None, retries=None): 105 def RebootBootloader(self, timeout=None, retries=None): 110 def Reboot(self, timeout=None, retries=None): 115 def SetOemOffModeCharge(self, value, timeout=None, retries=None):
|
/external/libmojo/third_party/catapult/devil/devil/android/sdk/ |
H A D | adb_wrapper.py | 223 def _RunAdbCmd(cls, args, timeout=None, retries=None, device_serial=None, 247 def _RunDeviceAdbCmd(self, args, timeout, retries, check_error=True): 253 retries: Number of retries. 260 return self._RunAdbCmd(args, timeout=timeout, retries=retries, 309 def KillServer(cls, timeout=DEFAULT_TIMEOUT, retries=DEFAULT_RETRIES): 310 cls._RunAdbCmd(['kill-server'], timeout=timeout, retries=retries) 313 def StartServer(cls, timeout=DEFAULT_TIMEOUT, retries [all...] |
H A D | fastboot.py | 67 def Flash(self, partition, image, timeout=None, retries=None): 77 def Devices(self, timeout=None, retries=None): 83 def RebootBootloader(self, timeout=None, retries=None): 88 def Reboot(self, timeout=None, retries=None): 93 def SetOemOffModeCharge(self, value, timeout=None, retries=None):
|
/external/chromium-trace/catapult/devil/devil/android/ |
H A D | crash_handler.py | 14 def RetryOnSystemCrash(f, device, retries=3): 25 retries: the number of retries. 34 if num_try > retries:
|
H A D | decorators_test.py | 31 def alwaysTimesOut(timeout=None, retries=None): 37 alwaysTimesOut(timeout=1, retries=0) 43 """Tests that the base decorator handles the retries logic.""" 47 def alwaysRaisesCommandFailedError(timeout=None, retries=None): 52 alwaysRaisesCommandFailedError(timeout=30, retries=10) 56 """Tests that the base decorator requires timeout and retries params.""" 58 def requiresExplicitTimeoutAndRetries(timeout=None, retries=None): 59 return (timeout, retries) 66 requiresExplicitTimeoutAndRetries(retries=0) 71 retries [all...] |
H A D | crash_handler_devicetest.py | 42 trigger_cmd, shell=True, check_return=True, retries=1, 47 self.device.ReadFile(trigger_file.name, retries=0).strip()) 54 trigger_file.name, retries=0).strip() 63 expect_status=None, timeout=60, retries=0)
|
H A D | battery_utils.py | 204 def SupportsFuelGauge(self, timeout=None, retries=None): 209 retries: number of retries 220 def GetFuelGaugeChargeCounter(self, timeout=None, retries=None): 228 retries: number of retries 243 def GetNetworkData(self, package, timeout=None, retries=None): 249 retries: number of retries 281 def GetPowerData(self, timeout=None, retries [all...] |
H A D | decorators.py | 30 retries_func: A callable that returns the retries value. 33 'retries' kwargs, respectively. 40 retries = retries_func(*args, **kwargs) 43 kwargs['retries'] = retries 56 return timeout_retry.Run(impl, timeout, retries, desc=desc, 68 """A decorator that handles timeouts and retries. 70 'timeout' and 'retries' kwargs must be passed to the function. 78 get_retries = lambda *a, **kw: kw['retries'] 83 """Returns a decorator that handles timeouts and, in some cases, retries [all...] |
/external/libmojo/third_party/catapult/devil/devil/android/ |
H A D | decorators_test.py | 31 def alwaysTimesOut(timeout=None, retries=None): 37 alwaysTimesOut(timeout=1, retries=0) 43 """Tests that the base decorator handles the retries logic.""" 47 def alwaysRaisesCommandFailedError(timeout=None, retries=None): 52 alwaysRaisesCommandFailedError(timeout=30, retries=10) 56 """Tests that the base decorator requires timeout and retries params.""" 58 def requiresExplicitTimeoutAndRetries(timeout=None, retries=None): 59 return (timeout, retries) 66 requiresExplicitTimeoutAndRetries(retries=0) 71 retries [all...] |
H A D | battery_utils.py | 160 def SupportsFuelGauge(self, timeout=None, retries=None): 165 retries: number of retries 176 def GetFuelGaugeChargeCounter(self, timeout=None, retries=None): 184 retries: number of retries 199 def GetNetworkData(self, package, timeout=None, retries=None): 205 retries: number of retries 237 def GetPowerData(self, timeout=None, retries [all...] |
H A D | decorators.py | 30 retries_func: A callable that returns the retries value. 33 'retries' kwargs, respectively. 40 retries = retries_func(*args, **kwargs) 43 kwargs['retries'] = retries 56 return timeout_retry.Run(impl, timeout, retries, desc=desc, 68 """A decorator that handles timeouts and retries. 70 'timeout' and 'retries' kwargs must be passed to the function. 78 get_retries = lambda *a, **kw: kw['retries'] 83 """Returns a decorator that handles timeouts and, in some cases, retries [all...] |
/external/tensorflow/tensorflow/core/platform/cloud/ |
H A D | retrying_utils.cc | 55 int retries = 0; local 61 if (retries >= kMaxRetries) { 73 delay_micros = std::min(initial_delay_microseconds << retries, 79 << (retries + 1) << " out of " << kMaxRetries 82 retries++;
|
/external/syslinux/gpxe/src/include/gpxe/ |
H A D | rc80211.h | 15 void rc80211_update_tx ( struct net80211_device *dev, int retries, int rc );
|
/external/syslinux/gpxe/src/arch/i386/firmware/pcbios/ |
H A D | gateA20.c | 63 * @v retries Number of times to retry before giving up 66 static int gateA20_is_set ( int retries ) { 86 } while ( retries-- >= 0 ); 105 int retries = 0; local 116 for ( ; retries < A20_MAX_RETRIES ; retries++ ) { 168 if ( retries ) 170 ( retries + 1 ) );
|
/external/tensorflow/tensorflow/contrib/factorization/kernels/ |
H A D | clustering_ops_test.cc | 46 // Number of retries for tests. 92 #define RUN_BM_KmeansPlusPlusInitialization(retries) \ 93 BENCHMARK_KMEANS_PLUS_PLUS(k10Points, k2Centers, k100Dim, retries); \ 94 BENCHMARK_KMEANS_PLUS_PLUS(k10Points, k5Centers, k100Dim, retries); \ 95 BENCHMARK_KMEANS_PLUS_PLUS(k10Points, k10Centers, k100Dim, retries); \ 96 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k10Centers, k100Dim, retries); \ 97 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k20Centers, k100Dim, retries); \ 98 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k50Centers, k100Dim, retries); \ 99 BENCHMARK_KMEANS_PLUS_PLUS(k100Points, k100Centers, k100Dim, retries); \ 100 BENCHMARK_KMEANS_PLUS_PLUS(k1kPoints, k100Centers, k100Dim, retries); \ [all...] |
/external/autotest/server/cros/ap_configurators/ |
H A D | ap_batch_locker.py | 29 @attribute retries: an integer, max number of retry attempts to lock ap. 33 def __init__(self, configurator, retries): 37 @param retries: an integer, max number of retry attempts to lock ap. 41 self.retries = retries 45 """@return class name, ap host name, lock status and retries.""" 46 return 'class: %s, host name: %s, to_be_locked = %s, retries = %d' % ( 50 self.retries) 53 def construct_ap_lockers(ap_spec, retries, hostname_matching_only=False, 58 @param retries [all...] |
/external/curl/docs/cmdline-opts/ |
H A D | retry.d | 8 makes curl do no retries (which is the default). Transient error means either: 12 for all forthcoming retries it will double the waiting time until it reaches 13 10 minutes which then will be the delay between the rest of the retries. By 15 --retry-max-time to limit the total time allowed for retries.
|
H A D | retry-delay.d | 3 Help: Wait time between retries 8 between retries). This option is only interesting if --retry is also
|
/external/autotest/client/cros/chameleon/ |
H A D | chameleon_bluetooth_audio.py | 117 pairing_timeout=_PAIRING_TIMEOUT, retries=3): 126 @param retries: Number of retries if pairing fails. 129 bluetooth module on audio board after all the retries. 133 for trial in xrange(retries): 138 elif trial == retries - 1:
|
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/ |
H A D | tm-syscall.c | 25 unsigned retries = 0; variable 54 retries++; 98 printf("(There were %d transaction retries.)\n", retries);
|
/external/toolchain-utils/crosperf/ |
H A D | benchmark.py | 58 retries=0, 71 self.retries = retries
|
/external/autotest/server/cros/clique_lib/ |
H A D | clique_dut_locker.py | 46 """@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): 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 [all...] |