/aosp_15_r20/external/chromium-trace/catapult/devil/devil/android/sdk/ |
H A D | adb_wrapper.py | 94 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 …]
|
/aosp_15_r20/external/chromium-trace/catapult/devil/docs/ |
H A D | device_utils.md | 14 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 …]
|
H A D | adb_wrapper.md | 21 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 …]
|
/aosp_15_r20/external/chromium-trace/catapult/devil/devil/android/ |
H A D | decorators_test.py | 30 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 …]
|
H A D | device_utils.py | 508 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 …]
|
H A D | decorators.py | 33 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 …]
|
H A D | battery_utils.py | 205 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 …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/contrib/ |
D | appengine.py | 102 retries=None, argument 122 self.retries = retries or Retry.DEFAULT 137 retries=None, argument 143 retries = self._get_retries(retries, redirect) 146 follow_redirects = redirect and retries.redirect != 0 and retries.total 190 response, retries=retries, **response_kw 197 if self.urlfetch_retries and retries.raise_on_redirect: 204 retries = retries.increment( 208 if retries.raise_on_redirect: 212 retries.sleep_for_retry(http_response) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/contrib/ |
D | appengine.py | 102 retries=None, argument 122 self.retries = retries or Retry.DEFAULT 137 retries=None, argument 143 retries = self._get_retries(retries, redirect) 146 follow_redirects = redirect and retries.redirect != 0 and retries.total 190 response, retries=retries, **response_kw 197 if self.urlfetch_retries and retries.raise_on_redirect: 204 retries = retries.increment( 208 if retries.raise_on_redirect: 212 retries.sleep_for_retry(http_response) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/contrib/ |
D | appengine.py | 102 retries=None, argument 122 self.retries = retries or Retry.DEFAULT 137 retries=None, argument 143 retries = self._get_retries(retries, redirect) 146 follow_redirects = redirect and retries.redirect != 0 and retries.total 190 response, retries=retries, **response_kw 197 if self.urlfetch_retries and retries.raise_on_redirect: 204 retries = retries.increment( 208 if retries.raise_on_redirect: 212 retries.sleep_for_retry(http_response) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/contrib/ |
D | appengine.py | 102 retries=None, argument 122 self.retries = retries or Retry.DEFAULT 137 retries=None, argument 143 retries = self._get_retries(retries, redirect) 146 follow_redirects = redirect and retries.redirect != 0 and retries.total 190 response, retries=retries, **response_kw 197 if self.urlfetch_retries and retries.raise_on_redirect: 204 retries = retries.increment( 208 if retries.raise_on_redirect: 212 retries.sleep_for_retry(http_response) [all …]
|
/aosp_15_r20/external/chromium-trace/catapult/common/py_utils/py_utils/ |
H A D | retry_util_unittest.py | 21 @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 …]
|
H A D | retry_util.py | 13 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 …]
|
/aosp_15_r20/external/autotest/server/cros/ap_configurators/ |
H A D | ap_batch_locker.py | 28 @attribute retries: an integer, max number of retry attempts to lock ap. 32 def __init__(self, configurator, retries): argument 36 @param retries: an integer, max number of retry attempts to lock ap. 40 self.retries = retries 44 """@return class name, ap host name, lock status and retries.""" 45 return 'class: %s, host name: %s, to_be_locked = %s, retries = %d' % ( 49 self.retries) 52 def construct_ap_lockers(ap_spec, retries, hostname_matching_only=False, argument 57 @param retries: an integer, max number of retry attempts to lock ap. 71 ap_lockers_list.append(ApLocker(ap, retries)) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/ |
D | connectionpool.py | 149 :param retries: 178 retries=None, argument 192 if retries is None: 193 retries = Retry.DEFAULT 196 self.retries = retries 528 retries=None, argument 570 :param retries: 571 Configure the number of retries to allow before raising a 576 over different types of retries. 580 If ``False``, then retries are disabled and any exception is raised [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/ |
D | connectionpool.py | 149 :param retries: 178 retries=None, argument 192 if retries is None: 193 retries = Retry.DEFAULT 196 self.retries = retries 528 retries=None, argument 570 :param retries: 571 Configure the number of retries to allow before raising a 576 over different types of retries. 580 If ``False``, then retries are disabled and any exception is raised [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/ |
D | connectionpool.py | 149 :param retries: 178 retries=None, argument 192 if retries is None: 193 retries = Retry.DEFAULT 196 self.retries = retries 528 retries=None, argument 570 :param retries: 571 Configure the number of retries to allow before raising a 576 over different types of retries. 580 If ``False``, then retries are disabled and any exception is raised [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_vendor/urllib3/ |
D | connectionpool.py | 149 :param retries: 178 retries=None, argument 192 if retries is None: 193 retries = Retry.DEFAULT 196 self.retries = retries 528 retries=None, argument 570 :param retries: 571 Configure the number of retries to allow before raising a 576 over different types of retries. 580 If ``False``, then retries are disabled and any exception is raised [all …]
|
/aosp_15_r20/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): 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 …]
|
/aosp_15_r20/external/autotest/client/common_lib/cros/ |
H A D | vpd_utils.py | 26 def dump_vpd_log(host, force=True, retries=3): argument 34 @param retries: Number of times to try rerunning the command in case of 39 retry_util.RetryException(error.AutoservRunError, retries, host.run, 43 def vpd_get(host, key, partition='RW_VPD', retries=3): argument 50 @param retries: Number of times to try rerunning the command in case of 57 return retry_util.RetryException(error.AutoservRunError, retries, 67 retries=3): argument 79 @param retries: Number of times to try rerunning the command in case of 87 retry_util.RetryException(error.AutoservRunError, retries, 91 dump_vpd_log(host, force=force_dump, retries=retries) [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_vendor/tenacity/ |
D | retry.py | 63 """Retry strategy that retries if an exception verifies a predicate.""" 82 """Retries if an exception has been raised of one or more types.""" 96 """Retries except an exception has been raised of one or more types.""" 110 """Retries until an exception is raised of one or more types.""" 137 """Retries if any of the causes of the raised exception is of one or more types. 167 """Retries if the result verifies a predicate.""" 183 """Retries if the result refutes a predicate.""" 199 """Retries if an exception message equals or matches.""" 230 """Retries until an exception message equals or matches.""" 256 """Retries if any of the retries condition is valid.""" [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_vendor/tenacity/ |
D | retry.py | 63 """Retry strategy that retries if an exception verifies a predicate.""" 82 """Retries if an exception has been raised of one or more types.""" 96 """Retries except an exception has been raised of one or more types.""" 110 """Retries until an exception is raised of one or more types.""" 137 """Retries if any of the causes of the raised exception is of one or more types. 167 """Retries if the result verifies a predicate.""" 183 """Retries if the result refutes a predicate.""" 199 """Retries if an exception message equals or matches.""" 230 """Retries until an exception message equals or matches.""" 256 """Retries if any of the retries condition is valid.""" [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_vendor/tenacity/ |
D | retry.py | 63 """Retry strategy that retries if an exception verifies a predicate.""" 82 """Retries if an exception has been raised of one or more types.""" 96 """Retries except an exception has been raised of one or more types.""" 110 """Retries until an exception is raised of one or more types.""" 137 """Retries if any of the causes of the raised exception is of one or more types. 167 """Retries if the result verifies a predicate.""" 183 """Retries if the result refutes a predicate.""" 199 """Retries if an exception message equals or matches.""" 230 """Retries until an exception message equals or matches.""" 256 """Retries if any of the retries condition is valid.""" [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_vendor/tenacity/ |
D | retry.py | 63 """Retry strategy that retries if an exception verifies a predicate.""" 82 """Retries if an exception has been raised of one or more types.""" 96 """Retries except an exception has been raised of one or more types.""" 110 """Retries until an exception is raised of one or more types.""" 137 """Retries if any of the causes of the raised exception is of one or more types. 167 """Retries if the result verifies a predicate.""" 183 """Retries if the result refutes a predicate.""" 199 """Retries if an exception message equals or matches.""" 230 """Retries until an exception message equals or matches.""" 256 """Retries if any of the retries condition is valid.""" [all …]
|
/aosp_15_r20/external/bazelbuild-rules_python/tests/envsubst/ |
H A D | envsubst_tests.bzl | 23 envsubst("--retries=$PIP_RETRIES", ["PIP_RETRIES"], {"PIP_RETRIES": "5"}.get), 24 ).equals("--retries=5") 27 envsubst("--retries=$PIP_RETRIES", [], {"PIP_RETRIES": "5"}.get), 28 ).equals("--retries=$PIP_RETRIES") 31 envsubst("--retries=$PIP_RETRIES", ["PIP_RETRIES"], {}.get), 32 ).equals("--retries=") 38 envsubst("--retries=${PIP_RETRIES}", ["PIP_RETRIES"], {"PIP_RETRIES": "5"}.get), 39 ).equals("--retries=5") 42 envsubst("--retries=${PIP_RETRIES}", [], {"PIP_RETRIES": "5"}.get), 43 ).equals("--retries=${PIP_RETRIES}") [all …]
|