Commit graph

201 commits

Author SHA1 Message Date
Wei Chen
730abcc3d4 GPS NMEA: generate proper nmea during leap second transition
During leap second transition, the hour, minute and seconds
displayed need to be in the format of 23:59:60 to denote
the extra leap second

Change-Id: Ice7c6f934b1251990ba26e2b7e399554a2862eb4
CRs-fixed: 2335188
2018-11-27 14:46:25 -08:00
Saurabh Srivastava
b00c1c26c9 Invoking dlclose in error case
Invoking dlclose for loc_net_iface
library dlopen call in error case.

Change-Id: Ib8d4b05904214ebaa83608309679bc055bd7abe5
CRs-Fixed: 2347372
2018-11-15 22:33:51 -08:00
Wei Chen
21b9c4e47e FR48381: Support leap second change event
Support leap second change event
(1) Info will be available in location api and location
    client api
(2) Engine hub aggregator will use the info to calculate
    UTC timestamp

Change-Id: Ie79c1a38301fa094134a4a31af424487758343f6
CRs-fixed: 2289457
2018-10-08 12:26:06 -07:00
Katz Yamada
5b53be1d9e perf: Reduce NMEA traffic over client IPC
Improve hal daemon performance by reducing
number of NMEA callbacks on IPC. Position and
sv NMEA sentences, generated during one TBF
will be concatenated by hal and sent over
one IPC, then client lib disassemble it into
multiple sentences.

Change-Id: I522e293d7e26fb8a25edb6ed931c4d69186223e8
CRs-Fixed: 2299008
2018-10-05 16:26:02 -07:00
Linux Build Service Account
837f245997 Merge "New additions for Ephemeris and Poly handling" 2018-10-05 12:51:44 -07:00
Bhavna Sharma
5a8d171181 New additions for Ephemeris and Poly handling
1. Add new data structures to hold the Ephemeris reports.
2. Modifications to SV Poly structure to include delete flags.
3. Add SV_POLY bit to GnssAidingDataSvMask to support
delete commands from modem for poly and ephemeris per constellation.
4. Define LocApiBase and LocAdapter functions to report the
ephemeris content, request for complete valid ephemeris and
Poly content at any time and report delete commands from modem
on Ephemeris and Poly content.

CRs-Fixed: 2301149

Change-Id: If36e87c410c3204c94a6ed7db30f297edba95508
2018-10-02 09:26:43 -07:00
Mike Cailean
6700088d79 Set SV in use mask based on final fixes
Do not set SV in use mask based on intermediate
position update from modem since it might contain
stale information. Reset the flag indicating SV
are used in fix for intermediate fixes.

Change-Id: I10a324a160b20a6ced94c689acf9fc9d77f6e826
CRs-fixed: 2318041
2018-10-01 09:56:09 -07:00
Dante Russo
2bef34e8b2 FR47184: tunc constrained and position assisted time estimator
(1) Configure tunc constrained module on modem via gps.conf
(2) Configure position assisted time estimator and inject
    DRE position with additional info to modem
(3) Support get total energy consumption API by GNSS engine
    since device first bootup

Change-Id: I1e73057df090c1d356c55a498f06eed45839ca8f
CRs-fixed: 2276355
2018-09-26 14:17:30 -07:00
Linux Build Service Account
ee2ccdb172 Merge "Fixed KW issues such as uninitialized variables" 2018-09-16 02:35:30 -07:00
Linux Build Service Account
b64feb2b73 Merge "Set SV in use mask based on final fixes" 2018-09-11 23:21:14 -07:00
Mike Cailean
b81c6d4955 Fixed KW issues such as uninitialized variables
Change-Id: I24093a79fe0befc4484a9538110d44f667d1cbd6
CRs-fixed: 2312583
2018-09-10 18:06:40 -07:00
Mike Cailean
c30e7c5e63 Set SV in use mask based on final fixes
Do not set SV in use mask based on intermediate
position update from modem since it might contain
stale information

