Commit graph

1084 commits

Author SHA1 Message Date
Yingjie Wang
6a283495b5 Disable LPPe feature on SDM660 CRM build
Set the LPPE_UP_TECHNOLOGY and LPPE_CP_TECHNOLOGY as 0 in gps.conf
to disable LPPe feature as default.

Change-Id: I656cbf1ee9456189fd0ddbcbf7b70cc74a75656e
CRs-fixed: 2015517
2017-06-07 21:04:27 -07:00
Katz Yamada
58d74dc1bd Add set default report API in systemstatus
Add an API to set default report data cached in
systemstatus. Call this API when delete all
aiding data is requested, so that bugreport
has all default values.

Bug: 62068956

Change-Id: I76d661c6a89a1644aef2a8f47253ce9cc0d727fb
CRs-Fixed: 2054705
2017-06-06 13:54:28 -07:00
Baili Feng
1f3ac891ae Make updateConfig functional before gnss is enabled
locAPIGnssUpdateConfig and locAPIEnable/Disable
will use different request queues

Change-Id: I8c5456ebc4c221ff0e536ad488259b21e5607e03
CRs-Fixed: 2054316
2017-06-06 09:45:37 +08:00
Saurabh Srivastava
876db40641 Updating AgpsSubscriber constructor
Updating AgpsSubscriber constructor to ensure clone
operation copies the entire state

Change-Id: Id016994efd8cb1140af8d5ee05eace95922f246b
CRs-Fixed: 2039863
2017-05-29 18:45:54 +05:30
Linux Build Service Account
25008877c3 Merge "Provide correct SV used_in_fix flag for QZSS" 2017-05-28 00:59:59 -07:00
Linux Build Service Account
e4dc713b1c Merge "Add support for generating NMEA sentences for BDS." 2017-05-28 00:59:59 -07:00
Linux Build Service Account
fa2eb4c2d6 Merge "Add support for generating NMEA sentences for QZSS." 2017-05-28 00:59:58 -07:00
Linux Build Service Account
740a459dac Merge "HIDL Extension" 2017-05-27 17:09:38 -07:00
Harikrishnan Hariharan
0d01cc0b5b Add support for generating NMEA sentences for BDS.
Change-Id: I77ccaac3da4d79ed6d43d1a4e59e4d438ba3d2f3
CRs-Fixed: 2047785
2017-05-28 00:51:38 +05:30
Harikrishnan Hariharan
0029fafd92 Add support for generating NMEA sentences for QZSS.
Change-Id: Ib1350fceeabcb2dc67812641b1f967b1b240cefd
CRs-Fixed: 2036931
2017-05-28 00:44:40 +05:30
Harikrishnan Hariharan
5969d0b2da Provide correct SV used_in_fix flag for QZSS
Mark QZSS SV used_in_fix based on the most recent position report

Change-Id: I166087fb62de45e1013ab29c01df3abfba7af12b
CRs-Fixed: 2043300
2017-05-27 23:41:18 +05:30
Linux Build Service Account
2a49c5a0ef Merge "Move location files from /data/ to /data/vendor/" 2017-05-27 01:36:12 -07:00
Linux Build Service Account
1bcc48d46e Merge "Remove libandroid_runtime for treble compliance" 2017-05-26 11:25:21 -07:00
Linux Build Service Account
f44fdd0d44 Merge "Fix intermittant crashes in location" 2017-05-26 11:25:06 -07:00
Baili Feng
d640d06213 HIDL Extension
Prevent building of android.hardware.gnss@1.0-service-qti
if non-PDK build.

CRs-fixed: 2040636
Change-Id: Ic6ee787d7fca93f649cd1f2bbd7be46cdefc809f
2017-05-25 14:08:03 -07:00
Dante Russo
566238aab1 Remove libandroid_runtime for treble compliance
CRs-fixed: 2048138
Change-Id: Idc9a3f045c6c44dea6c527ec8c6bf23e9d0a9518
2017-05-25 05:10:38 -07:00
Baili Feng
b29778eac0 Fix intermittant crashes in location
Deleting memory without setting it to null
can cause the memory to still be non-null
and be interpreted as valid.
Also check if the entry is in the map using
find instead of assuming it is in the map.

