Lines Matching refs:dut
65 self.dut = self.android_devices[0]
67 wutils.wifi_test_device_init(self.dut)
68 wutils.wifi_toggle_state(self.dut, True)
95 ota_updater.update(self.dut)
101 self.dut.droid.wakeLockAcquireBright()
102 self.dut.droid.wakeUpNow()
105 self.dut.droid.wakeLockRelease()
106 self.dut.droid.goToSleepNow()
109 self.dut.take_bug_report(test_name, begin_time)
110 self.dut.cat_adb_log(test_name, begin_time)
129 if self.dut.build_info["build_id"].startswith("Q"):
133 self.dut.droid.wifiSetWifiApConfiguration(self.wifi_hotspot),
135 wifi_ap = self.dut.droid.wifiGetApConfiguration()
140 wutils.save_wifi_soft_ap_config(self.dut, self.wifi_hotspot, band)
144 wutils.start_wifi_tethering_saved_config(self.dut)
148 wutils.stop_wifi_tethering(self.dut)
160 self.dut, ssid)
161 wutils.wifi_connect(self.dut, network, num_of_tries=6)
165 self.dut.droid.wifigetRandomizedMacAddress(network)
169 out = self.dut.adb.shell("ifconfig wlan0")
179 self.dut.log.info("Adding network suggestions")
181 self.dut.droid.wifiAddNetworkSuggestions(network_suggestions),
185 self.dut.log.debug("Enabling suggestions from test")
186 self.dut.adb.shell(
200 self.dut.log.info("Removing network suggestions")
202 self.dut.droid.wifiRemoveNetworkSuggestions(network_suggestions),
205 wutils.wait_for_disconnect(self.dut)
206 self.dut.ed.clear_all_events()
210 wutils.wait_for_connect(self.dut,
222 ret = self.dut.droid.wifiAddNetwork(network)
225 self.dut.droid.wifiEnableNetwork(ret, 0)
233 network_info = self.dut.droid.wifiGetConfiguredNetworks()
262 wifi_info = self.dut.droid.wifiGetConnectionInfo()
273 if not self.dut.droid.wifiCheckState():
295 wifi_info = self.dut.droid.wifiGetConnectionInfo()
298 self.dut.droid.wifigetRandomizedMacAddress(wifi_info)
302 self.dut, reconnect_to[SSID])
303 wutils.wifi_connect_by_id(self.dut, reconnect_to[NETID])
304 connect_data = self.dut.droid.wifiGetConnectionInfo()
314 self.dut.droid.wifigetRandomizedMacAddress(wifi_info)
317 wutils.wifi_forget_network(self.dut, network[SSID])
353 wutils.start_wifi_connection_scan_and_return_status(self.dut)
354 wutils.wait_for_connect(self.dut, self.network_suggestions[0][SSID])
369 wutils.connect_to_wifi_network(self.dut, network)
371 wutils.wifi_forget_network(self.dut, network[SSID])
383 if not wutils.connect_to_wifi_network_with_id(self.dut,
388 wutils.wifi_forget_network(self.dut, network[SSID])
394 wutils.wifi_toggle_state(self.dut, False)
396 wutils.wifi_toggle_state(self.dut, True)
401 wutils.reset_wifi(self.dut)