diff options
author | Mike Cailean <mcailean@codeaurora.org> | 2018-05-15 10:21:09 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-06-12 09:46:49 -0700 |
commit | b150a53ee3f02c8441754fcc6834802da7d96f40 (patch) | |
tree | 76aab803f16c7a350f020a3f7422cdd9c1535668 /core/LocApiBase.cpp | |
parent | f7981a3c11485795568f0205d0cb4c549f135064 (diff) | |
download | gps-b150a53ee3f02c8441754fcc6834802da7d96f40.tar.gz |
Handle updating the carrier configuration
Set GPS_LOCK for cases where the modem has
two SIMs
Change-Id: I2745b9469b2f755b0a24be2a7f4ae514c35a37cb
CRs-fixed: 2018029
Diffstat (limited to 'core/LocApiBase.cpp')
-rw-r--r-- | core/LocApiBase.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 4a1c8fc..650de92 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -163,6 +163,18 @@ LOC_API_ADAPTER_EVENT_MASK_T LocApiBase::getEvtMask() return mask & ~mExcludedMask; } +bool LocApiBase::isMaster() +{ + bool isMaster = false; + + for (int i = 0; + !isMaster && i < MAX_ADAPTERS && NULL != mLocAdapters[i]; + i++) { + isMaster |= mLocAdapters[i]->isAdapterMaster(); + } + return isMaster; +} + bool LocApiBase::isInSession() { bool inSession = false; @@ -578,10 +590,6 @@ void LocApiBase:: uint32_t /*slotBitMask*/) DEFAULT_IMPL() -int LocApiBase:: - getGpsLock() -DEFAULT_IMPL(-1) - LocationError LocApiBase:: setXtraVersionCheckSync(uint32_t /*check*/) DEFAULT_IMPL(LOCATION_ERROR_SUCCESS) |