Commit graph

927 commits

Author SHA1 Message Date
Dante Russo
2e87b20579 Check Null on call to LocationAPI::addGeofence
We need to handle the case where addGeofence returns
Null, which can happen on error conditions, like when
dlopen/dlsym libgeofence.so fails

Bug: 36407968
CRs-fixed: 2022286
Change-Id: Ib612d92b77cf5532ad19154c57ee0545674d88f9
2017-03-23 12:28:52 -07:00
Dante Russo
af318504e2 Addition of vertical/speed/bearing accuracy feilds
Fill in the new feilds of vertical/speed/bearing accuracy
into hidl structure

CRs-fixed: 2021399
Change-Id: I409e2559e671e65c307758ee273c64f98f650c11
2017-03-22 17:39:50 -07:00
Linux Build Service Account
db80463553 Merge "set default supl config to MSB" 2017-03-21 19:20:48 -07:00
Linux Build Service Account
a7423ca85d Merge "possible NULL pointer dereference" 2017-03-21 19:20:47 -07:00
Linux Build Service Account
bf3d1332f4 Merge "Add comments for automitive configuration param and meas status" 2017-03-21 01:39:57 -07:00
Linux Build Service Account
717e33675c Merge "Updating ro.baseband target property value" 2017-03-20 19:04:31 -07:00
Linux Build Service Account
dc1cdf086d Merge "Fix issue of incorrect set of used_in_fix flag" 2017-03-20 19:04:31 -07:00
Linux Build Service Account
ffc98a5ad5 Merge "Update the device node to check for MDM systems" 2017-03-20 19:04:30 -07:00
Linux Build Service Account
36840b0a66 Merge "getprogname is not defined in glibc" 2017-03-20 13:20:52 -07:00
Saurabh Srivastava
b37098920f Moving conf files to /vendor/etc
Moving all vendor specific conf files to /vendor/etc instead of
current /etc folder

CRs-Fixed: 1099981
Change-Id: I4495d8527941959be0847c4722ea8b68ee6c87ee
2017-03-17 16:12:54 -07:00
Dante Russo
b6928aae36 Send capabilities callback for each init
Added sending the capabilities to hal clients
on every init, instead of only on the first init.
This is needed for the cases when the hal client
crashes and is trying to reinit.

Bug: 36182606
Change-Id: I9055d2319f1dc407b6de9627b4e66eb89f8ce9d1
CRs-fixed: 2019987
2017-03-17 14:52:01 -07:00
Kevin Tang
5253a74c6b possible NULL pointer dereference
it appears some of the MsgTask msgs might fail
to create, ending up with a NULL pointer, in
which case when it gets received, dereferencing
a NULL pointer will happen, causing crash.

Change-Id: I5a4295b4fba9c8383754e2abe6558782b1b83143
CRs-Fixed: 1106034
2017-03-15 19:23:41 -07:00
Madhanraj Chelladurai
d35e7c34eb Add comments for automitive configuration param and meas status
Add comments for automotive configuration parameters and to
masurement status mask

Change-Id: Ia5e16e3044fa15ce15d6ce3c3534898cbd61ef03
CRs-Fixed: 1102724
2017-03-15 19:22:14 -07:00
Saurabh Srivastava
54aa95888b Updating ro.baseband target property value
Updating target derivation logic based on ro.baseband property.
There are new values which must be considered in the target
derivation logic.

Change-Id: I2e81ab00c107247dcb8f1a919136bb61b482e73c
CRs-Fixed: 1105916
2017-03-15 19:20:54 -07:00
Harikrishnan Hariharan
ff37310f17 Fix issue of incorrect set of used_in_fix flag
Due to incorrect check for SVID for GNSS systems in location
engine ReportSv function, incorrect used_in_fix flag was set.
Modify the condition check to be based on the constellation
system ID, to set the used_in_fix flag.

Change-Id: Ic74583257c2925361dc68a9865cd80271167bf0c
CRs-Fixed: 1102862
2017-03-16 10:17:39 +08:00
Harikrishnan Hariharan
da20b15129 Update the device node to check for MDM systems
To identify the target as MDM, we need to check for "/target"
node mdm targets instead of "/dev/mdm".

