Commit graph

42 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
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
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
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
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
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
Dante Russo
974fedbeaf Remove support GNSS HIDL 1.1 for legacy devices
Legacy devices are failing VTS Test for GNSS HIDL
1.1 because they do not support some of the
features, like Black Listing and Power Modes,
that are enforced through VTS testing.
Removed declaration of 1.1 support in vendor
manifest fragment to avoid the VTS test for
GNSS HIDL 1.1 from running.

Change-Id: Ife66490351ca54a5feaa7a369b519c9794254a5c
CRs-fixed: 2484196
2019-07-03 16:17:06 -07:00
Dante Russo
32801f1c0c Do not clear callbacks during gnss hidl cleanup()
This allows HAL to request locations into AFW
even when Location is disabled in Settings.

Change-Id: I0c1d4fef55937f3094980dad29ff09d212f541fe
CRs-fixed: 2475037
2019-06-18 17:11:03 -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
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
qctecmdr
052afd6e47 Merge "KW issues on LA.UM.8.12" 2019-06-01 20:09:58 -07:00
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
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
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
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
2cdb08453e Merge "VINTF Manifest fragment for android.hardware.gnss" 2019-05-09 03:53:24 -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
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
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
Hoss Zhou
313284b9dd fix CFI issues
Change-Id: I5b94804c381f1d26196ddf6dee97adbee36dc128
CRs-Fixed: 2353650
2019-04-10 13:52:29 +08:00
Saurabh Srivastava
a6c61bde6a Temp compilation fix for LKG integration
CRs-Fixed: 2429432
Change-Id: I8141c5583cddbd0118b9e13ddf07534ee890372c
2019-04-04 16:31:53 +05:30
qctecmdr
449fdb73e2 Merge "Add HAL support for network handle" 2019-03-31 20:11:37 -07:00
qctecmdr
93c1afca1c Merge "Batching and Geofence moved to GNSS HAL" 2019-03-30 13:17:26 -07:00
qctecmdr
af57363c10 Merge "Move Legacy targets to GNSS HIDL 2.0" 2019-03-28 14:06:12 -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
a0488d7d56 Merge "Unified Vendor - Launch only android.hardware.gnss" 2019-03-21 10:19:25 -07:00
Dante Russo
4b9768f091 Move Legacy targets to GNSS HIDL 2.0
Legacy targets will support a subset of
GNSS HIDL 2.0 features, but will need to
stay on GNSS 1.0 Measurements

CRs-fixed: 2423825
Change-Id: I1fc5134dbf4b8fc6b1e76cced3acfeaf8bf8d581
2019-03-20 13:53:08 -07:00
Saurabh Srivastava
8bd22760a6 Unified Vendor - Launch only android.hardware.gnss
Launch android.hardware.gnss HIDL service for both
vendor enhanced and non-enhanced platforms

Change-Id: Ia9cb9ef52d42c788bcaa73bc1001ed8d90f7c755
CRs-Fixed: 2402833
2019-03-21 01:20:22 +05:30
Mike Cailean
3a0ae431d5 Add unlink for corresponding link in measurements
for GNSS HIDL 2.0

Change-Id: I7423ed1c515745f2f4a0ea4f5495e86eea4de0ee
CRs-fixed: 2417264
2019-03-18 09:47:44 -07:00
Saurabh Srivastava
ac8ce3c7d5 Dummy impl for injectBestLocation_2_0
Change-Id: I37a96ee52dea4bce92bb741bf0be79279ec86d67
2019-03-13 16:47:02 +05:30
Mike Cailean
4149abcc2d Measurement changes in GNSS HIDL2.0
CRs-fixed: 2385560

Change-Id: I5f4548e6df0cb8ac3f2762020dfdbb49a9022854
2019-02-21 21:34:40 -08:00
Mike Cailean
e78728024d SUPL over WiFi changes in GNSS HIDL2.0
Change-Id: I20a2071fd748dea16cd55aa120bc307ebc0645a9
CRs-fixed: 2342192
2019-02-21 13:38:28 -08:00
Yingjie Wang
51dca017c5 GNSS HAL 2.0 implementation
Implement AGnss, AGnssRil, GnssConfiguration,
GnssMeasurement and MeasurementCorrections of GNSS
HAL 2.0 to on par with Android P

Change-Id: Id430e60c2d9cc7333f4b331c7e5a1e9a45a0289a
CRs-Fixed: 2342198
2019-02-05 10:22:08 -08:00