Commit graph

205 commits

Author SHA1 Message Date
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
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
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
Linux Build Service Account
619caa5b56 Merge "Disable set debug NMEA bit when unsupported" 2017-07-12 01:57:55 -07:00
Katz Yamada
4971373d94 Disable set debug NMEA bit when unsupported
Avoid setting debug NMEA bit of QMI_LOC_SET_
NMEA_TYPES_REQ message when the feature is
unsupported.

Change-Id: I999654f627eac68042597ee51aff81e8588bfa9b
CRs-Fixed: 2072961
2017-07-11 11:18:17 -07:00
Madhanraj Chelladurai
ea013420db Add QZSS constellation in Gnss_LocSvSystemEnumType
Add QZSS support in Loc SV constellation structure.

Change-Id: I58a989faa8ad4027d9f83fabccd700fa55333ce6
CRs-Fixed: 2053513
2017-07-05 22:25:37 -07:00
Naresh Munagala
f708deaec6 gps time population from GNSS
v2v needs gps time population in izat remote apis

Change-Id: Ibe340a3f834ebe27c552bd1ffe2f20d3b9f50450
CRs-Fixed: 2050993
2017-07-04 21:16:49 -07:00
Linux Build Service Account
7ac8c0331a Merge "Removing header copying to out folder" 2017-07-03 21:13:21 -07:00
Linux Build Service Account
15ae65c5cc Merge "Correct the comment for loc_param_s_type struct" 2017-06-30 23:39:06 -07:00
Yingjie Wang
226e404a8c Correct the comment for loc_param_s_type struct
Change the comment for param_type member of loc_param_s_type
struct:   'f' for float  --> 'f' for double

Change-Id: Ibf9c6bec624bd3900c4b96100c359ed7350becc6
CRs-fixed: 2068995
2017-06-29 14:17:00 +08: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
Linux Build Service Account
1e6d1c02ce Merge "Fixed loc_get_target() and removed 1530 support" 2017-06-26 15:02:24 -07:00
Linux Build Service Account
a3db3b5919 Merge "Adding priority flag for NI and AGPS callbacks" 2017-06-24 16:43:22 -07:00
Kevin Tang
a2cafde5bd Fixed loc_get_target() and removed 1530 support
it is a stale feature, been disconnected for years.

Also tightend up loc_get_target(), as it currently
doesn't get produce a result, but also return -1,
which would cause the next call and every call going
through the entire function every time it is called.

Change-Id: I348d99f690eb8973730112d5edeb870b2be2c6c8
CRs-Fixed: 2062169
2017-06-20 15:21:45 -07:00
Linux Build Service Account
3ee8c353cf Merge "Fixed crash when timerfd_create failed" 2017-06-20 01:35:08 -07:00
Saurabh Srivastava
15830de3b6 Adding priority flag for NI and AGPS callbacks
Adding priority flags while registering NI
handling callback and AGPS handling callback.
To ensure that both NI and AGPS are always
handled by our stack instead of Android
Framework stack.

CRs-Fixed: 2059476
Change-Id: I585328491a7f5d9099287924a03d7710f4e5fda9
2017-06-19 17:54:28 +05:30
Mike Cailean
38af28c322 Fixed crash when timerfd_create failed
Implemented graceful fallback when
timerfd_create is failing for
CLOCK_BOOTTIME_ALARM

Change-Id: I6561be840f37a985104a2766fc4b521d237da3b2
CRs-fixed: 2051787
2017-06-13 14:06:36 -07:00
Linux Build Service Account
8bf78f55ae Merge "Decouple position inject request from assist data" 2017-06-08 11:31:26 -07:00
Linux Build Service Account
25008877c3 Merge "Provide correct SV used_in_fix flag for QZSS" 2017-05-28 00:59:59 -07:00
Harikrishnan Hariharan
0d01cc0b5b Add support for generating NMEA sentences for BDS.
Change-Id: I77ccaac3da4d79ed6d43d1a4e59e4d438ba3d2f3
CRs-Fixed: 2047785
2017-05-28 00:51:38 +05:30
Harikrishnan Hariharan
0029fafd92 Add support for generating NMEA sentences for QZSS.
Change-Id: Ib1350fceeabcb2dc67812641b1f967b1b240cefd
CRs-Fixed: 2036931
2017-05-28 00:44:40 +05:30
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
Dante Russo
566238aab1 Remove libandroid_runtime for treble compliance
CRs-fixed: 2048138
Change-Id: Idc9a3f045c6c44dea6c527ec8c6bf23e9d0a9518
2017-05-25 05:10:38 -07:00