diff options
author | Ignacio Guarna <iguarna@google.com> | 2020-09-08 21:43:20 -0300 |
---|---|---|
committer | Ignacio Guarna <iguarna@google.com> | 2020-09-11 18:28:47 -0300 |
commit | d2ca25a74e80247e12a5573b94dc3e57c4aafded (patch) | |
tree | 0d9611ff73faaf6d2bd5a52e4d488de4f2b38fba | |
parent | f5c9b906f7ffeabef8a367cc9fba27e6be1b1bcf (diff) | |
download | platform_tools_test_connectivity-d2ca25a74e80247e12a5573b94dc3e57c4aafded.tar.gz platform_tools_test_connectivity-d2ca25a74e80247e12a5573b94dc3e57c4aafded.tar.bz2 platform_tools_test_connectivity-d2ca25a74e80247e12a5573b94dc3e57c4aafded.zip |
Removing screen on / off commands from calibration routine
This is unnecessary and creates an additional dependency that is not needed.
Change-Id: I1abfb7b2fcef8b09cc5d13efa76cc6388a0417a4
Bugs: 167211745
-rw-r--r-- | acts/framework/acts/controllers/cellular_lib/BaseSimulation.py | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/acts/framework/acts/controllers/cellular_lib/BaseSimulation.py b/acts/framework/acts/controllers/cellular_lib/BaseSimulation.py index 7d38caeb95..924277cd93 100644 --- a/acts/framework/acts/controllers/cellular_lib/BaseSimulation.py +++ b/acts/framework/acts/controllers/cellular_lib/BaseSimulation.py @@ -617,35 +617,24 @@ class BaseSimulation(): restoration_config.output_power = self.primary_config.output_power # Set BTS to a good output level to minimize measurement error - initial_screen_timeout = self.dut.droid.getScreenTimeout() new_config = self.BtsConfig() new_config.output_power = self.simulator.MAX_DL_POWER - 5 self.simulator.configure_bts(new_config) - # Set phone sleep time out - self.dut.droid.setScreenTimeout(1800) - self.dut.droid.goToSleepNow() - time.sleep(2) - # Starting IP traffic self.start_traffic_for_calibration() down_power_measured = [] for i in range(0, self.NUM_DL_CAL_READS): # For some reason, the RSRP gets updated on Screen ON event - self.dut.droid.wakeUpNow() - time.sleep(4) signal_strength = get_telephony_signal_strength(self.dut) down_power_measured.append(signal_strength[rat]) - self.dut.droid.goToSleepNow() time.sleep(5) # Stop IP traffic self.stop_traffic_for_calibration() - # Reset phone and bts to original settings - self.dut.droid.goToSleepNow() - self.dut.droid.setScreenTimeout(initial_screen_timeout) + # Reset bts to original settings self.simulator.configure_bts(restoration_config) time.sleep(2) @@ -691,16 +680,10 @@ class BaseSimulation(): # Set BTS1 to maximum input allowed in order to perform # uplink calibration target_power = self.MAX_PHONE_OUTPUT_POWER - initial_screen_timeout = self.dut.droid.getScreenTimeout() new_config = self.BtsConfig() new_config.input_power = self.MAX_BTS_INPUT_POWER self.simulator.configure_bts(new_config) - # Set phone sleep time out - self.dut.droid.setScreenTimeout(1800) - self.dut.droid.wakeUpNow() - time.sleep(2) - # Start IP traffic self.start_traffic_for_calibration() @@ -729,9 +712,7 @@ class BaseSimulation(): # Stop IP traffic self.stop_traffic_for_calibration() - # Reset phone and bts to original settings - self.dut.droid.goToSleepNow() - self.dut.droid.setScreenTimeout(initial_screen_timeout) + # Reset bts to original settings self.simulator.configure_bts(restoration_config) time.sleep(2) |