summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2022-01-18 20:49:34 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-18 20:49:34 +0000
commitf780c1cda1a2d0d59839f5e01dca343bb74d4687 (patch)
treed450324808ea41c5c48f0578424710b9c5addf14
parentf89078f2a0f59c311d8e37d093ea13f9bdd7a85e (diff)
parenta7d0f035255a32364e42026615329f8b5bc3514e (diff)
downloadlibhwbinder-f780c1cda1a2d0d59839f5e01dca343bb74d4687.tar.gz
libhwbinder_benchmark -= 1 race am: 2fcf57e9fd am: a7d0f03525
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/1950636 Change-Id: I10a55977e7fa9b36c756d2a1139f2093210c387f
-rw-r--r--vts/performance/Benchmark.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/vts/performance/Benchmark.cpp b/vts/performance/Benchmark.cpp
index f995ec7..87185f5 100644
--- a/vts/performance/Benchmark.cpp
+++ b/vts/performance/Benchmark.cpp
@@ -82,7 +82,6 @@ static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) {
}
static void BM_sendVec_passthrough(benchmark::State& state) {
- // getService automatically retries
sp<IBenchmark> service = IBenchmark::getService(gServiceName, true /* getStub */);
if (service == nullptr) {
state.SkipWithError("Failed to retrieve benchmark service.");
@@ -94,7 +93,7 @@ static void BM_sendVec_passthrough(benchmark::State& state) {
}
static void BM_sendVec_binderize(benchmark::State& state) {
- // getService automatically retries
+ android::hardware::details::waitForHwService(IBenchmark::descriptor, gServiceName);
sp<IBenchmark> service = IBenchmark::getService(gServiceName);
if (service == nullptr) {
state.SkipWithError("Failed to retrieve benchmark service.");