Commit graph

9 commits

Author SHA1 Message Date
Baili Feng
1a128bd7cd Split control apis to a separate class
Move control apis to LocationAPIControlClient.
There should be only one instance of it per process.

Change-Id: I5969e6b3ad45f3fc5bfe4f4cd543a077c540c3ea
CRs-Fixed: 2064389
2017-06-27 19:04:00 +08:00
Baili Feng
c0a300ca3a Reset RequestQueue instead of delete it.
Change the type of mRequestQueue from 'array of pointers'
to 'array of instances'. So we can reuse them.

CRs-fixed: 2050837
Change-Id: I362319ece38cf10ee7ae2278a89249ce97e2f0a5
2017-06-21 10:31:03 +08:00
Baili Feng
1f3ac891ae Make updateConfig functional before gnss is enabled
locAPIGnssUpdateConfig and locAPIEnable/Disable
will use different request queues

Change-Id: I8c5456ebc4c221ff0e536ad488259b21e5607e03
CRs-Fixed: 2054316
2017-06-06 09:45:37 +08:00
Baili Feng
b29778eac0 Fix intermittant crashes in location
Deleting memory without setting it to null
can cause the memory to still be non-null
and be interpreted as valid.
Also check if the entry is in the map using
find instead of assuming it is in the map.

Bug: 62033719 62033834 62033690 62033563 62032790
CRs-fixed: 2050837
Change-Id: I2534de2d6157be86ac95cfe6615e4c0019ee48fd
2017-05-24 11:03:16 -07:00
Baili Feng
1e0be88b94 Maintain a uniq RequestQueue for Geofencing
Maintain a RequestQueue for Geofencing per LocationAPIClientBase instance.
The RequestQueue must be released when LocationAPIClientBase is destroyed.

Change-Id: Icceccdaae67883f8848dd2a95389b938058c5e5d
CRs-fixed: 2044463
2017-05-10 13:21:26 +08:00
Yingjie Wang
86ad4f8f44 Enable LOGV for gps directory
Define LOG_NDEBUG 0 to enable VERBOSE log messages in
hardware/qcom/gps

Change-Id: I954cad757f13d6bac99b7a06625daa0ace84a17e
CRs-fixed: 2025673
2017-04-28 18:24:07 +08:00
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
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
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