Commit graph

280 commits

Author SHA1 Message Date
Mike Cailean
73f69ef469 Enable Android sanitizers
Change-Id: I6724d0e171e42f779e8eed6aea126f3f69496f6d
CRs-fixed: 2534375
2019-10-07 15:32:50 -07:00
Mike Cailean
fa7f9e3f08 Prevent left shift by a large number
CRs-fixed: 2534443

Change-Id: I3c52f6f62620c69bc79bc9bc5343e5d1ec08656d
2019-10-07 10:34:05 -07:00
qctecmdr
f14b5413a7 Merge "LocIpc sender recv and recver send" 2019-09-17 15:58:26 -07:00
Bhavna Sharma
bf3d36c771 Selectively send deleteAll command to engines
Modify GNSS interface API's to accept positioning
engine mask to perform deleteAll command on

CRs-Fixed: 2477966

Change-Id: I54a32d76de98ba6bfa88d7fd1925c44b3079af08
2019-09-10 15:10:19 -07:00
Kevin Tang
c891e738f5 LocIpc sender recv and recver send
Added two APIs, which allow ILocIpcListener to provide
a sender for sending data back to LocIpcSender; and to
allow a LocIpcSender to get a recver from the last send
target so that it can receive data from it.

Change-Id: I94e2204a2588d375805d0674d1e877bbe414c99f
CRs-Fixed: 2524039
2019-09-09 18:03:22 -07:00
qctecmdr
e60e51f520 Merge "GPS hw: report ppe/spe report with combined report" 2019-08-30 04:06:32 -07:00
qctecmdr
93db35b825 Merge "AgpsManager supports two clients" 2019-08-28 20:41:30 -07:00
Yingjie Wang
d3e6df06e2 Remove LPPe UP/CP config in gps.conf
LPPE_CP_TECHNOLOGY and LPPE_UP_TECHNOLOGY can be
configured per SIM so they should not be overriden
by gps.conf by default. Leave commented out for
testing purpose;
Add check before LPPe injection when engine up.

Change-Id: I1b9b33009ec45d0a14c2e50e29d0a9df636a6319
CRs-fixed: 2505512
2019-08-22 23:21:24 -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
haohuang
39e34de194 AgpsManager supports two clients
AgpsManager supports two clients, QCOM AGPS
Stack is to handle ATL type WWAN, AFW AGPS
stack is used to handle ATL type SUPL and
SUPL emergency.

Change-Id: Id43c4919a1ae67d739e055c7fb5ba3abacc70b34
CRs-Fixed: 2509244
2019-08-20 21:38:51 +08:00
Mike Cailean
818dacd234 GPS_LOCK has the wrong value after killing GNSS process
CRs-fixed: 2500864

Change-Id: I5b6cd779ef5c378eedfb54b74b29dbf3191784a1
2019-08-02 11:22:30 -07:00
Mike Cailean
8a6244be7c Allow NFW enable/disable as in 'P'
Make changes in HAL coupled with a few recommended
changes in JAVA/JNI layer to allow 'P' behavior for
setting NFW GPS LOCK

Change-Id: I6580eaeffefe0c10bc226660439701057e09e4a4
CRs-fixed: 2488332
2019-07-29 12:53:32 -07:00
Dante Russo
fc6f5be4f8 Fix potential NMEA event registration issue
The NMEA event may not be registered because
of a race condition.

Change-Id: Icc04039f0b3a3bc34101b667778881323edf9131
CRs-fixed: 2493919
2019-07-24 11:35:00 -07:00
qctecmdr
3e3390bbd5 Merge "Drop SUPL URL dup check in set and update command" 2019-07-18 09:49:38 -07:00
Yingjie Wang
a66440949c Drop SUPL URL dup check in set and update command
Get rid of Supl url duplication check both in setConfig
and updateConfig commands. Also clean gnssUpdateConfig()
params

Change-Id: I432995a44c08192955bd50630649120933006ff9
CRs-fixed: 2487784
2019-07-16 08:18:17 +08: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
18eb6db486 Remove params duplicate check for DSDS issue
Filtering duplicated updates causes issues to parameters
that have multiple copies in the modem. Remove the check.

Change-Id: I3e62bdee0f5d2a4dd005e3ab5a31f14109213d95
CRs-fixed: 2481714
2019-07-04 05:57:01 -07:00
qctecmdr
60403cd1da Merge "Fix SV in use mask isn't correct for multiband SVs" 2019-06-26 21:11:11 -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
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
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
haohuang
aadad65840 Fix SV in use mask isn't correct for multiband SVs
Fix the issue that SV in use mask isn't set correct
in reportSv function in GnssAdapter.cpp.

Change-Id: Ie90fc4b938875817b105745cf531ee8dc31e74bc
CRs-Fixed: 2473868
2019-06-18 18:22:50 +08: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
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
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
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
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
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
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
7e44d36979 Merge "Process CP_MTLR in emergency in different conditions" 2019-05-09 05:22:10 -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
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
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
9b6103421b Merge "feat: Add timeuncNs in PQWM1 message" 2019-05-02 14:14:59 -07:00