Bug: 62033719 62033834 62033690 62033563 62032790
CRs-fixed: 2050837
Change-Id: I2534de2d6157be86ac95cfe6615e4c0019ee48fd
2017-05-24 11:03:16 -07:00
Linux Build Service Account
325f51028e Merge "Remove SV used_in_fix flag setting on SV report." 2017-05-23 21:09:31 -07:00
Harikrishnan Hariharan
d9a166a70f Remove SV used_in_fix flag setting on SV report.
Remove SV used_in_fix flag setting based on EPH / ALM / SNR info
during SV report. The SVs should not be used_in_fix when there is
no fix.

Change-Id: Iaed8ade8073446023348017ba133efcd7445a331
CRs-Fixed: 2043724
2017-05-19 15:44:13 +05:30
Katz Yamada
e3d70314b0 Fix for incorrect SVids and timestamps in bugreport
Fix SVids and timestamps shown in adb bugreport to
align with Android standard.

Change-Id: Ib166b09f1d63f7a93d53798dbb188fec0d77e88a
CRs-Fixed: 2042937
2017-05-18 11:00:17 -07:00
Dante Russo
ed7e095d16 Move location files from /data/ to /data/vendor/
Runtime files and sockets used by location modules
are moved to vendor partiion from /data/misc/location
to /data/vendor/location.

Change-Id: I7b092059b3061def2a1f2d0cd9bffb7ed7aededd
CRs-fixed: 2046657
2017-05-18 10:32:12 -07:00
Yingjie Wang
d9f26fc543 Decouple position inject request from assist data
Add LOC_API_ADAPTER_BIT_POSITION_INJECTION_REQUEST mask bit to
decouple from LOC_API_ADAPTER_BIT_ASSISTANCE_DATA_REQUEST.

Change-Id: I4c2f8439dca9ea3b4d56a3cd00da88e4488717bf
CRs-fixed: 2044870
2017-05-17 19:51:48 -07:00
Linux Build Service Account
9546df2965 Merge "GnssBatching::init handle multiple invoking" 2017-05-17 04:02:00 -07:00
Linux Build Service Account
8548469c58 Merge "Allow SUPL_MODE of Standalone only" 2017-05-16 04:22:33 -07:00
Linux Build Service Account
82687ac882 Merge "Check the return value of HIDL Callbacks" 2017-05-16 04:22:33 -07:00
Linux Build Service Account
3768a6f946 Merge "Stop Gnss measurements session when closed" 2017-05-16 04:22:32 -07:00
Dante Russo
c804609595 Allow SUPL_MODE of Standalone only
SUPL_MODE being set to standlaone only is
valid and needs to be accepted by HAL.

Bug: 37947277
Change-Id: Ib9d0073c304305f0fafaea1940ce292450eaa9f7
CRs-fixed: 2044643
2017-05-12 16:11:49 -07:00
Dante Russo
4c265534bb Check the return value of HIDL Callbacks
GNSS HAL needs to check the return value of HIDL
Callbacks to avoid crashing when things go wrong.

Bug: 37987256
Change-Id: I4a5e33f7f4d85c887bc91fa71336a78151c3ce3b
CRs-fixed: 2044206
2017-05-12 16:11:00 -07:00
Dante Russo
f354bdfa62 Stop Gnss measurements session when closed
Gnss measurements session that is started to
collect Gnss measurements needs to be stoped
when closed.
Also remove the ability for an MSA tracking
session to be started when Gnss measurments is
started because MSA tracking is power hungry
and it wouldn't provide measurements either

Change-Id: I9b20f73bd412fc68d96dad2dc38399c144922ea0
CRs-fixed: 2039306
2017-05-12 16:04:43 -07:00
Linux Build Service Account
4fc254c9a9 Merge "Maintain a uniq RequestQueue for Geofencing" 2017-05-11 18:35:19 -07:00
Baili Feng
1e0be88b94 Maintain a uniq RequestQueue for Geofencing
Maintain a RequestQueue for Geofencing per LocationAPIClientBase instance.
The RequestQueue must be released when LocationAPIClientBase is destroyed.

