summaryrefslogtreecommitdiff
path: root/core/LocApiBase.cpp
AgeCommit message (Collapse)Author
2019-08-23GPS hw: report ppe/spe report with combined reportWei Chen
When DRE/PPE are also running in the system, in addition to reporitng the combined final output, add the support to report the unmodified SPE/PPE report received from the engine Change-Id: Icb636824da32b175030dfcd2b270ac8b500ff75b CRs-fixed: 2487580
2019-08-16delete of shared LocApiBase::mMsgTask may cause issuesKevin Tang
mMsgTask is static, its delete would impact other LocApi objects which don't know it is deleted. Added refcount to manage this shared obj. Change-Id: Iea81039b9cd74081c5230d6bb18ea80c2ee05916 CRs-Fixed: 2505569
2019-07-24Adding NAVIC to constellation string arraySaurabh Srivastava
Adding NAVIC to the array of constellation strings while reporting SV to clients. CRs-Fixed: 2494936 Change-Id: Ifabc3bc3d0583119f3e1e80c9f69c60ff68e3602
2019-07-15SUPL-2.0-con-034-1/2 test case failsMike Cailean
SUPL-2.0-con-034-1/2 Fail because Emergency-NI did not check inprogress session Change-Id: I377955c455830bf3bb7cb7fe05d45c4536dabfbc CRs-fixed: 2483780
2019-05-18Addressing format related to formatingNilesh Gharde
Added formating related issue as genuine errors fixes Change-Id: Ie01e9ce3bf838a37871a4779ae1403b4dca3d87c CRs-Fixed: 2447200
2019-04-08Streamline measurements processingMike Cailean
Consolidate the translation from QMI LOC into one place in order to minimize traffic Change-Id: I73c2f25e94544a2b69d4227c63548ef11b6a4d91 CRs-fixed: 2430668
2019-03-27Batching and Geofence moved to GNSS HALDante Russo
Addition of BatchingAdapter and GeofenceAdapter. Deprecated Background LOC QMI Client and renamed LocDualContext renamed to LocContext. Moved some common Adapter functions into LocAdapterBase. Added Distance Based Tracking logic into GnssAdapter. Addition of flp.conf Deprecated GEOFENCE capabilities configuration in gps.conf CRs-fixed: 2342200 Change-Id: I6b6257c4cf296e5a8c56bc0b149e4de77cf6cdf9
2019-03-21Improved Location NI PrivacyMike Cailean
Changes to be made starting in Android Q in the way that Location requests made by Location clients other than the Android FrameWork (e.g. Network Initiated AGNSS clients, modem-based clients such as MDT) are handled CRs-fixed: 2397454 Change-Id: Ibb5b9429a1ec1e14ee59d89763d8a78607997615
2019-02-19Merge "New structures and handling of new data in the pipe"qctecmdr Service
2019-02-17Fix race condition that adapter does not get handleEngineUpKevin Tang
- Removed redundant injectFeatureConfig() call, as it this happens twice, once when the first context is created which would have been too early and once when LocApi open success. - Resolved a race condition that second adapter added may not have been in LocApi's adapter list yet when handleEngineUp() is broadcast. Change-Id: I8ecc18eab6b450c326c0be1abc011f70285439aa CRs-Fixed: 2397902
2019-02-06New structures and handling of new data in the pipeBhavna Sharma
1. KlobucharIonoModel 2. Additional parameters for Glonass 3. Add gps system time to ephemeris reports. CRs-Fixed: 2388931 Change-Id: Ibd08496c8eda2ce7571cbdd71ff0c179f7376aa7
2018-10-08FR48381: Support leap second change eventWei Chen
Support leap second change event (1) Info will be available in location api and location client api (2) Engine hub aggregator will use the info to calculate UTC timestamp Change-Id: Ie79c1a38301fa094134a4a31af424487758343f6 CRs-fixed: 2289457
2018-10-02New additions for Ephemeris and Poly handlingBhavna Sharma
1. Add new data structures to hold the Ephemeris reports. 2. Modifications to SV Poly structure to include delete flags. 3. Add SV_POLY bit to GnssAidingDataSvMask to support delete commands from modem for poly and ephemeris per constellation. 4. Define LocApiBase and LocAdapter functions to report the ephemeris content, request for complete valid ephemeris and Poly content at any time and report delete commands from modem on Ephemeris and Poly content. CRs-Fixed: 2301149 Change-Id: If36e87c410c3204c94a6ed7db30f297edba95508
2018-09-26FR47184: tunc constrained and position assisted time estimatorDante Russo
(1) Configure tunc constrained module on modem via gps.conf (2) Configure position assisted time estimator and inject DRE position with additional info to modem (3) Support get total energy consumption API by GNSS engine since device first bootup Change-Id: I1e73057df090c1d356c55a498f06eed45839ca8f CRs-fixed: 2276355
2018-09-06Set SV in use mask based on final fixesMike Cailean
Do not set SV in use mask based on intermediate position update from modem since it might contain stale information Change-Id: I4300854ead3f85758bfb37d4c47ace10f63541a0 CRs-fixed: 2307493
2018-08-21Merge "Add jammer indication"Linux Build Service Account
2018-08-17Add jammer indicationMike Cailean
Add AGC and jammer indication Change-Id: I93641864338beec368e7a56b3a20b158ea892202 CRs-fixed: 2239155
2018-08-05SAP:update SENSOR_CONTROL_MODE configurationHoss Zhou
set SENSOR_CONTROL_MODE to MODEM_DEFAULT to make INS use its default setting. remove SENSOR_PROVIDER and SENSOR_USAGE. Change-Id: I99d48d4600a6bca8e64ae0d1ff065af762888b2e CRs-Fixed: 2285242
2018-07-04Print QZSS SV ID with offsetSaurabh Srivastava
Adding QZSS SV ID offset for logging. Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4 CRs-Fixed: 2272374
2018-06-26Added optional MO SUPL SLPMike Cailean
Change-Id: I89c3e697b92dfe04d403c073e779906d21cefd69 CRs-fixed: 2259090
2018-06-16Support Multiband featureMike Cailean
Add carrierFrequency to GNSS Measurements reporting. Also, add AGC level from QMI LOC message to GNSS measurements (as opposed to adding it from NMEA debug messages). CRs-fixed: 2186144 Change-Id: Ia3995ba9e09ef4c68e8922b7570f7af0eb50098a
2018-06-12Handle updating the carrier configurationMike Cailean
Set GPS_LOCK for cases where the modem has two SIMs Change-Id: I2745b9469b2f755b0a24be2a7f4ae514c35a37cb CRs-fixed: 2018029
2018-06-11SUPL connection enhancementsMike Cailean
Adding enhancement to ATL messages to allow sending bearer type and apn type mask values. CRs-fixed: 2206014 Change-Id: I28f6583d842e82c9e26d40be55312f8aaf01193e
2018-06-07changes to work without ULP moduleKevin Tang
Rework the module with ULP module being removed Change-Id: I5ac81e8c1c734352b3087545b83f4812fa3e8aff CRs-fixed: 2235309
2018-06-04Change prototype of getWwanZppFix APIBhavna Sharma
No need for return value as it will be handled asynchronously. CRs-Fixed: 2250516 Change-Id: I7c3ce33cb61688a8cb206c397a69bf192c92beb1
2018-06-03FR 48850 - Device based hybrid ODCPISaurabh Srivastava
Adding support for sending ODCPI request to framework via IGnss interface. Change-Id: I97ab4f00505705fedc266998602499fd344baf31 CRs-Fixed: 2217664
2018-06-03FR 45651 - GNSS SV/Constellation ControlSaurabh Srivastava
Adding support for configuring GNSS SVs and constellations to be used. Change-Id: I47d5cd9d08ac9aaf633be2fe3b1bd152a2f4293b CRs-Fixed: 2184871
2018-05-29FR 46082 - SUPL Network Setup ImprovementsSaurabh Srivastava
Adding enhancement to ATL messages to allow sending bearer type and apn type mask values. CRs-Fixed: 2209227 Change-Id: I09a294946610f26de4760a0fba6f13083f8752f3
2018-05-23location.lnx.4.0 catchupKevin Tang
Change-Id: I248620cfd849d39ccfb8bbd11e2cf049df889346 CRs-Fixed: 2247713
2018-04-27Addition of new LocApi threadBhavna Sharma
1. LocApiBase to create its own MsgTask thread to allow QMI calls to be made asynchronously. It shall no longer share the adapter's thread. 2. Implementation of new LocApiResponse classes for generic response type from LocApi layer to Adapter layers 3. GnssAdapter modified to handle the asynchronous nature of LocApi calls. CRs-Fixed: 2218658 Change-Id: I6e401a89f16791ec144763ac5f070b7ee1dad931
2018-04-24Assure event mask is set properly to get positionsDante Russo
The event mask can be retrieved in the context of client thread as zero and then queued up to go to msg task thread. By the time the msg is actually handled in msg task thread, the actual event mask at LOC API layer may have already changed, but this mask would then be overridden by zero. This can cause no modem events to ever come, including position reports. The fix is to not retrieve the event mask in the client thread, but instead wait for msg to be handled in msg task thread before retrieving it. Change-Id: I48562d028bbfa187732686c060b5cdd62c6d5a89 CRs-fixed: 2219519
2018-04-20Merge location.lnx.3.0 into location.lnx.4.0Bhavna Sharma
CRs-Fixed: 2228694 Change-Id: I114d830bec57040d700a0cebac2d0415c9b9f893
2018-04-04Merge location.lnx.3.0-180201 to location.lnx.3.9Dante Russo
Catchup merge from tag location.lnx.3.0-18201 CRs-fixed: 2212182 Change-Id: I47f5f9eb06cb6a6ee6be337a2dc43e0d2386113b
2018-03-02remove unused variables for compilationDante Russo
remove unsed variables and fix few compiler issues CRs-fixed: 2175735 Change-Id: I635a7503326928f43070aa2224bc3c3d6e1ff929
2018-02-14Enhance LocationAPI structs to hold full positionYingjie Wang
Match the output of izat_remote_api clients with LocationAPI clients. Fill GnssLocationInfoNotification with missing fields from GpsLocationExtended and Location structure. And allow one single callback to report complete position info. Meanwhile, remove fields from UlpLocation that are no longer used. CRs-fixed: 2169738 Change-Id: Ib5bd3dd9c065c4b3d6cad32b23167546ad950d06
2018-01-16LE clean upKevin Tang
separated utils, core, ds and loc-api-v02 from loc-hal into their own independent packages; simplified loc-pla; moved pla to the root of project; removed loc-stub. Change-Id: I373f02f9306646addf55ae90d71c4ba8e3741d09 CRs-Fixed: 2172544
2017-09-28AGPS Init must complete in one message callBhavna Sharma
If AGPS initialization is split across multiple messages on the msgTask, it causes other other commands to seep in before the initialization can complete. To avoid this the initialization must be completed in one message. Also includes some cleanup on AGPS initializations. CRs-Fixed: 2111399 Change-Id: Id61ceeb12d5781764b42ff9d1868884537ca8d90
2017-09-08Fix unable to clear existing event bitmasksKatz Yamada
Fix for an issue updateEvtMask call chain is unable to clear existing event bitmasks stored in LocApiV02. Change-Id: Id34e2d92a506e7300f3d9b3ec74a80a1f6822787 CRs-Fixed: 2085379
2017-08-16Merge "Fix to report bearing and speed accuracy"Linux Build Service Account
2017-08-11move getAgcInformation and setDefaultReport into GnssAdapterKevin Tang
They are currently in LocApiv02, which is incorrect. SystemStatus shouldn't be referenced at this layer. And both of these two calls are specific to GnssAdapter use cases too. Change-Id: I7098e3963be163199a833a8fb6b12a100405f71e CRs-Fixed: 2090442
2017-08-01Clean up compiler warning messageBaili Feng
CRs-Fixed: 2070597 Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-07-13Fix to report bearing and speed accuracyBhavna Sharma
1. Validity bit for vertical uncertainity was conflicting with the validity bit of location source, hence had to change the bit. 2. Modify ZPP API to report speed and bearing accuracy. CRs-Fixed:2064017 Change-Id: I8b09ecab3d67557ad7c2451fee71dbc0e1f14371
2017-05-27Provide correct SV used_in_fix flag for QZSSHarikrishnan Hariharan
Mark QZSS SV used_in_fix based on the most recent position report Change-Id: I166087fb62de45e1013ab29c01df3abfba7af12b CRs-Fixed: 2043300
2017-03-21Enable LOGV for LocSvc_LocApiBaseYingjie Wang
Define LOG_NDEBUG 0 to enable verbose log messages in LocApiBase.cpp CRs-fixed: 2018892 Change-Id: Ie3f5efaa728d863b8fd0ab268700e807b232dab3
2017-02-28LocationAPI implementationDante Russo
Implementation of LocationAPI into gps hal to be a common API that is called into by platform specific APIs. Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b CRs-fixed: 1112712
2017-02-14Decouple libhardware usage on LE for gnss modelsBaili Feng
Remove all usage of gps.h and fused_location.h from all gnss models except gps/fpl hal librarys Change-Id: I90ba233c6bbe5c31a4cacceeb981833719c871f2 CRs-Fixed: 1067953
2016-11-04Merge "Reinitialize dataservice client post SSR"Linux Build Service Account
2016-11-03Reinitialize dataservice client post SSRHarikrishnan Hariharan
On SSR invoke dsi_release() and dsi_init(Mode_SSR) to recover data call functionality post SSR. Change-Id: Ie784dad73ae8d6d91cf4cb87efe938af9015a7a2 CRs-Fixed: 1073101
2016-10-28Mark SV used_in_fix based on the most recent position reportHarikrishnan Hariharan
When SV report comes, mark used_in_fix based on the most recent position report. Change-Id: I98f3f4e7836de86f9025bae446cdeac6d1eb5862 CRs-Fixed: 1080013
2016-10-25Merge "Combo Provider 2.0"Linux Build Service Account