Commit graph

227 commits

Author SHA1 Message Date
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
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
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
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
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
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
Katz Yamada
47fa2c06fa Add location client api sockets' strings
Add location client api socket path string
definitions in utils/gps_extended_c.h.

CRs-Fixed: 2196048
Change-Id: Ie2eea05dfe440fa3a96b531fa4ba17605ab53431
2018-04-04 11:58:08 -07:00
Naresh Munagala
7f9ce9ddd0 Add additional parameters in gps extended file
Change-Id: I667b999dc164184d84aac0c5b6c1f3b2e9c761ea
CRs-Fixed: 2183994
2018-03-27 11:59:37 +05:30
Katz Yamada
87c52f1f37 fix: add LOC_LOGi macro in log utility
Add LOC_LOGi macro in log utility

Change-Id: Ib30ce891496d61c10075cac028a80df2a6013a2a
CRs-Fixed: 2209625
2018-03-20 16:29:43 -07:00
Linux Build Service Account
a197343e3c Merge "GPS GNSS adapter: connectivity support for engine hub" 2018-03-08 22:05:04 -08: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
Linux Build Service Account
1edbe5d597 Merge "Define gps user and group id's for Android and LE." 2018-03-07 05:32:27 -08:00
Linux Build Service Account
c5ee86bfdc Merge "Reset MSA/MSB capabilities for APQ targets." 2018-03-02 15:01:24 -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
Harikrishnan Hariharan
c645cb167b Define gps user and group id's for Android and LE.
- Define gps user and group id's for Android and LE.
- Update to use getgrnam for getting group id's.
- Get group id's for child processes for LE also.

Change-Id: I5365dbc1c51eb89ab66ba8652f3ed1c5dbea6eb4
CRs-Fixed: 2183710
2018-03-01 02:58:14 -08:00
Linux Build Service Account
25bf85b355 Merge "Enhance LocationAPI structs to hold full position" 2018-02-27 02:49:59 -08:00
Harikrishnan Hariharan
cd1e0726c8 Reset MSA/MSB capabilities for APQ targets.
- Capabilities MSA/MSB should be reset even if defined in
gps.conf for APQ/QSC targets. Since WWAN modem will not be
available, we need to trigger Standalone fixes only. If MSB
capability is set,then default position mode is MSB.
- Handle the new string "qcs" for baseband for Gen9 APQ targets.
- Make sure that ContextBase::readConfig avoid repeat initialize
for config reading.

Change-Id: Ic0a1e57dd76a88bf4d037cd374ceded84cc0f904
CRs-Fixed: 2193207
2018-02-25 23:28:54 -08:00
Saurabh Srivastava
980d403c81 KW Warning Fix
Check file pointer before closing.

Change-Id: Id9526f6eacf57e282dc0af35d72f571f950b0b0e
CRs-Fixed: 2193268
2018-02-21 16:04:28 +05:30
Kevin Tang
be207684d6 fixing LE hy11 build
define ALOGx for HY11 build, which doesn't have liblog

Change-Id: I151d451997f71179e4c4bba3946d7fd52e1f345f
CRs-Fixed: 2190714
2018-02-15 18:53:49 -08:00
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
Saurabh Srivastava
bb529c50e9 Moving location sockets from /data to /dev
Keeping sockets in /data/vendor/location prevents
unmounting of /data partition after build load.

CRs-Fixed: 2174503
Change-Id: Ib1b9f07bb25368ac7d1a32536e58c52dd2b2ad4e
2018-02-06 00:42:27 -08:00
Linux Build Service Account
07883c075d Merge "fix: LocIpcSender returns incorrect result" 2018-02-01 15:46:23 -08:00
Katz Yamada
ec59dd2aae fix: LocIpcSender returns incorrect result
LocIpcSender::send() doesn't return correct
boolean result code. It always returns false
even it is successfully sent.

Change-Id: I74d85501f5d097dc1ede4dea5b2d9c9d752affda
CRs-Fixed: 2179096
2018-01-31 15:38:03 -08:00
Bhavna Sharma
9d1b106156 GPS cfg: add routines to parse process info
Make routine to parse process info defined in conf file
a util routine so it can be shared among modules

Change-Id: I934c7346aee377eeebf4cdf4738bcfcc943840e1
CRs-fixed: 2174890
2018-01-31 11:29:55 -08:00
Kevin Tang
61de97e130 LE clean up
separated utils, core, ds and loc-api-v02 from loc-hal into their
own independent packages; simplified loc-pla; moved pla to the
root of project; removed loc-stub.

