diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2018-01-22 16:04:50 -0800 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2018-04-27 10:39:21 -0700 |
commit | f6b613a82760441f1257455256bba5dd9f3c2919 (patch) | |
tree | d9a07a4da34b643440bf124c4a7b4a7e872dcd66 /gnss/Agps.cpp | |
parent | 94904a7184b068ff5f62999cc125e5f62bd3f93e (diff) | |
download | gps-f6b613a82760441f1257455256bba5dd9f3c2919.tar.gz |
Addition of new LocApi thread
1. LocApiBase to create its own MsgTask thread to allow QMI calls
to be made asynchronously. It shall no longer share the adapter's thread.
2. Implementation of new LocApiResponse classes for generic response type
from LocApi layer to Adapter layers
3. GnssAdapter modified to handle the asynchronous nature of LocApi calls.
CRs-Fixed: 2218658
Change-Id: I6e401a89f16791ec144763ac5f070b7ee1dad931
Diffstat (limited to 'gnss/Agps.cpp')
-rw-r--r-- | gnss/Agps.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnss/Agps.cpp b/gnss/Agps.cpp index 6ce0c34..d6a75ab 100644 --- a/gnss/Agps.cpp +++ b/gnss/Agps.cpp @@ -360,13 +360,13 @@ void AgpsStateMachine::notifyEventToSubscriber( case AGPS_EVENT_GRANTED: mAgpsManager->mAtlOpenStatusCb( - subscriberToNotify->mConnHandle, 1, getAPN(), + subscriberToNotify->mConnHandle, 1, getAPN(), getAPNLen(), getBearer(), mAgpsType); break; case AGPS_EVENT_DENIED: mAgpsManager->mAtlOpenStatusCb( - subscriberToNotify->mConnHandle, 0, getAPN(), + subscriberToNotify->mConnHandle, 0, getAPN(), getAPNLen(), getBearer(), mAgpsType); break; @@ -661,7 +661,7 @@ void DSStateMachine::notifyEventToSubscriber( case AGPS_EVENT_GRANTED: mAgpsManager->mAtlOpenStatusCb( - subscriberToNotify->mConnHandle, 1, NULL, + subscriberToNotify->mConnHandle, 1, NULL, 0, AGPS_APN_BEARER_INVALID, LOC_AGPS_TYPE_SUPL_ES); break; @@ -778,7 +778,7 @@ void AgpsManager::requestATL(int connHandle, AGpsExtType agpsType){ LOC_LOGE("No AGPS State Machine for agpsType: %d", agpsType); mAtlOpenStatusCb( - connHandle, 0, NULL, AGPS_APN_BEARER_INVALID, agpsType); + connHandle, 0, NULL, 0, AGPS_APN_BEARER_INVALID, agpsType); return; } |