Commit graph

215 commits

Author SHA1 Message Date
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
6f104ee746 Merge "Fix to report bearing and speed accuracy" 2017-08-16 02:35:56 -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
Baili Feng
4c9c783989 Clean up compiler warning message
CRs-Fixed: 2070597
Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-08-01 18:17:20 +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
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
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
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
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
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
7a7838b718 Merge "Enable LOGV for gps directory" 2017-05-02 14:54:09 -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
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
Dante Russo
891005e20c Move gnss hal to vendor partition
gnss hal is moved to vendor partition
for binerization enablement

CRs-fixed: 2020778

Change-Id: I8de91d0418ef4b9a1c778c45fe02d27d42c46c97
2017-04-17 15:14:57 -07:00
Dante Russo
9e232dda61 Remove owner of gps hal modules
Owner does not need to be specified for
this project.

Change-Id: I918a767ed3b83e134c5e63ded5b25070b3399ac8
2017-04-17 15:12:16 -07:00
Katz Yamada
f7a8f2cded SystemStatus - Add reported UTC timestamp in report
Add reported UTC timestamp field in systemstatus' report
data structure. It indicates the system UTC time when the
information was last received from provider such as modem.

Change-Id: I31beb64958c980242ea65fb9a602e18985ad17e1
CRs-Fixed: 2012926
2017-04-11 16:12:59 -07:00
Linux Build Service Account
f3a58cea24 Merge "Do not send debug NMEA to ulp" 2017-04-10 17:13:52 -07:00
Dante Russo
36f8446032 Fix NI Request Event
GnssAdatper::requestNiNotifyEvent function is not
overriding LocAdatperBase::requestNiNotigyEvent
because of slightly different parameters

Change-Id: Ib3e6b562c437e47fba2a086d47c887f2efce7637
CRs-fixed: 2027710
2017-04-04 16:10:38 -07:00
Kevin Tang
8b98a565a5 Do not send debug NMEA to ulp
Checking in GnssAdapter::reportNmeaEvent to see if the
incoming nmea is debug, in which case we do not route
that to ULP. Debug NMEA is only for SystemStatus
consumption.

Change-Id: Ifb60b9a643ad6aeb732fcaf5a68f868cb55cd88a
CRs-Fixed: 2027134
2017-03-31 19:39:01 -07:00
Naresh Munagala
06e6d68aee move nmea generation logic inside utils
NMEA generation logic needs to be reused across the
interface boundaries. Moved this logic inside utils.

Change-Id: Icb5c6fbc38b178c5edea468d26286e21749bfbfb
CRs-Fixed: 1098734
2017-03-29 18:22:08 +08:00
Linux Build Service Account
e72716080e Merge "Added support for AGC" 2017-03-25 15:20:33 -07:00
Mike Cailean
3ad14ba827 Added support for AGC
Added support for AGC (automatic gain control)

CRs-fixed: 2023324

Change-Id: I6d6da23aab66da14bfa594077beda15194bdbeba
2017-03-24 15:46:39 -07:00
Linux Build Service Account
c7cf50cd43 Merge "force undefined symbols to treat as errors" 2017-03-24 13:29:59 -07:00
Linux Build Service Account
50952f03af Merge "SystemStatus - Add BugReport support" 2017-03-24 06:31:22 -07:00
Linux Build Service Account
adb88a7ffb Merge "SystemStatus - initial release" 2017-03-24 06:31:22 -07:00
Linux Build Service Account
96a7f5c488 Merge "Enable LOGV for LocSvc_LocApiBase" 2017-03-24 06:31:09 -07:00
Linux Build Service Account
e936286c2d Merge "Add tech_mask in UlpLocation to support report NLP position source to Android Framework." 2017-03-24 06:31:06 -07:00
Linux Build Service Account
a5f669bcee Merge "update NMEA logic with SBAS corrections" 2017-03-24 06:31:03 -07:00
Katz Yamada
4ff6da4a8a SystemStatus - Add BugReport support
Add BugReport support in SystemStatus. It exposes getReport
interface to GnssDebug via GnssAdapter. GnssDebug generates
Gnss' BugReport information upon a request tiggered by Android
framework.

Change-Id: I681777da10c860ea15ee65b7860a5ce61a7798db
CRs-Fixed: 2016125
2017-03-21 21:42:32 -07:00
Linux Build Service Account
db80463553 Merge "set default supl config to MSB" 2017-03-21 19:20:48 -07:00
Naresh Munagala
13888ddfd2 update NMEA logic with SBAS corrections
Change-Id: Ibb4233cbcb6d223e507105c05a40136ea7924e75
CRs-Fixed: 1108696
2017-03-22 09:40:14 +08:00
Yingjie Wang
a5d69e1757 Enable LOGV for LocSvc_LocApiBase
Define LOG_NDEBUG 0 to enable verbose log messages in
LocApiBase.cpp

