diff options
author | Armando Uribe <c_auribe@quicinc.com> | 2018-01-17 17:00:29 -0800 |
---|---|---|
committer | Alain Vongsouvanh <alainv@google.com> | 2018-01-19 22:08:15 +0000 |
commit | 96fa6d14d453cdd84e0dd75870775a8fe759f56f (patch) | |
tree | 4756d440e40db31443e6674d58f91a13faae40a3 | |
parent | 562a90d0cfb6baa3016729294695060a68b70be8 (diff) | |
download | gps-96fa6d14d453cdd84e0dd75870775a8fe759f56f.tar.gz |
fixing conn disconnect handling from GnssLocationProvider
The type needs to maintain as signed, in case some value
may come across as negative, even though the storage size
may vary, from 8-bit to 32-bit, for example.
Bug: 65164961
Change-Id: Ic3a3e60224458ff07b147b8058eb69723457ed9f
CRs-Fixed: 2106350
(cherry picked from commit c7e289185217491ad0e401e7c552fbb8884c6d61)
-rw-r--r-- | msm8909/loc_api/libloc_api_50001/loc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/msm8909/loc_api/libloc_api_50001/loc.cpp b/msm8909/loc_api/libloc_api_50001/loc.cpp index d67390a..fbc66b0 100644 --- a/msm8909/loc_api/libloc_api_50001/loc.cpp +++ b/msm8909/loc_api/libloc_api_50001/loc.cpp @@ -1024,7 +1024,7 @@ static inline void closeSocket(const int socketFd) { } } -static inline bool sendConnectionEvent(const bool connected, const uint8_t type) { +static inline bool sendConnectionEvent(const bool connected, const int32_t type) { int socketFd = createSocket(); if (socketFd < 0) { LOC_LOGE("XTRA unreachable. sending failed."); @@ -1064,8 +1064,7 @@ static void loc_agps_ril_ni_message(uint8_t *msg, size_t len) {} static void loc_agps_ril_update_network_state(int connected, int type, int roaming, const char* extra_info) { ENTRY_LOG(); // for XTRA - sendConnectionEvent((connected != 0) ? true : false, - (uint8_t)type); + sendConnectionEvent((connected != 0) ? true : false, type); EXIT_LOG(%s, VOID_RET); } |