Check ret value for HIDL callback method

Judge ret value for niNotifyCb to check HIDL return status

Change-Id: I0cde3716a971941260f2fb12c9e5927bc8c8d548
CRs-fixed: 2147437
This commit is contained in:
Yingjie Wang 2017-11-21 12:17:26 +08:00
parent ccd6716531
commit 9fe73f379a

View file

@ -405,7 +405,11 @@ void GnssAPIClient::onGnssNiCb(uint32_t id, GnssNiNotification gnssNiNotificatio
notificationGnss.notificationIdEncoding = notificationGnss.notificationIdEncoding =
IGnssNiCallback::GnssNiEncodingType::ENC_SUPL_UCS2; IGnssNiCallback::GnssNiEncodingType::ENC_SUPL_UCS2;
gnssNiCbIface->niNotifyCb(notificationGnss); auto r = gnssNiCbIface->niNotifyCb(notificationGnss);
if (!r.isOk()) {
LOC_LOGE("%s] Error from niNotifyCb description=%s",
__func__, r.description().c_str());
}
} }
void GnssAPIClient::onGnssSvCb(GnssSvNotification gnssSvNotification) void GnssAPIClient::onGnssSvCb(GnssSvNotification gnssSvNotification)