Home
last modified time | relevance | path

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

12345678910

/tools/test/connectivity/acts/framework/tests/controllers/
Diperf_server_test.py53 def test_create_creates_server_over_ssh_with_ssh_config_and_port(self, _): argument
118 iperf_server._get_port_from_ss_output = lambda *_: IPerfServerTest.PID
126 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
134 def test_start_stop_makes_started_false(self, _, __, ___): argument
137 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
147 def test_start_sets_current_log_file(self, _, __, ___): argument
149 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
159 def test_stop_returns_current_log_file(self, _, __): argument
161 server._get_full_file_path = lambda _: MOCK_LOGFILE_PATH
174 self, start_proc, _, __):
[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_tests/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 …]
DDhcpServerTest.py268 addr, siaddr, _ = self._request_address(self.hwaddr)
331 addr, siaddr, _ = self._request_address(self.hwaddr)
341 addr, siaddr, _ = self._request_address(self.hwaddr)
370 addr, siaddr, _ = self._request_address(self.hwaddr)
458 addr, siaddr, _ = self._request_address(self.hwaddr)
495 resp, _ = self._run_rebinding(bcastbit=False, giaddr=giaddr)
501 addr, siaddr, _ = self._request_address(self.hwaddr)
511 addr, siaddr, _ = self._request_address(self.hwaddr)
524 addr, siaddr, _ = self._request_address(self.hwaddr)
540 addr, siaddr, _ = self._request_address(self.hwaddr)
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/bits_lib/
Dbits_service_test.py31 def test_output_log_opens_on_creation(self, mock_open, *_): argument
38 def test_output_log_gets_closed_on_cleanup(self, _, __, mock_open, *___): argument
48 def test_monsoons_usb_gets_connected_on_cleanup(self, mock_run, *_): argument
58 def test_service_can_not_be_started_twice(self, *_): argument
65 def test_service_can_not_be_stoped_twice(self, *_): argument
72 def test_stopped_service_can_not_be_started(self, *_): argument
79 def test_service_output_changes_service_reported_state(self, *_): argument
91 def test_service_output_defines_port(self, *_): argument
102 *_): argument
107 def side_effect(*_, **__): argument
[all …]
/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)
/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/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_dsds_utils.py315 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(ads)
365 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(ads)
548 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(ads)
566 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(ads)
777 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(ads, type="sms")
814 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(ads, type="sms")
953 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(
974 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(
1182 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(
1193 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(
[all …]
/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/asuite/atest/test_runners/
Datest_tf_test_runner.py249 for _ in range(iterations):
269 for _ in range(iterations):
301 readable, _, _ = select.select(inputs, [], [], SELECT_TIMEOUT)
837 for _, event_handler in event_handlers.items():
866 test_config, _ = test_finder_utils.get_test_config_and_srcs(
885 test_config, _ = test_finder_utils.get_test_config_and_srcs(
901 test_config, _ = test_finder_utils.get_test_config_and_srcs(
959 return lambda *_: value
975 lambda arg_value, *_:
978 lambda arg_value, *_: ['--shard-count',
[all …]
/tools/asuite/
Dpylintrc22 method-name-hint=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
25 method-rgx=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
/tools/test/connectivity/acts/framework/tests/
Dacts_test_decorators_test.py338 def result_selector(results, _): argument
346 def test_case(_, attempt_number): argument
362 def result_selector(results, _): argument
369 def test_case(*_): argument
377 def test_case(*_): argument
385 def test_case(*_): argument
394 def test_case(*_): argument
404 def result_selector(*_): argument
408 def test_case(*_): argument
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/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/metalava/
DREADME.md55 _ _
56 _ __ ___ ___| |_ __ _| | __ ___ ____ _
57 | '_ ` _ \ / _ \ __/ _` | |/ _` \ \ / / _` |
58 | | | | | | __/ || (_| | | (_| |\ V / (_| |
59 |_| |_| |_|\___|\__\__,_|_|\__,_| \_/ \__,_|
/tools/test/connectivity/acts/framework/tests/libs/
Dversion_selector_test.py37 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
42 return version_selector.set_version(lambda ret, *_, **__: ret, min_sdk,
47 return version_selector.set_version(lambda *_, **__: 1, min_sdk, max_sdk)
66 def versioned_func_with_kwargs(_, asdf='jkl'): argument
71 return version_selector.set_version(lambda _, ret, *__, **___: ret,
93 def __init__(self, configs, _): argument
/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_tests/acts_contrib/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/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/
DWlanTargetSecurityTest.py95 ssid, _ = self.setup_ap()
132 ssid, _ = self.setup_ap(hostapd_constants.WEP_STRING)
169 ssid, _ = self.setup_ap(hostapd_constants.WPA_STRING)
206 ssid, _ = self.setup_ap(hostapd_constants.WPA2_STRING)
242 ssid, _ = self.setup_ap(hostapd_constants.WPA_MIXED_STRING)
278 ssid, _ = self.setup_ap(hostapd_constants.WPA3_STRING)
317 ssid, _ = self.setup_ap(hostapd_constants.WPA2_WPA3_MIXED_STRING)
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dbt_coc_test_utils.py76 for _, client_conn_id in enumerate(list_client_conn_id):
87 for _ in range(0, (num_iterations - 1)):
89 for _, client_conn_id in enumerate(list_client_conn_id):
96 for _, server_ad in enumerate(list_server_ad):
105 for _, server_ad in enumerate(list_server_ad):
/tools/test/connectivity/acts/framework/acts/controllers/
Dbits.py185 def setup(self, *_, registry=None, **__): argument
265 def disconnect_usb(self, *_, **__): argument
268 def connect_usb(self, *_, **__): argument
271 def measure(self, *_, measurement_args=None, argument
331 def get_metrics(self, *_, timestamps=None, **__): argument
/tools/asuite/atest/asuite_lib_test/
Dasuite_lib_run_tests.py37 for dirpath, _, files in os.walk(base_path):
43 rel_file_path, _ = os.path.splitext(rel_file_path)
50 def main(_): argument

12345678910