Commit graph

1094 commits

Author SHA1 Message Date
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
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
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
Linux Build Service Account
558a20a01f Merge "Fix failure in CTS testcase GnssStatusTest" 2017-07-11 18:06:32 -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
Linux Build Service Account
6d398dc347 Merge "Add QZSS constellation in Gnss_LocSvSystemEnumType" 2017-07-07 23:37:51 -07:00
Linux Build Service Account
a1f57121ec Merge "gps time population from GNSS" 2017-07-07 23:37:50 -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
978f2b9410 Merge "Update the latest LocationOptions" 2017-07-06 22:31:32 -07:00
Baili Feng
ba171737ab Update the latest LocationOptions
Restore unintentionally removed code.
Call locAPIUpdateTrackingOptions in gnssSetPositionMode.

Change-Id: I35a84c92de6a4b3df16d779fbb79601212d61119
CRs-fixed: 2071240
2017-07-06 17:02:50 +08:00
Madhanraj Chelladurai
ea013420db Add QZSS constellation in Gnss_LocSvSystemEnumType
Add QZSS support in Loc SV constellation structure.

Change-Id: I58a989faa8ad4027d9f83fabccd700fa55333ce6
CRs-Fixed: 2053513
2017-07-05 22:25:37 -07:00
Naresh Munagala
f708deaec6 gps time population from GNSS
v2v needs gps time population in izat remote apis

Change-Id: Ibe340a3f834ebe27c552bd1ffe2f20d3b9f50450
CRs-Fixed: 2050993
2017-07-04 21:16:49 -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
Linux Build Service Account
15ae65c5cc Merge "Correct the comment for loc_param_s_type struct" 2017-06-30 23:39:06 -07:00
Yingjie Wang
226e404a8c Correct the comment for loc_param_s_type struct
Change the comment for param_type member of loc_param_s_type
struct:   'f' for float  --> 'f' for double

Change-Id: Ibf9c6bec624bd3900c4b96100c359ed7350becc6
CRs-fixed: 2068995
2017-06-29 14:17:00 +08:00
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
Baili Feng
1a128bd7cd Split control apis to a separate class
Move control apis to LocationAPIControlClient.
There should be only one instance of it per process.

Change-Id: I5969e6b3ad45f3fc5bfe4f4cd543a077c540c3ea
CRs-Fixed: 2064389
2017-06-27 19:04:00 +08:00
Linux Build Service Account
1e6d1c02ce Merge "Fixed loc_get_target() and removed 1530 support" 2017-06-26 15:02:24 -07:00
Linux Build Service Account
a6801b9ac9 Merge "Reset RequestQueue instead of delete it." 2017-06-26 15:02:15 -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
Baili Feng
c0a300ca3a Reset RequestQueue instead of delete it.
Change the type of mRequestQueue from 'array of pointers'
to 'array of instances'. So we can reuse them.

CRs-fixed: 2050837
Change-Id: I362319ece38cf10ee7ae2278a89249ce97e2f0a5
2017-06-21 10:31:03 +08:00
Kevin Tang
a2cafde5bd Fixed loc_get_target() and removed 1530 support
it is a stale feature, been disconnected for years.

Also tightend up loc_get_target(), as it currently
doesn't get produce a result, but also return -1,
which would cause the next call and every call going
through the entire function every time it is called.

Change-Id: I348d99f690eb8973730112d5edeb870b2be2c6c8
CRs-Fixed: 2062169
2017-06-20 15:21:45 -07:00
Linux Build Service Account
4aca11df97 Merge "Fix NI for Notify and Verify being true" 2017-06-20 01:35:10 -07:00
Linux Build Service Account
6cd01b2a90 Merge "Fix config updates for some LocatoinAPI bit masks" 2017-06-20 01:35:08 -07:00
Linux Build Service Account
3ee8c353cf Merge "Fixed crash when timerfd_create failed" 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
5fc6fa657c Fix NI for Notify and Verify being true
CRs-fixed: 2059175
Bug: 62049857
Change-Id: I6c4717ddbd72f15972e5d4bd8897b528fbe2c2b4
2017-06-15 15:43:27 -07:00