/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | tel_ims_utils.py | 82 def toggle_volte(log, ad, new_state=None): argument 95 log, ad, get_outgoing_voice_sub_id(ad), new_state) 98 def toggle_volte_for_subscription(log, ad, sub_id, new_state=None): argument 124 if new_state is None: 125 new_state = not current_state 126 if new_state != current_state: 129 current_state, new_state, sub_id) 130 ad.droid.imsMmTelSetAdvancedCallingEnabled(sub_id, new_state) 132 if check_state != new_state: 161 if new_state is None: [all …]
|
D | tel_test_utils.py | 465 def toggle_airplane_mode_by_adb(log, ad, new_state=None): argument 479 if new_state == cur_state: 480 ad.log.info("Airplane mode already in %s", new_state) 482 elif new_state is None: 483 new_state = not cur_state 484 ad.log.info("Change airplane mode from %s to %s", cur_state, new_state) 486 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state)) 488 "--ez state %s" % new_state) 493 return changed_state == new_state 496 def toggle_airplane_mode(log, ad, new_state=None, strict_checking=True): argument [all …]
|
D | tel_ss_utils.py | 248 new_state=True, 282 new_state=False, 334 new_state=False, 403 new_state=False, 454 new_state=False, 475 new_state=False, 511 new_state=False,
|
D | tel_phone_setup_utils.py | 1251 toggle_airplane_mode(log, ad, new_state=True, strict_checking=False) 1253 toggle_airplane_mode(log, ad, new_state=None, strict_checking=False) 1307 toggle_airplane_mode(log, ad, new_state=True, strict_checking=False) 1309 toggle_airplane_mode(log, ad, new_state=False, strict_checking=False) 1425 toggle_airplane_mode(log, ad, new_state=True, strict_checking=False) 1427 toggle_airplane_mode(log, ad, new_state=False, strict_checking=False)
|
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/tel/ |
D | tel_utils.py | 345 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/acts_contrib/test_utils/cellular/performance/ |
D | cellular_performance_test_utils.py | 512 new_state=None, argument 531 cfun_setting = 0 if new_state else 1 533 'Toggling airplane mode {} by AT command.'.format(new_state)) 537 'Toggling airplane mode {} by adb.'.format(new_state)) 539 self.log, self.dut, new_state) 542 'Toggling airplane mode {} by msim.'.format(new_state)) 544 new_state, strict_checking=strict_checking) 546 def toggle_airplane_mode_msim(self, new_state=None, strict_checking=True): argument 561 if cur_state == new_state: 562 self.dut.log.info("Airplane mode already in %s", new_state) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/cellular_lib/ |
D | AndroidCellularDut.py | 49 def toggle_airplane_mode(self, new_state=True): argument 55 tel_utils.toggle_airplane_mode_by_adb(self.log, self.ad, new_state) 57 def toggle_data_roaming(self, new_state=True): argument 63 tel_utils.toggle_cell_data_roaming(self.ad, new_state) 142 def toggle_data(self, new_state=True): argument 148 self.log.info('Toggles cellular data on: {}'.format(new_state)) 149 if new_state:
|
D | BaseCellularDut.py | 31 def toggle_airplane_mode(self, new_state=True): argument 39 def toggle_data_roaming(self, new_state=True): argument
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiWakeTest.py | 128 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) 409 wutils.wifi_toggle_state(self.dut, new_state=False)
|
/tools/test/connectivity/acts/framework/acts/ |
D | utils.py | 615 def force_airplane_mode(ad, new_state, timeout_value=60): argument 639 1 if new_state else 0)) 796 def set_ambient_display(ad, new_state): argument 804 "settings put secure doze_enabled {}".format(1 if new_state else 0)) 807 def set_adaptive_brightness(ad, new_state): argument 815 1 if new_state else 0)) 818 def set_auto_rotate(ad, new_state): argument 826 1 if new_state else 0)) 829 def set_location_service(ad, new_state): argument 844 if new_state: [all …]
|
/tools/test/connectivity/acts_tests/tests/google/gnss/ |
D | GnssWearableTetherFunctionTest.py | 85 toggle_airplane_mode(self.watch.log, self.watch, new_state=False) 248 toggle_airplane_mode(self.watch.log, self.watch, new_state=True) 255 toggle_airplane_mode(self.watch.log, self.watch, new_state=False) 307 toggle_airplane_mode(self.watch.log, self.watch, new_state=True)
|
D | GnssVendorFeaturesTest.py | 45 toggle_airplane_mode(self.ad.log, self.ad, new_state=False) 74 toggle_airplane_mode(self.ad.log, self.ad, new_state=True) 89 toggle_airplane_mode(self.ad.log, self.ad, new_state=True)
|
D | GnssSuplTest.py | 68 toggle_airplane_mode(self.ad.log, self.ad, new_state=False) 132 toggle_airplane_mode(self.ad.log, self.ad, new_state=True)
|
D | GnssFunctionTest.py | 147 toggle_airplane_mode(self.ad.log, self.ad, new_state=False) 263 toggle_airplane_mode(self.ad.log, self.ad, new_state=True)
|
D | GnssConcurrencyTest.py | 359 toggle_airplane_mode(self.ad.log, self.ad, new_state=True)
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/ |
D | cellular_power_preset_base_test.py | 361 def toggle_modem_log(self, new_state: bool, timeout: int=30): 362 new_state = str(new_state).lower() 364 cmd = self.ADB_CMD_TOGGLE_MODEM_LOG.format(state=new_state) 365 if new_state != current_state: 371 if new_state == current_state:
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/ |
D | wifi_test_utils.py | 683 def wifi_toggle_state(ad, new_state=None, assert_on_fail=True): argument 699 new_state=new_state) 702 def _wifi_toggle_state(ad, new_state=None): argument 712 if new_state is None: 713 new_state = not ad.droid.wifiCheckState() 714 elif new_state == ad.droid.wifiCheckState(): 719 ad.log.info("Setting Wi-Fi state to %s.", new_state) 722 ad.droid.wifiToggleState(new_state) 724 fail_msg = "Failed to set Wi-Fi state to %s on %s." % (new_state, 728 lambda x: x["data"]["enabled"] == new_state, [all …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveRilDataKpiTest.py | 85 if not toggle_wfc(self.log, ad, new_state=False): 91 if not toggle_wfc(self.log, ad, new_state=True):
|
D | TelLiveCellInfoTest.py | 324 self.ad, new_state=False, assert_on_fail=True) 398 self.ad, new_state=False, assert_on_fail=True)
|
D | TelLiveProjectFiTest.py | 115 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)
|
D | TelLiveGFTDSDSDDSSwitchTest.py | 509 new_state=volte): 514 if not toggle_wfc_for_subscription(self.log, ad, new_state=wfc, sub_id=sub_id): 741 self.log, ad, sub_id, new_state=False):
|
D | TelLiveCBRSTest.py | 775 toggle_airplane_mode(ad.log, ad, new_state=False, strict_checking=False)
|
D | TelLiveConnectivityMonitorBaseTest.py | 329 toggle_airplane_mode(self.log, self.dut, new_state=None)
|
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/ |
D | cmw500.py | 436 new_state = self.send_and_recv('SENSe:LTE:SIGN:RRCState?') 438 if new_state == state: 439 self._logger.debug('The RRC state is {}.'.format(new_state))
|
/tools/test/connectivity/acts_tests/tests/google/tel/lab/ |
D | TelLabProjectFiTest.py | 204 toggle_airplane_mode_by_adb(self.log, ad, new_state=False)
|