Lines Matching refs:dut
49 self.dut = self.android_devices[0]
50 wutils.wifi_test_device_init(self.dut)
52 acts.utils.set_location_service(self.dut, True)
53 self.dut.droid.wifiScannerToggleAlwaysAvailable(True)
95 self.dut.droid.wakeLockAcquireBright()
96 self.dut.droid.wakeUpNow()
101 wutils.reset_wifi(self.dut)
102 wutils.wifi_toggle_state(self.dut, new_state=True)
104 self.dut.droid.wifiStartTrackingStateChange()
105 self.dut.droid.wifiStopTrackingStateChange()
106 self.dut.ed.clear_all_events()
109 self.dut.droid.wakeLockRelease()
110 self.dut.droid.goToSleepNow()
113 self.dut.take_bug_report(test_name, begin_time)
114 self.dut.cat_adb_log(test_name, begin_time)
131 wifi_chs = wutils.WifiChannelUS(self.dut.model)
137 data = wutils.start_wifi_single_scan(self.dut, scan_settings)
154 event = self.dut.ed.pop_event(event_name, wait_time)
166 self.dut.droid.wifiScannerStopScan(idx)
181 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
182 wutils.wifi_toggle_state(self.dut, new_state=False)
187 self.dut.droid.wifiCheckState(),
193 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
194 wutils.wifi_connect(self.dut, self.ap_b, num_of_tries=5)
195 self.dut.ed.clear_all_events()
198 wutils.wait_for_disconnect(self.dut)
201 wutils.wifi_toggle_state(self.dut, new_state=False)
210 self.dut.droid.wifiCheckState(),
216 self.dut.log.info("Adding network suggestions")
218 self.dut.droid.wifiAddNetworkSuggestions([self.ap_a]),
221 self.dut.droid.wifiAddNetworkSuggestions([self.ap_b]),
224 self.dut.log.debug("Enabling suggestions from test")
225 self.dut.adb.shell("cmd wifi network-suggestions-set-user-approved"
229 wutils.wait_for_connect(self.dut)
230 current_network = self.dut.droid.wifiGetConnectionInfo()
231 self.dut.ed.clear_all_events()
241 wutils.wait_for_disconnect(self.dut)
244 wutils.wifi_toggle_state(self.dut, new_state=False)
253 self.dut.droid.wifiCheckState(),
262 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
263 wutils.wifi_toggle_state(self.dut, new_state=False)
275 self.dut.droid.wifiCheckState(),
286 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
289 wutils.wifi_toggle_state(self.dut, new_state=False)
296 self.dut.droid.wifiCheckState(),
305 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
306 self.dut.ed.clear_all_events()
308 wutils.wait_for_disconnect(self.dut)
311 wutils.wifi_toggle_state(self.dut, new_state=False)
319 self.dut.droid.wifiCheckState(),
329 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
330 wutils.wifi_connect(self.dut, self.ap_b, num_of_tries=5)
331 wutils.wifi_toggle_state(self.dut, new_state=False)
339 self.dut.droid.wifiCheckState(),
348 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
349 wutils.wifi_connect(self.dut, self.ap_b, num_of_tries=5)
350 wutils.wifi_toggle_state(self.dut, new_state=False)
361 self.dut.droid.wifiCheckState(),
370 wutils.wifi_connect(self.dut, self.ap_a, num_of_tries=5)
371 wutils.wifi_connect(self.dut, self.ap_b, num_of_tries=5)
372 self.dut.ed.clear_all_events()
375 wutils.wait_for_disconnect(self.dut)
378 wutils.wifi_toggle_state(self.dut, new_state=False)
391 self.dut.droid.wifiCheckState(),
394 wutils.wait_for_connect(self.dut, expected_ssid)