summaryrefslogtreecommitdiff
path: root/location
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2018-07-03 10:45:56 -0700
committerKevin Tang <zhikait@codeaurora.org>2018-07-03 10:45:56 -0700
commit56c4dd442074bad94c2ef1483ecfc328703f8557 (patch)
treea4c49a927f56b593d58c434b0e81015d174efecc /location
parent271cfd8a00f97f13a937877cc8ef66ef0392a087 (diff)
downloadgps-56c4dd442074bad94c2ef1483ecfc328703f8557.tar.gz
GPS: block CPI injection for those fixes orginate from modem
GNSS adapter to block CPI injection for CPI originates from modem. One source of the fix is QNP fix from modem. Only fixes that comes within time threshold and with latitude and longitude falls within the same proximity will be blocked. Change-Id: If67a164d1e1c75735979f048a9f8dc93f0b0a41f CRs-fixed: 2260721
Diffstat (limited to 'location')
-rw-r--r--location/location_interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/location/location_interface.h b/location/location_interface.h
index 3c1558e..359cb2b 100644
--- a/location/location_interface.h
+++ b/location/location_interface.h
@@ -63,6 +63,8 @@ struct GnssInterface {
void (*updateConnectionStatus)(bool connected, int8_t type);
void (*odcpiInit)(const OdcpiRequestCallback& callback);
void (*odcpiInject)(const Location& location);
+ void (*blockCPI)(double latitude, double longitude, float accuracy,
+ int blockDurationMsec, double latLonDiffThreshold);
};
struct FlpInterface {