diff options
author | Bhuvan Varshney <bvarshne@codeaurora.org> | 2020-03-05 17:48:48 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-03-27 05:08:31 -0700 |
commit | d7456f0701cd051c67e6360e76f934ab941b897c (patch) | |
tree | fd4c8aae7b821060d83c8c8a9c22448ac30517cc | |
parent | a7589d8774808a64d1d2e8de9f5416faf10eedd9 (diff) |
NFC: Fix compilation issues
Code modifications done to fix compilation
issues observed after 11.01.00 MW integration.
Change-Id: Id33144aa21dec344ed579eda56e25c7208da6cf7
-rw-r--r-- | 2.0/default/Android.bp | 1 | ||||
-rw-r--r-- | 2.0/default/NqNfc.cpp | 38 | ||||
-rw-r--r-- | 2.0/default/NqNfc.h | 3 |
3 files changed, 22 insertions, 20 deletions
diff --git a/2.0/default/Android.bp b/2.0/default/Android.bp index 856ce21..4e80d0e 100644 --- a/2.0/default/Android.bp +++ b/2.0/default/Android.bp @@ -11,6 +11,7 @@ cc_binary { ], shared_libs: [ "nfc_nci.nqx.default.hw", + "se_nq_extn_client", "libhidlbase", "libutils", "liblog", diff --git a/2.0/default/NqNfc.cpp b/2.0/default/NqNfc.cpp index a1e0b42..8ee98e8 100644 --- a/2.0/default/NqNfc.cpp +++ b/2.0/default/NqNfc.cpp @@ -127,24 +127,24 @@ Return<bool> NqNfc::setSystemProperty(const ::android::hardware::hidl_string& ke return phNxpNciHal_setSystemProperty(key, value); } -Return<void> NxpNfc::getVendorParam(const ::android::hardware::hidl_string &key, +Return<void> NqNfc::getVendorParam(const ::android::hardware::hidl_string &key, getVendorParam_cb _hidl_cb) { string val = phNxpNciHal_getSystemProperty(key); _hidl_cb(val); return Void(); } -Return<bool> NxpNfc::setVendorParam(const ::android::hardware::hidl_string &key, +Return<bool> NqNfc::setVendorParam(const ::android::hardware::hidl_string &key, const ::android::hardware::hidl_string &value) { return phNxpNciHal_setSystemProperty(key, value); } -Return<bool> NxpNfc::resetEse(uint64_t resetType) { +Return<bool> NqNfc::resetEse(uint64_t resetType) { NFCSTATUS status = NFCSTATUS_FAILED; bool ret = false; - ALOGD("NxpNfc::resetEse Entry"); - if((uint64_t)Constants::HAL_NFC_ESE_HARD_RESET == resetType) { + ALOGD("NqNfc::resetEse Entry"); + if((uint64_t)NxpConstants::HAL_NFC_ESE_HARD_RESET == resetType) { status = phNxpNciHal_resetEse(); if(NFCSTATUS_SUCCESS == status) { ret = true; @@ -156,15 +156,15 @@ Return<bool> NxpNfc::resetEse(uint64_t resetType) { } else { ALOGD("reset called with %lu type", resetType); } - ALOGD("NxpNfc::resetEse Exit"); + ALOGD("NqNfc::resetEse Exit"); return ret; } -Return<bool> NxpNfc::setEseUpdateState(NxpNfcHalEseState eSEState) { +Return<bool> NqNfc::setEseUpdateState(NxpNfcHalEseState eSEState) { int ret = -1; bool status = false; - ALOGD("NxpNfc::setEseUpdateState Entry"); + ALOGD("NqNfc::setEseUpdateState Entry"); ret = phNxpNciHal_nfcTriggerSavedCb((uint8_t)NxpNfcEvents::HAL_NFC_HCI_RESET); if(ret == 0) { status = true; @@ -172,41 +172,41 @@ Return<bool> NxpNfc::setEseUpdateState(NxpNfcHalEseState eSEState) { if(eSEState == NxpNfcHalEseState::HAL_NFC_ESE_JCOP_UPDATE_COMPLETED || eSEState == NxpNfcHalEseState::HAL_NFC_ESE_LS_UPDATE_COMPLETED) { - ALOGD("NxpNfc::setEseUpdateState state == HAL_NFC_ESE_JCOP_UPDATE_COMPLETED"); + ALOGD("NqNfc::setEseUpdateState state == HAL_NFC_ESE_JCOP_UPDATE_COMPLETED"); seteSEClientState((uint8_t)eSEState); eSEClientUpdate_NFC_Thread(); } if (eSEState == NxpNfcHalEseState::HAL_NFC_ESE_UPDATE_COMPLETED) { phNxpNciHal_nfcTriggerSavedCb((uint8_t)NxpNfcEvents::HAL_NFC_RESTART); } - ALOGD("NxpNfc::setEseUpdateState Exit"); + ALOGD("NqNfc::setEseUpdateState Exit"); return status; } -Return<bool> NxpNfc::setNxpTransitConfig(const ::android::hardware::hidl_string &strval) { +Return<bool> NqNfc::setNxpTransitConfig(const ::android::hardware::hidl_string &strval) { bool status = true; - ALOGD("NxpNfc::setNxpTransitConfig Entry"); + ALOGD("NqNfc::setNxpTransitConfig Entry"); status = phNxpNciHal_setNxpTransitConfig((char *)strval.c_str()); - ALOGD("NxpNfc::setNxpTransitConfig Exit"); + ALOGD("NqNfc::setNxpTransitConfig Exit"); return status; } -Return<bool> NxpNfc::isJcopUpdateRequired() { +Return<bool> NqNfc::isJcopUpdateRequired() { bool status = 0; - ALOGD("NxpNfc::isJcopUpdateRequired Entry"); + ALOGD("NqNfc::isJcopUpdateRequired Entry"); status = getJcopUpdateRequired(); - ALOGD("NxpNfc::isJcopUpdateRequired Exit"); + ALOGD("NqNfc::isJcopUpdateRequired Exit"); return status; } -Return<bool> NxpNfc::isLsUpdateRequired() { +Return<bool> NqNfc::isLsUpdateRequired() { bool status = 0; - ALOGD("NxpNfc::isLsUpdateRequired Entry"); + ALOGD("NqNfc::isLsUpdateRequired Entry"); status = getLsUpdateRequired(); - ALOGD("NxpNfc::isLsUpdateRequired Exit"); + ALOGD("NqNfc::isLsUpdateRequired Exit"); return status; } diff --git a/2.0/default/NqNfc.h b/2.0/default/NqNfc.h index 465ed33..435f7ed 100644 --- a/2.0/default/NqNfc.h +++ b/2.0/default/NqNfc.h @@ -55,7 +55,7 @@ #include <hidl/MQDescriptor.h> #include <hidl/Status.h> -enum Constants : uint16_t { +enum NxpConstants : uint16_t { HAL_NFC_ESE_HARD_RESET = 5, }; @@ -77,6 +77,7 @@ using ::vendor::nxp::hardware::nfc::V2_0::INqNfc; using ::vendor::nxp::hardware::nfc::V2_0::nfc_nci_IoctlInOutData_t; using ::vendor::nxp::hardware::nfc::V2_0::nfc_nci_ExtnOutputData_t; using ::vendor::nxp::hardware::nfc::V2_0::NfcEvent2; +using ::vendor::nxp::hardware::nfc::V2_0::NxpNfcHalEseState; using ::android::hardware::hidl_string; using ::android::hardware::hidl_vec; using ::android::hardware::Return; |