Change-Id: Ibb53acfd06a0a586f2cdca784f475d0a45718581
CRs-Fixed: 1101185
2017-03-15 19:10:32 -07:00
Naresh Munagala
babc8a9f7c set default supl config to MSB
Default SUPL config bit was set to both
MSA and MSB (0x3), which is causing single shot
request to map to MSA mode always. Modem is not
reporting any position fix for MSA case.

Change-Id: I8a75f9970a0443c9cb22f73a631f85240fcc4519
CRs-Fixed: 1098896
2017-03-16 10:04:52 +08:00
Kevin Tang
3fb8076a5e fixing a race condition on MsgTask::destroy()
when MsgTask::destroy() happens, msg_q_unblock() triggers
the running thread to come out from blocking state. A race
condition may happen such that that thread may complete
first, causing msgTask obj to be already deleted. A next
allocation may change the value at MsgTask::mThread. Then
when control comes back to destroy(), it may try to check
mThread and call delete on it to crash the program.

mThread is a heap obj, so it is possible to delete it after
the hosting msgTask obj is deleted.  We just have to keep
its value on the stack before calling msg_q_unblock().

Change-Id: If15884815eea05fbfa523ec92aa300ed21ef897c
CR-Fixed: 1091530
2017-03-15 18:33:17 -07:00
Kevin Tang
4d84d3669c getprogname is not defined in glibc
need to remove get_process_name as it is removed
from libcutil. Call getprogname is available in
libc but not LE glibc. Implementing a simple call
wrapper.

Change-Id: I68244b9f7fcbc290222b074f80da03330315ea29
CRs-Fixed: 1080605
2017-03-15 18:10:42 -07:00
Madhanraj Chelladurai
681388fa8d Enable Measurement and poly for QDR for automotive usecase
We need to enable Measurement and polynomial reports and need to
send it to QDR Core for it to compute fix and report back DR fix,
hence need to enable them in automotive QDR use case

Change-Id: I8ad29402ded424bbc5a4fd9f6cab74fa7b09f86b
CRs-Fixed: 2017935
2017-03-10 17:22:03 +05:30
Linux Build Service Account
279d118562 Merge "Rename FlpAPIClient and GnssMeasurementAPIClient" 2017-03-07 19:18:51 -08:00
Baili Feng
545f52f6b5 Rename FlpAPIClient and GnssMeasurementAPIClient
FlpAPIClient renamed to BatchingAPIClient
GnssMeasurementAPIClient renamed to MeasurementAPIClient

Change-Id: Ic0fae37fd1d798796cb918ddcf141913c6cc3c6e
CRs-fixed: 1112712
2017-03-07 09:32:33 +08:00
Saurabh Srivastava
5fecc1979b Adding ATL call flow to new Loc API interface
Re-designed the ATL call flow, to fit along with
updated Location API.

Change-Id: If22e672d1c233c55b6b52107be7169b3036d9a3e
CRs-fixed: 1112712
2017-02-28 16:59:38 -08:00
Dante Russo
52b413eb44 hidl gnss hal 1.0 implementation
Overwrites the default hidl gnss hal implementation
to interface directly to LocationAPI

CRs-fixed: 1112712

Change-Id: I3385911956c0c6c457202a8584b108046c587b36
2017-02-28 16:47:59 -08:00
Dante Russo
c85c8ff673 LocationAPI implementation
Implementation of LocationAPI into gps hal
to be a common API that is called into by platform
specific APIs.

Change-Id: Ie5a7bd217d4ae2175ad49e6aca2fb6ecd4702f3b
CRs-fixed: 1112712
2017-02-28 16:47:50 -08:00
Baili Feng
4bb940c067 Decouple libhardware usage on LE for gnss models
Remove all usage of gps.h and fused_location.h
from all gnss models except gps/fpl hal librarys

Change-Id: I90ba233c6bbe5c31a4cacceeb981833719c871f2
CRs-Fixed: 1067953
2017-02-14 16:51:32 -08:00
David Ng
f871943dc5 Add explicit liblog dependency
Explicitly add liblog as dependency for modules that use Android
logging.  Also remove obsolete build flag.

