Commit graph

298 commits

Author SHA1 Message Date
Harikrishnan Hariharan
06d7e5bbba Request for a data item value is not handle by SSO
Subscribe for a data item first time adds the DI to internal
SSO client list. When the request comes for after this, since
item is already added, dataItemsToSubscribe will be empty. So
the code for request value for DI is not invoked. Handle this
scenario in SSO.

Change-Id: Ife04fe4eedc9b3132e7967f781b0e29ac41c01e7
CRs-Fixed: 2347338
2018-11-20 14:17:58 +05:30
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
Linux Build Service Account
837f245997 Merge "New additions for Ephemeris and Poly handling" 2018-10-05 12:51:44 -07:00
Harikrishnan Hariharan
2f80dcc30c Handling network types not available in IAgnssRil enums
Handling network types not available in IAgnssRil enums like
Bluetooth, Ethernet, Proxy etc. Pass these network type info
to framework, rather than sending the default TYPE_UNKNOWN.

Change-Id: I7e997b82b07ca68d928bef322182031a2d47e532
CRs-Fixed: 2325210
2018-10-03 04:15:35 -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
Linux Build Service Account
b18e6f9b8c Merge "FR47184: tunc constrained and position assisted time estimator" 2018-09-28 10:36:11 -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
Harikrishnan Hariharan
352ffcb3c5 Pass Framework Action request object to HandleTurnOn msg task
Currently Sys Status OS Observer object was being passed, due
to which actual turn on functionality in Framework action
request object was not being invoked.
Implement equals for SystemStatus class for BT scan device data
so that it is handled correctly in setIteminReport.

Change-Id: Ie7f24a1eaf886a2402698489bfd1d0ddc34585cf
CRs-Fixed: 2321041
2018-09-24 00:21:04 -07:00
Madhanraj Chelladurai
2ed4407e7c gps: use common compilation flag for the same functionality
modify the compilation flag to be in alignment with the location
services library

Change-Id: Ie65e6e803c50524c0913b1475edbf556a5b7f207
CRs-Fixed: 2299356
2018-09-17 11:27:39 -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
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
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
Linux Build Service Account
3379b6645d Merge "Add jammer indication" 2018-08-21 14:29:45 -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
Baili Feng
de454e21f6 Filter DataItems with suitable way.
We should carefully modify unordered_set when traversing it.
Update the iterator with the return value of erase function.

Change-Id: I777f42b077502f617a513128db9a4f3b7c9a322c
CRs-Fixed: 2288358
2018-08-16 19:11:13 +08:00
Linux Build Service Account
329de0d44f Merge "SAP:update SENSOR_CONTROL_MODE configuration" 2018-08-14 03:46:00 -07:00
Katz Yamada
8a752aa1b3 Systemsatus - add support older version of PQWME
Add support of older (shorter) version of PQWME
strings from modem. Systemstatus currently discards
those shorter strings. This change is to fill out
all zeros in those missing fields instead of
discarding the whole sentence.

Change-Id: I31c42b6de53c3002f598cfd815304086bba056f9
CRs-Fixed: 2153513
2018-08-08 20:42:19 -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
Kevin Tang
a8f926020f Delete LocApiBase and derived class on msgTask thread
Direct delete of the API obj on caller thread could result
in a race condition that caller still has close() or other
handling running at the same time the API object is being
or already deleted.

CRs-Fixed: 2275383

Change-Id: I5d3de204befec3c22c73cece8516e90800abbd35
2018-07-30 16:17:37 -07:00
Saurabh Srivastava
aa6481f638 Print QZSS SV ID with offset
Adding QZSS SV ID offset for
logging.

Change-Id: I19fc6ba93d222b0646e3f6e2e59fe84ce42fbae4
CRs-Fixed: 2272374
2018-07-04 08:12:39 -07:00
Linux Build Service Account
021821ce54 Merge "Added optional MO SUPL SLP" 2018-06-29 01:39:07 -07:00
Kevin Tang
802e89fcdf fixed data items for service and cell info
which right now are not keeping any data into the SSOO's table,
therefore it is not able to determine if the new data arrives is
different than the current one. This results in not passing the
following data updates to the clients.

Change-Id: Ieb94e959228d9a9f8d43b090f3328208387d864f
CRs-Fixed: 2239616
2018-06-27 18:22: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
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
Mike Cailean
7dfa87b244 Support Multiband feature
Add carrierFrequency to GNSS Measurements
reporting. Also, add AGC level from QMI LOC
message to GNSS measurements (as opposed to
adding it from NMEA debug messages).

CRs-fixed: 2186144

Change-Id: Ia3995ba9e09ef4c68e8922b7570f7af0eb50098a
2018-06-16 11:27:26 -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
Linux Build Service Account
f7981a3c11 Merge "SUPL connection enhancements" into location.lnx.4.0 2018-06-11 21:55:21 -07:00
Linux Build Service Account
7ebdafbe04 Merge "DataItem changes to fix incorrect NetworkInfo connect handling" into location.lnx.4.0 2018-06-11 18:28:13 -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
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
Kevin Tang
dd85ce83f3 DataItem changes to fix incorrect NetworkInfo connect handling
NetworkInfoBaase added a type to allTypes protected method so
that derived class can use it. Also, the SystemStatusNetworkInfo
no longer compares names in its equal(), as it only is going to
return false when comparing GnssLocationProvider NetworkInfo and
OsAgent NetworkInfo.

