Commit graph

1605 commits

Author SHA1 Message Date
qctecmdr
59496905e8 Merge "fix nmea GSV/GNS/GSA issues" 2019-06-23 04:06:56 -07:00
qctecmdr
f6d6e1bf49 Merge "NV is not set to blank when SUPL_HOST is set to NONE" 2019-06-22 20:10:25 -07:00
qctecmdr
c6c14839e4 Merge "Add B2A-Q support in NMEA messages" 2019-06-21 20:06:40 -07:00
Wei Chen
333e69585b Loc Ipc: add routine to notify sender that receiver has restarted
When qrtr socket receiver has restarted, need a way to inform
sender so sender can restart the service discovery process

Change-Id: Id665da649e0962691277124b42f1ee9cc6160fa8
CRs-fixed: 2445555
2019-06-20 10:10:08 -07:00
qctecmdr
98896798de Merge "GnssAdapter: add support for ppe fix type and calibration info" 2019-06-19 22:31:20 -07:00
qctecmdr
a261aa0493 Merge "Gnss adapter: do not send out empty sv measurement to Android" 2019-06-19 13:00:04 -07:00
qctecmdr
a029b65f78 Merge "Redesign Inet sender and receiver" 2019-06-19 11:55:14 -07:00
Mike Cailean
acf2aeaec8 NV is not set to blank when SUPL_HOST is set to NONE
Change-Id: Ib53e30dde614a9bee348a41083e177a5999dcfc1
CRs-fixed: 2473365
2019-06-19 10:43:16 -07:00
Wei Chen
49f7e15a81 GnssAdapter: add support for ppe fix type and calibration info
(1) Add support to report out calibration confidence in position
    report
(2) Update gps quality of GGA, mode indicator for GMC and VTG
    NMEA sentences

Change-Id: Ia1aa5283deffed6638172b90a41b481c2d199229
CRs-fixed: 2438838
2019-06-19 15:03:39 +05:30
Mike Cailean
90a01875da Add B2A-Q support in NMEA messages
Change-Id: Ia58935df454e7bfffa91416159e5c9ba4fe1ac75
CRs-fixed: 2474222
2019-06-18 16:42:58 -07:00
qctecmdr
16c0367c5b Merge "GnssLocationInfoNotification: move basic location info to top" 2019-06-17 20:10:13 -07:00
Hoss Zhou
c3d1f8fb94 fix nmea GSV/GNS/GSA issues
1. remove blank GSV sentences
2. modify GNS mode indicator field
3. modify GSA mode field, remove blank sentence

Change-Id: Ibe196328938e2674f0100224209cef0b229328e1
CRs-Fixed: 2460129
2019-06-18 10:54:28 +08:00
Nilesh Gharde
ff98fecec4 AP Default Setting CRM Builds SM8250 and Beyond
loc_service_mask should not be populated with any
SAP(Basic or Premium) value if the SAP value is 
MODEM_DEFAULT.

Change-Id: I665bb90e4a814dc31bed566cc0b2ecffcfae52ac
CRs-Fixed: 2457874
2019-06-13 22:38:59 -07:00
Bhavna Sharma
61fd929fb6 Redesign Inet sender and receiver
Redesign the inet sender and receiver to
be able to accomodate udp and tcp types into
one base class.

CRs-Fixed: 2429102

Change-Id: Ie138839a5c8842813c99053816e06e4ed7f6b314
2019-06-12 14:06:08 -07:00
Wei Chen
061857b079 GnssLocationInfoNotification: move basic location info to top
Move basic location info to top so if a new field is added to
GnssLocationInfoNotification, it will not impact the basic
location info.

Change-Id: I362ee0f6f09c10e3df64ed6993b73a256690c38d
CRs-fixed: 2468348
2019-06-12 13:51:52 -07:00
Wei Chen
de13fc3868 Gnss adapter: do not send out empty sv measurement to Android
Do not send out empty sv measurement to Android

Change-Id: I4ab807d647be8b44f3f48a3ad5e5ca7f33ac2485
CRs-fixed: 2439716
2019-06-12 12:11:05 -07:00
qctecmdr
aadcd5f7dc Merge "SV used in fix satellites are not updated for B2A-Q" 2019-06-12 11:44:32 -07:00
qctecmdr
3bbb89aee1 Merge "Fix to use explicit sized structures" 2019-06-11 10:55:39 -07:00
qctecmdr
dc7b20a9bd Merge "GPS getting locked after killing LocHIDL" 2019-06-10 20:52:49 -07:00
Mike Cailean
64514a5734 SV used in fix satellites are not updated for B2A-Q
Change-Id: If9d6f4ff694572f22b95b3ccb6015ebcb6310ffa
CRs-fixed: 2468528
2019-06-10 15:26:01 -07:00
qctecmdr
d17a81974b Merge "modify DTM talker id" 2019-06-07 15:35:28 -07:00
Kevin Tang
0677be4e46 Removing LocIpc::createLocIpcQsock* APIs
Qrtr and Qsock bot have createLocIpc*Sender and Recver
APIs in LocIpc. But Qrtr is really next gen of Qsock.
The two will not co-exist. Their existence depends on
kernel versions, i.e. 4.9 and earlier is Qsock; while
4.14 and later is Qrtr. Having 2 sets of APIs doesn't
make sense, as client would have to know what are the
right ones to use, which there is really only one set
of backing implementations.