Change-Id: I91a458b44ff34c91a8f6875f5c3e931f620c613a
2016-12-08 23:53:21 -08:00
Linux Build Service Account
539c17f2bb Promotion of location.lnx.2.0-00040.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1073101   Ie784dad73ae8d6d91cf4cb87efe938af9015a7a2   Reinitialize dataservice client post SSR
1080013   I98f3f4e7836de86f9025bae446cdeac6d1eb5862   Mark SV used_in_fix based on the most recent position re

Change-Id: Ia31751b3b8909737b8c8d50eb96b1331da8f3c05
CRs-Fixed: 1080013, 1073101
2016-11-08 19:12:59 -07:00
Linux Build Service Account
da6012a581 Merge "Reinitialize dataservice client post SSR" 2016-11-04 18:35:33 -07:00
Harikrishnan Hariharan
1de8a18031 Reinitialize dataservice client post SSR
On SSR invoke dsi_release() and dsi_init(Mode_SSR) to recover
data call functionality post SSR.

Change-Id: Ie784dad73ae8d6d91cf4cb87efe938af9015a7a2
CRs-Fixed: 1073101
2016-11-03 01:45:29 -07:00
Linux Build Service Account
5086ce0b46 Promotion of location.lnx.2.0-00036.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
994048   I5654f9ab417ffea86ed8653731df1ca47cf7e733   Combo Provider 2.0

Change-Id: I1c8510b9fc885ba899ee8c7e00376e4813a2ef59
CRs-Fixed: 994048
2016-10-28 07:32:38 -06:00
Harikrishnan Hariharan
90a730d179 Mark SV used_in_fix based on the most recent position report
When SV report comes, mark used_in_fix based on the most recent
position report.

Change-Id: I98f3f4e7836de86f9025bae446cdeac6d1eb5862
CRs-Fixed: 1080013
2016-10-28 02:54:43 -07:00
Linux Build Service Account
22bc3b7851 Promotion of location.lnx.2.0-00035.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1036937   I71d5cb847fc6a66227137b2b424f7e631e09cae8   Platform specific changes for QDR

Change-Id: I8400106acae6e4161b476c1c963321396a7cca05
CRs-Fixed: 1036937
2016-10-26 07:03:19 -06:00
Linux Build Service Account
c75f2c6908 Merge "Combo Provider 2.0" 2016-10-25 15:05:55 -07:00
Linux Build Service Account
13cd52056a Promotion of location.lnx.2.0-00031.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1075611   Id2f560d88294ab98441005bf54be799af9ed3f8b   Remove USE_EMERGENCY_FOR_EMERGENCY_SUPL and SUPL_ES in g

Change-Id: If06378be6221054018daa142f785b5a50d998477
CRs-Fixed: 1075611
2016-10-14 11:56:20 -06:00
Naresh Munagala
dad844f3e0 Platform specific changes for QDR
Added platform specific abstraction apis
for timer modules

Change-Id: I71d5cb847fc6a66227137b2b424f7e631e09cae8
2016-10-12 22:37:13 -07:00
Dante Russo
2110e55809 Remove USE_EMERGENCY_FOR_EMERGENCY_SUPL and SUPL_ES in gps.conf
These values can be configured per SIM so they should
not be overriden by gps.conf by default. They're left
commented out so that it can still be uncommented to
allowing overriding SIM configuration for testing
purposes

Change-Id: Id2f560d88294ab98441005bf54be799af9ed3f8b
CRs-fixed: 1075611
2016-10-09 03:11:52 -07:00
Linux Build Service Account
8d2aa30c47 Promotion of location.lnx.2.0-00028.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1055201   Ia27fe0d805f53bf17c86f7c27eaaedd960101370   NMEA report indication to ULP

Change-Id: I50fee4ba0c0c4e49f0df611acde244e80ad85f56
CRs-Fixed: 1055201
2016-09-28 14:13:33 -06:00
Linux Build Service Account
558cdc748e Promotion of location.lnx.2.0-00027.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1067691   I6736e5f4320d4c35bc5bbb8272b45e14f66988c3   GTP WWAN should work even if MSA/MSB is not enabled

Change-Id: Iad7fb41532d49d205831a79a8fc926cc02673702
CRs-Fixed: 1067691
2016-09-23 20:31:03 -06:00
Naresh Munagala
dcd5af2915 NMEA report indication to ULP
Enabled NMEA report indication to to ulp