Change-Id: I363f27f4ed7be4aab2a4c4c033d5dff69d0a47d9
CRs-Fixed: 2251564
2018-06-06 15:35:57 -07:00
Mike Cailean
745505e5be Vote for internal modem only
Vote for internal modem only in power vote
temporary fix until we process a .jsn file

Change-Id: I732f920a0c18976b0f1323501e0e5541b11d5887
CRs-fixed: 2247589
2018-06-06 11:14:40 -07:00
Bhavna Sharma
0344cc7901 Change prototype of getWwanZppFix API
No need for return value as it will be
handled asynchronously.

CRs-Fixed: 2250516
Change-Id: I7c3ce33cb61688a8cb206c397a69bf192c92beb1
2018-06-04 23:43:43 -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
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
113b20c3fc Merge "Fixed a number of issues with NetworkInfoDataItemBase" 2018-05-18 08:14:04 -07:00
Kevin Tang
80e09f69b6 Fixed a number of issues with NetworkInfoDataItemBase
There are a couple of issues. NetworkInfoDataItemBase
objects might be from OsAgent or GnssLocationProvider.
The two sources actually have mTypes defined differently.
In addtion, when there are different types of connections
such as wifi / mobile, getting connected / disconnected
independently, clients need to be all notified correctly.

Right now, if mConnected hasn't changed, no updates are
send. For exmple, if mobile is connected, later wifi
gets connected too, clients won't know.

SystemStatus is also updated to get updated / colated
informtion. In the above example, SystemStatus's top
record would record as both mobile and wifi are connected.

Change-Id: I1825902247fe1d4e6363f5e24a75be7e984d0dc4
CRs-Fixed: 2221114
2018-05-14 12:24:06 -07:00
Kevin Tang
36da980fea changed SystemStatusOsObserver
to allow clients to subscribe before subscription obj
arrives, and also simplified ClientIndex and DataItemIndex
implementation significantly.

Change-Id: I092f344e688fa698aa98795b8a8f0c1ba8fcd9e4
CRs-Fixed: 2218519
2018-05-14 12:20:31 -07:00
Kevin Tang
86e1b52c81 renamed DataItemIndex and ClientIndex files
and moved them into utils.

Change-Id: I138471168bf58d2cf09c6a435088edea29a567d0
CRs-Fixed: 2218519
2018-05-14 12:20:17 -07:00
Harikrishnan Hariharan
c0243c4ef5 Fix KW issues in IOsObserver
Fix KW issue in IOsObserver of non-void function not
returning value.

Change-Id: I8c4bc8939fe1518f28ff66029e6e000a3e9fef75
CRs-Fixed: 2239733
2018-05-13 23:50:31 -07:00
Kevin Tang
7bbc063ad2 Fixed a number of issues with NetworkInfoDataItemBase
There are a couple of issues. NetworkInfoDataItemBase
objects might be from OsAgent or GnssLocationProvider.
The two sources actually have mTypes defined differently.
In addtion, when there are different types of connections
such as wifi / mobile, getting connected / disconnected
independently, clients need to be all notified correctly.

Right now, if mConnected hasn't changed, no updates are
send. For exmple, if mobile is connected, later wifi
gets connected too, clients won't know.

SystemStatus is also updated to get updated / colated
informtion. In the above example, SystemStatus's top
record would record as both mobile and wifi are connected.

Change-Id: I1825902247fe1d4e6363f5e24a75be7e984d0dc4
CRs-Fixed: 2221114
2018-05-05 21:34:17 -07:00
Kevin Tang
0c73d40376 changed SystemStatusOsObserver
to allow clients to subscribe before subscription obj
arrives, and also simplified ClientIndex and DataItemIndex
implementation significantly.

Change-Id: I092f344e688fa698aa98795b8a8f0c1ba8fcd9e4
CRs-Fixed: 2218519
2018-05-05 21:24:29 -07:00
Kevin Tang
3983768598 renamed DataItemIndex and ClientIndex files
and moved them into utils.

Change-Id: I138471168bf58d2cf09c6a435088edea29a567d0
CRs-Fixed: 2218519
2018-05-05 21:24:02 -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
80e61626c6 Merge "Add correct libs to LOCAL_HEADER_LIBRARIES" 2018-04-25 21:21:09 -07:00
Dante Russo
37d34d0dc8 Assure event mask is set properly to get positions
The event mask can be retrieved in the context of
client thread as zero and then queued up to go to
msg task thread. By the time the msg is actually
handled in msg task thread, the actual event
mask at LOC API layer may have already changed, but
this mask would then be overridden by zero. This
can cause no modem events to ever come, including
position reports.

The fix is to not retrieve the event mask in the
client thread, but instead wait for msg to be
handled in msg task thread before retrieving it.

Change-Id: I48562d028bbfa187732686c060b5cdd62c6d5a89
CRs-fixed: 2219519
2018-04-24 00:38:49 -07:00