Home
last modified time | relevance | path

Searched refs:network (Results 1 – 25 of 87) sorted by relevance

1234

/tools/test/connectivity/acts/tests/google/wifi/
DWifiSoftApAcsTest.py121 network, ad = params
122 SSID = network[WifiEnums.SSID_KEY]
182 def start_traffic_and_softap(self, network, softap_band): argument
190 if not network:
196 wutils.connect_to_wifi_network(self.dut_client, network)
197 t = Thread(target=self.run_iperf_client,args=((network,self.dut_client),))
227 network = None
228 chan = self.start_traffic_and_softap(network, WIFI_CONFIG_APBAND_2G)
236 network = None
237 chan = self.start_traffic_and_softap(network, WIFI_CONFIG_APBAND_5G)
[all …]
DWifiMacRandomizationTest.py133 def get_randomized_mac(self, network): argument
143 return self.dut.droid.wifigetRandomizedMacAddress(network)
145 def connect_to_network_and_verify_mac_randomization(self, network, argument
157 wutils.connect_to_wifi_network(self.dut, network)
158 return self.verify_mac_randomization(network, status=status)
160 def verify_mac_randomization_and_add_to_list(self, network, mac_list): argument
170 network)
173 ' for this network %s.' % network)
176 def verify_mac_randomization(self, network, status=RANDOMIZATION_PERSISTENT): argument
187 randomized_mac = self.get_randomized_mac(network)
[all …]
DWifiAutoUpdateTest.py118 def add_network_and_enable(self, network): argument
125 ret = self.dut.droid.wifiAddNetwork(network)
126 asserts.assert_true(ret != -1, "Add network %r failed" % network)
128 WifiEnums.SSID_KEY: network[WifiEnums.SSID_KEY],
140 network = {}
141 network[WifiEnums.SSID_KEY] = ssid_name_base + str(i)
142 network[WifiEnums.PWD_KEY] = "dummynet_password"
143 self.add_network_and_enable(network)
166 for network in networks:
168 WifiEnums.SSID_KEY: network[WifiEnums.SSID_KEY]
[all …]
DWifiRvrTwTest.py86 for network in self.iot_networks:
87 SSID = network['SSID'].replace('-','_')
88 self.ssid_map[SSID] = network
309 def connect_to_wifi_network(self, network): argument
315 SSID = network[WifiEnums.SSID_KEY]
320 wutils.wifi_connect(self.dut, network, num_of_tries=3)
322 def run_iperf_client(self, network): argument
335 SSID = network[WifiEnums.SSID_KEY]
371 def run_iperf_server(self, network): argument
384 SSID = network[WifiEnums.SSID_KEY]
[all …]
DWifiTetheringTest.py50 self.network = {"SSID": "hotspot_%s" % utils.rand_ascii_str(6),
153 self.network[wutils.WifiEnums.SSID_KEY],
154 self.network[wutils.WifiEnums.PWD_KEY],
168 wutils.wifi_forget_network(dut, self.network["SSID"])
170 wutils.wifi_connect(dut, self.network)
184 wutils.wifi_forget_network(ad, self.network["SSID"])
187 wutils.wifi_connect(ad, self.network)
203 dutils.connect_wifi(wd, self.network)
259 wutils.wifi_connect(ad, self.network)
260 dutils.connect_wifi(wd, self.network)
[all …]
DWifiIOTTwPkg1Test.py75 for network in self.iot_networks:
76 SSID = network['SSID'].replace('-','_')
77 self.ssid_map[SSID] = network
109 def connect_to_wifi_network(self, network): argument
115 SSID = network[WifiEnums.SSID_KEY]
120 wutils.wifi_connect(self.dut, network, num_of_tries=3)
122 def run_iperf_client(self, network): argument
135 SSID = network[WifiEnums.SSID_KEY]
164 def run_iperf_server(self, network): argument
180 SSID = network[WifiEnums.SSID_KEY]
[all …]
DWifiLinkProbeTest.py77 def _test_link_probe_does_not_crash_device(self, network): argument
89 wutils.wifi_connect(self.dut, network, num_of_tries=3)
98 expected = network[WifiEnums.SSID_KEY]
104 def _test_link_probe_ap_attenuated(self, network): argument
117 wutils.wifi_connect(self.dut, network, num_of_tries=3)
128 expected = network[WifiEnums.SSID_KEY]
138 network = self.reference_networks[0]["2g"]
139 self._test_link_probe_does_not_crash_device(network)
143 network = self.reference_networks[0]["5g"]
144 self._test_link_probe_does_not_crash_device(network)
[all …]
DWifiChaosTest.py183 def scan_and_connect_by_id(self, network, net_id): argument
190 ssid = network[WifiEnums.SSID_KEY]
213 def send_link_probes(self, network): argument
229 expected = network[WifiEnums.SSID_KEY]
251 def run_connect_disconnect(self, network, hostname, rpm_port, rpm_ip, argument
268 ssid = network[WifiEnums.SSID_KEY]
269 net_id = self.dut.droid.wifiAddNetwork(network)
270 asserts.assert_true(net_id != -1, "Add network %s failed" % network)
272 self.scan_and_connect_by_id(network, net_id)
319 network = {}
[all …]
DWifiIOTtpeTest.py65 for network in self.iot_networks:
66 SSID = network['SSID'].replace('-','_')
67 self.ssid_map[SSID] = network
88 def connect_to_wifi_network(self, network): argument
94 SSID = network[WifiEnums.SSID_KEY]
99 wutils.wifi_connect(self.dut, network, num_of_tries=3)
101 def run_iperf_client(self, network): argument
109 SSID = network[WifiEnums.SSID_KEY]
118 def connect_to_wifi_network_and_run_iperf(self, network): argument
128 self.connect_to_wifi_network(network)
[all …]
DWifiStressTest.py104 def scan_and_connect_by_ssid(self, ad, network): argument
111 ssid = network[WifiEnums.SSID_KEY]
113 wutils.wifi_connect(ad, network, num_of_tries=3)
115 def scan_and_connect_by_id(self, network, net_id): argument
122 ssid = network[WifiEnums.SSID_KEY]
174 for network in networks:
175 ret = ad.droid.wifiAddNetwork(network)
177 network)
384 for network in self.networks:
385 ssids.append(network[WifiEnums.SSID_KEY])
[all …]
DWifiManagerTest.py114 network, ad = params
117 SSID = network[WifiEnums.SSID_KEY]
120 wutils.wifi_connect(ad, network, num_of_tries=3)
122 def get_connection_data(self, dut, network): argument
133 params = (network, dut)
195 for network in networks:
197 WifiEnums.SSID_KEY: network[WifiEnums.SSID_KEY]
202 network[WifiEnums.SSID_KEY])
204 network[WifiEnums.NETID_KEY] = exists[0]['networkId']
243 network, ad = params
[all …]
DWifiTeleCoexTest.py42 self.network = { WifiEnums.SSID_KEY : self.wifi_network_ssid,
59 def connect_to_wifi(self, ad, network): argument
72 wifi_utils.wifi_connect(ad, network)
74 network[WifiEnums.SSID_KEY], ad.serial))
192 self.connect_to_wifi(self.dut, self.network)
214 self.connect_to_wifi(self.dut, self.network)
238 self.connect_to_wifi(self.dut, self.network)
260 self.connect_to_wifi(self.dut, self.network)
282 self.connect_to_wifi(self.dut, self.network)
307 self.connect_to_wifi(self.dut, self.network)
DWifiIOTTest.py65 for network in self.iot_networks:
66 SSID = network['SSID'].replace('-','_')
67 self.ssid_map[SSID] = network
88 def connect_to_wifi_network(self, network): argument
94 SSID = network[WifiEnums.SSID_KEY]
99 wutils.wifi_connect(self.dut, network, num_of_tries=3)
101 def run_iperf_client(self, network): argument
109 SSID = network[WifiEnums.SSID_KEY]
118 def connect_to_wifi_network_and_run_iperf(self, network): argument
128 self.connect_to_wifi_network(network)
[all …]
DWifiCrashTest.py63 self.network = self.reference_networks[0]["2g"]
97 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
105 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
121 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
128 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
144 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
151 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
167 wutils.wifi_connect(self.dut, self.network, num_of_tries=3)
174 if wifi_info[WifiEnums.SSID_KEY] != self.network[WifiEnums.SSID_KEY]:
DWifiRoamingPerformanceTest.py464 network = primary_net_config.copy()
465 network.pop('BSSID', None)
468 network,
567 for network, atten_waveform in atten_waveforms.items():
572 if network in nets_on_port:
584 for network in list(waveform_params[0]):
585 atten_waveforms[network] = []
588 for network, network_waveform in waveform.items():
591 atten_waveforms[network] += waveform_vector
594 len(atten_waveforms[network])
[all …]
DWifiTetheringPowerTest.py45 self.network = { "SSID": self.ssid, "password": self.password }
176 wutils.wifi_connect(self.tethered_devices[0], self.network)
188 wutils.wifi_connect(self.tethered_devices[0], self.network)
201 wutils.wifi_connect(ad, self.network)
214 wutils.wifi_connect(ad, self.network)
226 wutils.wifi_connect(self.tethered_devices[0], self.network)
238 wutils.wifi_connect(self.tethered_devices[0], self.network)
251 wutils.wifi_connect(ad, self.network)
264 wutils.wifi_connect(ad, self.network)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
DWifiBaseTest.py244 def update_bssid(self, ap_instance, ap, network, band): argument
254 bssid = ap.get_bssid_from_ssid(network["SSID"], band)
256 if network["security"] == hostapd_constants.WPA2_STRING:
260 if network["security"] == hostapd_constants.WPA_STRING:
262 if network["security"] == hostapd_constants.WEP_STRING:
264 if network["security"] == hostapd_constants.ENT_STRING:
269 if network["security"] == 'none':
286 for network in networks_5g:
287 if 'channel' in network:
289 self.update_bssid(ap_instance, ap, network,
[all …]
Dwifi_test_utils.py455 for network in self.reference_networks:
456 for key in network:
458 if "password" in network[key]:
459 self.secure_networks_2g.append(network[key])
461 self.open_networks_2g.append(network[key])
463 if "password" in network[key]:
464 self.secure_networks_5g.append(network[key])
466 self.open_networks_5g.append(network[key])
995 network, argument
1028 network,
[all …]
Dwifi_retail_ap.py279 def set_radio_on_off(self, network, status): argument
286 setting_to_update = {"status_{}".format(network): int(status)}
289 def set_ssid(self, network, ssid): argument
296 setting_to_update = {"ssid_{}".format(network): str(ssid)}
299 def set_channel(self, network, channel): argument
306 setting_to_update = {"channel_{}".format(network): str(channel)}
309 def set_bandwidth(self, network, bandwidth): argument
316 setting_to_update = {"bandwidth_{}".format(network): str(bandwidth)}
319 def set_power(self, network, power): argument
326 setting_to_update = {"power_{}".format(network): str(power)}
[all …]
Dota_sniffer.py72 def start_capture(self, network, duration=30): argument
131 def start_capture(self, network, duration=30): argument
313 def _configure_sniffer(self, network, chan, bw): argument
401 def start_capture(self, network, chan, bw, duration=60): argument
414 self._configure_sniffer(network, chan, bw)
462 def _configure_sniffer(self, network, chan, bw): argument
469 self.log.debug('Connecting to network {}'.format(network['SSID']))
471 if 'password' not in network:
472 network['password'] = ''
475 network['SSID'], network['password'])
[all …]
/tools/acloud/internal/lib/
Dgcompute_client.py1144 def _GetNetworkArgs(self, network, zone): argument
1155 "network": self.GetNetworkUrl(network),
1163 if network and network != "default":
1164 network_args["subnetwork"] = self.GetSubnetworkUrl(network, zone)
1222 network, argument
1268 "networkInterfaces": [self._GetNetworkArgs(network, zone)],
1383 def GetNetworkUrl(self, network): argument
1395 project=self._project, network=network)
1399 def GetSubnetworkUrl(self, network, zone): argument
1420 project=self._project, network=network)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dpacket_capture.py157 network = {}
162 network[BSSID] = line.split('(')[0].split()[-1]
166 network[LEVEL] = int(float(value.split()[0]))
168 network[FREQUENCY] = int(value)
170 network[SSID] = value
171 scan_networks.append(network)
172 network = {}
202 for network in found_networks:
203 if network[SSID] == ssid:
/tools/test/connectivity/acts_tests/tests/google/net/
DDataUsageTest.py297 network = {wutils.WifiEnums.SSID_KEY: ssid,
301 network[wutils.WifiEnums.SSID_KEY],
302 network[wutils.WifiEnums.PWD_KEY])
305 dut_b, network[wutils.WifiEnums.SSID_KEY])
306 wutils.wifi_connect(dut_b, network)
387 network = {wutils.WifiEnums.SSID_KEY: ssid,
391 network[wutils.WifiEnums.SSID_KEY],
392 network[wutils.WifiEnums.PWD_KEY])
395 dut_b, network[wutils.WifiEnums.SSID_KEY])
396 wutils.wifi_connect(dut_b, network)
/tools/test/connectivity/acts_tests/tests/google/power/wifi/
DPowerWiFiHotspotTest.py55 self.network = None
68 self.network = getattr(self, self.CONFIG_KEY_WIFI)
70 if not (wutils.WifiEnums.SSID_KEY in self.network
71 and wutils.WifiEnums.PWD_KEY in self.network):
87 self.network = {
138 self.dut, self.network[wutils.WifiEnums.SSID_KEY],
139 self.network[wutils.WifiEnums.PWD_KEY], wifi_band_id)
145 self.network,
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Dcoex_test_utils.py166 def configure_and_start_ap(ap, network): argument
174 if network["security"] == "wpa2":
176 security_mode=network["security"], password=network["password"])
181 channel=network["channel"],
182 ssid=network["SSID"],
536 def check_wifi_status(pri_ad, network, ssh_config=None): argument
551 if not wifi_connection_check(pri_ad, network["SSID"]):
845 def connect_wlan_profile(pri_ad, network): argument
858 wifi_connect(pri_ad, network)
859 if not wifi_connection_check(pri_ad, network["SSID"]):

1234