Change-Id: I373f02f9306646addf55ae90d71c4ba8e3741d09
CRs-Fixed: 2172544
2018-01-16 13:35:38 -08:00
Linux Build Service Account
438abebca0 Merge "init condition with attr CLOCK_MONOTONIC" 2018-01-15 23:28:28 -08:00
Linux Build Service Account
e301338767 Merge "LocIpc: enhance startListeningNoBlocking with ready callback" 2018-01-15 18:02:28 -08:00
Kevin Tang
4cac1baf97 LocIpc: enhance startListeningNoBlocking with ready callback
For startListeningNoBlocking, for callers that need to know
when the socket is actually being created and ready to receive
message, this change allows callback to be invoked when socket
is ready.

Change-Id: Ie7c6eb1a3966371d84fc98109f07805ac7d4e3a1
CRs-fixed: 2169568
2018-01-15 10:18:49 -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
Dante Russo
65e3760d6d Added FDCL reg mask bit and feature support bit
Also change the reg mask to 64 bit since we now
have more than 32 possible bits.

CRs-fixed: 2129134
Change-Id: I006f5fffac3d9dd2d96ca82d84f49bde96bc0f55
2018-01-09 18:05:42 -08:00
Linux Build Service Account
d519abf0c1 Merge "Replace wall time" 2017-12-25 08:03:44 -08:00
Katz Yamada
99e0f11428 Location Utils - LocIpc class enhancement
Add LocIpcSender class and add an overloaded
send method in LocIpc class that takes binary
data block.

Change-Id: I102f23fe8bf378c3bed5cac0086aa9773c62727b
CRs-Fixed: 2144883
2017-12-18 11:37:24 -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
68883097b4 Merge "Location Utils - Improve send method of LocIpc" 2017-11-21 00:24:36 -08:00
Katz Yamada
104f1fee14 Location Utils - Improve send method of LocIpc
Change LocIpc::send() method implementation from
regular member to static, since it does not modify
any of its class member variables. Sender code
should be able to call this method without creating
an instance.

Change-Id: I9d08404c3fae615fd20531904241bf2e246fa592
CRs-Fixed: 2143522
2017-11-16 10:48:11 -08:00
Baili Feng
ccd6716531 Fix $--RMC sentence
Navigational status should be the last element

Change-Id: Ifb201fe95de74e3419e7fe55c55657b41818c64d
CRs-fixed: 2140835
2017-11-09 19:30:14 +08:00
Baili Feng
08cbff337d Adjust NMEA sentence to comply with v4.1
1. Add Navigational status to $--RMC sentence
2. Add Signal ID to $--GSV sentence

Change-Id: I5ae26bed8dcca577ee661a4129858a8482d172a6
CRs-fixed: 2109692
2017-11-07 22:02:11 -08:00
Harikrishnan Hariharan
5f583c6375 Enable logcat logging for location modules in LE
Add support for logcat logging for location modules
in LE, by adding appropriate flags -llog to LDFLAGS.
Update logging macros to use ALOG* so that logs can
be outputed using standard logcat adb commands.

Change-Id: I94b5a1e9f0b4ec78a55e7189002e0f674ef174d2
CRs-Fixed: 2117669
2017-10-16 14:44:36 +05:30
Harikrishnan Hariharan
e22e04dbe2 Fix compilation errors in xtra-daemon for LE.
Fix compilation errors in xtra-daemon in LE for changes made
as part of adding biway IPC communication changes. New files
created are added as part of LE Makefile.

Change-Id: Ic0f0d60dd85eea38bb47753aea4fccfb3070d64c
CRs-Fixed: 2122852
2017-10-07 15:19:19 +05:30
Ruifeng Xu
b0982b4476 add HAL socket
this patch contains the following changes:
1. added header and implemenation files of socket util apis
in libgps.utils; 2. updated XtraSystemStatusObserver to use
the new apis; 3. added HAL socket and new thread to listen to it.

Change-Id: If1f6b4b4d6ea2d03640f68e96f0286300404f42b
CRs-fixed: 2108635
2017-10-05 11:33:37 -07:00
Naresh Munagala
a5c7e2c53d extended gdop parameters in interface files
updated interface files with extended gdop parameters.

Change-Id: Ie31311125e66d26dab4f564be7120fae374b9d2c
CRs-Fixed: 2062856
2017-10-04 22:57:34 -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
6f104ee746 Merge "Fix to report bearing and speed accuracy" 2017-08-16 02:35:56 -07:00
Baili Feng
4c9c783989 Clean up compiler warning message
CRs-Fixed: 2070597
Change-Id: Ic57f5211a4e4b9112888435d54df7a361bcb6767
2017-08-01 18:17:20 +08:00
Linux Build Service Account
7cc7da646c Merge "Fix 2.9-rel compilation issues on LE" 2017-07-27 03:43:51 -07:00
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