Commit graph

12 commits

Author SHA1 Message Date
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
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
Kevin Tang
03bc75f298 fixing the location api level race condition on callbacks
At the layer right under HIDL impl, where the callback objs
are received from HIDL and used by HAL layer, there is race
condition volnerability which could yield using a incompletely
copied sp obj. Added mutex protection.

Change-Id: I611db590d1fadbe43c74db71a1ea906dbe067c6d
CRs-Fixed: 2144976
2017-12-21 13:29:37 -08:00
Dante Russo
54d6a878fd Fix potential deadlock in measurements report
If Gnss Measurements callback is called at the same time
as Gnss Measurements close is called, this will cause
dead lock.
Remove using mutex in this case and instead use a simple
bool to know whether or not to call into a the callback.

Bug: 63909793
Change-Id: I98d2be5ebd2ee0f36e4d2e31d20a74585089fe31
CRs-fixed: 2089716
2017-08-09 11:50:42 -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
Linux Build Service Account
82687ac882 Merge "Check the return value of HIDL Callbacks" 2017-05-16 04:22:33 -07:00
Linux Build Service Account
3768a6f946 Merge "Stop Gnss measurements session when closed" 2017-05-16 04:22:32 -07:00
Dante Russo
4c265534bb Check the return value of HIDL Callbacks
GNSS HAL needs to check the return value of HIDL
Callbacks to avoid crashing when things go wrong.

Bug: 37987256
Change-Id: I4a5e33f7f4d85c887bc91fa71336a78151c3ce3b
CRs-fixed: 2044206
2017-05-12 16:11:00 -07:00
Dante Russo
f354bdfa62 Stop Gnss measurements session when closed
Gnss measurements session that is started to
collect Gnss measurements needs to be stoped
when closed.
Also remove the ability for an MSA tracking
session to be started when Gnss measurments is
started because MSA tracking is power hungry
and it wouldn't provide measurements either

Change-Id: I9b20f73bd412fc68d96dad2dc38399c144922ea0
CRs-fixed: 2039306
2017-05-12 16:04:43 -07: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
Mike Cailean
3ad14ba827 Added support for AGC
Added support for AGC (automatic gain control)

CRs-fixed: 2023324

Change-Id: I6d6da23aab66da14bfa594077beda15194bdbeba
2017-03-24 15:46:39 -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
Renamed from android/location_api/GnssMeasurementAPIClient.cpp (Browse further)