Fix for vertical accuracy field missing on SDK APIs

Field flag VERTICAL_ACCURACY_BIT changed definition internally
in HAL, and was mapped 1 to 1 to LocHidlLocationFlagsBits.
Fixed by adding a proper remapping function.

Change-Id: Ida510c2b54568208ffa28e7c017f22a7f0e3f11c
CRs-fixed: 2317059
This commit is contained in:
Kevin Tang 2018-09-21 14:52:32 -07:00
parent 033a0fa1c6
commit 935c00192e

View file

@ -102,6 +102,10 @@ typedef uint16_t LocGpsLocationFlags;
#define LOC_GPS_LOCATION_HAS_VERT_UNCERTAINITY 0x0040
/** LocGpsLocation has valid spoof mask */
#define LOC_GPS_LOCATION_HAS_SPOOF_MASK 0x0080
/** LocGpsLocation has valid speed accuracy */
#define LOC_GPS_LOCATION_HAS_SPEED_ACCURACY 0x0100
/** LocGpsLocation has valid bearing accuracy */
#define LOC_GPS_LOCATION_HAS_BEARING_ACCURACY 0x0200
/** Spoof mask in LocGpsLocation */
typedef uint32_t LocGpsSpoofMask;