Commit graph

332 commits

Author SHA1 Message Date
Saurabh Srivastava
83c197246f Adding NAVIC to constellation string array
Adding NAVIC to the array of constellation
strings while reporting SV to clients.

CRs-Fixed: 2494936
Change-Id: Ifabc3bc3d0583119f3e1e80c9f69c60ff68e3602
2019-07-24 11:10:52 -07:00
Mike Cailean
1608ffb38b SUPL-2.0-con-034-1/2 test case fails
SUPL-2.0-con-034-1/2 Fail because Emergency-NI
did not check inprogress session

Change-Id: I377955c455830bf3bb7cb7fe05d45c4536dabfbc
CRs-fixed: 2483780
2019-07-15 10:41:58 -07:00
Kevin Tang
95ee8899c9 Add XSSO support for multiple network handles
Add support in HAL for multiple network handles
with same type.

Change-Id: Idc9e6fc1c7876dc868264500d60a5d086ab003b0
CRs-Fixed: 2477395
2019-07-08 11:17:06 -07:00
Yingjie Wang
2e7c04a82d Update SystemStatus with battery info in HealthHAL
Change-Id: Ibc2157f1834eb65da48f9375e497628411a185c9
CRs-fixed: 2433570
2019-06-05 08:10:23 +08:00
Nilesh Gharde
210d3ca227 Addressing format related to formating
Added formating related issue as
genuine errors fixes

Change-Id: Ie01e9ce3bf838a37871a4779ae1403b4dca3d87c
CRs-Fixed: 2447200
2019-05-18 09:12:29 -07:00
qctecmdr
051bea2282 Merge "Fix few ASAN issues reported" 2019-05-17 10:36:24 -07:00
Dante Russo
61b7ed6bf0 Fix few ASAN issues reported
- Fix a Use After Free issue in Gnss Update Config
If Engine Capabilities are not known yet at the time
of the MsgGnssUpdateConfig, the ids arrray will be freed
but the ids pointer will be copied into a new
MsgGnssUpdateConfig that will access the ids array again

- Issue in NetworkInfoDataItemBase which will result in
array out of bound access which might result in heap
buffer overflow.

Change-Id: Ib5a6dc29fef9eb6676d4605f92d60f26a47d1d90
CRs-fixed: 2449980
2019-05-15 15:09:39 -07:00
qctecmdr
edf991e3b9 Merge "Set yearOfHw to 2019 if Location Privacy feature is supported" 2019-05-09 16:00:16 -07:00
Saurabh Srivastava
331c6d9893 Adding NAVIC support
NAVIC constellation support added.

Change-Id: I30a61f53089177d4e02b617dc9b785c13e2ef6ee
CRs-Fixed: 2399619
2019-05-09 10:20:33 -07:00
qctecmdr
b527967057 Merge "Age Second field in GNSS debug data is incorrect" 2019-05-09 05:51:19 -07:00
Mike Cailean
b884edb7c8 Set yearOfHw to 2019 if Location Privacy feature
is supported

Change-Id: If5ee31603491c83652082ce295abfcf9c9fec511
CRs-fixed: 2446241
2019-05-06 10:12:52 -07:00
Mike Cailean
aa95ca27f8 Process CP_MTLR in emergency in different conditions
Prcess CP_MTLR based on a new configuration item

Change-Id: I9351f574f0b1a4bad2b88f2627ab188ac1522e92
CRs-fixed: 2444954
2019-05-03 09:09:03 -07:00
qctecmdr
99db93452d Merge "Default value of SUPL_ES to enable" 2019-05-02 16:30:29 -07:00
Mike Cailean
bb5cbeed24 Age Second field in GNSS debug data is incorrect
Change-Id: Iec28f9dbbc3b9cfe9a5d06e1f198a02cf09047be
CRs-fixed: 2434780
2019-05-01 13:46:49 -07:00
Katz Yamada
2c71ec9e02 feat: Add timeuncNs in PQWM1 message
Add timeuncNs field in PQWM1 of debug NMEA
message generated by modem. SystemStaus to
parse it. GnssDebug adds this value in
timeunc when it generates GNSS debug report.

