diff options
author | Yuexi Ma <yuexima@google.com> | 2018-05-04 03:30:13 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-04 03:30:13 +0000 |
commit | bb4f3eabb41b84bde8430a8050e56fb6b7fc3752 (patch) | |
tree | 525d3e4d161b900c4db83775e899692c46a70ff6 /hwbinder_benchmark | |
parent | 1b5e4f621043ef93b2549123c9a1252daac13b42 (diff) | |
parent | cff463b1e7de86dc8e63e350dc3138f5fe9a1aef (diff) | |
download | performance-bb4f3eabb41b84bde8430a8050e56fb6b7fc3752.tar.gz |
Merge "use lazy android device registration"android-wear-p-preview-2android-p-preview-5android-p-preview-4android-p-preview-3android-p-preview-2android-o-mr1-iot-release-1.0.2android-o-mr1-iot-release-1.0.1android-o-mr1-iot-release-1.0.0
Diffstat (limited to 'hwbinder_benchmark')
-rw-r--r-- | hwbinder_benchmark/HwBinderPerformanceTest.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/hwbinder_benchmark/HwBinderPerformanceTest.py b/hwbinder_benchmark/HwBinderPerformanceTest.py index 4fc0842..3fa5f9f 100644 --- a/hwbinder_benchmark/HwBinderPerformanceTest.py +++ b/hwbinder_benchmark/HwBinderPerformanceTest.py @@ -74,10 +74,9 @@ class HwBinderPerformanceTest(base_test.BaseTestClass): def setUpClass(self): required_params = ["hidl_hal_mode"] self.getUserParams(required_params) - self.dut = self.registerController(android_device)[0] - self.dut.shell.InvokeTerminal("one") - self.dut.shell.one.Execute("stop") - self.dut.shell.one.Execute("setprop sys.boot_completed 0") + self.dut = self.android_devices[0] + self.dut.shell.Execute("stop") + self.dut.shell.Execute("setprop sys.boot_completed 0") self._cpu_freq = cpu_frequency_scaling.CpuFrequencyScalingController(self.dut) self._cpu_freq.DisableCpuScaling() @@ -89,7 +88,7 @@ class HwBinderPerformanceTest(base_test.BaseTestClass): def tearDownClass(self): self._cpu_freq.EnableCpuScaling() - self.dut.shell.one.Execute("start") + self.dut.shell.Execute("start") self.dut.waitForBootCompletion() def testRunBenchmark32Bit(self): @@ -113,7 +112,7 @@ class HwBinderPerformanceTest(base_test.BaseTestClass): self.hidl_hal_mode, bits) binary = "/data/local/tmp/%s/libhwbinder_benchmark%s" % (bits, bits) - results = self.dut.shell.one.Execute([ + results = self.dut.shell.Execute([ "chmod 755 %s" % binary, "VTS_ROOT_PATH=/data/local/tmp " \ "LD_LIBRARY_PATH=/system/lib%s:/data/local/tmp/%s/hw:" |