mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Use get instead of implicit cast on Return<*>. am: dc5f84f993
am: 3c87575472
Change-Id: I127bb33b016a57ec6abe7ca785a33104a7ff29fc
This commit is contained in:
@@ -108,7 +108,13 @@ Return<void> Foo::callMe(
|
||||
"should block for %" PRId64 " seconds", cb.get(),
|
||||
DELAY_S);
|
||||
c[1] = systemTime();
|
||||
bool answer = cb->heyItsYouIsntIt(cb);
|
||||
Return<bool> ret = cb->heyItsYouIsntIt(cb);
|
||||
if (!ret.isOk()) {
|
||||
ALOGE("SERVER(Foo) callMe %p encountered transport error (%d).",
|
||||
cb.get(), ret.getStatus().exceptionCode());
|
||||
return Void();
|
||||
}
|
||||
bool answer = ret.get();
|
||||
c[1] = systemTime() - c[1];
|
||||
ALOGI("SERVER(Foo) callMe %p IFooCallback::heyItsYouIsntIt " \
|
||||
"responded with %d after %" PRId64 "ns", cb.get(), answer, c[1]);
|
||||
|
||||
Reference in New Issue
Block a user