sm8450-common: gps: HAL: Location compilation bringup for wearables

Enable few more important compilation flags which will consider
warnings as errors. Most of these flags were configured to be
only warning for mobile SPs, but for wearable SPs some of them
are configured to be errors. So configure these as in common
GNSS flags so that same set of flags could be applied to mobile
SPs too.
Fix compilation errors which were showing up, when these flags
were enabled.

Change-Id: I62ef74419d4416252dfc8b25251ba3a51d522bfd
CRs-Fixed: 3292623
This commit is contained in:
Vamana Murthi
2022-09-09 23:31:05 +05:30
کامیت شده توسط Arian
والد 8ab15e722f
کامیت cd7a05c656
16فایلهای تغییر یافته به همراه110 افزوده شده و 29 حذف شده

مشاهده پرونده

@@ -29,13 +29,18 @@ LOCAL_SHARED_LIBRARIES := \
android.hardware.gnss-V1-ndk \
liblog \
libcutils \
libqti_vndfwk_detect_vendor \
libutils \
libloc_core \
libgps.utils \
libdl \
liblocation_api
ifneq ($(TARGET_SUPPORTS_WEARABLES),true)
LOCAL_SHARED_LIBRARIES += libqti_vndfwk_detect_vendor
else
LOCAL_SHARED_LIBRARIES += libqti_vndfwk_detect
endif
LOCAL_CFLAGS += $(GNSS_CFLAGS)
include $(BUILD_SHARED_LIBRARY)
@@ -65,9 +70,14 @@ LOCAL_SHARED_LIBRARIES := \
libutils \
libgps.utils \
liblocation_api \
libqti_vndfwk_detect_vendor \
libbinder_ndk
ifneq ($(TARGET_SUPPORTS_WEARABLES),true)
LOCAL_SHARED_LIBRARIES += libqti_vndfwk_detect_vendor
else
LOCAL_SHARED_LIBRARIES += libqti_vndfwk_detect
endif
LOCAL_SHARED_LIBRARIES += \
libhidlbase \
android.hardware.gnss@1.0 \

مشاهده پرونده

@@ -255,7 +255,7 @@ bool GnssConfiguration::setBlocklistedSource(GnssSvIdSource& copyToSource,
break;
default:
copyToSource.constellation = GNSS_SV_TYPE_UNKNOWN;
LOC_LOGe("Invalid constellation %hhu", copyFromSource.constellation);
LOC_LOGe("Invalid constellation %d", copyFromSource.constellation);
retVal = false;
break;
}

مشاهده پرونده

@@ -538,7 +538,7 @@ void GnssMeasurementInterface::convertElapsedRealtimeNanos(
elapsedRealtime.flags |= elapsedRealtime.HAS_TIME_UNCERTAINTY_NS;
elapsedRealtime.timeUncertaintyNs = in.clock.elapsedRealTimeUnc;
LOC_LOGd("elapsedRealtime.timestampNs=%" PRIi64 ""
" elapsedRealtime.timeUncertaintyNs=%" PRIi64 " elapsedRealtime.flags=0x%X",
" elapsedRealtime.timeUncertaintyNs=%lf elapsedRealtime.flags=0x%X",
elapsedRealtime.timestampNs,
elapsedRealtime.timeUncertaintyNs, elapsedRealtime.flags);
}

مشاهده پرونده

@@ -145,7 +145,7 @@ void GnssAPIClient::gnssConfigurationUpdate(const GnssConfig& gnssConfig) {
// callbacks
void GnssAPIClient::onCapabilitiesCb(LocationCapabilitiesMask capabilitiesMask) {
LOC_LOGD("%s]: (%02x)", __FUNCTION__, capabilitiesMask);
LOC_LOGD("%s]: (0x%" PRIx64 ")", __FUNCTION__, capabilitiesMask);
mLocationCapabilitiesMask = capabilitiesMask;
mLocationCapabilitiesCached = true;
mMutex.lock();