Change-Id: Icceccdaae67883f8848dd2a95389b938058c5e5d
CRs-fixed: 2044463
2017-05-10 13:21:26 +08:00
Linux Build Service Account
fe87151232 Merge "Fix for buffer overrun crash at copying nmea string" 2017-05-09 17:11:26 -07:00
Katz Yamada
604d874143 Fix for buffer overrun crash at copying nmea string
Add zero clearing of allocated nmea buffer to ensure
the nmea string is null terminated.

Change-Id: Ie36010a7d3eca16dabb3067ae891a94e4b63b10c
CRs-Fixed: 2041933
2017-05-08 16:29:05 -07:00
Baili Feng
997b6b55ab GnssBatching::init handle multiple invoking
Release mApi if mApi is not null and return true.

Change-Id: I996bd94fca83f93fa47a9dcf282ebf4610071288
CRs-fixed: 2043876
2017-05-08 16:09:06 +08:00
Naresh Munagala
d09bd9face add pos tech mask and sv source info
Change-Id: I069a4564da7b96e29e5305b126cd88db0c426bc4
CRs-Fixed: 2028470
2017-05-05 04:17:59 -07:00
Linux Build Service Account
10ab9ccaaf Merge "remove inet group" 2017-05-04 03:38:02 -07:00
Linux Build Service Account
2b37817618 Merge "Re-enable delete_aiding_data for user build" 2017-05-04 03:36:07 -07:00
Linux Build Service Account
90072944fe Merge "Add vertical uncertainity field" 2017-05-03 03:46:58 -07:00
Linux Build Service Account
7a7838b718 Merge "Enable LOGV for gps directory" 2017-05-02 14:54:09 -07:00
Ruifeng Xu
477ff7eae5 remove inet group
inet group shouldn't be with gps hal daemon.
this change removed it.

Change-Id: Ibc8faa20d7778c30ae0c640fdcceee28bae123e2
CRs-fixed: 2040891
2017-05-01 10:32:13 -07:00
Linux Build Service Account
f4f9b5c5a6 Merge "Prevent print of uninitialized string" 2017-04-29 14:48:03 -07:00
Linux Build Service Account
4b35976787 Merge "Registering event mask on AGPS Init" 2017-04-29 14:48:02 -07:00
Linux Build Service Account
9ffa1ace5d Merge "Add handling of GNSS NI TYPE EMERGENCY" 2017-04-29 14:48:02 -07:00
Linux Build Service Account
e5f59f0fb2 Merge "SystemStatus - Add ephemeris detail info in Gnss Debug interface" 2017-04-28 21:34:55 -07:00
Linux Build Service Account
9f59a9e76a Merge "Add group radio to gnss hal process" 2017-04-28 21:34:38 -07:00
Kevin Tang
222094ce77 Prevent print of uninitialized string
If uninitialized string gets printed, this can
cause a crash.

Bug: 37218688
CRs-fixed: 2032144
Change-Id: I7c34b6f84f414410c52fc59f73053892060b0874
2017-04-28 16:31:46 -07:00
Kevin Tang
514f373338 Registering event mask on AGPS Init
Registering Server Connection event mask with
Modem when AGPS Init is recevied from framework.

Change-Id: I70ee1bef79d23ada44f13d71378a4fb64d69ce84
CRs-Fixed: 2033863
2017-04-28 16:26:43 -07:00
Kevin Tang
08efa3c6c2 Add handling of GNSS NI TYPE EMERGENCY
Network Initiated type emergency was not being
handled because it was missing from gnss hal api.
Hardcoded value until it is added in gnss hal api.

Change-Id: If0e538c3083e351bf642765eae88404ce6e0ae1b
CRs-fixed: 2037093
2017-04-28 16:21:53 -07:00
Yingjie Wang
86ad4f8f44 Enable LOGV for gps directory
Define LOG_NDEBUG 0 to enable VERBOSE log messages in
hardware/qcom/gps

Change-Id: I954cad757f13d6bac99b7a06625daa0ace84a17e
CRs-fixed: 2025673
2017-04-28 18:24:07 +08:00
Yingjie Wang
c553418ce7 Re-enable delete_aiding_data for user build
Allow delete aiding data request from HAL API for
user build.

Change-Id: Icfafe07b4217e482e4ca402b9a1da5ca70e1ff01
CRs-fixed: 2034718
2017-04-28 17:25:06 +08:00