Home
last modified time | relevance | path

Searched refs:_ (Results 1 – 25 of 181) sorted by relevance

12345678

/tools/test/connectivity/acts/framework/tests/controllers/
Diperf_server_test.py58 def test_create_creates_server_over_ssh_with_ssh_config_and_port(self, _): argument
119 iperf_server._get_port_from_ss_output = lambda *_: IPerfServerTest.PID
127 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
135 def test_start_stop_makes_started_false(self, _, __, ___): argument
138 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
148 def test_start_sets_current_log_file(self, _, __, ___): argument
150 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
162 def test_stop_returns_current_log_file(self, _, __): argument
164 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
179 def test_start_does_not_run_two_concurrent_processes(self, start_proc, _, __): argument
[all …]
Dmonsoon_test.py30 def test_create_can_create_lvpm_from_id_only(self, *_): argument
34 def test_create_can_create_lvpm_from_dict(self, *_): argument
39 def test_create_can_create_hvpm_from_id_only(self, *_): argument
43 def test_create_can_create_hvpm_from_dict(self, *_): argument
48 def test_raises_error_if_monsoon_type_is_unknown(self, *_): argument
52 def test_raises_error_if_monsoon_serial_not_provided(self, *_): argument
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Drpc_client_test.py39 lambda _: mock.Mock(),
40 lambda _: mock.Mock())
56 lambda _: mock.Mock(),
57 lambda _: mock.Mock())
59 working_connections = [mock.Mock() for _ in range(3)]
60 free_connections = [mock.Mock() for _ in range(3)]
83 lambda _: mock.Mock(),
84 lambda _: mock.Mock())
116 lambda _: mock.Mock(),
117 lambda _: mock.Mock())
[all …]
Dsl4a_manager_test.py152 def test_start_sl4a_server_uses_all_retries(self, _): argument
159 adb.shell = lambda _, **kwargs: ''
163 for _ in range(int(sl4a_manager.MAX_WAIT_ON_SERVER_SECONDS /
177 def test_start_sl4a_server_fails_all_retries(self, _): argument
184 adb.shell = lambda _, **kwargs: ''
187 for _ in range(int(sl4a_manager.MAX_WAIT_ON_SERVER_SECONDS /
249 adb.shell = lambda _: ''
261 adb.shell = lambda _: '12345 67890'
274 adb.shell = lambda _: '12345 67890'
286 adb.shell = lambda _, **kwargs: 'asdf'
[all …]
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/device/apps/
Dhotword_model_extractor_test.py32 def mock_pull_from_device(_, hotword_pkg, __): argument
39 def extract(self, path, _): argument
47 def __exit__(self, *_): argument
59 def test_package_not_installed(self, *_): argument
63 def test_voice_model_not_found(self, *_): argument
67 def test_extract_model(self, *_): argument
/tools/tradefederation/core/
Dpylintrc17 method-name-hint=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
20 method-rgx=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
/tools/test/connectivity/acts/framework/tests/libs/test_bindings/
Dbinding_test.py79 def inner(*_, **__): argument
91 def inner(*_, **__): argument
105 def arg_modifier(_, *args, **kwargs): argument
129 def before(*_, **__): argument
132 def inner(*_, **__): argument
148 def after(*_, **__): argument
151 def inner(*_, **__): argument
165 def inner(*_, **__): argument
168 def signal_modifier(_, signal, *__, **___): argument
/tools/test/connectivity/acts/framework/tests/event/
Devent_bus_test.py47 args, _ = register_subscription.call_args
61 EventSubscription(mocks[0], lambda _: None),
62 EventSubscription(mocks[1], lambda _: None),
63 EventSubscription(mocks[2], lambda _: None),
78 subscription = EventSubscription(mock_type, lambda _: None)
91 EventSubscription(mock_type, lambda _: None)]
92 new_subscription = EventSubscription(mock_type, lambda _: True)
129 def _raise(_): argument
152 for args, _ in unregister.call_args_list:
173 for args, _ in unregister.call_args_list:
[all …]
Devent_subscription_test.py28 def filter_out_event(_): argument
32 def pass_filter(_): argument
38 subscription = EventSubscription(expected_event_type, lambda _: None)
Ddecorators_test.py37 def test(_): argument
47 def test(_): argument
57 def test(self, _): argument
/tools/test/connectivity/acts/framework/tests/libs/logging/
Dlog_stream_test.py61 def test_init_adds_null_handler(self, *_): argument
77 self, *_): argument
93 def test_validate_styles_raises_when_multiple_file_outputs_set(self, *_): argument
129 def test_validate_styles_raises_when_no_level_exists(self, *_): argument
144 def test_validate_styles_raises_when_no_location_exists(self, *_): argument
159 def test_validate_styles_raises_when_rotate_logs_no_file_handler(self, *_): argument
181 def test_handle_style_to_acts_log_creates_handler(self, *_): argument
191 def test_handle_style_to_acts_log_creates_handler_is_lowest_level(self, *_): argument
204 def test_handle_style_to_stdout_creates_stream_handler(self, *_): argument
214 def test_handle_style_creates_file_handler(self, *_): argument
[all …]
/tools/asuite/
Dpylintrc21 method-name-hint=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
24 method-rgx=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
/tools/test/connectivity/acts/tests/google/net/
DSocketKeepaliveTest.py535 for _ in range(self.max_ka_wifi):
540 for _ in range(self.max_ka_wifi):
542 cport_list[_])
543 self._start_tcp_keepalive(sock, interval_list[_])
559 for _ in range(self.max_ka_wifi):
560 total_dropped_acks += int(SLEEP_TIME/interval_list[_])
562 interval_list[_])
564 interval_list[_],
565 int(cport_server_list[_]),
589 for _ in range(self.max_ka_wifi):
[all …]
/tools/test/connectivity/acts/framework/tests/libs/uicd/
Duicd_cli_test.py28 def _mock_walk(path, **_): argument
42 def test_set_workflows_sets_correct_file_path(self, *_): argument
55 def test_set_workflows_adds_workflows_from_directories(self, *_): argument
72 def test_set_workflows_rejects_duplicate_workflow_names(self, *_): argument
87 def test_run_generates_correct_uicd_cmds(self, *_): argument
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/
Dinstrumentation_proto_parser_test.py42 def test_pull_proto_returns_correct_path_given_source(self, *_): argument
47 def test_pull_proto_returns_correct_path_from_default_location(self, *_): argument
52 def test_pull_proto_fails_if_no_default_proto_found(self, *_): argument
59 def test_pull_proto_fails_if_adb_pull_fails(self, *_): argument
/tools/test/connectivity/acts/framework/acts/controllers/spirent_lib/
Dgss6450.py244 _ = self._put(cmd)
266 _ = self._put(cmd)
277 _ = self._put('-wS')
302 _ = self._put('-v{},-wV'.format(voltage_cmd))
327 _ = self._put('-a{},-wA'.format(attenuation_raw))
350 _ = self._put('-o{}'.format(offset_raw))
374 _ = self._put('-M{}-wM'.format(raw_media))
/tools/tradefederation/core/atest/
Datest_run_unittests.py40 for dirpath, _, files in os.walk(base_path):
46 rel_file_path, _ = os.path.splitext(rel_file_path)
52 def main(_): argument
/tools/tradefederation/core/atest/asuite_lib_test/
Dasuite_lib_run_test.py37 for dirpath, _, files in os.walk(base_path):
43 rel_file_path, _ = os.path.splitext(rel_file_path)
50 def main(_): argument
/tools/asuite/atest/
Datest_run_unittests.py44 for dirpath, _, files in os.walk(base_path):
50 rel_file_path, _ = os.path.splitext(rel_file_path)
56 def main(_): argument
/tools/test/connectivity/acts/framework/tests/
Dtest_runner_test.py50 def test_class_name_pattern_single(self, *_): argument
64 def test_class_name_pattern_multi(self, *_): argument
79 def test_class_name_pattern_question_mark(self, *_): argument
93 def test_class_name_pattern_char_seq(self, *_): argument
110 def test_class_logpath_contains_proper_directory(self, logger_mock, *_): argument
/tools/acloud/
Dacloud_test.py54 for dirpath, _, files in os.walk(base_path):
60 rel_file_path, _ = os.path.splitext(rel_file_path)
67 def main(_): argument
/tools/test/connectivity/acts/framework/tests/libs/
Dversion_selector_test.py35 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
40 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
45 return version_selector.set_version(lambda *_, **__: 1, min_sdk, max_sdk)
64 def versioned_func_with_kwargs(_, asdf='jkl'): argument
69 return version_selector.set_version(lambda _, ret, *__, **___: ret,
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Dservices.py81 def _start(self, _): argument
84 def _stop(self, _): argument
108 def _stop(self, _): argument
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dsocket_test_utils.py98 for _ in range(1, PKTS+1):
99 msg = MSG + " %s" % _
157 for _ in range(1, PKTS+1):
158 msg = MSG + " %s" % _
286 for _ in range(1, PKTS+1):
287 msg = MSG + " %s" % _
/tools/repohooks/tools/
Dpylintrc271 dummy-variables-rgx=_|unused_
326 good-names=i,j,k,ex,x,_
339 function-rgx=[a-z_][a-z0-9_]{2,30}$
342 function-name-hint=[a-z_][a-z0-9_]{2,30}$
345 variable-rgx=[a-z_][a-z0-9_]{2,30}$
348 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
351 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
354 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
357 attr-rgx=[a-z_][a-z0-9_]{2,30}$
360 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
[all …]

12345678