/tools/test/connectivity/acts/framework/tests/controllers/ |
D | iperf_server_test.py | 53 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 …]
|
D | monsoon_test.py | 30 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/ |
D | rpc_client_test.py | 39 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 …]
|
D | sl4a_manager_test.py | 152 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/controllers/bits_lib/ |
D | bits_service_test.py | 31 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/ |
D | event_bus_test.py | 46 args, _ = register_subscription.call_args 60 EventSubscription(mocks[0], lambda _: None), 61 EventSubscription(mocks[1], lambda _: None), 62 EventSubscription(mocks[2], lambda _: None), 77 subscription = EventSubscription(mock_type, lambda _: None) 90 EventSubscription(mock_type, lambda _: None) 92 new_subscription = EventSubscription(mock_type, lambda _: True) 130 def _raise(_): argument 154 for args, _ in unregister.call_args_list: 175 for args, _ in unregister.call_args_list: [all …]
|
D | event_subscription_test.py | 28 def filter_out_event(_): argument 32 def pass_filter(_): argument 38 subscription = EventSubscription(expected_event_type, lambda _: None)
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | SocketKeepaliveTest.py | 535 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/logging/ |
D | log_stream_test.py | 61 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/framework/tests/libs/test_bindings/ |
D | binding_test.py | 79 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/tradefederation/core/ |
D | pylintrc | 4 method-name-hint=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$ 7 method-rgx=(([a-z][a-z0-9_]{2,50})|(_[a-z0-9_]*))$
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | tel_dsds_utils.py | 337 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 388 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 574 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 592 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 825 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad(ads, type="sms") 863 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad(ads, type="sms") 993 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad( 1014 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad( 1224 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad( 1235 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad( [all …]
|
/tools/repohooks/tools/ |
D | checkpatch.pl | 78 my ($exitcode) = @_; 151 return grep { !$seen{$_}++ } @_; 155 my ($exitcode) = @_; 224 my $line = $_; 253 my $line = $_; 286 if ($_ eq "--color" || $_ eq "-color") { 287 $_ = "--color=$color"; 395 my ($hashRef, $arrayRef) = @_; 412 my ($hashRef, $prefix) = @_; 644 my (@arr) = @_; [all …]
|
D | pylintrc | 210 dummy-variables-rgx=_|unused_ 265 good-names=i,j,k,ex,x,_ 278 function-rgx=[a-z_][a-z0-9_]{2,30}$ 281 function-name-hint=[a-z_][a-z0-9_]{2,30}$ 284 variable-rgx=[a-z_][a-z0-9_]{2,30}$ 287 variable-name-hint=[a-z_][a-z0-9_]{2,30}$ 290 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 293 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 296 attr-rgx=[a-z_][a-z0-9_]{2,30}$ 299 attr-name-hint=[a-z_][a-z0-9_]{2,30}$ [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/spirent_lib/ |
D | gss6450.py | 244 _ = 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/test/connectivity/acts/framework/tests/libs/uicd/ |
D | uicd_cli_test.py | 28 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/ |
D | acts_test_decorators_test.py | 343 def result_selector(results, _): argument 351 def test_case(_, attempt_number): argument 367 def result_selector(results, _): argument 374 def test_case(*_): argument 382 def test_case(*_): argument 390 def test_case(*_): argument 400 def test_case(*_): argument 410 def result_selector(*_): argument 414 def test_case(*_): argument
|
D | test_runner_test.py | 50 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/tests/libs/ |
D | version_selector_test.py | 37 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_tests/acts_contrib/test_utils/net/ |
D | socket_test_utils.py | 93 for _ in range(1, PKTS + 1): 94 msg = MSG + " %s" % _ 153 for _ in range(1, PKTS + 1): 154 msg = MSG + " %s" % _ 283 for _ in range(1, PKTS + 1): 284 msg = MSG + " %s" % _
|
/tools/asuite/atest/test_runners/ |
D | mobly_test_runner_unittest.py | 205 def test_generate_mobly_config_no_serials(self, yaml_dump, *_) -> None: argument 226 def test_generate_mobly_config_with_serials(self, yaml_dump, *_) -> None: argument 249 def test_generate_mobly_config_with_testparams(self, yaml_dump, *_) -> None: argument 281 def test_generate_mobly_config_with_test_files(self, yaml_dump, *_) -> None: argument 319 def test_install_apks_no_serials(self, check_call, _) -> None: argument 330 def test_install_apks_with_serials(self, check_call, _) -> None: argument 389 def test_run_and_handle_results_with_iterations(self, uploader, _) -> None: argument 414 self, uploader, _ 440 self, uploader, _
|
/tools/metalava/ |
D | README.md | 55 _ _ 56 _ __ ___ ___| |_ __ _| | __ ___ ____ _ 57 | '_ ` _ \ / _ \ __/ _` | |/ _` \ \ / / _` | 58 | | | | | | __/ || (_| | | (_| |\ V / (_| | 59 |_| |_| |_|\___|\__\__,_|_|\__,_| \_/ \__,_|
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/ |
D | ssh_library.py | 87 result, _, _ = self.run_command_paramiko(command) 130 result, _, _ = self.run_command_paramiko(is_running_cmd1)
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/ |
D | WlanTargetSecurityTest.py | 96 ssid, _ = self.setup_ap() 133 ssid, _ = self.setup_ap(hostapd_constants.WEP_STRING) 170 ssid, _ = self.setup_ap(hostapd_constants.WPA_STRING) 207 ssid, _ = self.setup_ap(hostapd_constants.WPA2_STRING) 243 ssid, _ = self.setup_ap(hostapd_constants.WPA_MIXED_STRING) 279 ssid, _ = self.setup_ap(hostapd_constants.WPA3_STRING) 318 ssid, _ = self.setup_ap(hostapd_constants.WPA2_WPA3_MIXED_STRING)
|
/tools/asuite/atest/asuite_lib_test/ |
D | asuite_lib_run_tests.py | 38 for dirpath, _, files in os.walk(package): 44 rel_file_path, _ = os.path.splitext(rel_file_path) 51 def main(_): argument
|