Commit graph

1124 commits

Author SHA1 Message Date
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
Linux Build Service Account
fc92122add Merge "Prevent gps stuck on if multiple starts are called" 2017-08-04 07:10:18 -07:00
Baili Feng
4c9c783989 Clean up compiler warning message
CRs-Fixed: 2070597
Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-08-01 18:17:20 +08:00
Dante Russo
9ae216a6c0 Update capabilites when suplmode changes
Location capabilities can change when
suplmode is updated, but we need to send
the capabilites callback to all clients
with the new capabilities when suplmode
changes.

Change-Id: Ib7c9b5ef13259fe9305b3efbb03db3433ed26675
CRs-Fixed: 2079414
2017-07-31 15:57:37 -07:00
Linux Build Service Account
0c6ed3c024 Merge "KW Warning Fixes" 2017-07-28 06:09:40 -07:00
Linux Build Service Account
928e3eca59 Merge "Updating error print in AGPS state machine" 2017-07-28 06:09:37 -07:00
Dante Russo
c1da12aa2e Prevent gps stuck on if multiple starts are called
If framework happens to call start of session multiple
times without calling stop first, it can cause a session
to get stuck on without any way to stop it

CRs-fixed: 2083756
Change-Id: Ic871d870ca67c9465438f8494e381bfbcb85a830
2017-07-27 14:04:23 -07:00
Saurabh Srivastava
2481cf3f82 KW Warning Fixes
CRs-Fixed: 2082072
Change-Id: I1189acd521d4e4cea3b8a9545a5486f29caaa0fe
2017-07-27 17:21:31 +05:30
Linux Build Service Account
7cc7da646c Merge "Fix 2.9-rel compilation issues on LE" 2017-07-27 03:43:51 -07:00
Saurabh Srivastava
a7094b1279 Updating error print in AGPS state machine
Minor update to print error message in AGPS
state machine only when valid.

CRs-Fixed: 2083361
Change-Id: Id8436d21a61b58ee8b5e83814225cbd34d0ea0d4
2017-07-27 12:38:15 +05:30
Bhavna Sharma
686a5c54b0 Location API for Outdoor Trip Batching
Add / Modify Location API for
Outdoor Trip Batching feature.
Introduce a batch mode to differentiate
between routine and outdoor trip mode.

CRs-Fixed: 2041674

Change-Id: Ia8b2d34457b29c4fe754ab24287a6984ab9a96f5
2017-07-24 09:25:07 -07:00
Baili Feng
2df685d3ec Support multiple sessions
Start more than one sessions by calling
locAPIStartSession multiple times

Change-Id: I1625faaab0f69fcb2700b6dbd695f59061c6a88d
CRs-fixed: 2079631
2017-07-24 21:42:24 +08:00
Naresh Munagala
ea051709cd Fix 2.9-rel compilation issues on LE
Change-Id: I35b8da213e8830456c8652802941a418748bd5e9
CRs-Fixed: 2067662
2017-07-21 17:51:05 +05:30
Dante Russo
1bd0de5d87 Fix yearOfHw as 2016 pre ES SUPL concurrency
Add capability bit for Nmea Debug, which
is a marker for modem support of concurrent
emergency supl session and normal gps session.

CRs-fixed: 2068217
Change-Id: Iea1ee7b56bfdd28643928edf0475cf21257de64c
2017-07-14 11:26:42 -07:00
Bhavna Sharma
be7f077122 Fix to report bearing and speed accuracy
1. Validity bit for vertical uncertainity was conflicting
with the validity bit of location source, hence had
to change the bit.
2. Modify ZPP API to report speed and bearing accuracy.

CRs-Fixed:2064017

Change-Id: I8b09ecab3d67557ad7c2451fee71dbc0e1f14371
2017-07-13 15:16:59 -07:00
Linux Build Service Account
86786d166a Merge "Fix incorrect sv id offset for bugreport" 2017-07-12 01:58:01 -07:00