Commit graph

68 commits

Author SHA1 Message Date
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
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
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
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
928e3eca59 Merge "Updating error print in AGPS state machine" 2017-07-28 06:09:37 -07:00
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
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
Linux Build Service Account
86786d166a Merge "Fix incorrect sv id offset for bugreport" 2017-07-12 01:58:01 -07:00
Linux Build Service Account
619caa5b56 Merge "Disable set debug NMEA bit when unsupported" 2017-07-12 01:57:55 -07:00
Katz Yamada
9c2acb7847 Fix incorrect sv id offset for bugreport
Fixed incorrect sv id offset for adb bugreport.
Ephemeris type, source and age information of BDS,
GAL and QZSS reported through PQWPE7 NMEA are
incorrectly mapped to adb bugreport.

Bug: 63178209

Change-Id: I9f4b7942adadda8949e040ee59bed9c027e080c2
CRs-Fixed: 2073107
2017-07-11 15:04:28 -07:00
Katz Yamada
4971373d94 Disable set debug NMEA bit when unsupported
Avoid setting debug NMEA bit of QMI_LOC_SET_
NMEA_TYPES_REQ message when the feature is
unsupported.

Change-Id: I999654f627eac68042597ee51aff81e8588bfa9b
CRs-Fixed: 2072961
2017-07-11 11:18:17 -07:00
Harikrishnan Hariharan
a4a26b43eb Fix failure in CTS testcase GnssStatusTest
GnssStatusTest test case is expecting to QZSS SV id as it is
(193 <= X <= 200) for this test case.

Change-Id: I8ba234fb02be7c09b8273238c0842d4826a12424
CRs-Fixed: 2070493
2017-07-07 11:07:46 -07:00
Linux Build Service Account
f44aa79ca9 Merge "Adding KW warning fixes" 2017-07-03 21:13:43 -07:00
Linux Build Service Account
7ac8c0331a Merge "Removing header copying to out folder" 2017-07-03 21:13:21 -07:00
Saurabh Srivastava
8cf201ae2a Adding KW warning fixes
Change-Id: I03a09abdfc4224d59d3ddb467d0314e644fe4fe0
CRs-Fixed: 2062522
2017-07-03 17:07:37 +05:30
Dante Russo
dc29f91ec6 Removing header copying to out folder
Replace copying header files to out folder
for use by other modules to instead build
headers into separate libraries that end
with _headers that can be used by other
modules.

Change-Id: I073967cd34e5c79110895908a4eef1b7d17bf9ea
CRs-fixed: 2068129
2017-06-27 17:36:14 -07:00
Linux Build Service Account
c3a716d890 Merge "Remove fix made to set session status as failure in LocApi." 2017-06-25 20:10:03 -07:00
Linux Build Service Account
a3db3b5919 Merge "Adding priority flag for NI and AGPS callbacks" 2017-06-24 16:43:22 -07:00
Linux Build Service Account
6cd01b2a90 Merge "Fix config updates for some LocatoinAPI bit masks" 2017-06-20 01:35:08 -07:00
Saurabh Srivastava
15830de3b6 Adding priority flag for NI and AGPS callbacks
Adding priority flags while registering NI
handling callback and AGPS handling callback.
To ensure that both NI and AGPS are always
handled by our stack instead of Android
Framework stack.

CRs-Fixed: 2059476
Change-Id: I585328491a7f5d9099287924a03d7710f4e5fda9
2017-06-19 17:54:28 +05:30
Harikrishnan Hariharan
a0075bdb8e Remove fix made to set session status as failure in LocApi.
Instead of sending session status as failure in LocApiV02 in case
of both latitude/longitude 0 and horizontal reliability not set,
for sending Blank NMEA sentences, the condition check for the same
is done in before requesting to send nmea sentence.

Change-Id: I359d136a8da9d9fe233e599eb2cba71e4509b270
CRs-Fixed: 2058269
2017-06-16 22:57:20 +05:30
Dante Russo
fc5c5f6625 Fix config updates for some LocatoinAPI bit masks
Fix SUPL mode, GPS lock, and GNSS Ni options to be
treated like bit masks instead of values.
Rename some enums of bit masks with _BIT as convention.

Change-Id: I036b682ca3472159304ef569ff67d28dc94f644e
CRs-fixed: 2039308
2017-06-15 15:43:17 -07:00
Linux Build Service Account
1e31567ced Merge "Update the latest LocationOptions to LocationAPI" 2017-06-13 01:57:09 -07:00
Linux Build Service Account
b8676c0136 Merge "Post SSR restarting tracking should bypass ULP" 2017-06-11 20:13:48 -07:00
Dante Russo
36c1143285 Post SSR restarting tracking should bypass ULP
When sub system restart occurs, restarting gps tracking
should be sent directly to Loc API instad of going
through ULP.

Change-Id: I6309eeee3670b3d7fa484f74f96ea9a2848f7bb1
CRs-fixed: 2056783
2017-06-09 17:24:25 -07:00
Baili Feng
7b1d6ec5aa Update the latest LocationOptions to LocationAPI
Call locAPIUpdateTrackingOptions in gnssSetPositionMode.
Update tracking options should update the tracking
sessions so that the smallest interval options are
set.

Change-Id: I24cefe4fb711a160d0a72ab7592d8e673ea2dd97
CRs-fixed: 2048231
2017-06-08 18:00:13 -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
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
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
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
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
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
4b35976787 Merge "Registering event mask on AGPS Init" 2017-04-29 14:48:02 -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
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
Katz Yamada
3eef3d7a6c SystemStatus - Add ephemeris detail info in Gnss Debug interface
Add ephemeris detail info in Gnss Debug interface. This new info
also comes up in NMEA stings. Requires a new QMI_LOC interface
that supports extended NMEA string TLV.

Change-Id: I5dc566fb210c06a443ed6c27e064377851ce83a5
CRs-Fixed: 2024594
2017-04-27 13:46:09 -07:00
Linux Build Service Account
88b6d20d11 Merge "Move gnss hal to vendor partition" 2017-04-22 20:28:51 -07:00
Linux Build Service Account
3d10d87437 Merge "Remove owner of gps hal modules" 2017-04-22 20:28:50 -07:00