Commit graph

1671 commits

Author SHA1 Message Date
Dante Russo
f80980210e Assure accurate elapsedRealTimeNanos calculations
If a context switch or interrupt happens between
getting current time and getting boot time, this
can throw off the calculation for the
elapsedRealTimeNanos timestamp. Avoid this by
retrying if there is a large enough delta
between getting current time and getting boot
time.

Change-Id: I47d7a99b480423a50eaf951a904f21928587eda6
CRs-fixed: 2541719
2019-10-09 13:39:17 -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
qctecmdr
948f22d23c Merge "Support PQWP7 parsing without NAVIC" 2019-09-13 21:18:05 -07:00
qctecmdr
77d3e61429 Merge "Selectively send deleteAll command to engines" 2019-09-13 10:28:59 -07:00
Santoshkumar Zalake
2cae87f908 Change word in comments
CRs-Fixed: 2527266

Change-Id: If368406f561836a82f548ad99171a730256cbfdf
2019-09-13 15:56:46 +05:30
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
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
Kevin Tang
1209591f94 change some of the comments that contain prohibited words
Change-Id: Iaa8009e245edbcbc5adbe2348de4a014271c0ef9
CRs-Fixed: 2504418
2019-09-06 09:18:35 -07:00
qctecmdr
1c669d75d6 Merge "Adding one level of context swith for Geofence_add" 2019-09-05 20:01:40 -07:00
qctecmdr
095e7d6e96 Merge "Add GNSS Deployment Support." 2019-09-05 08:58:19 -07:00
qctecmdr
715d9e7af4 Merge "gps: Add diag permissions for gnss service" 2019-09-05 00:06:06 -07:00
Nilesh Gharde
0df749e363 Adding one level of context swith for Geofence_add
Added one more context switch for geofence add
command. To even out total number of the context
switch as it is for remove/modify/pause command.
This will prevent out of order execution of
sent msg tasks.

Change-Id: Icf1f39ee3526e2e45cfe3e84945f71524941069b
CRs-Fixed: 2516790
2019-09-04 11:42:19 +05:30
qctecmdr
e60e51f520 Merge "GPS hw: report ppe/spe report with combined report" 2019-08-30 04:06:32 -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
Madhanraj Chelladurai
4e9fee0ebd gps: Add diag permissions for gnss service
Change-Id: I1e65ce2a2e681f48b476fb8b310015f572f306e1
CRs-Fixed: 2413585
2019-08-30 02:33:01 -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
qctecmdr
5ee0b62e8c Merge "delete of shared LocApiBase::mMsgTask may cause issues" 2019-08-19 11:21:18 -07:00
qctecmdr
f103622b36 Merge "Removing GPS_LOCK conf. from gps.conf" 2019-08-16 16:56:13 -07: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
Nilesh Gharde
f97d7aefe4 Removing GPS_LOCK conf. from gps.conf
To avoid confusion removing GPS_LOCK config.
OEM can still configure gps_lock in carrier
config.xml for Legacy devices that have
the Android P type behavior

CR's-Fixed: 2503505
Change-Id: I3e75c81f019dfda9eb5572acd9f6284503ff173e
2019-08-16 11:12:03 +05:30
Harikrishnan Hariharan
bbc8da3a74 Generate Navic SV NMEA sentence - GIGSV
NMEA Sentence is generated when NMEA_PROVIDER is set to 0.

Change-Id: I12db25a4f32d1b8fb325048c43b23aa7d0b5f671
CRs-Fixed: 2509063
2019-08-14 02:27:12 -07:00
Nilesh Gharde
e549c9be3b Set NMEA masks for multiband related and NAVIC(GIGSV)
Change-Id: Idbe1af49b5c10e6dbb2c904cddc82601db1eba49
CRs-Fixed: 2506574
2019-08-09 14:48:18 +05:30
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
qctecmdr
f6586f43a3 Merge "Initial target definition for bengal." 2019-07-30 09:58:36 -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
P.V. Phani Kumar
867091ebcd Initial target definition for bengal.
Change-Id: Idb3f34bc75d9ec98c5d2468136c5ca8b7d31bc6c
2019-07-27 03:40:36 -07:00
qctecmdr
8a95c11408 Merge "Adding NAVIC to constellation string array" 2019-07-26 07:21:22 -07:00
qctecmdr
3eb3079f05 Merge "Fix potential NMEA event registration issue" 2019-07-25 17:02:01 -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
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
Saurabh Srivastava
3b4814e386 Use getVendorEnhancedInfo API
Change of API for vendor enhanced
framework detection

CRs-Fixed: 2496231
Change-Id: Iaf173615f8fe847a8b5d5ed71602d933febb31d1
2019-07-24 09:37:03 -07:00
qctecmdr
eb3b1419e3 Merge "Add support for MB SV Poly fields" 2019-07-22 21:47:06 -07:00
qctecmdr
a803a67ad7 Merge "modify QZSS SVID according to NMEA spec 4.11" 2019-07-22 15:36:14 -07:00
qctecmdr
3e3390bbd5 Merge "Drop SUPL URL dup check in set and update command" 2019-07-18 09:49:38 -07:00
Hoss Zhou
f48758a922 modify QZSS SVID according to NMEA spec 4.11
Change-Id: I7c82c210174076f9620b52cfb749a4c73824ffdf
CRs-Fixed: 2473699
2019-07-17 12:30:24 +08:00
Bhavna Sharma
903040f8c2 Add support for MB SV Poly fields
CRs-Fixed: 2478704

Change-Id: I95bcfa28989d65e3c75a761b51d778606fca61c4
2019-07-16 11:08:22 -07:00
qctecmdr
dadd76fd33 Merge "Enable GTP_WAA feature" 2019-07-16 02:31:30 -07:00
qctecmdr
e001a71efd Merge "Enable TARGET_USES_QMAA flag and remove dummy hal" 2019-07-15 21:51:11 -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
Yingjie Wang
2b5e2c4ab5 Enable TARGET_USES_QMAA flag and remove dummy hal
Add check for TARGET_USES_QMAA_OVERRIDE_GPS and
TARGET_USES_QMAA flag to enable minimal QMAA
Gnss HAL;
Remove Dummy Hal as TARGET_USES_QMAA flag could
turn off gps hal

Change-Id: I7ee23f869bd452f7b40ae8b3c339c0ef60fcdc84
CRs-fixed: 2379305
2019-07-12 10:24:49 +08:00
qctecmdr
8cb4f9cf02 Merge "Revert "Remove support GNSS HIDL 1.1 for legacy devices"" 2019-07-11 09:45:12 -07:00
Dante Russo
a88f092086 Revert "Remove support GNSS HIDL 1.1 for legacy devices"
This reverts commit 974fedbe
Legacy devices must support GNSS HIDL 1.1 afterall
to avoid failure of VtsTrebleFrameworkVintfTest
and VTS test for GNSS HIDL 1.1 are being changed
to support legacy devices that do not support
features Blacklisting and Power Modes.

Change-Id: I2ad0776295979d5cddcfa0f76692253d7c084fd2
CRs-fixed: 2487572
2019-07-10 13:05:41 -07:00
qctecmdr
a4c0207725 Merge "Add XSSO support for multiple network handles" 2019-07-09 10:25:05 -07:00
qctecmdr
aa472f84f7 Merge "Remove support GNSS HIDL 1.1 for legacy devices" 2019-07-08 20:11:09 -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