Change-Id: Ia473f282bb271ae213d7dc5020b0b8c7b0a8cb8f
CRs-Fixed: 2466857
2019-06-06 16:21:18 -07:00
Bhavna Sharma
980dbf59b6 Fix to use explicit sized structures
Cross processor communication needs explicit sized structures.
Avoid using platform defined values like size_t which may
vary from 32-bit to 64-bit.
Also use explicitly defined timespec32_t structure that will
only use uint32_t fields.

CRs-Fixed: 2428163

Change-Id: Ida72f53ac672d9c9b86879bb9861cecefe6f8c6d
2019-06-06 13:23:56 -07:00
qctecmdr
9fc8d7444d Merge "Update SystemStatus with battery info in HealthHAL" 2019-06-05 22:06:13 -07:00
qctecmdr
22e008e8d1 Merge "Report Locations to AFW only when active tracking" 2019-06-05 15:37:26 -07:00
Mike Cailean
071fd823dd GPS getting locked after killing LocHIDL
Change-Id: Ib6a9ed37f9198b9024042f8ba7ac9e9bf5f05190
CRs-fixed: 2463756
2019-06-05 11:27:01 -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
Dante Russo
4c9b600ed7 Report Locations to AFW only when active tracking
We want to avoid reporting locations to AFW while
measurements is active but tracking is not active.

Change-Id: Icbb581199e6f5eba3cfe81cb6ab39337bb7ea51a
CRs-fixed: 2441384
2019-06-04 14:48:09 -07:00
Dante Russo
04db4be280 Downgrade locApiStopTracking print error to debug
On cleanup, the locApiStopTracking is called regardless
if a session is active or not, where this error would
be printed. This is an expected case, so it should not
be an error print.

Change-Id: Ieb10d159ad61a212821ef897d50d635354557cca
CRs-fixed: 2461760
2019-06-03 10:36:36 -07:00
qctecmdr
052afd6e47 Merge "KW issues on LA.UM.8.12" 2019-06-01 20:09:58 -07:00
qctecmdr
5a5989edd8 Merge "Add charger indication receiver in Gnss Hidl" 2019-05-31 20:11:10 -07:00
Saurabh Srivastava
c7cbd60fb5 Removing benign error message
Removing error message from GNSS update
SV Type config method for onDeviceUp
scenario.

Change-Id: I7a93f9ea2fd5f8c1182c9ce10d298fc5971bc1e3
CRs-Fixed: 2461765
2019-05-31 01:09:17 +05:30
Nilesh Gharde
41a8510ce1 KW issues on LA.UM.8.12
Addressed KW issue in MeasurementAPIClient.cpp

Change-Id: Id35187c9e8eb29a81a86d12423e965fef780d668
CRs-Fixed: 2460424
2019-05-29 10:46:26 +05:30
Hoss Zhou
1e4aefd8b6 modify DTM talker id
Change-Id: I1844cc64767c0e6b324331f2016091ed1053e360
CRs-Fixed: 2455848
2019-05-27 16:07:40 +08:00
Yingjie Wang
89583a78f0 Add charger indication receiver in Gnss Hidl
Register HEALTH Hal client in all Gnss Hidl impl
to acquire charger indication.

Change-Id: I3fcc00dd14a95e2375ab27a8c84c260300f9e90d
CRs-fixed: 2411445
2019-05-27 11:17:44 +08:00
qctecmdr
51426e477b Merge "Addressing format related to formating" 2019-05-21 22:16:01 -07:00
Kevin Tang
7490804ed9 fixed a potential race condition in managing gps lock
gnssConfigRequested in setConfigCommand handling currently gets
data into gnssConfigRequested in LocApi thread. This introduces
race condition that adapter.getAfwControlId() could be called
from a different thread than where adapter.setAfwControlId() is
called.

CRs-fixed: 2453439

Change-Id: I75ce482a4a87436dff04972ffd82b48db3af62c1
2019-05-21 09:08:59 -07:00
qctecmdr
3b8395fe7b Merge "Send updated GPS lock value to xtra-daemon" 2019-05-19 11:35:53 -07: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
Mike Cailean
02e5413b20 Send updated GPS lock value to xtra-daemon
Send updated (masked) GPS lock value to
xtra-daemon

CRs-Fixed: 2454370
Change-Id: I17439a2aa10d776cff882a4fb09224489b86c796
2019-05-16 15:35:00 -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
c08365ad60 Merge "LocIpc redesign" 2019-05-09 07:45:59 -07:00
Bhavna Sharma
2ba3f04c57 LocIpc redesign
LocIpc now doesn't have any impelementation of sockets,
but a framework that provides threading for any sockets
that can be wrapped into LocIpcSender and LocIpcRever
APIs.

Also updated XtraSystemStatusObserver to using the new
LocIpc and LocIpcLocalSender and LocIpcLocalRecver.

Change-Id: I506c77198f9ce1e7d4dfd5e596dc0ac21d928e34
CRs-Fixed: 2443124
2019-05-09 07:34:22 -07:00
qctecmdr
b527967057 Merge "Age Second field in GNSS debug data is incorrect" 2019-05-09 05:51:19 -07:00
qctecmdr
7e44d36979 Merge "Process CP_MTLR in emergency in different conditions" 2019-05-09 05:22:10 -07:00
qctecmdr
2cdb08453e Merge "VINTF Manifest fragment for android.hardware.gnss" 2019-05-09 03:53:24 -07:00
qctecmdr
f5634ec21a Merge "Gnss adapter: retrieve pdop, hdop and vdop from extended struct" 2019-05-09 02:42:42 -07:00