Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/framework/acts/controllers/android_lib/tel/
Dtel_utils.py345 def toggle_airplane_mode(log, ad, new_state=None, strict_checking=True): argument
359 return toggle_airplane_mode_by_adb(log, ad, new_state)
362 log, ad, new_state, strict_checking=strict_checking)
365 def toggle_airplane_mode_by_adb(log, ad, new_state=None): argument
378 if new_state == cur_state:
379 ad.log.info("Airplane mode already in %s", new_state)
381 elif new_state is None:
382 new_state = not cur_state
383 ad.log.info("Change airplane mode from %s to %s", cur_state, new_state)
385 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiWakeTest.py128 wutils.wifi_toggle_state(self.dut, new_state=True)
205 wutils.wifi_toggle_state(self.dut, new_state=False)
225 wutils.wifi_toggle_state(self.dut, new_state=False)
269 wutils.wifi_toggle_state(self.dut, new_state=False)
288 wutils.wifi_toggle_state(self.dut, new_state=False)
314 wutils.wifi_toggle_state(self.dut, new_state=False)
337 wutils.wifi_toggle_state(self.dut, new_state=False)
357 wutils.wifi_toggle_state(self.dut, new_state=False)
376 wutils.wifi_toggle_state(self.dut, new_state=False)
405 wutils.wifi_toggle_state(self.dut, new_state=False)
/tools/test/connectivity/acts/framework/acts/
Dutils.py608 def force_airplane_mode(ad, new_state, timeout_value=60): argument
632 1 if new_state else 0))
789 def set_ambient_display(ad, new_state): argument
797 "settings put secure doze_enabled {}".format(1 if new_state else 0))
800 def set_adaptive_brightness(ad, new_state): argument
808 1 if new_state else 0))
811 def set_auto_rotate(ad, new_state): argument
819 1 if new_state else 0))
822 def set_location_service(ad, new_state): argument
837 if new_state:
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/
Dtel_test_utils.py566 def toggle_airplane_mode_by_adb(log, ad, new_state=None): argument
580 if new_state == cur_state:
581 ad.log.info("Airplane mode already in %s", new_state)
583 elif new_state is None:
584 new_state = not cur_state
585 ad.log.info("Change airplane mode from %s to %s", cur_state, new_state)
587 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
593 return changed_state == new_state
596 def toggle_airplane_mode(log, ad, new_state=None, strict_checking=True): argument
610 return toggle_airplane_mode_by_adb(log, ad, new_state)
[all …]
Dtel_voice_utils.py857 if not toggle_volte_for_subscription(log, ad, sub_id, new_state=True):
/tools/test/connectivity/acts/framework/acts/controllers/cellular_lib/
DAndroidCellularDut.py33 def toggle_airplane_mode(self, new_state=True): argument
39 tel_utils.toggle_airplane_mode(self.log, self.ad, new_state)
41 def toggle_data_roaming(self, new_state=True): argument
47 tel_utils.toggle_cell_data_roaming(self.ad, new_state)
DBaseCellularDut.py30 def toggle_airplane_mode(self, new_state=True): argument
38 def toggle_data_roaming(self, new_state=True): argument
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_test_utils.py664 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument
680 new_state=new_state)
683 def _wifi_toggle_state(ad, new_state=None): argument
693 if new_state is None:
694 new_state = not ad.droid.wifiCheckState()
695 elif new_state == ad.droid.wifiCheckState():
700 ad.log.info("Setting Wi-Fi state to %s.", new_state)
703 ad.droid.wifiToggleState(new_state)
705 fail_msg = "Failed to set Wi-Fi state to %s on %s." % (new_state,
709 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/
DTelLiveGFTDSDSWfcSupplementaryServiceTest.py594 new_state=volte,
603 new_state=wfc,
832 new_state=volte,
841 new_state=wfc,
DTelLiveCellInfoTest.py324 self.ad, new_state=False, assert_on_fail=True)
398 self.ad, new_state=False, assert_on_fail=True)
DTelLiveGFTDSDSDDSSwitchTest.py501 new_state=volte):
506 if not toggle_wfc_for_subscription(self.log, ad, new_state=wfc, sub_id=sub_id):
733 self.log, ad, sub_id, new_state=False):
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)