summaryrefslogtreecommitdiff
path: root/binder_benchmark
diff options
context:
space:
mode:
authorKeun Soo Yim <yim@google.com>2016-12-12 14:44:53 -0800
committerKeun Soo Yim <yim@google.com>2016-12-16 22:57:11 +0000
commit502098cb04fa64fc354a7fffac506688b84e7ac3 (patch)
tree9e8f7b8ff83a9847abcc34b64da84f619ff9cc8d /binder_benchmark
parent58022bc0f68b44c4f5c32e00a54c17587fd6bd47 (diff)
downloadperformance-502098cb04fa64fc354a7fffac506688b84e7ac3.tar.gz
stop/start the framework before/after running (hw)binder performance tests
Test: vts-tradefed; run vts-hal-hidl Bug: 33379541 Change-Id: Id9967f4ca442711b3353500224dcc6b1aad3881c
Diffstat (limited to 'binder_benchmark')
-rw-r--r--binder_benchmark/BinderPerformanceTest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/binder_benchmark/BinderPerformanceTest.py b/binder_benchmark/BinderPerformanceTest.py
index 423b9c6..10719f8 100644
--- a/binder_benchmark/BinderPerformanceTest.py
+++ b/binder_benchmark/BinderPerformanceTest.py
@@ -68,10 +68,14 @@ class BinderPerformanceTest(base_test_with_webdb.BaseTestWithWebDbClass):
def setUpClass(self):
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.DisableCpuScaling()
def tearDownClass(self):
self.EnableCpuScaling()
+ self.dut.shell.one.Execute("start")
+ self.waitForBootCompletion()
def ChangeCpuGoverner(self, mode):
"""Changes the cpu governer mode of all the cpus on the device.