Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/tests/google/wifi/
DWifiWakeTest.py102 wutils.wifi_toggle_state(self.dut, new_state=True)
182 wutils.wifi_toggle_state(self.dut, new_state=False)
201 wutils.wifi_toggle_state(self.dut, new_state=False)
244 wutils.wifi_toggle_state(self.dut, new_state=False)
263 wutils.wifi_toggle_state(self.dut, new_state=False)
289 wutils.wifi_toggle_state(self.dut, new_state=False)
311 wutils.wifi_toggle_state(self.dut, new_state=False)
331 wutils.wifi_toggle_state(self.dut, new_state=False)
350 wutils.wifi_toggle_state(self.dut, new_state=False)
378 wutils.wifi_toggle_state(self.dut, new_state=False)
/tools/test/connectivity/acts/framework/acts/
Dutils.py605 def force_airplane_mode(ad, new_state, timeout_value=60): argument
629 1 if new_state else 0))
786 def set_ambient_display(ad, new_state): argument
794 "settings put secure doze_enabled {}".format(1 if new_state else 0))
797 def set_adaptive_brightness(ad, new_state): argument
805 1 if new_state else 0))
808 def set_auto_rotate(ad, new_state): argument
816 1 if new_state else 0))
819 def set_location_service(ad, new_state): argument
834 if new_state:
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py538 def toggle_airplane_mode_by_adb(log, ad, new_state=None): argument
552 if new_state == cur_state:
553 ad.log.info("Airplane mode already in %s", new_state)
555 elif new_state is None:
556 new_state = not cur_state
557 ad.log.info("Change airplane mode from %s to %s", cur_state, new_state)
559 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
565 return changed_state == new_state
568 def toggle_airplane_mode(log, ad, new_state=None, strict_checking=True): argument
582 return toggle_airplane_mode_by_adb(log, ad, new_state)
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py633 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument
647 _wifi_toggle_state, assert_on_fail, ad, new_state=new_state)
650 def _wifi_toggle_state(ad, new_state=None): argument
660 if new_state is None:
661 new_state = not ad.droid.wifiCheckState()
662 elif new_state == ad.droid.wifiCheckState():
667 ad.log.info("Setting Wi-Fi state to %s.", new_state)
670 ad.droid.wifiToggleState(new_state)
672 fail_msg = "Failed to set Wi-Fi state to %s on %s." % (new_state,
676 lambda x: x["data"]["enabled"] == new_state,
[all …]
/tools/test/connectivity/acts/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.py684 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/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/google/tel/lab/
DTelLabProjectFiTest.py211 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)