diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-09-16 00:21:49 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-09-16 00:21:49 +0000 |
commit | a56bdf9ff117651759680d6c579b7d4dc50f46c0 (patch) | |
tree | a8d663430c17b11b479a5074993650c3abdd530c | |
parent | 6fa88cf86c73aea5f8e2c063bd8d06f27fbdff98 (diff) | |
parent | d2ca25a74e80247e12a5573b94dc3e57c4aafded (diff) | |
download | platform_tools_test_connectivity-a56bdf9ff117651759680d6c579b7d4dc50f46c0.tar.gz platform_tools_test_connectivity-a56bdf9ff117651759680d6c579b7d4dc50f46c0.tar.bz2 platform_tools_test_connectivity-a56bdf9ff117651759680d6c579b7d4dc50f46c0.zip |
Merge "Removing screen on / off commands from calibration routine"
-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) |