diff options
author | Mike Cailean <mcailean@codeaurora.org> | 2019-04-24 11:33:20 -0700 |
---|---|---|
committer | Mike Cailean <mcailean@codeaurora.org> | 2019-04-30 09:27:41 -0700 |
commit | d6d55a4948301d76a8489a5a166acd1b1385e4a1 (patch) | |
tree | e52294314ee4a87d70bd7761178a120658f620ef /gnss/GnssAdapter.h | |
parent | 9b1ce8887233de61c476bff6d114be9b4ac9aa68 (diff) | |
download | gps-d6d55a4948301d76a8489a5a166acd1b1385e4a1.tar.gz |
Send SUPL notification to the framework for
E911 sessions only (older modems)
Change-Id: Icd317f6e4b042c31afc63011596689d5fb35135f
CRs-fixed: 2441292
Diffstat (limited to 'gnss/GnssAdapter.h')
-rw-r--r-- | gnss/GnssAdapter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnss/GnssAdapter.h b/gnss/GnssAdapter.h index 9720ba4..7b73ec1 100644 --- a/gnss/GnssAdapter.h +++ b/gnss/GnssAdapter.h @@ -165,8 +165,10 @@ class GnssAdapter : public LocAdapterBase { /* ==== NFW =========================================================================== */ NfwStatusCb mNfwCb; + IsInEmergencySession mIsE911Session; inline void initNfw(const NfwCbInfo& cbInfo) { mNfwCb = (NfwStatusCb)cbInfo.visibilityControlCb; + mIsE911Session = (IsInEmergencySession)cbInfo.isInEmergencySession; } /* ==== ODCPI ========================================================================== */ @@ -396,6 +398,12 @@ public: mNfwCb(notification); } } + inline bool getE911State(void) { + if (NULL != mIsE911Session) { + return mIsE911Session(); + } + return false; + } /*======== GNSSDEBUG ================================================================*/ bool getDebugReport(GnssDebugReport& report); |