/tools/test/connectivity/acts/framework/tests/controllers/ |
D | iperf_server_test.py | 58 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 …]
|
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_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 …]
|
D | DhcpServerTest.py | 268 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/ |
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 | 47 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 …]
|
/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/repohooks/tools/ |
D | checkpatch.pl | 64 my ($exitcode) = @_; 131 return grep { !$seen{$_}++ } @_; 135 my ($exitcode) = @_; 150 push (@types, $_); 168 my $line = $_; 190 if ($_ eq "--color" || $_ eq "-color") { 191 $_ = "--color=$color"; 266 my ($hashRef, $arrayRef) = @_; 283 my ($hashRef, $prefix) = @_; 611 my ($string) = @_; [all …]
|
D | pylintrc | 271 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 …]
|
/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/asuite/ |
D | pylintrc | 21 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/framework/tests/ |
D | acts_test_decorators_test.py | 338 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
|
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/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/metalava/ |
D | README.md | 37 _ _ 38 _ __ ___ ___| |_ __ _| | __ ___ ____ _ 39 | '_ ` _ \ / _ \ __/ _` | |/ _` \ \ / / _` | 40 | | | | | | __/ || (_| | | (_| |\ V / (_| | 41 |_| |_| |_|\___|\__\__,_|_|\__,_| \_/ \__,_|
|
/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/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_tests/acts_contrib/test_utils/net/ |
D | socket_test_utils.py | 98 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/ |
D | WlanTargetSecurityTest.py | 94 ssid, _ = self.setup_ap() 131 ssid, _ = self.setup_ap(hostapd_constants.WEP_STRING) 168 ssid, _ = self.setup_ap(hostapd_constants.WPA_STRING) 205 ssid, _ = self.setup_ap(hostapd_constants.WPA2_STRING) 241 ssid, _ = self.setup_ap(hostapd_constants.WPA_MIXED_STRING) 277 ssid, _ = self.setup_ap(hostapd_constants.WPA3_STRING) 312 ssid, _ = self.setup_ap(hostapd_constants.WPA2_WPA3_MIXED_STRING)
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | bits.py | 149 def setup(self, *_, registry=None, **__): argument 224 def disconnect_usb(self, *_, **__): argument 227 def connect_usb(self, *_, **__): argument 230 def measure(self, *_, measurement_args=None, **__): argument 251 def get_metrics(self, *_, timestamps=None, **__): argument
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveGFTDSDSSupplementaryServiceTest.py | 460 callee_sub_id, _, _ = get_subid_on_same_network_of_host_ad(ads) 482 _, caller_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 505 _, _, forwarded_callee_sub_id = \ 742 host_sub_id, _, _ = get_subid_on_same_network_of_host_ad(ads) 759 _, p1_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 775 _, _, p2_sub_id = get_subid_on_same_network_of_host_ad(ads)
|
D | TelLiveGFTDSDSMessageTest.py | 299 _, mo_sub_id, _ = get_subid_on_same_network_of_host_ad( 321 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad( 456 _, mt_voice_sub_id, _ = get_subid_on_same_network_of_host_ad(ads) 618 _, mo1_sub_id, _ = get_subid_on_same_network_of_host_ad( 622 _, _, mo2_sub_id = get_subid_on_same_network_of_host_ad( 1572 _, mt_sub_id, _ = get_subid_on_same_network_of_host_ad( 1575 _, _, mo_sub_id = get_subid_on_same_network_of_host_ad(
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | bt_coc_test_utils.py | 76 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):
|