diff options
author | Yuexi Ma <yuexima@google.com> | 2018-06-19 03:45:59 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-06-19 03:45:59 -0700 |
commit | d5751e1a5ec25fb8a4b01441fcadb22a4af1c0d0 (patch) | |
tree | eaca1ba82888a43180e4fc66cc7ee6757104c463 /binder_throughput_test/BinderThroughputBenchmark.py | |
parent | f9b4ed978a24aa01cb4ed9f41507d035e14260a9 (diff) | |
parent | 65f31088e161724f41d2cd39626784a4ffa45716 (diff) | |
download | performance-d5751e1a5ec25fb8a4b01441fcadb22a4af1c0d0.tar.gz |
use lazy android device registration
am: 65f31088e1
Change-Id: I6cb0fdad282ae03401be15df4d6df98989c7c3fd
Diffstat (limited to 'binder_throughput_test/BinderThroughputBenchmark.py')
-rw-r--r-- | binder_throughput_test/BinderThroughputBenchmark.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/binder_throughput_test/BinderThroughputBenchmark.py b/binder_throughput_test/BinderThroughputBenchmark.py index 8402613..3afee54 100644 --- a/binder_throughput_test/BinderThroughputBenchmark.py +++ b/binder_throughput_test/BinderThroughputBenchmark.py @@ -39,8 +39,7 @@ class BinderThroughputBenchmark(base_test.BaseTestClass): """A test case for the binder throughput benchmarking.""" def setUpClass(self): - self.dut = self.registerController(android_device)[0] - self.dut.shell.InvokeTerminal("one") + self.dut = self.android_devices[0] self._cpu_freq = cpu_frequency_scaling.CpuFrequencyScalingController(self.dut) self._cpu_freq.DisableCpuScaling() @@ -150,7 +149,7 @@ class BinderThroughputBenchmark(base_test.BaseTestClass): logging.info("Start to run the benchmark (%s bit mode)", bits) binary = "/data/local/tmp/%s/binderThroughputTest%s" % (bits, bits) - results = self.dut.shell.one.Execute( + results = self.dut.shell.Execute( ["chmod 755 %s" % binary, "LD_LIBRARY_PATH=/data/local/tmp/%s/hw:" "/data/local/tmp/%s:" |