CRs-fixed: 2018892
Change-Id: Ie3f5efaa728d863b8fd0ab268700e807b232dab3
2017-03-21 15:18:32 -07:00
Katz Yamada
592b3f557e SystemStatus - initial release
Add GNSS SystemStatus component to handle debug NMEA messages
from mpss. This component handles GNSS debug info sent through
debug NMEA and then stores it in its cache and pass it to
clients per requests. Also debug NMEA is turned on by default.

Change-Id: Ia11a124ff43d27568f544a3a4742dd7a846869fe
CRs-Fixed: 1099152
2017-03-21 09:55:08 -07:00
Linux Build Service Account
bf3d1332f4 Merge "Add comments for automitive configuration param and meas status" 2017-03-21 01:39:57 -07:00
Saurabh Srivastava
b37098920f Moving conf files to /vendor/etc
Moving all vendor specific conf files to /vendor/etc instead of
current /etc folder

CRs-Fixed: 1099981
Change-Id: I4495d8527941959be0847c4722ea8b68ee6c87ee
2017-03-17 16:12:54 -07:00
Naresh Munagala
9e44ec3ce2 force undefined symbols to treat as errors
added necessary flags in Makefiles to
treat undefined symbols to get caught at
compile time.

Change-Id: I77068b0d61ad432aa227c01b6229d82651ab8862
2017-03-16 10:27:01 +08:00
Madhanraj Chelladurai
d35e7c34eb Add comments for automitive configuration param and meas status
Add comments for automotive configuration parameters and to
masurement status mask

Change-Id: Ia5e16e3044fa15ce15d6ce3c3534898cbd61ef03
CRs-Fixed: 1102724
2017-03-15 19:22:14 -07:00
haohuang
1d2ac2023d Add tech_mask in UlpLocation to support report
NLP position source to Android Framework.

Change-Id: I3811e03dddb721b64b5fa4330996087f6c17efec
2017-03-15 19:08:28 -07:00
Naresh Munagala
babc8a9f7c set default supl config to MSB
Default SUPL config bit was set to both
MSA and MSB (0x3), which is causing single shot
request to map to MSA mode always. Modem is not
reporting any position fix for MSA case.

Change-Id: I8a75f9970a0443c9cb22f73a631f85240fcc4519
CRs-Fixed: 1098896
2017-03-16 10:04:52 +08:00
Dante Russo
52b413eb44 hidl gnss hal 1.0 implementation
Overwrites the default hidl gnss hal implementation
to interface directly to LocationAPI

CRs-fixed: 1112712

Change-Id: I3385911956c0c6c457202a8584b108046c587b36
2017-02-28 16:47:59 -08:00
Dante Russo
c85c8ff673 LocationAPI implementation
Implementation of LocationAPI into gps hal
to be a common API that is called into by platform
specific APIs.

Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b
CRs-fixed: 1112712
2017-02-28 16:47:50 -08:00
Baili Feng
4bb940c067 Decouple libhardware usage on LE for gnss models
Remove all usage of gps.h and fused_location.h
from all gnss models except gps/fpl hal librarys

Change-Id: I90ba233c6bbe5c31a4cacceeb981833719c871f2
CRs-Fixed: 1067953
2017-02-14 16:51:32 -08:00
David Ng
f871943dc5 Add explicit liblog dependency
Explicitly add liblog as dependency for modules that use Android
logging.  Also remove obsolete build flag.

Change-Id: I91a458b44ff34c91a8f6875f5c3e931f620c613a
2016-12-08 23:53:21 -08:00
Linux Build Service Account
da6012a581 Merge "Reinitialize dataservice client post SSR" 2016-11-04 18:35:33 -07:00
Harikrishnan Hariharan
1de8a18031 Reinitialize dataservice client post SSR
On SSR invoke dsi_release() and dsi_init(Mode_SSR) to recover
data call functionality post SSR.

Change-Id: Ie784dad73ae8d6d91cf4cb87efe938af9015a7a2
CRs-Fixed: 1073101
2016-11-03 01:45:29 -07:00
Harikrishnan Hariharan
90a730d179 Mark SV used_in_fix based on the most recent position report
When SV report comes, mark used_in_fix based on the most recent
position report.

Change-Id: I98f3f4e7836de86f9025bae446cdeac6d1eb5862
CRs-Fixed: 1080013
2016-10-28 02:54:43 -07:00
Linux Build Service Account
c75f2c6908 Merge "Combo Provider 2.0" 2016-10-25 15:05:55 -07:00
Naresh Munagala
dcd5af2915 NMEA report indication to ULP
Enabled NMEA report indication to to ulp

Change-Id: Ia27fe0d805f53bf17c86f7c27eaaedd960101370
CRs-Fixed: 1055201
2016-09-21 10:28:28 +05:30