Change-Id: I649915f95730dc8db22e8b4cb88008edc6d8b9d0
CRs-Fixed: 2236950
2019-05-01 13:42:21 -07:00
Dante Russo
9d0d8e3c72 Default value of SUPL_ES to enable
SUPL_ES by default needs to be enabled,
since it is no longer set by AFW at runtime.

CRs-fixed: 2444734
Change-Id: I370a3e0f8ab6905b47629c4076f645b26ff8acc9
2019-04-25 15:27:40 -07:00
Mike Cailean
cd1031a520 Update proxyAppPackageName field in nfw notification
Change-Id: I993a6d9227b03626bc254675944df28cc578a6c7
CRs-fixed: 2437418
2019-04-23 15:01:14 -07:00
Mike Cailean
b95f05cc73 Streamline measurements processing
Consolidate the translation from QMI LOC into one
place in order to minimize traffic

Change-Id: I73c2f25e94544a2b69d4227c63548ef11b6a4d91
CRs-fixed: 2430668
2019-04-08 11:17:31 -07:00
qctecmdr
449fdb73e2 Merge "Add HAL support for network handle" 2019-03-31 20:11:37 -07:00
Dante Russo
5c1e23cf02 Batching and Geofence moved to GNSS HAL
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-27 14:54:49 -07:00
Kevin Tang
546e88fc04 Add HAL support for network handle
Add HAL support for modifications to the
network status information passed in.

Change-Id: I99defc6a419d9f21ce74469a1aa016cc7fade4a5
CRs-Fixed: 2397433
2019-03-26 18:40:03 -07:00
qctecmdr Service
01869b4004 Merge "Improved Location NI Privacy" 2019-03-22 17:36:07 -07:00
Mike Cailean
b046241ec2 Improved Location NI Privacy
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-03-21 14:57:28 -07:00
qctecmdr Service
3774ea547f Merge "clear magic number for GPS_LOCK" 2019-03-21 08:02:45 -07:00
qctecmdr Service
7d34cea4ca Merge "Remove tracking redundanty and assure min interval" 2019-03-19 11:16:00 -07:00
Hoss Zhou
1839fb1140 clear magic number for GPS_LOCK
Change-Id: I3c1b5a18ab16382a436098f8af541bf7f125783e
CRs-fixed: 2370451
2019-03-18 16:33:52 -07:00
Kevin Tang
5a9cc5ae72 Merge remote-tracking branch 'quic/location.lnx.4.0' into HEAD
CRs-fixed: 2414738

Change-Id: Ic8d1cd5bb37d1ad26c2749e46be279942e28ac05
2019-03-14 17:43:05 -07:00
Kevin Tang
b082fd7f7b allow a isMaster client in LocAdapterProxyBase ctor
This would allow GeofenceAdapter become a master
adapter, in case it gets created before GnssAdapter.

Change-Id: I9eb55b7fac9970fd11d4e34bdf7cf824e5b1c586
CRs-Fixed: 2403691
2019-03-06 11:57:33 -08:00
Dante Russo
e22619060b Remove tracking redundanty and assure min interval
A tracking interval should not be less than 100ms
If tracking interval or power mode is updated to
the same value, then start tracking should not be
sent to the modem again.
Fix some issues with multiplex with powerMode

Change-Id: I91e5d0577569b96179a5337af0fc91641dc126db
CRs-fixed: 2190953
2019-02-26 12:33:25 -08:00
qctecmdr Service
8e120b1ed9 Merge "New structures and handling of new data in the pipe" 2019-02-19 11:57:34 -08:00
Kevin Tang
9a055d5208 Fix race condition that adapter does not get handleEngineUp
- 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-17 12:32:50 -08:00
Kevin Tang
9b2e79c42e Fix race condition that adapter does not get handleEngineUp
- 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-14 11:08:21 -08:00
Bhavna Sharma
7445c50730 New structures and handling of new data in the pipe
1. KlobucharIonoModel
2. Additional parameters for Glonass
3. Add gps system time to ephemeris reports.

CRs-Fixed: 2388931

Change-Id: Ibd08496c8eda2ce7571cbdd71ff0c179f7376aa7
2019-02-06 12:58:00 -08:00
haohuang
18c99090be Qualcomm Unified Vendor - GPS
Remove remaining build flag checks in all
location vendor modules :
BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET
LW_FEATURE_SET