Change-Id: I4300854ead3f85758bfb37d4c47ace10f63541a0
CRs-fixed: 2307493
2018-09-06 16:09:05 -07:00
Linux Build Service Account
397570348d Merge "Accept enabled list for constellation control" 2018-09-03 02:03:11 -07:00
Linux Build Service Account
4c35d8ab49 Merge "GPS: unify buffer size passed to retrieve string with loc cfg" 2018-08-31 19:02:14 -07:00
Saurabh Srivastava
12ab7e152f Accept enabled list for constellation control
Accept both enabled and disabled constellation
lists for IZAT Constellation Control API

CRs-Fixed: 2302898
Change-Id: Ia271efef619fc91a1457d1af7aeebcb8a8a0686d
2018-08-29 01:49:07 -07:00
Kevin Tang
0a19651316 GPS: unify buffer size passed to retrieve string with loc cfg
Loc cfg parsing routines assuming that string buffer size is
LOC_MAX_PARAM_STRING. Changes are to make sure that
caller to loc cfg routine does use that buffer of size
LOC_MAX_PARAM_STRING.

Change-Id: Icecf6bf017e6dda1da0766adc746f60d471653d0
CRs-fixed: 2301437
2018-08-24 16:57:57 -07:00
Kevin Tang
033a0fa1c6 modem generated NMEA won't get reported
when NMEA_PROVIDER_MP (i.e. NMEA_PROVIDER=1 in gps.conf),
nmea is dropped at GnssAdpater::reportNmeaEvent

Change-Id: Ib200780a887589e8e495b2e012e0649aba275c5c
CRs-Fixed: 2297257
2018-08-23 10:08:10 -07:00
Linux Build Service Account
3ee9378ffd Merge "Replace unsafe functions" 2018-08-22 01:12:40 -07:00
Linux Build Service Account
3379b6645d Merge "Add jammer indication" 2018-08-21 14:29:45 -07:00
Mike Cailean
4599ab400c Replace unsafe functions
Replace strncpy with strlcpy

Change-Id: Iade6b1201db75fb15da37431183cb372cd1ad41a
CRs-fixed: 2298929
2018-08-17 10:29:48 -07:00
Mike Cailean
75cfd43bfd Add jammer indication
Add AGC and jammer indication

Change-Id: I93641864338beec368e7a56b3a20b158ea892202
CRs-fixed: 2239155
2018-08-17 09:15:20 -07:00
Hoss Zhou
f2f6ca70c5 SAP:update SENSOR_CONTROL_MODE configuration
set SENSOR_CONTROL_MODE to MODEM_DEFAULT to make INS
use its default setting.

remove SENSOR_PROVIDER and SENSOR_USAGE.

Change-Id: I99d48d4600a6bca8e64ae0d1ff065af762888b2e
CRs-Fixed: 2285242
2018-08-05 14:52:50 -07:00
Linux Build Service Account
6f17924602 Merge "Skip position filtering for telematics" 2018-08-05 05:29:31 -07:00
Dante Russo
12b3302094 Skip position filtering for telematics
When engine hub is loaded, e.g.: if any of the
engine services are enabled in izat.conf, position
filtering is skipped and all position (valid or
invalid) will be reported to requesting client

Change-Id: Idc340478c977d8da441211d4c81580987b0f4a29
CRs-fixed: 2290155
2018-08-02 14:34:57 -07:00
Bhavna Sharma
2a005b5816 Cache the SUPL server and port on each update
CRs-Fixed: 2286256

Change-Id: I7adb584ff6f81c6a7f50f5ec4e9a4a094414e297
2018-07-30 12:23:12 -07:00
Linux Build Service Account
04f0a9a45d Merge "Merge remote-tracking branch 'quic/location.lnx.3.0.c5' into location.lnx.4.0" 2018-07-24 21:53:37 -07:00
Bhavna Sharma
92e990faf8 Merge remote-tracking branch 'quic/location.lnx.3.0.c5' into
location.lnx.4.0

CRs-Fixed: 2282734

Change-Id: I5911f47d796591474eb19be527499daf758bff03
2018-07-23 13:11:31 -07:00
Dante Russo
48b4774ece Add a timer for better handling of ODCPI/DBH
Prevent more than one ODCPI request into
frameworks each 30 seconds.
Request ODCPI every 30 seconds while modem
is actively requesting it
Allow location injections for ODCPI even
outside ODCPI session.
Emergency ODCPI requests override normal ODCPI
requests