Change-Id: Ia27fe0d805f53bf17c86f7c27eaaedd960101370
CRs-Fixed: 1055201
2016-09-21 10:28:28 +05:30
Harikrishnan Hariharan
0ac11fcd84 GTP WWAN should work even if MSA/MSB is not enabled
GTP WWAN should work even if MSA/MSB is not enabled in
capabilities. Removing wifi_nif we don't need it any
more.

Change-Id: I6736e5f4320d4c35bc5bbb8272b45e14f66988c3
CRs-Fixed: 1067691
2016-09-16 21:23:41 -07:00
Linux Build Service Account
c220d2d1e7 Promotion of location.lnx.2.0-00025.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1058559   I4e5c3f09c097b835d8a685a8b465eb86dd06cd7a   Fix race condition when GPS app is closed around an SSR

Change-Id: I33e8ccbabe078be7cf522a79c84278219acbda93
CRs-Fixed: 1058559
2016-09-14 10:50:27 -07:00
Linux Build Service Account
e87c4e2344 Promotion of location.lnx.2.0-00024.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1051996   I2cd436d61bab09386aaa813e85591e02f560b41e   Generate GAL NMEA sentences at AP side
1060111   I621e99f5be5524a58f416ff2e1325d921c8d0546   Adding TARGET_NO_GNSS check while creating LocApi
1055694   Ieb2c765a9f1999e9fbc9f69c3b59cef3c03913a8   Update SV ID field as 16 bits in GnssSvPolynomial

Change-Id: I366b3befb342e22d46f01c6eac135a927232dad6
CRs-Fixed: 1051996, 1055694, 1060111
2016-09-09 19:02:20 -06:00
Dante Russo
5b4dbc2e55 Combo Provider 2.0
Part of overall Combo Provider 2.0 changes.
This fix changes getBestWwanPosition API from
sync to async, as the QMI API used can now take
longer to produce a position

CRs-fixed: 994048
Change-Id: I5654f9ab417ffea86ed8653731df1ca47cf7e733
2016-08-30 14:28:36 -07:00
Harikrishnan Hariharan
3493ce50e4 Fix race condition when GPS app is closed around an SSR event
Fix race condition to get avoid stuck in modem if GPS application
is closed right around a SSR event.This fix will prevent resume the
session once HAL loc_stop has been called.

Change-Id: I4e5c3f09c097b835d8a685a8b465eb86dd06cd7a
CRs-Fixed: 1058559
2016-08-30 05:32:50 -07:00
Saurabh Srivastava
7424ac78ed Adding TARGET_NO_GNSS check while creating LocApi
In case target is APQ no WGR, create a dummy LocApiBase
instance.

Change-Id: I621e99f5be5524a58f416ff2e1325d921c8d0546
CRs-Fixed: 1060111
2016-08-29 07:53:38 -07:00
Linux Build Service Account
81d0cbb94d Merge "Generate GAL NMEA sentences at AP side" 2016-08-26 13:55:06 -07:00
Baili Feng
b707704985 Generate GAL NMEA sentences at AP side
Generate GAGSV sentence at AP side when
NMEA Provider is set to AP in gps.conf

Change-Id: I2cd436d61bab09386aaa813e85591e02f560b41e
CRs-fixed: 1051996
2016-08-25 14:22:28 +08:00
Santoshkumar Zalake
43bb1d24be Update SV ID field as 16 bits in GnssSvPolynomial
Change SV ID field in GnssSvPolynomial structure
to support new constellations

Change-Id: Ieb2c765a9f1999e9fbc9f69c3b59cef3c03913a8
CRs-Fixed: 1055694
2016-08-19 04:02:29 -07:00
Linux Build Service Account
5b1ad2d8ee Promotion of location.lnx.2.0-00019.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1048907   I5a847c82170fba3847c0132d196cd27a3757b662   Upgrade LE.UM.0.0 to use location.lnx.2.0-rel
1034009   Ib7efe6b3c68677d60cdcc4efebfc04c4db39de32   deprecate legacy NTP time download

Change-Id: Ib741c17c36b2b311bf8df3c1dee5d82a7cad146c
CRs-Fixed: 1034009, 1048907
2016-08-18 03:32:49 -06:00