Change-Id: Ideacd3ae7f6a49ff3da3ca8cd14668c01400484a
CRs-Fixed: 2341041
2019-01-09 20:31:40 -08:00
Harikrishnan Hariharan
06d7e5bbba Request for a data item value is not handle by SSO
Subscribe for a data item first time adds the DI to internal
SSO client list. When the request comes for after this, since
item is already added, dataItemsToSubscribe will be empty. So
the code for request value for DI is not invoked. Handle this
scenario in SSO.

Change-Id: Ife04fe4eedc9b3132e7967f781b0e29ac41c01e7
CRs-Fixed: 2347338
2018-11-20 14:17:58 +05:30
Wei Chen
21b9c4e47e FR48381: Support leap second change event
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-08 12:26:06 -07:00
Linux Build Service Account
837f245997 Merge "New additions for Ephemeris and Poly handling" 2018-10-05 12:51:44 -07:00
Harikrishnan Hariharan
2f80dcc30c Handling network types not available in IAgnssRil enums
Handling network types not available in IAgnssRil enums like
Bluetooth, Ethernet, Proxy etc. Pass these network type info
to framework, rather than sending the default TYPE_UNKNOWN.

Change-Id: I7e997b82b07ca68d928bef322182031a2d47e532
CRs-Fixed: 2325210
2018-10-03 04:15:35 -07:00
Bhavna Sharma
5a8d171181 New additions for Ephemeris and Poly handling
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-10-02 09:26:43 -07:00
Linux Build Service Account
b18e6f9b8c Merge "FR47184: tunc constrained and position assisted time estimator" 2018-09-28 10:36:11 -07:00
Dante Russo
2bef34e8b2 FR47184: tunc constrained and position assisted time estimator
(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-26 14:17:30 -07:00
Harikrishnan Hariharan
352ffcb3c5 Pass Framework Action request object to HandleTurnOn msg task
Currently Sys Status OS Observer object was being passed, due
to which actual turn on functionality in Framework action
request object was not being invoked.
Implement equals for SystemStatus class for BT scan device data
so that it is handled correctly in setIteminReport.

Change-Id: Ie7f24a1eaf886a2402698489bfd1d0ddc34585cf
CRs-Fixed: 2321041
2018-09-24 00:21:04 -07:00
Madhanraj Chelladurai
2ed4407e7c gps: use common compilation flag for the same functionality
modify the compilation flag to be in alignment with the location
services library

Change-Id: Ie65e6e803c50524c0913b1475edbf556a5b7f207
CRs-Fixed: 2299356
2018-09-17 11:27:39 -07:00
Linux Build Service Account
b64feb2b73 Merge "Set SV in use mask based on final fixes" 2018-09-11 23:21:14 -07:00
Mike Cailean
c30e7c5e63 Set SV in use mask based on final fixes
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-09-06 16:09:05 -07:00
Kevin Tang
0a19651316 GPS: unify buffer size passed to retrieve string with loc cfg
Loc cfg parsing routines assuming that string buffer size is
LOC_MAX_PARAM_STRING. Changes are to make sure that
caller to loc cfg routine does use that buffer of size
LOC_MAX_PARAM_STRING.

Change-Id: Icecf6bf017e6dda1da0766adc746f60d471653d0
CRs-fixed: 2301437
2018-08-24 16:57:57 -07:00
Linux Build Service Account
3379b6645d Merge "Add jammer indication" 2018-08-21 14:29:45 -07:00
Mike Cailean
75cfd43bfd Add jammer indication
Add AGC and jammer indication

Change-Id: I93641864338beec368e7a56b3a20b158ea892202
CRs-fixed: 2239155
2018-08-17 09:15:20 -07:00
Baili Feng
de454e21f6 Filter DataItems with suitable way.
We should carefully modify unordered_set when traversing it.
Update the iterator with the return value of erase function.

Change-Id: I777f42b077502f617a513128db9a4f3b7c9a322c
CRs-Fixed: 2288358
2018-08-16 19:11:13 +08:00
Linux Build Service Account
329de0d44f Merge "SAP:update SENSOR_CONTROL_MODE configuration" 2018-08-14 03:46:00 -07:00