Commit graph

1139 commits

Author SHA1 Message Date
Ruifeng Xu
b0982b4476 add HAL socket
this patch contains the following changes:
1. added header and implemenation files of socket util apis
in libgps.utils; 2. updated XtraSystemStatusObserver to use
the new apis; 3. added HAL socket and new thread to listen to it.

Change-Id: If1f6b4b4d6ea2d03640f68e96f0286300404f42b
CRs-fixed: 2108635
2017-10-05 11:33:37 -07:00
Naresh Munagala
a5c7e2c53d extended gdop parameters in interface files
updated interface files with extended gdop parameters.

Change-Id: Ie31311125e66d26dab4f564be7120fae374b9d2c
CRs-Fixed: 2062856
2017-10-04 22:57:34 -07:00
Bhavna Sharma
39526894cf AGPS Init must complete in one message call
If AGPS initialization is split across multiple
messages on the msgTask, it causes other other
commands to seep in before the initialization can complete.
To avoid this the initialization must be completed in one message.
Also includes some cleanup on AGPS initializations.

CRs-Fixed: 2111399

Change-Id: Id61ceeb12d5781764b42ff9d1868884537ca8d90
2017-09-28 10:11:08 -07:00
Linux Build Service Account
edbc71f1dd Merge "Add support more bp amplitude in systemstatus" 2017-09-27 08:16:37 -07:00
Saurabh Srivastava
7b37deedff KW Warning fixes
Adding fixes for null reference errors.

Change-Id: Ie62bd93860baef2670c164ae7a5d148440308213
CRs-Fixed: 2113171
2017-09-26 03:29:27 -07:00
Linux Build Service Account
6403989a5b Merge "locAPIRemoveGeofences now notify the result inmediately" 2017-09-23 04:40:07 -07:00
Linux Build Service Account
1f8b3587f2 Merge "Set SUPL_HOST to modem on GnssAdapter init." 2017-09-22 18:37:26 -07:00
Kevin Tang
c7642dca5f locAPIRemoveGeofences now notify the result inmediately
locAPIRemoveGeofences is no longer waiting for the request response,
instead it will always notify his callbacks with LOCATION_ERROR_SUCCESS
if the provided id is found, or LOCATION_ERROR_ID_UNKNOWN if not.

Change-Id: I602ad43bee894e85fde1e80210e6477b628e4a39
CRs-fixed: 2099450
2017-09-22 17:28:58 -07:00
Katz Yamada
fe17363801 Add support more bp amplitude in systemstatus
Add support of glo/bds/gal baseband processor
amplitude in systemstatus. These values will
be added in PQWM1 debug NMEA messasge.

Change-Id: If880bdfa81b41a82bb133bda8a0b33862f3eade5
CRs-Fixed: 2091024
2017-09-22 13:08:59 -07:00
Saurabh Srivastava
220b5cb581 Adding fix to send SUPL_ES ATL Close complete
Sending ATL Close complete for both Unsubscribe
and Released event.

CRs-Fixed: 2113762
Change-Id: Id684a05aa6d2b8636efb8af3d967146bd1718994
2017-09-21 21:11:37 -07:00
Kevin Tang
fb4bbe52f4 fixing conn disconnect handling from GnssLocationProvider
The "type" needs to maintain as signed, in case some value
may come across as negative, even though the storage size
may vary, from 8-bit to 32-bit, for example.

Bug: 65164961

Change-Id: Ieb3fb4b6f8415444bbe192a7875093f86a9c3068
CRs-Fixed: 2106350
2017-09-20 17:47:48 -07:00
Harikrishnan Hariharan
0ebaba253f Set SUPL_HOST to modem on GnssAdapter init.
On init of GnssAdapter, SUPL_HOST and SUPL_PORT are set to
modem if the configs are set in gps.conf.

Change-Id: I079879adf31022cfbf0098da8dba3bb86feed069
CRs-Fixed: 2110547
2017-09-20 00:31:51 -07:00
Kevin Tang
153e37d399 Merge remote-tracking branch 'quic/location.lnx.2.9' into HEAD
Change-Id: I50d6f5ff7c70532f8be522a76be5a6aaf9b03f3d
CRs-Fixed: 2112760
2017-09-19 15:06:11 -07:00
Kevin Tang
dda1d12998 Merge remote-tracking branch 'quic/location.lnx.2.9' into HEAD
Change-Id: I7e122e35f0b79a8bfc899fb37935e3f7acb175c3
CRs-Fixed: 2108593
2017-09-12 16:15:49 -07:00
Baili Feng
f69296ba9e Init default agps status callback in GnssAdapter
Call LocNetIfaceAgps_getStatusCb implemented in libloc_net_iface.so,
use the return function as default agps status callback.

