summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2022-01-18 20:37:58 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-01-18 20:37:58 +0000
commita7d0f035255a32364e42026615329f8b5bc3514e (patch)
treed450324808ea41c5c48f0578424710b9c5addf14
parente92a0b710ca15a0b714b41ce2d28881d30d03d06 (diff)
parent2fcf57e9fd260db88c8abfa014eab775b86db76b (diff)
downloadlibhwbinder-a7d0f035255a32364e42026615329f8b5bc3514e.tar.gz
libhwbinder_benchmark -= 1 race am: 2fcf57e9fd
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/1950636 Change-Id: If1e8fb899b30ccdfb1d4e8dfb340613274079688
-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.");