Lines Matching refs:network
45 network.
72 "Need at least one reference network with psk.")
105 params: A tuple of network info and AndroidDevice object.
107 network, ad = params
110 SSID = network[WifiEnums.SSID_KEY]
115 wutils.wifi_connect(ad, network, num_of_tries=3)
117 def get_connection_data(self, dut, network):
118 """Get network id and ssid info from connection data.
122 network: dict representing the network to connect to.
125 A convenience dict with the connected network's ID and SSID.
128 params = (network, dut)
137 """Connect to one 2.4GHz and one 5Ghz network.
154 """Check network status and return currently unconnected network.
157 network1: dict representing a network.
158 network2: dict representing a network.
161 Network dict of the unconnected network.
175 networks: List of network dicts.
189 # For each network, check if it exists in configured list after reboot
190 for network in networks:
192 WifiEnums.SSID_KEY: network[WifiEnums.SSID_KEY]
195 raise signals.TestFailure("%s network is not present in the"
197 network[WifiEnums.SSID_KEY])
198 # Get the new network id for each network after reboot.
199 network[WifiEnums.NETID_KEY] = exists[0]['networkId']
203 # network, defined with 'status':'CURRENT'
205 raise signals.TestFailure("More than one network showing"
209 """Connect to the given network using network id and verify SSID.
212 network_id: int Network Id of the network.
213 network_ssid: string SSID of the network.
215 Returns: True if connect using network id was successful;
238 params: A tuple of network info and AndroidDevice object.
242 network, ad = params
243 SSID = network[WifiEnums.SSID_KEY]
253 """ Connect to the provided network and then toggle wifi mode and wait
254 for reconnection to the provided network.
257 1. Connect to the network.
260 4. Wait for connection to the network.
264 params: A tuple of network info and AndroidDevice object.
266 network, ad = params
269 ad, network, num_of_tries=5)
336 asserts.assert_true(nId > -1, "Failed to add network.")
353 "Found forgotten network %s in configured networks." % ssid)
357 """Connect to a network and immediately issue reconnect.
360 1. Connect to a 2GHz network.
361 2. Reconnect to the network using its network id.
362 3. Connect to a 5GHz network.
363 4. Reconnect to the network using its network id.
372 " 2GHz network.")
379 " 5GHz network.")
383 """Connect to multiple networks and reconnect to the previous network.
386 1. Connect to a 2GHz network.
387 2. Connect to a 5GHz network.
388 3. Reconnect to the 2GHz network using its network id.
389 4. Reconnect to the 5GHz network using its network id.
399 " 2GHz network.")
405 " 5GHz network.")
410 network.
413 1. Connect to a 2GHz network.
414 2. Connect to a 5GHz network.
416 4. Reconnect to the non-current network.
429 " network after toggling WiFi.")
434 reconnect a previously connected network.
437 1. Connect to a 2GHz network.
438 2. Connect to a 5GHz network.
440 4. Reconnect to the non-current network.
453 " network after toggling Airplane mode.")
458 connected network.
461 1. Connect to a 2GHz network.
462 2. Connect to a 5GHz network.
465 5. Reconnect to the non-current network.
482 " network after reboot.")
487 reconnect to previously connected network.
490 1. Connect to a 2GHz network.
491 2. Connect to a 5GHz network.
496 5. Reconnect to the non-current network.
515 msg = ("Device failed to reconnect to the correct network after"
522 reconnect to previously connected network.
525 1. Connect to a 2GHz network.
526 2. Connect to a 5GHz network.
531 5. Reconnect to the non-current network.
554 msg = ("Device failed to reconnect to the correct network after"
635 Connect to a wifi network, then the same as test_energy_info.