Commit graph

1276 commits

Author SHA1 Message Date
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
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
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
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
Linux Build Service Account
53695be16c Merge "Vote for internal modem only" into location.lnx.4.0 2018-06-06 22:36:25 -07:00
Linux Build Service Account
bbfa97a329 Merge "Include filesystem_config header from cutils" into location.lnx.4.0 2018-06-06 15:43:27 -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
Linux Build Service Account
dab99a6cb5 Merge "Add AGC value for QZSS measurement report" into location.lnx.4.0 2018-06-05 19:17:11 -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
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
Baili Feng
daff821d9c Include filesystem_config header from cutils
We can not include header file from private folder.
Include it from cutils instead.

Change-Id: Ib0995ecfa1bef600c346bc5d055212103578fcae
CRs-Fixed: 2254045
2018-06-05 12:59:11 +08: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
Dante Russo
a93b10c677 Update location supported feature enum
Update location supported feature enumeration
to match MP (constellation enablement, agpm,
xtra integrity)

Change-Id: I8cad9d8e09ebed3d16a32f63172bc7b3619a8969
CRs-Fixed: 2118920
2018-06-01 10:39:05 -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
a0f260d23c Merge "fix: Creating LocationAPI object rejected" 2018-05-18 22:13:11 -07:00
Linux Build Service Account
113b20c3fc Merge "Fixed a number of issues with NetworkInfoDataItemBase" 2018-05-18 08:14:04 -07:00
Katz Yamada
1f5fa2def4 fix: Creating LocationAPI object rejected
LocationAPI::createInstance() to accept
if any one of gnssNiCb, trackingCb,
gnssLocationCb or gnssMeasurementsCb is set.

Change-Id: I3d026cd608aca2b9e0ee93617e10dc0b32e37849
CRs-Fixed: 2218707
2018-05-17 08:57:00 -07:00
Katz Yamada
8bda43ca51 fix: LocIpc client app unable to exit
LocIpc client apps such as garden app is unable
to delete LocIpc object since its socket listening
thread cannot be closed while it is waiting for
data and cannot be closed. Fixed to close it by
sending an abort message.

CRs-Fixed: 2213212
Change-Id: I95f26862e9faf7bd75a2f447421ba4ab7220576e
2018-05-15 09:48:34 -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
Katz Yamada
2ade2811c6 fix: LocIpc client app unable to exit
LocIpc client apps such as garden app is unable
to delete LocIpc object since its socket listening
thread cannot be closed while it is waiting for
data and cannot be closed. Fixed to close it by
sending an abort message.

CRs-Fixed: 2213212
Change-Id: I95f26862e9faf7bd75a2f447421ba4ab7220576e
2018-05-10 14:49:36 -07:00
Saurabh Srivastava
f906756e7b Adding Location Service Modem Emulator
Adding Modem Emulator to test features
not yet supported in Modem build.

Change-Id: I86f4eeaa7577d83c5ef9605c78672068721c020e
CRs-Fixed: 2193247
2018-05-08 23:27:51 -07:00
Katz Yamada
43699ba79c fix: Incorrect time estimate in debug report
GNSS Time estimate shown in Gnss debug report
is incorrect. It always shows default value
instead of value delivered by PQWM1 message.

Change-Id: Iff471613ac6fa25d213c14b543871b6c3ae7af0a
CRs-Fixed: 2235219
2018-05-07 10:05:34 -07:00
Katz Yamada
664e643170 fix: Incorrect time estimate in debug report
GNSS Time estimate shown in Gnss debug report
is incorrect. It always shows default value
instead of value delivered by PQWM1 message.

Change-Id: Iff471613ac6fa25d213c14b543871b6c3ae7af0a
CRs-Fixed: 2235219
2018-05-07 09:45:20 -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
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
0d4f128260 Merge "fix: Incorrect path to ehub socket directory" 2018-04-26 21:51:44 -07:00
Linux Build Service Account
80e61626c6 Merge "Add correct libs to LOCAL_HEADER_LIBRARIES" 2018-04-25 21:21:09 -07:00
Katz Yamada
f93ec50a05 fix: Incorrect path to ehub socket directory
Change-Id: I58b41c4a8de8b51c8a6effe989182ea5942cff6e
CRs-Fixed: 2196048
2018-04-25 11:12:15 -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
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
Baili Feng
594a0d7ab4 Add correct libs to LOCAL_HEADER_LIBRARIES
Vendor code should not include AOSP headers
by absolute path or global path.
CRs-fixed: 2228157

Change-Id: I84a4d0b9b9fe3a20713eea07e926aba5d665b435
2018-04-20 11:23:14 +08:00
Linux Build Service Account
30eb32573c Merge "Add location client api sockets' strings" 2018-04-14 14:31:59 -07:00