Change-Id: I4d966a888e312c2d0fb1a6c9e30752294876e500
CRs-Fixed: 2064002
2017-09-12 14:16:28 +08:00
Linux Build Service Account
8ac14eff60 Merge "Transition of base DataConcreteType class to HAL" 2017-09-09 00:59:31 -07:00
Linux Build Service Account
aed3065a34 Merge "Xtra client interfacing with LocNetIface in LE" 2017-09-08 19:04:53 -07:00
Harikrishnan Hariharan
40284224df Transition of base DataConcreteType class to HAL
Transition of base DataConcreteType class to HAL, so that modules
in HAL can access the members of DataItem class.

Change-Id: Ib3b60992cf35a52b601117d5d18761d759f31b86
CRs-Fixed: 2104384
2017-09-08 15:58:21 -07:00
Katz Yamada
4d8fc57928 Fix unable to clear existing event bitmasks
Fix for an issue updateEvtMask call chain is
unable to clear existing event bitmasks stored
in LocApiV02.

Change-Id: Id34e2d92a506e7300f3d9b3ec74a80a1f6822787
CRs-Fixed: 2085379
2017-09-08 13:52:20 -07:00
Harikrishnan Hariharan
f0d7fe810f Xtra client interfacing with LocNetIface in LE
Interfacing LocnetIface with Xtra client for wwan/supl call
setup and teardown.
- XtraSystemStatusObserver must listen to connect/teardown wwan
call requests from xtra-daemon on the HAL side socket. This
request is then processed by libloc_net_iface module on LE.
- Caching the connect and disconnect backhaul requests received
before framework action request object is obtained.

Change-Id: I7cb6751efc64b27726b5d28be9a3df7b1bfb3d76
CRs-Fixed: 2092215
2017-09-08 22:38:33 +05:30
Linux Build Service Account
099f9405b1 Merge "Integrate XtraSysStatObs with SystemStatusObserver" 2017-09-07 20:35:04 -07:00
Harikrishnan Hariharan
ff8b31761c Integrate XtraSysStatObs with SystemStatusObserver
Use SystemStatusObserver to subscribe for dataitems in
XtraSystemStatusObserver.

Change-Id: Ib1828b9025c9c5bb5194a36014249472ed3f6f9e
CRs-Fixed: 2093290
2017-09-07 11:05:15 -07:00
Linux Build Service Account
094e07f5a9 Merge "Check status before decide report position or not" 2017-09-07 00:32:25 -07:00
Baili Feng
e0f49cdede Check status before decide report position or not
Check if inaccuracy exceeds our tolerance
only when status is LOC_POS_TECH_MASK_SATELLITE

Change-Id: If45f2d8f5347f5b8a7df944dfa5b8071f6c2380a
CRs-Fixed: 2104827
2017-09-06 11:26:27 +08:00
Linux Build Service Account
6ef3b74714 Merge "Filter the configs sent to modem on change basis" 2017-09-04 00:28:59 -07:00
Linux Build Service Account
f45fb60bd6 Merge "KW issues for agps module" 2017-09-04 00:28:56 -07:00
Yingjie Wang
cd3027e3a6 Filter the configs sent to modem on change basis
Filter setServer, setPositionMode and startTracking commands
sent to modem unless change happens and optimize out modem
traffic hence.

Change-Id: I389af9c11784848045d2d3d5d3c799675a4b24be
CRs-Fixed: 2093253
2017-09-01 16:48:32 +08:00
Srivastava
2a9654103b Integrating AGPS call flow with LocNetIface
Using LocNetIface AGPS capability in case client
doesn't provide status callback to setup data call.
Also adding below APN and IP Type config parameters
to gps.conf :
INTERNET_APN
INTERNET_IP_TYPE
SUPL_APN
SUPL_IP_TYPE

CRs-Fixed: 2005565
Change-Id: If52963ed50625db379c958586813850746eb2c4e
2017-08-29 13:00:57 -07:00
Yingjie Wang
d91d77633d KW issues for agps module
Check for null pointer before dereference in Agps.cpp

Change-Id: Idd1e7950572c8a45e5c7d7da0f5caee35583b53c
CRs-Fixed: 2100353
2017-08-29 09:59:39 +08:00
Linux Build Service Account
04eb6ff7ee Merge "Incorrect location info observed in Gnss bugreport" 2017-08-24 14:16:55 -07:00
Katz Yamada
a763825b97 Incorrect location info observed in Gnss bugreport
Fixed missing conversion from radian to degree for
latitude and longitude values when generated from
PQWP2 debug NMEA info.

Bug: 64808400
Change-Id: I30c65f309c2cd209090cc45d9da1764d05a85c7b
CRs-Fixed: 2095295
2017-08-24 09:36:04 -07:00
Harikrishnan Hariharan
def65a6ea0 Changes in LE for DataItemObserver changes
Fix compilation errors in LE for changes in adding
DataItemObserver interface in SystemStatus.

