Home
last modified time | relevance | path

Searched refs:kwargs (Results 1 – 25 of 84) sorted by relevance

1234

/tools/test/connectivity/acts/framework/acts/
Dtracelogger.py41 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, 1, msg, *args, **kwargs)
[all …]
Dtest_decorators.py86 def __call__(self, *args, **kwargs): argument
92 result = self.func(*args, **kwargs)
109 gathered_extras = self._gather_local_info(None, *args, **kwargs)
121 def gather(self, *args, **kwargs): argument
130 extras = self.func.gather(*args, **kwargs)
134 self._gather_local_info(extras, *args, **kwargs)
138 def _gather_local_info(self, gather_into, *args, **kwargs): argument
150 if not self.predicate or self.predicate(args, kwargs):
181 def __call__(self, *args, **kwargs): argument
186 return self.target(self.instance, *args, **kwargs)
[all …]
Dbase_test.py602 def wrapper(*args, **kwargs): argument
612 return func(*args, **kwargs)
628 kwargs=None, argument
660 kwargs = kwargs or {}
668 test_name = name_func(setting, *args, **kwargs)
685 **kwargs))
690 **kwargs))
763 def test_skip_func(*args, **kwargs): argument
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dui_utils.py108 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/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dtako_trace_logger.py22 def __init__(self, *args, **kwargs): argument
23 super().__init__(*args, **kwargs)
32 return lambda *args, **kwargs: self._logger.log(level, *args, **kwargs)
34 def step(self, msg, *args, **kwargs): argument
36 self._log_with(self._logger_level('STEP'), 1, msg, *args, **kwargs)
38 def device(self, msg, *args, **kwargs): argument
40 self._log_with(self._logger_level('DEVICE'), 1, msg, *args, **kwargs)
42 def suite(self, msg, *args, **kwargs): argument
44 self._log_with(self._logger_level('SUITE'), 1, msg, *args, **kwargs)
46 def case(self, msg, *args, **kwargs): argument
[all …]
/tools/tradefederation/core/atest/tools/
Datest_tools.py103 **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/asuite/atest/tools/
Datest_tools.py98 **kwargs): argument
108 prunenames = kwargs.pop('prunenames', ' '.join(PRUNENAMES))
109 prunepaths = kwargs.pop('prunepaths', os.path.join(search_root, 'out'))
110 if kwargs:
111 raise TypeError('Unexpected **kwargs: %r' % kwargs)
300 def index_targets(output_cache=constants.LOCATE_CACHE, **kwargs): argument
318 class_index = kwargs.pop('class_index', constants.CLASS_INDEX)
319 qclass_index = kwargs.pop('qclass_index', constants.QCLASS_INDEX)
320 package_index = kwargs.pop('package_index', constants.PACKAGE_INDEX)
321 cc_class_index = kwargs.pop('cc_class_index', constants.CC_CLASS_INDEX)
[all …]
/tools/test/connectivity/acts/framework/tests/metrics/
Dlogger_test.py43 kwargs = {'mock' : Mock()}
44 logger = MetricLogger.for_test_case(*args, **kwargs)
46 proxy_cls.assert_called_once_with(MetricLogger, args, kwargs)
51 kwargs = {'mock': Mock()}
52 logger = MetricLogger.for_test_class(*args, **kwargs)
54 proxy_cls.assert_called_once_with(MetricLogger, args, kwargs)
61 kwargs = {'mock': Mock()}
62 logger = TestLogger.for_test_case(*args, **kwargs)
64 proxy_cls.assert_called_once_with(TestLogger, args, kwargs)
71 kwargs = {'mock': Mock()}
[all …]
/tools/test/connectivity/acts/framework/acts/libs/test_binding/
Dbinding.py59 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/tests/libs/test_bindings/
Dbinding_test.py39 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/test/connectivity/acts/framework/acts/controllers/
Dadb.py185 def _exec_adb_cmd(self, name, arg_str, **kwargs): argument
187 **kwargs)
189 def _exec_cmd_nb(self, cmd, **kwargs): argument
196 return job.run_async(cmd, **kwargs)
198 def _exec_adb_cmd_nb(self, name, arg_str, **kwargs): argument
200 **kwargs)
279 def adb_call(*args, **kwargs): argument
282 return self._exec_adb_cmd(clean_name, arg_str, **kwargs)
Dfastboot.py79 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/asuite/aidegen/lib/
Dcommon_util.py78 def wrapper(*args, **kwargs): argument
83 return func(*args, **kwargs)
373 def wrapper(*args, **kwargs): argument
377 return func(*args, **kwargs)
514 def wrapper(*args, **kwargs): argument
517 return func(*args, **kwargs)
548 def decorated(*args, **kwargs): argument
558 if arg_name not in kwargs:
560 arg_val = kwargs.get(arg_name)
567 return func(*args, **kwargs)
/tools/test/connectivity/acts/framework/acts/event/
Dsubscription_handle.py58 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/
Dprocess.py50 def __init__(self, command, **kwargs): argument
57 if not kwargs.get('shell', False) and isinstance(command, str):
60 self._subprocess_kwargs = kwargs
222 def __start_process(command, **kwargs): argument
226 'Starting command "%s" with kwargs %s', command, kwargs)
227 return subprocess.Popen(command, **kwargs)
/tools/test/connectivity/acts/framework/acts/libs/
Dversion_selector.py217 def __call__(self, *args, **kwargs): argument
233 level = self.get_version(self.instance, *args, **kwargs)
235 level = self.get_version(*args, **kwargs)
238 for key, value in kwargs.items():
267 return func(*args, **kwargs)
269 return func(self.instance, *args, **kwargs)
/tools/repohooks/rh/
Dhooks.py240 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 …]
Dutils.py230 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)
/tools/acloud/internal/lib/
Dutils.py181 def _FunctionWrapper(*args, **kwargs): argument
183 retry_backoff_factor, *args, **kwargs)
191 retry_backoff_factor, *args, **kwargs): argument
220 return_value = functor(*args, **kwargs)
234 def RetryExceptionType(exception_types, max_retries, functor, *args, **kwargs): argument
249 functor, *args, **kwargs)
253 sleep_interval_secs, *args, **kwargs): argument
275 return_value = func(*args, **kwargs)
465 def PrintColorString(message, colors=TextColors.OKBLUE, **kwargs): argument
483 print(colors + message + TextColors.ENDC, **kwargs)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_client.py118 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
353 return self.rpc(name, *args, **kwargs)
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Dsl4a_manager_test.py159 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/test/connectivity/acts/framework/acts/metrics/
Dlogger.py102 def for_test_case(cls, *args, **kwargs): argument
112 return TestCaseLoggerProxy(cls, args, kwargs)
115 def for_test_class(cls, *args, **kwargs): argument
125 return TestClassLoggerProxy(cls, args, kwargs)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dota_chamber.py148 def chamber_call(*args, **kwargs): argument
152 return getattr(self._chamber, item)(*args, **kwargs)
170 def _capture_output(func, *args, **kwargs): argument
174 func(*args, **kwargs)
/tools/asuite/atest/
Dasuite_metrics.py37 def log_event(metrics_url, dummy_key_fallback=True, **kwargs): argument
57 if kwargs:
58 data.update(kwargs)
/tools/tradefederation/core/atest/
Dasuite_metrics.py43 def log_event(metrics_url, dummy_key_fallback=True, **kwargs): argument
63 if kwargs:
64 data.update(kwargs)

1234