Change-Id: Ie2de6a5d42e749fce2e45cd672fc1d667b3f3347
CRs-fixed: 2246658
2018-07-19 10:45:29 -07:00
Linux Build Service Account
5b00f53189 Merge "GPS: block CPI injection for those fixes orginate from modem" 2018-07-03 16:04:21 -07:00
Kevin Tang
56c4dd4420 GPS: block CPI injection for those fixes orginate from modem
GNSS adapter to block CPI injection for CPI originates from modem.
One source of the fix is QNP fix from modem. Only fixes that
comes within time threshold and with latitude and longitude
falls within the same proximity will be blocked.

Change-Id: If67a164d1e1c75735979f048a9f8dc93f0b0a41f
CRs-fixed: 2260721
2018-07-03 10:45:56 -07:00
Saurabh Srivastava
889d1eed23 Fixing error population logic
Updating error vector population logic
in GNSS Update config command.

Change-Id: Ia328ad112056ecc20221ca10ba91c72f3182830a
CRs-Fixed: 2261813
2018-07-02 23:28:50 -07:00
Saurabh Srivastava
f7e3cd59e3 Returning failure on GPS blacklisting
Returning false for HIDL Set Blacklist
API when a GPS constellation SV is
passed in for blacklisting.

Change-Id: I4fdaf226111d9db365af11c0e5bb6fa043c0b6fb
CRs-Fixed: 2234230
2018-07-01 11:05:18 +05:30
Linux Build Service Account
4819ca816f Merge "Get AGC from PQWM1 regardless of time validity" 2018-06-29 10:23:19 -07:00
Linux Build Service Account
021821ce54 Merge "Added optional MO SUPL SLP" 2018-06-29 01:39:07 -07:00
Mike Cailean
1d42da7b67 Get AGC from PQWM1 regardless of time validity
Eliminated time valid dependency when processing
PQWM1 message to get AGC

Bug: 110460486

Change-Id: I962272a749599db7a9dc84e00da9e1152686c366
CRs-fixed: 2267159
2018-06-28 13:44:40 -07:00
Bhavna Sharma
ee8213f3ce Populate some more fields for end client.
These are the fields populated:

North, East, Up velocity and their uncertainties
North and East standard deviation
Gps Time, Leap Sec and time uncertainty
Gps Measurement usage info

CRs-Fixed: 2249350

Change-Id: I8936b1c47be25fdc792322592f8ea5466a3fa6fd
2018-06-27 13:50:31 -07:00
Mike Cailean
d12b82b4e4 Added optional MO SUPL SLP
Change-Id: I89c3e697b92dfe04d403c073e779906d21cefd69
CRs-fixed: 2259090
2018-06-26 18:31:01 -07:00
Naresh Munagala
02cddf0f26 GNSS hal: propagate position dynamics uncertainty
Support for uncertainty of positition dynamics, including
uncertainty of forward, sideward, upward accelation,
and uncertainty of heading and pitch

Change-Id: I33fbfd0344d4beb7eabaa629b0c0993fe368293b
CRs-fixed: 2263818
2018-06-21 10:44:51 +05:30
Bhavna Sharma
f50e02a555 GNSS adapter: Do not send SPE NMEA to engine hub
Engine service does not need SPE NMEA report.

Change-Id: I809fa2857eec8292269b640928a44d8cc54308ed
CRs-fixed: 2232811
2018-06-18 15:19:28 -07:00
Dante Russo
271cfd8a00 Report yearOfHw=2018 when P features are supported
Support of features AGPM or Constellation Control
mean that we report yearOfHW as 2018

Change-Id: I01b7a3ce7f8b38569cf419cf07fef1d55da5f149
CRs-fixed: 2254698
2018-06-13 16:23:59 -07:00
Mike Cailean
b150a53ee3 Handle updating the carrier configuration
Set GPS_LOCK for cases where the modem has
two SIMs

Change-Id: I2745b9469b2f755b0a24be2a7f4ae514c35a37cb
CRs-fixed: 2018029
2018-06-12 09:46:49 -07:00
Mike Cailean
88688a85a3 SUPL connection enhancements
Adding enhancement to ATL messages to allow
sending bearer type and apn type mask values.

CRs-fixed: 2206014

Change-Id: I28f6583d842e82c9e26d40be55312f8aaf01193e
2018-06-11 14:13:04 -07:00
Bhavna Sharma
6c80f04dba Populate some more fields for end client.
These are the fields populated:

