Commit graph

351 commits

Author SHA1 Message Date
qctecmdr
826c41ec8e Merge "GPS HAL: send platform power state event to modem" 2019-11-13 16:17:56 -08:00
qctecmdr
24760a487f Merge "Add NI_SUPL_DENY_ON_NFW_LOCKED configuration" 2019-11-09 20:56:14 -08:00
Bhavna Sharma
6bfa690c48 Handle SPE session TBF and nHz subscription for automotive
1. Requirement is to run SPE session only at 100ms TBF
if any nHz capable engine subscribes for nHz measurement
or nHz position reports.
2. Second requirement is to subscribe for nHz measurement
only if an an actual nHz engine subscribes for nHz measurement

CRs-Fixed: 2540001

Change-Id: I5a2c93a9d880967ab59ce6cd12cd415c98f29e6c
2019-11-06 11:46:24 -08:00
Wei Chen
52d928e069 GPS HAL: send platform power state event to modem
Send platform power state event, suspend/resume/shutdown to modem

Change-Id: I19960f5fb4935de9e4f5513abd95aed6241a2fd9
CRs-fixed: 2527622
2019-11-06 10:13:37 -08:00
Dante Russo
386a741309 Add NI_SUPL_DENY_ON_NFW_LOCKED configuration
If an NI SUPL Request that does not have Privacy
Override option comes when NFW is locked and config
item NI_SUPL_DENY_ON_NFW_LOCKED = 1, then deny it

Change-Id: I0a769c4696751069d5a034dde8569ecfcf63b41a
CRs-fixed: 2550126
2019-11-04 16:50:30 -08:00
Wei Chen
5c568ca1bd GNSS adapter: fix a race condition
Fix the race condition that handleEngineUp gets called before
GNSS adapter constructor finishes

CRs-fixed: 2538904

Change-Id: I0946dd44ce3a4b03f2c8a45a855bbfbd4b7b8468
2019-10-24 09:44:30 -07:00
Wei Chen
3a84bfac17 GPS NMEA: enhance gga fix qualtiy for sensor contributed fix
This enhancement will be enabled if CUSTOM_NMEA_GGA_FIX_QUALITY_ENABLED
is set to 1 in gps.conf.

PPP fix w/o sensor: fix quality will now be 59
PPP fix w sensor: fix quality will now be 69
RTK fixed fix w/ sensor: fix quality will now be 64
RTK float fix w/ sensor: 65
DGNSS and/or SBAS correction fix and w/ sensor: 62
GPS fix without correction but and w/ sensor: 61

Change-Id: I7bc1bb5504e023de40f271d97d31c602f27bd94e
CRs-fixed: 2537211
2019-10-22 11:55:12 -07:00
Wei Chen
87923e48c1 GPS: enable tunc constrained feature by default for auto PL
Enable TUNC feature by default if DISTRO is set to "auto"

Change-Id: I5d05a40fd6c6fb5c9f37cf2a7478f66b9384f5df
CRs-fixed: 2528781
2019-10-17 13:44:29 -07:00
qctecmdr
3d053a57fc Merge "Enable Android sanitizers" 2019-10-10 16:15:55 -07:00
Mike Cailean
73f69ef469 Enable Android sanitizers
Change-Id: I6724d0e171e42f779e8eed6aea126f3f69496f6d
CRs-fixed: 2534375
2019-10-07 15:32:50 -07:00
Mike Cailean
2ef1adca45 Systemstatus - add support older version of PQWME
Add support of older (shorter) version of PQWME
strings from modem. Systemstatus currently discards
those shorter strings. This change is to fill out
all zeros in those missing fields instead of
discarding the whole sentence.

Change-Id: I0276e595c738253608071f12170232a59e3b2e9e
CRs-Fixed: 2153513
2019-10-01 11:50:44 -07:00
Harikrishnan Hariharan
bf12ff26d5 Use 'subdir-objects' option in HAL configure options
If a source file is in a subdirectory, but the 'subdir-objects'
automake option hasn't been enabled. For now, the corresponding
output object file(s) will be placed in the top-level directory.
However, this behaviour will change in future Automake versions,
they will unconditionally cause object files to be placed in the
same subdirectory of the corresponding sources.
So to avoid future incompatibilities, enable the 'subdir-objects'
option in location module configure options.

Change-Id: If9e94c0f6fcd9922ee7f0f9d1909d5d6579a5715
CRs-Fixed: 2533108
2019-09-25 19:35:16 -07:00
Santoshkumar Zalake
2379d8bc30 Change Word in comments in default configuration
CRs-Fixed: 2528185

Change-Id: Iec09e2dd19eb27a64b18ce0cd22aeba71d2e97de
2019-09-16 12:10:10 +05:30
Saurabh Srivastava
92ba006e1b Support PQWP7 parsing without NAVIC
Support PQWP7 NMEA parsing for older
GNSS engine without NAVIC support.

CRs-Fixed: 2516292
Change-Id: I62bd4467f15b8c5fc77e7c979eefb146276ff2a0
2019-09-09 22:06:54 -07:00
Harikrishnan Hariharan
f4dc944333 Make use of USE_GLIB flags for LE related functions
We were making use of USE_QCMAP which was not defined in
configure files.

Change-Id: I12f823a79b0036502b832a3fb40a93828bde6f59
CRs-Fixed: 2521803
2019-09-07 06:18:44 -07:00
qctecmdr
095e7d6e96 Merge "Add GNSS Deployment Support." 2019-09-05 08:58:19 -07:00
Santoshkumar Zalake
42e8ab0190 Add GNSS Deployment Support.
The GNSS Deployment is used to configure
GNSS Hardware using gps.conf file

CRs-Fixed: 2480150

Change-Id: Ia09d3165de0c2f80f23bef8c0431095b25d16ea2
2019-08-30 02:54:05 -07:00
Wei Chen
1a1232c594 GPS hw: report ppe/spe report with combined report
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-23 12:56:14 +08:00
Kevin Tang
32e36b84e1 delete of shared LocApiBase::mMsgTask may cause issues
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-08-16 11:20:03 -07:00
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