Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py556 def toggle_airplane_mode_by_adb(log, ad, new_state=None): argument
570 if new_state == cur_state:
571 ad.log.info("Airplane mode already in %s", new_state)
573 elif new_state is None:
574 new_state = not cur_state
575 ad.log.info("Change airplane mode from %s to %s", cur_state, new_state)
577 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
583 return changed_state == new_state
586 def toggle_airplane_mode(log, ad, new_state=None, strict_checking=True): argument
600 return toggle_airplane_mode_by_adb(log, ad, new_state)
[all …]
/tools/test/connectivity/acts/framework/acts/
Dutils.py607 def force_airplane_mode(ad, new_state, timeout_value=60): argument
631 1 if new_state else 0))
788 def set_ambient_display(ad, new_state): argument
796 "settings put secure doze_enabled {}".format(1 if new_state else 0))
799 def set_adaptive_brightness(ad, new_state): argument
807 1 if new_state else 0))
810 def set_auto_rotate(ad, new_state): argument
818 1 if new_state else 0))
821 def set_location_service(ad, new_state): argument
836 if new_state:
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiWakeTest.py98 wutils.wifi_toggle_state(self.dut, new_state=True)
166 wutils.wifi_toggle_state(self.dut, new_state=False)
185 wutils.wifi_toggle_state(self.dut, new_state=False)
218 wutils.wifi_toggle_state(self.dut, new_state=False)
235 wutils.wifi_toggle_state(self.dut, new_state=False)
259 wutils.wifi_toggle_state(self.dut, new_state=False)
281 wutils.wifi_toggle_state(self.dut, new_state=False)
299 wutils.wifi_toggle_state(self.dut, new_state=False)
318 wutils.wifi_toggle_state(self.dut, new_state=False)
344 wutils.wifi_toggle_state(self.dut, new_state=False)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py607 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument
621 _wifi_toggle_state, assert_on_fail, ad, new_state=new_state)
624 def _wifi_toggle_state(ad, new_state=None): argument
634 if new_state is None:
635 new_state = not ad.droid.wifiCheckState()
636 elif new_state == ad.droid.wifiCheckState():
641 ad.log.info("Setting Wi-Fi state to %s.", new_state)
644 ad.droid.wifiToggleState(new_state)
645 fail_msg = "Failed to set Wi-Fi state to %s on %s." % (new_state,
649 lambda x: x["data"]["enabled"] == new_state,
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcmw500.py333 new_state = self.send_and_recv('SENSe:LTE:SIGN:RRCState?')
335 if new_state == state:
336 self._logger.debug('The RRC state is {}.'.format(new_state))
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveCellInfoTest.py324 self.ad, new_state=False, assert_on_fail=True)
398 self.ad, new_state=False, assert_on_fail=True)
DTelLiveProjectFiTest.py115 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)
DTelLiveCBRSTest.py776 toggle_airplane_mode(ad.log, ad, new_state=False, strict_checking=False)
DTelLiveConnectivityMonitorBaseTest.py330 toggle_airplane_mode(self.log, self.dut, new_state=None)
/tools/test/connectivity/acts_tests/tests/google/tel/lab/
DTelLabProjectFiTest.py211 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)