North, East, Up velocity and their uncertainties
North and East standard deviation
Gps Time, Leap Sec and time uncertainty
Gps Measurement usage info

CRs-Fixed: 2249350

Change-Id: I8936b1c47be25fdc792322592f8ea5466a3fa6fd
2018-06-08 17:00:17 -07:00
haohuang
17015dd790 Add spoof report mask in location object
Add the spoof mask report in location object
in position report and ZPP position report in
LocApiV02. Propagate this mask to the location
object in Location API module.

Change-Id: I5df87d389d5315c55ed2afce1f440a0486e4bebd
CRs-fixed: 2236154
2018-06-07 21:56:37 -07:00
Kevin Tang
8cc52b448c changes to work without ULP module
Rework the module with ULP module being removed

Change-Id: I5ac81e8c1c734352b3087545b83f4812fa3e8aff
CRs-fixed: 2235309
2018-06-07 12:04:42 -07:00
Mike Cailean
ed7d229dea Add AGC value for QZSS measurement report
Add AGC value for QZSS measurement report
to Android framework - value is the same as GPS

Change-Id: I1e3106d99d124945be7f1bda725a413be11a75e6
CRs-fixed: 2245786
2018-06-04 23:21:32 -07:00
Saurabh Srivastava
98edc19bea FR 48850 - Device based hybrid ODCPI
Adding support for sending ODCPI request
to framework via IGnss interface.

Change-Id: I97ab4f00505705fedc266998602499fd344baf31
CRs-Fixed: 2217664
2018-06-03 22:43:58 +05:30
Saurabh Srivastava
66c682f7d9 FR 45623 - AGPM 1.0
Adding AGPM FR changes to add power
modes support.

CRs-Fixed: 2195518
Change-Id: Ifd1da6194b58ad5590ea755e3f6b237c4b4db2ad
2018-06-02 23:48:20 -07:00
Saurabh Srivastava
eaf7e54b54 FR 45651 - GNSS SV/Constellation Control
Adding support for configuring GNSS SVs
and constellations to be used.

Change-Id: I47d5cd9d08ac9aaf633be2fe3b1bd152a2f4293b
CRs-Fixed: 2184871
2018-06-03 12:15:34 +05:30
Bhavna Sharma
21308b61a8 GNSS adapter: Do not send SPE NMEA to engine hub
Engine service does not need SPE NMEA report.

Change-Id: I809fa2857eec8292269b640928a44d8cc54308ed
CRs-fixed: 2232811
2018-05-29 11:49:16 -07:00
Saurabh Srivastava
d462c0add3 FR 46082 - SUPL Network Setup Improvements
Adding enhancement to ATL messages to allow
sending bearer type and apn type mask values.

CRs-Fixed: 2209227
Change-Id: I09a294946610f26de4760a0fba6f13083f8752f3
2018-05-29 04:28:47 -07:00
Kevin Tang
365919e004 location.lnx.4.0 catchup
Change-Id: I248620cfd849d39ccfb8bbd11e2cf049df889346
CRs-Fixed: 2247713
2018-05-23 17:59:04 -07:00
Linux Build Service Account
ded23bec43 Merge "GPS Adapter: GNSS adapter change to go with engine hub aggregator" 2018-05-04 08:46:23 -07:00
Katz Yamada
5d6ee83608 fix: Add intermediate fixes in gnss debug report
Include intermediate location fix info in gnss
debug report that is cached in SystemStatus in
addition to final fixes, so that the gnss debug
report should always hold the latest information.

Change-Id: I60aef92cf6d143a1b4f4b510ca2113887d051dcc
CRs-Fixed: 2230415
2018-05-03 13:14:53 -07:00
Katz Yamada
f8bd86f012 fix: Add intermediate fixes in gnss debug report
Include intermediate location fix info in gnss
debug report that is cached in SystemStatus in
addition to final fixes, so that the gnss debug
report should always hold the latest information.

