Home
last modified time | relevance | path

Searched refs:new_state (Results 1 – 2 of 2) sorted by relevance

/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py585 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument
599 _wifi_toggle_state, assert_on_fail, ad, new_state=new_state)
602 def _wifi_toggle_state(ad, new_state=None): argument
612 if new_state is None:
613 new_state = not ad.droid.wifiCheckState()
614 elif new_state == ad.droid.wifiCheckState():
619 ad.log.info("Setting Wi-Fi state to %s.", new_state)
622 ad.droid.wifiToggleState(new_state)
623 fail_msg = "Failed to set Wi-Fi state to %s on %s." % (new_state,
627 lambda x: x["data"]["enabled"] == new_state,
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py439 def toggle_airplane_mode_by_adb(log, ad, new_state=None): argument
453 if new_state == cur_state:
454 ad.log.info("Airplane mode already in %s", new_state)
456 elif new_state is None:
457 new_state = not cur_state
459 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
464 def toggle_airplane_mode(log, ad, new_state=None, strict_checking=True): argument
478 return toggle_airplane_mode_by_adb(log, ad, new_state)
481 log, ad, new_state, strict_checking=strict_checking)
639 def toggle_airplane_mode_msim(log, ad, new_state=None, strict_checking=True): argument
[all …]