diff options
author | haohuang <haohuang@codeaurora.org> | 2018-04-16 15:12:49 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-06-07 21:56:37 -0700 |
commit | 17015dd790b13345c547709ef8b6144a3526d079 (patch) | |
tree | fcda56f7a95c6b66772ec2a5539d6af27f4c7324 /utils/loc_gps.h | |
parent | 8cc52b448c15ab85a2786d08b6294371ccb96119 (diff) | |
download | gps-17015dd790b13345c547709ef8b6144a3526d079.tar.gz |
Add spoof report mask in location object
Add the spoof mask report in location object
in position report and ZPP position report in
LocApiV02. Propagate this mask to the location
object in Location API module.
Change-Id: I5df87d389d5315c55ed2afce1f440a0486e4bebd
CRs-fixed: 2236154
Diffstat (limited to 'utils/loc_gps.h')
-rw-r--r-- | utils/loc_gps.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/loc_gps.h b/utils/loc_gps.h index 5e915a3..aaeea23 100644 --- a/utils/loc_gps.h +++ b/utils/loc_gps.h @@ -100,6 +100,15 @@ typedef uint16_t LocGpsLocationFlags; #define LOC_GPS_LOCATION_HAS_ACCURACY 0x0010 /** LocGpsLocation has valid vertical uncertainity */ #define LOC_GPS_LOCATION_HAS_VERT_UNCERTAINITY 0x0040 +/** LocGpsLocation has valid spoof mask */ +#define LOC_GPS_LOCATION_HAS_SPOOF_MASK 0x0080 + +/** Spoof mask in LocGpsLocation */ +typedef uint32_t LocGpsSpoofMask; +#define LOC_GPS_LOCATION_NONE_SPOOFED 0x0000 +#define LOC_GPS_LOCATION_POSITION_SPOOFED 0x0001 +#define LOC_GPS_LOCATION_TIME_SPOOFED 0x0002 +#define LOC_GPS_LOCATION_NAVIGATION_DATA_SPOOFED 0x0004 /** Flags for the loc_gps_set_capabilities callback. */ @@ -533,6 +542,8 @@ typedef struct { size_t size; /** Contains LocGpsLocationFlags bits. */ uint16_t flags; + /** The spoof mask */ + LocGpsSpoofMask spoof_mask; /** Represents latitude in degrees. */ double latitude; /** Represents longitude in degrees. */ |