/tools/test/connectivity/acts/framework/acts/ |
D | tracelogger.py | 41 def _log_with(self, logging_lambda, trace_level, msg, *args, **kwargs): argument 43 logging_lambda('%s %s' % (msg, trace_info), *args, **kwargs) 45 def exception(self, msg, *args, **kwargs): argument 46 self._log_with(self._logger.exception, 5, msg, *args, **kwargs) 48 def debug(self, msg, *args, **kwargs): argument 49 self._log_with(self._logger.debug, 3, msg, *args, **kwargs) 51 def error(self, msg, *args, **kwargs): argument 52 self._log_with(self._logger.error, 3, msg, *args, **kwargs) 54 def warn(self, msg, *args, **kwargs): argument 55 self._log_with(self._logger.warn, 3, msg, *args, **kwargs) [all …]
|
D | test_decorators.py | 175 def __call__(self, *args, **kwargs): argument 180 new_signal = self._get_signal_from_func_call(*args, **kwargs) 183 def _get_signal_from_func_call(self, *args, **kwargs): argument 189 result = self.func(*args, **kwargs) 207 gathered_extras = self._gather_local_info(None, *args, **kwargs) 219 def gather(self, *args, **kwargs): argument 228 extras = self.func.gather(*args, **kwargs) 232 self._gather_local_info(extras, *args, **kwargs) 236 def _gather_local_info(self, gather_into, *args, **kwargs): argument 248 if not self.predicate or self.predicate(args, kwargs): [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/ |
D | ui_utils.py | 108 def _find_node(screen_dump_xml, **kwargs): argument 138 if match_node(node, **kwargs): 140 get_key_value_pair_strings(kwargs)) 144 def wait_and_get_xml_node(device, timeout, child=None, sibling=None, **kwargs): argument 173 node = _find_node(screen_dump_xml, **kwargs) 181 % (timeout, get_key_value_pair_strings(kwargs))) 191 def has_element(device, **kwargs): argument 201 timeout_sec = kwargs.pop('timeout', 30) 203 wait_and_get_xml_node(device, timeout_sec, **kwargs) 209 def get_element_attributes(device, **kwargs): argument [all …]
|
/tools/asuite/atest-py2/tools/ |
D | atest_tools.py | 103 **kwargs): argument 113 prunenames = kwargs.pop('prunenames', ' '.join(PRUNENAMES)) 114 prunepaths = kwargs.pop('prunepaths', os.path.join(search_root, 'out')) 115 if kwargs: 116 raise TypeError('Unexpected **kwargs: %r' % kwargs) 296 def index_targets(output_cache=constants.LOCATE_CACHE, **kwargs): argument 313 class_index = kwargs.pop('class_index', constants.CLASS_INDEX) 314 qclass_index = kwargs.pop('qclass_index', constants.QCLASS_INDEX) 315 package_index = kwargs.pop('package_index', constants.PACKAGE_INDEX) 316 cc_class_index = kwargs.pop('cc_class_index', constants.CC_CLASS_INDEX) [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/test_binding/ |
D | binding.py | 59 def __call__(self, *args, **kwargs): argument 65 full_args, kwargs = self.arg_modifier(self.inner, *full_args, 66 **kwargs) 69 self.before(self.inner, *full_args, **kwargs) 73 result = self.inner(*full_args, **kwargs) 76 self.after(self.inner, result, *full_args, **kwargs) 88 **kwargs)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | power_monitor.py | 75 def setup(self, **kwargs): argument 78 def connect_usb(self, **kwargs): argument 81 def measure(self, **kwargs): argument 84 def release_resources(self, **kwargs): argument 87 def disconnect_usb(self, **kwargs): argument 90 def get_metrics(self, **kwargs): argument 93 def get_waveform(self, **kwargs): argument 96 def teardown(self, **kwargs): argument
|
D | adb.py | 178 def _exec_adb_cmd(self, name, arg_str, **kwargs): argument 180 **kwargs) 182 def _exec_cmd_nb(self, cmd, **kwargs): argument 189 return job.run_async(cmd, **kwargs) 191 def _exec_adb_cmd_nb(self, name, arg_str, **kwargs): argument 193 **kwargs) 269 def adb_call(*args, **kwargs): argument 272 if clean_name in ['pull', 'push'] and 'timeout' not in kwargs: 273 kwargs['timeout'] = DEFAULT_ADB_PULL_TIMEOUT 275 return self._exec_adb_cmd(clean_name, arg_str, **kwargs)
|
D | fastboot.py | 79 def args(self, *args, **kwargs): argument 80 return job.run(' '.join((self.fastboot_str, ) + args), **kwargs).stdout 83 def fastboot_call(*args, **kwargs): argument 86 return self._exec_fastboot_cmd(clean_name, arg_str, **kwargs)
|
/tools/test/connectivity/acts/framework/tests/metrics/ |
D | logger_test.py | 42 kwargs = {'mock' : Mock()} 43 logger = MetricLogger.for_test_case(*args, **kwargs) 45 proxy_cls.assert_called_once_with(MetricLogger, args, kwargs) 50 kwargs = {'mock': Mock()} 51 logger = MetricLogger.for_test_class(*args, **kwargs) 53 proxy_cls.assert_called_once_with(MetricLogger, args, kwargs) 60 kwargs = {'mock': Mock()} 61 logger = TestLogger.for_test_case(*args, **kwargs) 63 proxy_cls.assert_called_once_with(TestLogger, args, kwargs) 70 kwargs = {'mock': Mock()} [all …]
|
/tools/test/connectivity/acts/framework/tests/libs/test_bindings/ |
D | binding_test.py | 39 def inner(*args, **kwargs): argument 41 self.inner_kwargs = kwargs 55 def inner(*args, **kwargs): argument 67 def inner(*args, **kwargs): argument 105 def arg_modifier(_, *args, **kwargs): argument 107 new_kwargs = dict(kwargs, kw='value') 111 def inner(*args, **kwargs): argument 113 self.inner_kwargs = kwargs
|
/tools/asuite/atest/tools/ |
D | atest_tools.py | 123 **kwargs): argument 133 prunenames = kwargs.pop('prunenames', ' '.join(PRUNENAMES)) 134 prunepaths = kwargs.pop('prunepaths', os.path.join(search_root, 'out')) 135 if kwargs: 136 raise TypeError('Unexpected **kwargs: %r' % kwargs) 332 def index_targets(output_cache=constants.LOCATE_CACHE, **kwargs): argument 350 class_index = kwargs.pop('class_index', constants.CLASS_INDEX) 351 qclass_index = kwargs.pop('qclass_index', constants.QCLASS_INDEX) 352 package_index = kwargs.pop('package_index', constants.PACKAGE_INDEX) 353 cc_class_index = kwargs.pop('cc_class_index', constants.CC_CLASS_INDEX) [all …]
|
/tools/test/connectivity/acts/framework/acts/event/ |
D | subscription_handle.py | 58 def _wrapped_call(*args, **kwargs): argument 60 return func(*args, **kwargs) 62 return func(self._owner, *args, **kwargs) 65 def __call__(self, *args, **kwargs): argument 66 return self._func(*args, **kwargs)
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
D | process.py | 50 def __init__(self, command, **kwargs): argument 57 self._use_shell = kwargs.get('shell', False) 61 self._subprocess_kwargs = kwargs 234 def __start_process(command, **kwargs): argument 238 'Starting command "%s" with kwargs %s', command, kwargs) 239 return subprocess.Popen(command, **kwargs)
|
/tools/asuite/aidegen/lib/ |
D | common_util.py | 84 def wrapper(*args, **kwargs): argument 89 return func(*args, **kwargs) 379 def wrapper(*args, **kwargs): argument 383 return func(*args, **kwargs) 520 def wrapper(*args, **kwargs): argument 523 return func(*args, **kwargs) 554 def decorated(*args, **kwargs): argument 564 if arg_name not in kwargs: 566 arg_val = kwargs.get(arg_name) 573 return func(*args, **kwargs)
|
/tools/treble/fetcher/ |
D | fetcher_lib.py | 175 def get_build_list(client, **kwargs): argument 185 build_request = client.build().list(**kwargs) 190 def list_artifacts(client, regex, **kwargs): argument 202 kwargs.setdefault('attemptId', 'latest') 204 req = client.buildartifact().list(**kwargs)
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | rpc_client.py | 118 def rpc(self, name, *args, **kwargs): argument 119 future = self._executor.submit(name, *args, **kwargs) 125 def rpc_call(*args, **kwargs): argument 127 self._rpc_client.__getattr__(name), *args, **kwargs) 352 def rpc_call(*args, **kwargs): argument 354 return self.rpc(name, *args, **kwargs)
|
/tools/repohooks/rh/ |
D | utils.py | 230 def _lock_breaker(self, func, *args, **kwargs): argument 240 return func(*args, **kwargs) 245 return func(*args, **kwargs) 247 def poll_lock_breaker(self, *args, **kwargs): argument 249 return self._lock_breaker(self.poll, *args, **kwargs) 251 def wait_lock_breaker(self, *args, **kwargs): argument 253 return self._lock_breaker(self.wait, *args, **kwargs)
|
D | hooks.py | 240 def _run(cmd, **kwargs): argument 242 kwargs.setdefault('combine_stdout_stderr', True) 243 kwargs.setdefault('capture_output', True) 244 kwargs.setdefault('check', False) 247 kwargs.setdefault('input', '') 248 return rh.utils.run(cmd, **kwargs) 307 def _fixup_func_caller(cmd, **kwargs): argument 315 result = _run(cmd, **kwargs) 322 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument 325 _run(cmd, **kwargs), [all …]
|
/tools/acloud/internal/lib/ |
D | utils.py | 188 def _FunctionWrapper(*args, **kwargs): argument 190 retry_backoff_factor, *args, **kwargs) 198 retry_backoff_factor, *args, **kwargs): argument 227 return_value = functor(*args, **kwargs) 241 def RetryExceptionType(exception_types, max_retries, functor, *args, **kwargs): argument 256 functor, *args, **kwargs) 260 sleep_interval_secs, *args, **kwargs): argument 282 return_value = func(*args, **kwargs) 471 def PrintColorString(message, colors=TextColors.OKBLUE, **kwargs): argument 489 print(colors + message + TextColors.ENDC, **kwargs) [all …]
|
/tools/test/connectivity/acts/framework/acts/metrics/ |
D | logger.py | 98 def for_test_case(cls, *args, **kwargs): argument 108 return TestCaseLoggerProxy(cls, args, kwargs) 111 def for_test_class(cls, *args, **kwargs): argument 121 return TestClassLoggerProxy(cls, args, kwargs)
|
/tools/asuite/atest/ |
D | asuite_metrics.py | 41 def log_event(metrics_url, unused_key_fallback=True, **kwargs): argument 61 if kwargs: 62 data.update(kwargs)
|
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/ |
D | sl4a_manager_test.py | 159 adb.shell = lambda _, **kwargs: '' 184 adb.shell = lambda _, **kwargs: '' 286 adb.shell = lambda _, **kwargs: 'asdf' 296 adb.shell = lambda _, **kwargs: '' 393 session_1.terminate = lambda *args, **kwargs: called_on(session_1) 396 session_4.terminate = lambda *args, **kwargs: called_on(session_4) 399 session_5.terminate = lambda *args, **kwargs: called_on(session_5)
|
/tools/asuite/atest/metrics/ |
D | metrics_base.py | 101 def __new__(cls, **kwargs): argument 121 if field in kwargs: 122 fields_and_values[field] = kwargs.pop(field)
|
/tools/asuite/atest-py2/metrics/ |
D | metrics_base.py | 101 def __new__(cls, **kwargs): argument 121 if field in kwargs: 122 fields_and_values[field] = kwargs.pop(field)
|
/tools/asuite/atest/test_runners/ |
D | test_runner_base.py | 55 def __init__(self, results_dir, **kwargs): argument 64 if kwargs: 65 logging.debug('ignoring the following args: %s', kwargs)
|