Commit graph

1687 commits

Author SHA1 Message Date
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
qctecmdr
9391fe52a4 Merge "GPS: add numSVUsedInFix in location api" 2019-05-09 01:39:27 -07:00
Dante Russo
8f9d530d90 VINTF Manifest fragment for android.hardware.gnss
To replace entry in device specific vendor manifest

Change-Id: I330f4ef2658074218b5d2c105decaf6cfd959d3f
CRs-fixed: 2444785
2019-05-06 17:22:39 -07:00
Wei Chen
2dab397e35 Gnss adapter: retrieve pdop, hdop and vdop from extended struct
For none-SPE engine, pdop, hdop and vdop are set in the extDop
struct. Update code to retrieve it from there.

Change-Id: I698e960cd90f3d72210cfd0a885080f1546c0c7d
Crs-fixed: 2439750
2019-05-06 10:25:44 -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
Vamana Thuniki
ce55313724 Enablement of location modules for lito
Change-Id: I24277533400f40d3a57b5176d53958dcd6b31a96
CRs-Fixed: 2443595
2019-05-06 12:39:02 +05:30
Wei Chen
e8c1730e91 GPS exteneded: add dir name and file prefix for ext ap client
Add directory to be reserved for hal daemon to keep track of
location client sitting on external application processor

Change-Id: I192fb011c786bab1752f0e604b86041a9f4cdc33
CRs-fixed: 2436612
2019-05-05 21:12:31 -07:00
qctecmdr
82c8af81ee Merge "SV "in-use" flags are not being set correctly for multiband enabled devices" 2019-05-04 19:20:02 -07:00
qctecmdr
9ddd6b1349 Merge "When sending GPS LOCK status to XTRA mask NFW bit" 2019-05-03 10:17:24 -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
f4553e1de0 Merge "Initial target definition for atoll" 2019-05-03 04:10:16 -07:00
qctecmdr
99db93452d Merge "Default value of SUPL_ES to enable" 2019-05-02 16:30:29 -07:00
qctecmdr
9b6103421b Merge "feat: Add timeuncNs in PQWM1 message" 2019-05-02 14:14:59 -07:00
qctecmdr
697ee570fe Merge "GNSS HIDL 2.0 updates" 2019-05-02 13:45:05 -07:00
Mike Cailean
76e761da5a SV "in-use" flags are not being set correctly for
multiband enabled devices

Change-Id: I875b535063c6aa6ecb713c7b6abff123d8402d62
CRs-fixed: 2443087
2019-05-01 17:03:17 -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
e7c30fa882 GNSS HIDL 2.0 updates
Implement new GNSS HIDL 2.0 functions and callbacks
gnssRequestLocationCb_2_0, getExtensionGnssBatching_2_0,
getExtensionGnssDebug_2_0, getDebugData_2_0,
injectBestLocation_2_0, gnssSetCapabilitiesCb_2_0,
gnssLocationCb_2_0, gnssSvStatusCb_2_0, and
gnssMeasurementCb_2_0.
Fix VTS test failures from deprecated functions
setGpsLock, setSuplEs, V1:0::getExtensionAGnss, and
V1.0::getExtensionGnssNi

CRs-fixed: 2433957
Change-Id: Id10cb41c32d6c50144b0501eb2d2eaf9c9a9aaec
2019-05-01 12:40:40 -07:00
qctecmdr
4d6bb2da93 Merge "Send SUPL notification to the framework for E911 sessions only (older modems)" 2019-05-01 11:37:59 -07:00