Change-Id: I60aef92cf6d143a1b4f4b510ca2113887d051dcc
CRs-Fixed: 2230415
2018-05-03 11:41:51 -07:00
Bhavna Sharma
f6b613a827 Addition of new LocApi thread
1. LocApiBase to create its own MsgTask thread to allow QMI calls
to be made asynchronously. It shall no longer share the adapter's thread.
2. Implementation of new LocApiResponse classes for generic response type
from LocApi layer to Adapter layers
3. GnssAdapter modified to handle the asynchronous nature of LocApi calls.

CRs-Fixed: 2218658

Change-Id: I6e401a89f16791ec144763ac5f070b7ee1dad931
2018-04-27 10:39:21 -07:00
Linux Build Service Account
94904a7184 Merge "Merge location.lnx.3.0 into location.lnx.4.0" 2018-04-27 04:12:20 -07:00
Linux Build Service Account
23d026b988 Merge "fix: Default values in GNSS Debug Data" 2018-04-23 15:42:13 -07:00
Bhavna Sharma
c2bc685784 Merge location.lnx.3.0 into location.lnx.4.0
CRs-Fixed: 2228694

Change-Id: I114d830bec57040d700a0cebac2d0415c9b9f893
2018-04-20 13:18:43 -07:00
Bhavna Sharma
4c8f4e4e04 GPS Adapter: GNSS adapter change to go with engine hub aggregator
1: GNSS adapter change to block out position and SV report from
ULP when engine hub aggregator is used
2: Support unpropagated position report

Change-Id: Id0cacd87d3f3f8eec893d751b9f7a55a736a4023
CRs-fixed: 2210253
2018-04-16 11:43:43 -07:00
Bhavna Sharma
ae28b29898 Addition of new LocApi thread
1. LocApiBase to create its own MsgTask thread to allow QMI calls
to be made asynchronously. It shall no longer share the adapter's thread.
2. Implementation of new LocApiResponse classes for generic response type
from LocApi layer to Adapter layers.
3. GnssAdapter modified to handle the asynchronous nature of LocApi calls.

CRs-Fixed: 2218658

Change-Id: I6e401a89f16791ec144763ac5f070b7ee1dad931
2018-04-13 12:12:38 -07:00
Bhavna Sharma
e5c31f33c1 GPS Adapter: GNSS adapter change to go with engine hub aggregator
1: GNSS adapter change to block out position and SV report from
ULP when engine hub aggregator is used
2: Support unpropagated position report

Change-Id: Id0cacd87d3f3f8eec893d751b9f7a55a736a4023
CRs-fixed: 2210253
2018-04-12 13:24:57 -07:00
Baili Feng
d856a9414d hidl gnss hal 1.1 implementation
Implement new apis for IGnss 1.1

Change-Id: I2c98c32355f6d9681d51b709697e49ec735fe1cf
CRs-fixed: 2133458
2018-04-10 08:24:34 +08:00
Yingjie Wang
82d0efd99a Map additional fields in GpsLocationExtended
Map velocity and system time fields from GpsLocationExtended to
GnssLocationInfoNotification

Change-Id: If53575213de575ad71b68018beb8c3f5fd587bcf
CRs-fixed: 2184592
2018-04-09 13:05:50 +08:00
Dante Russo
ab95d2dc2e Merge location.lnx.3.0-180201 to location.lnx.3.9
Catchup merge from tag location.lnx.3.0-18201
CRs-fixed: 2212182
Change-Id: I47f5f9eb06cb6a6ee6be337a2dc43e0d2386113b
2018-04-04 17:54:02 -07:00
Kevin Tang
b47eea6b23 GPS GNSS adapter: connectivity support for engine hub
(1) allow engine hub to be able to receive connectivity
status update
(2) fix kw warning in LocIpc.h

Change-Id: I62ac534639003051a8992c143ff273d5ff66ee5a
CRs-fixed: 2198446
2018-03-07 10:19:24 -08:00
Katz Yamada
73df7e0e6f fix: Default values in GNSS Debug Data
Change default values for accuracies and
uncertainties in GNSS Debug Data to non-
zero constant values.

Bug: 72753638
Change-Id: I075b364ed81c8a466b062ab4d5381c3d4ece1ea6
CRs-Fixed: 2185247
2018-03-02 17:02:28 -08:00
Dante Russo
97f3f3905a remove unused variables for compilation
remove unsed variables and fix few compiler issues