Change-Id: I7f2987672818d9f4ff9db801b55ade6fcdfd9a7d
CRs-Fixed: 2081242
2017-08-21 22:44:24 -07:00
Linux Build Service Account
8dbe17715b Merge "Adding change to wait for close complete in ATL" 2017-08-21 17:36:02 -07:00
Linux Build Service Account
6f104ee746 Merge "Fix to report bearing and speed accuracy" 2017-08-16 02:35:56 -07:00
Saurabh Srivastava
28bbab632a Adding change to wait for close complete in ATL
ATL Close response should not be sent if client
has wait for close complete flag set to true.

Change-Id: I61164508e532cd8c65dff13387122c9d2c08af54
CRs-Fixed: 2089888
2017-08-16 00:16:28 -07:00
Linux Build Service Account
be2a3f9a69 Merge "XC 2.5 : additional changes" 2017-08-15 20:09:25 -07:00
Vamana Murthi
1b6695633f XC 2.5 : additional changes
Add the XTRAsystemstatus observer to
pass the HAL init info to XTRA-Client

CRs-Fixed: 2093274
Change-Id: I893da1470d4fedafbc7545806ea97667acdf60d3
2017-08-15 14:36:57 -07:00
Harikrishnan Hariharan
bb1d7ec1a2 Passing correct LPPe parameters
Passing correct LPPe parameters to modem for SRN
AP measurement and Sensor Baro measurements.

Change-Id: Id56f9bf050df82444a8698cad7cda85b4e9fbe78
CRs-Fixed: 2092158
2017-08-13 01:39:36 +05:30
Linux Build Service Account
3d75c952a8 Merge "Add DataItemObserver interface in SystemStatus" 2017-08-11 21:21:27 -07:00
Linux Build Service Account
5c7f025756 Merge "Clear Location structure before convertion" 2017-08-11 16:59:20 -07:00
Harikrishnan Hariharan
ee2d6658cb Add DataItemObserver interface in SystemStatus
Add DataItemObserver interface in SystemStatus so
that clients can subscribe dataitem events from
SystemStatus. Also moving DateItem and its observer,
subscription classes into HAL

Simplify DataItem class implementation.

Change-Id: I7b2c3fc9dcf67dd6132bbcccda874e3f7ed6fa94
CRs-Fixed: 2041019 2072896
2017-08-11 13:51:48 -07:00
Kevin Tang
db3101c207 move getAgcInformation and setDefaultReport into GnssAdapter
They are currently in LocApiv02, which is incorrect. SystemStatus
shouldn't be referenced at this layer. And both of these two calls
are specific to GnssAdapter use cases too.

Change-Id: I7098e3963be163199a833a8fb6b12a100405f71e
CRs-Fixed: 2090442
2017-08-11 12:32:34 -07:00
Linux Build Service Account
c41a43c59f Merge "Fix potential deadlock in measurements report" 2017-08-10 22:42:38 -07:00
Linux Build Service Account
2cb23d6015 Merge "adding the necessary gps.utils cflags and -l flags" 2017-08-09 23:17:42 -07:00
Remil Ram
44ceafb32d adding the necessary gps.utils cflags and -l flags
Change-Id: Idca694fe0cf640c5bf255fa11ff206d6927d67be
2017-08-09 16:06:35 -07:00
Dante Russo
54d6a878fd Fix potential deadlock in measurements report
If Gnss Measurements callback is called at the same time
as Gnss Measurements close is called, this will cause
dead lock.
Remove using mutex in this case and instead use a simple
bool to know whether or not to call into a the callback.

Bug: 63909793
Change-Id: I98d2be5ebd2ee0f36e4d2e31d20a74585089fe31
CRs-fixed: 2089716
2017-08-09 11:50:42 -07:00
Baili Feng
e83b68d39b Clear Location structure before convertion
Set all members of Location to zero by default
CRs-Fixed: 2087799

Change-Id: I01f7c96ff54a58f5f7ee812cd78b6fcccece4f02
2017-08-09 16:15:04 +08:00
Baili Feng
45c1850f21 Ignore invalid location
Do not report invalid locatin to HAL.
Generate empty NEMA when status is LOC_SESS_FAILURE.

Bug: 64286361
CRs-Fixed: 2087261

Change-Id: Id5c47052eef5cae951c020fa8061e2c761c1152d
2017-08-08 17:04:04 -07:00
Linux Build Service Account
ac16b8d821 Merge "Clean up compiler warning message" 2017-08-08 04:43:25 -07:00
Linux Build Service Account
471853fda2 Merge "Update capabilites when suplmode changes" 2017-08-04 07:10:20 -07:00