sm7325-common: update location to LA.UM.9.14.r1-20000-LAHAINA.QSSI13.0
Change-Id: I1a8efd6c0bd3649de877a08b193914ba6d3d4304
This commit is contained in:
parent
9f3feb2522
commit
e7a9456ecd
@ -16,18 +16,6 @@ GNSS_CFLAGS = [
|
|||||||
"-Wno-error=date-time",
|
"-Wno-error=date-time",
|
||||||
]
|
]
|
||||||
|
|
||||||
/* Activate the following for regression testing */
|
|
||||||
GNSS_SANITIZE = {
|
|
||||||
/* address: true,*/
|
|
||||||
cfi: true,
|
|
||||||
misc_undefined: [
|
|
||||||
"bounds",
|
|
||||||
"null",
|
|
||||||
"unreachable",
|
|
||||||
"integer",
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Activate the following for debug purposes only,
|
/* Activate the following for debug purposes only,
|
||||||
comment out for production */
|
comment out for production */
|
||||||
GNSS_SANITIZE_DIAG = {
|
GNSS_SANITIZE_DIAG = {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
LOCAL_PATH := $(call my-dir)
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
GNSS_SANITIZE_DIAG := cfi bounds null unreachable integer address
|
||||||
|
|
||||||
include $(call all-makefiles-under,$(LOCAL_PATH))
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||||
|
|
||||||
GNSS_SANITIZE := cfi bounds null unreachable integer
|
|
||||||
# Activate the following two lines for regression testing
|
|
||||||
# GNSS_SANITIZE += address
|
|
||||||
# GNSS_SANITIZE_DIAG := $(GNSS_SANITIZE)
|
|
||||||
|
@ -4,8 +4,6 @@ cc_library_shared {
|
|||||||
name: "libgnsspps",
|
name: "libgnsspps",
|
||||||
vendor: true,
|
vendor: true,
|
||||||
|
|
||||||
sanitize: GNSS_SANITIZE,
|
|
||||||
|
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"libutils",
|
"libutils",
|
||||||
"libcutils",
|
"libcutils",
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
# vendor opensource packages
|
# vendor opensource packages
|
||||||
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
|
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
|
||||||
|
|
||||||
# Activate the following two lines for regression testing
|
|
||||||
#GNSS_SANITIZE := address cfi alignment bounds null unreachable integer
|
|
||||||
#GNSS_SANITIZE_DIAG := address cfi alignment bounds null unreachable integer
|
|
||||||
|
|
||||||
# Add product packages
|
# Add product packages
|
||||||
#add QMI libraries for QMI targets
|
#add QMI libraries for QMI targets
|
||||||
LOC_BOARD_PLATFORM_LIST += msm8953
|
LOC_BOARD_PLATFORM_LIST += msm8953
|
||||||
|
@ -3,7 +3,6 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_MODULE := libloc_api_v02
|
LOCAL_MODULE := libloc_api_v02
|
||||||
LOCAL_SANITIZE += $(GNSS_SANITIZE)
|
|
||||||
# activate the following line for debug purposes only, comment out for production
|
# activate the following line for debug purposes only, comment out for production
|
||||||
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
||||||
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
|
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
|
||||||
@ -33,8 +32,8 @@ LOCAL_CFLAGS += \
|
|||||||
|
|
||||||
## Includes
|
## Includes
|
||||||
LOCAL_C_INCLUDES := \
|
LOCAL_C_INCLUDES := \
|
||||||
$(TARGET_OUT_HEADERS)/qmi-framework/inc \
|
$(TARGET_OUT_HEADERS)/qmi-framework/inc
|
||||||
$(TARGET_OUT_HEADERS)/qmi/inc
|
|
||||||
LOCAL_HEADER_LIBRARIES := \
|
LOCAL_HEADER_LIBRARIES := \
|
||||||
libloc_core_headers \
|
libloc_core_headers \
|
||||||
libgps.utils_headers \
|
libgps.utils_headers \
|
||||||
|
@ -961,6 +961,8 @@ void LocApiV02 ::
|
|||||||
(time_info_current.tv_nsec)/1e6;
|
(time_info_current.tv_nsec)/1e6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Use this bit to indicate the injected position source is NLP
|
||||||
|
location.techMask |= LOCATION_TECHNOLOGY_WIFI_BIT;
|
||||||
injectPosition(location, onDemandCpi);
|
injectPosition(location, onDemandCpi);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1015,7 +1017,11 @@ void LocApiV02::injectPosition(const Location& location, bool onDemandCpi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
injectPositionReq.positionSrc_valid = 1;
|
injectPositionReq.positionSrc_valid = 1;
|
||||||
|
if (LOCATION_TECHNOLOGY_WIFI_BIT & location.techMask) {
|
||||||
|
injectPositionReq.positionSrc = eQMI_LOC_POSITION_SRC_WIFI_V02;
|
||||||
|
} else {
|
||||||
injectPositionReq.positionSrc = eQMI_LOC_POSITION_SRC_OTHER_V02;
|
injectPositionReq.positionSrc = eQMI_LOC_POSITION_SRC_OTHER_V02;
|
||||||
|
}
|
||||||
|
|
||||||
if (onDemandCpi) {
|
if (onDemandCpi) {
|
||||||
injectPositionReq.onDemandCpi_valid = 1;
|
injectPositionReq.onDemandCpi_valid = 1;
|
||||||
@ -2623,6 +2629,17 @@ void LocApiV02 :: reportPosition (
|
|||||||
location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_LAT_LONG;
|
location.gpsLocation.flags |= LOC_GPS_LOCATION_HAS_LAT_LONG;
|
||||||
location.gpsLocation.latitude = location_report_ptr->latitude;
|
location.gpsLocation.latitude = location_report_ptr->latitude;
|
||||||
location.gpsLocation.longitude = location_report_ptr->longitude;
|
location.gpsLocation.longitude = location_report_ptr->longitude;
|
||||||
|
if (location_report_ptr->altitudeWrtEllipsoid_valid) {
|
||||||
|
LocApiProxyBase* locApiProxyObj = getLocApiProxy();
|
||||||
|
float geoidalSeparation = 0.0;
|
||||||
|
if (nullptr != locApiProxyObj) {
|
||||||
|
geoidalSeparation = locApiProxyObj->getGeoidalSeparation(
|
||||||
|
location_report_ptr->latitude, location_report_ptr->longitude);
|
||||||
|
locationExtended.altitudeMeanSeaLevel =
|
||||||
|
location_report_ptr->altitudeWrtEllipsoid - geoidalSeparation;
|
||||||
|
locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_ALTITUDE_MEAN_SEA_LEVEL;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
LocApiBase::reportData(dataNotify, msInWeek);
|
LocApiBase::reportData(dataNotify, msInWeek);
|
||||||
}
|
}
|
||||||
@ -2719,12 +2736,6 @@ void LocApiV02 :: reportPosition (
|
|||||||
locationExtended.vdop = location_report_ptr->DOP.VDOP;
|
locationExtended.vdop = location_report_ptr->DOP.VDOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (location_report_ptr->altitudeWrtMeanSeaLevel_valid)
|
|
||||||
{
|
|
||||||
locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_ALTITUDE_MEAN_SEA_LEVEL;
|
|
||||||
locationExtended.altitudeMeanSeaLevel = location_report_ptr->altitudeWrtMeanSeaLevel;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (location_report_ptr->vertUnc_valid)
|
if (location_report_ptr->vertUnc_valid)
|
||||||
{
|
{
|
||||||
locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_VERT_UNC;
|
locationExtended.flags |= GPS_LOCATION_EXTENDED_HAS_VERT_UNC;
|
||||||
|
@ -4361,7 +4361,7 @@ int LocationApiPbMsgConv::pbConvertToLocation(const PBLocation &pbLoc, Location
|
|||||||
loc.bearingAccuracy = pbLoc.bearingaccuracy();
|
loc.bearingAccuracy = pbLoc.bearingaccuracy();
|
||||||
|
|
||||||
// uint32 techMask = 12; - bitwise OR of PBLocationTechnologyMask
|
// uint32 techMask = 12; - bitwise OR of PBLocationTechnologyMask
|
||||||
loc.techMask = getLocationFlagsMaskFromPB(pbLoc.techmask());
|
loc.techMask = getLocationTechnologyMaskFromPB(pbLoc.techmask());
|
||||||
|
|
||||||
LOC_LOGd("LocApiPB: pbLoc - Timestamp: %" PRIu64" Lat:%lf, Lon:%lf, Alt:%lf, TechMask:%x",
|
LOC_LOGd("LocApiPB: pbLoc - Timestamp: %" PRIu64" Lat:%lf, Lon:%lf, Alt:%lf, TechMask:%x",
|
||||||
loc.timestamp, loc.latitude, loc.longitude, loc.altitude, loc.techMask);
|
loc.timestamp, loc.latitude, loc.longitude, loc.altitude, loc.techMask);
|
||||||
|
@ -3,7 +3,6 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_MODULE := libsynergy_loc_api
|
LOCAL_MODULE := libsynergy_loc_api
|
||||||
LOCAL_SANITIZE += $(GNSS_SANITIZE)
|
|
||||||
# activate the following line for debug purposes only, comment out for production
|
# activate the following line for debug purposes only, comment out for production
|
||||||
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
||||||
|
|
||||||
|
@ -3,7 +3,6 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_MODULE := libloc_socket
|
LOCAL_MODULE := libloc_socket
|
||||||
LOCAL_SANITIZE += $(GNSS_SANITIZE)
|
|
||||||
# activate the following line for debug purposes only, comment out for production
|
# activate the following line for debug purposes only, comment out for production
|
||||||
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
|
||||||
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
|
LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
|
||||||
|
Loading…
x
Reference in New Issue
Block a user