CRs-fixed: 2175735
Change-Id: I635a7503326928f43070aa2224bc3c3d6e1ff929
2018-03-02 09:59:29 +05:30
Yingjie Wang
af34b8d1ac Enhance LocationAPI structs to hold full position
Match the output of izat_remote_api clients with LocationAPI clients.
Fill GnssLocationInfoNotification with missing fields from
GpsLocationExtended and Location structure. And allow one single
callback to report complete position info. Meanwhile, remove fields
from UlpLocation that are no longer used.

CRs-fixed: 2169738
Change-Id: Ib5bd3dd9c065c4b3d6cad32b23167546ad950d06
2018-02-14 13:33:57 +08:00
Bhavna Sharma
5b2f224349 GPS: integrate GNSS engine hub with Gnss Adapter
Integrate GNSS engine hub with Gnss Adapter using dynamically
loadable .so file.

Change-Id: I0420a17628db96447c01b8821e54782f7d992aec
CRs-fixed: 2165862
2018-02-01 22:11:32 -08:00
Saurabh Srivastava
e8fbefa5d2 Updating logic to send empty SUPL server URL
CRs-Fixed: 2164682
Change-Id: I70e68d380e8daff5d568e0e49c3ea90064154b00
2018-01-18 14:40:27 +05:30
Linux Build Service Account
438abebca0 Merge "init condition with attr CLOCK_MONOTONIC" 2018-01-15 23:28:28 -08:00
Baili Feng
52f5cfe9d7 init condition with attr CLOCK_MONOTONIC
Use MONOTONIC time to keep consistence with pthread_cond_timedwait.
CRs-fixed: 2169171

Change-Id: I25f308ff343e2f9f938275a572fbff35b659e782
2018-01-11 19:44:11 +08:00
Saurabh Srivastava
02862b8577 Allow SUPL server NONE config
Clear SUPL server on Modem if configured
as NONE in HLOS config.

CRs-Fixed: 2164682
Change-Id: If104550fddaa64be43e446f8691cab60b1541013
2018-01-10 12:33:21 -08:00
Yingjie Wang
57a5b186c5 Remove system status reset upon delete aiding data
Delete aiding data command would trigger default gnss engine state set.
Rename setDeafultReport with setDefaultGnssEngineStates and remove system
settings reset in it.

Change-Id: I7b5dffe3191b24e9f5bb6d887705fca34ed94013
CRs-fixed: 2151350
2018-01-03 14:52:33 +08:00
Linux Build Service Account
d519abf0c1 Merge "Replace wall time" 2017-12-25 08:03:44 -08:00
Katz Yamada
f3f7a4bf41 Fix incorrect cast to avoid integer overflow
Fix incorrect cast in converting time uncertainty
from integer based source to float.

Change-Id: Ibb75eb1a2d925a7e7ce13275f09a618f241c31bf
CRs-Fixed: 2157401
2017-12-13 12:31:06 -08:00
Baili Feng
edcf000435 Replace wall time
Replace gettimeofday with clock_gettime
CRs-fixed: 2144315

Change-Id: Ie8472d2aedcd0e63b86cc5ff100ce9bb28fd670c
2017-12-05 16:59:41 +08:00
Linux Build Service Account
4f5eb8623b Merge "Fix crash in AgpsManager when accessing invalid pointer" 2017-10-10 21:26:14 -07:00
Bhavna Sharma
de6898af20 Fix crash in AgpsManager when accessing invalid pointer
Crash was happening because a local structure was being
passed over by reference to the MsgTask, as a result
data was being read and saved from the reference when
the local structure was already out of scope.

CRs-Fixed: 2124083

Change-Id: Ifb24652d5b665a47b8ae88f43dd86876274a28cf
2017-10-10 09:22:58 -07:00
Ruifeng Xu
35804b9131 new apis for control xtra throttle
added register and unregister apis of a callback
that listens to XTRA client throttle enablement commands.

Change-Id: Id50e7311516593018113203b5dfa700f0fdc037b
CRs-fixed: 2092629
2017-10-05 12:41:27 -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
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
1f8b3587f2 Merge "Set SUPL_HOST to modem on GnssAdapter init." 2017-09-22 18:37:26 -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
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
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
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
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
Linux Build Service Account
6f104ee746 Merge "Fix to report bearing and speed accuracy" 2017-08-16 02:35:56 -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