Commit graph

1233 commits

Author SHA1 Message Date
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
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
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
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
Linux Build Service Account
0d4f128260 Merge "fix: Incorrect path to ehub socket directory" 2018-04-26 21:51:44 -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
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
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
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
6530ba80ad update uptimeMillis to get boot time
Change-Id: I0f0c8235898e33ed6cee69d7d4c5a1e9b199c835
CRs-Fixed: 2209099
2018-03-30 14:09:12 +05:30
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
Katz Yamada
8f2e900e9e fix: Typo in LocationDataTypes
Fix typo in SystemTimeStructUnion definition.

Change-Id: Idacfe730b4f56ae53f2c2dea72188788691da0f1
CRs-Fixed: 2206673
2018-03-15 13:13:58 -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
b188a16c87 Merge "feat: Separate LocationAPI.h" 2018-03-07 08:59:26 -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
Katz Yamada
0fc49e8432 feat: Separate LocationAPI.h
Separate LocationAPI.h into ILocationAPI.h for
interface and LocationDataTypes.h for data
structure definitions.

CRs-Fixed: 2148023
Change-Id: I9f375a6057b22cf5bdd0b73a41ba1c010d9e0e4e
2018-03-06 11:05:59 -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
Linux Build Service Account
c5ee86bfdc Merge "Reset MSA/MSB capabilities for APQ targets." 2018-03-02 15:01:24 -08:00
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
Linux Build Service Account
92b643d3ba Merge "moving AGnssCbIface from static to class member" 2018-02-26 13:28:20 -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
85e65f8168 moving AGnssCbIface from static to class member
mAGnssCbIface is a static C++ obj, which ctor may not get
called at load time, but its memory block will only be 0'ed
out.

Change-Id: Ie275f916a01c5eb3bf0a7cfa71b19fe4e0d3e879
CRs-Fixed: 2190347
2018-02-20 19:48:46 -08:00
Naresh Munagala
453ea46352 configuration to ignore PPS pulse at start and after long outage
First PPS pulse is impacting on AP time uncertanity in QDR.
Made necessary changes to ignore first few PPS pulses at startup
and after long gnss RF outage. These parameters are controlled through
IGNORE_PPS_PULSE_COUNT and GNSS_OUTAGE_DURATION in gps.cof.

Change-Id: I19c7495d281b70c393844d02ca83642c2314ab96
CRs-Fixed: 2132152
2018-02-19 03:55:17 -08:00
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
fc36cf958e Merge "Fix compilation issues as a result of LE cleanup" into location.lnx.3.0 2018-02-03 17:33:24 -08:00
Harikrishnan Hariharan
946f536641 Fix compilation issues as a result of LE cleanup
Change-Id: I1f7bb8c3bb4d912c7a743d5807dd7790f1973afd
CRs-fixed: 2181265
2018-02-02 20:15:03 +05:30
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
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
Yingjie Wang
6e98d17e6a Move GNSS_CFLAGS to build/ to be fully included
GNSS_CFLAGS included in pla module cannot be included by all the
modules. Define it in build/target_specific_features.mk to make it
included by the whole project.

Change-Id: Ib13c43a65ecd14a7a97050dd80b4dce6aa8ad339
CRs-fixed: 2168176
2018-01-24 19:39:31 +08:00
Linux Build Service Account
0a5adeaa17 Merge "Updating logic to send empty SUPL server URL" 2018-01-20 15:54:18 -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
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
Linux Build Service Account
07ae32ee01 Merge "Added FDCL reg mask bit and feature support bit" 2018-01-13 10:38:02 -08:00
Linux Build Service Account
603de6f476 Merge "Changing GNSS HAL service class to hal" 2018-01-12 11:36:06 -08:00