summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDante Russo <drusso@codeaurora.org>2014-04-02 14:23:39 -0700
committerDante Russo <drusso@codeaurora.org>2014-04-03 14:41:53 -0700
commitf9a26b2a68082f8de9c8167632d27be095a8fabf (patch)
treef2116c9d9ce529025a6209896e3cb992caa7183a /core
parent971493d8bbd920f3fed083965e975fb8897c3919 (diff)
downloadgps-f9a26b2a68082f8de9c8167632d27be095a8fabf.tar.gz
Inject location only on CPI disabled
Includes inject API from GPS HAL and FLP HAL CRs-fixed: 640452 Change-Id: Ied947e2862fb9ecca0142f9608cdcc889cac8a2b
Diffstat (limited to 'core')
-rw-r--r--core/LocAdapterBase.h1
-rw-r--r--core/LocAdapterProxyBase.h5
2 files changed, 5 insertions, 1 deletions
diff --git a/core/LocAdapterBase.h b/core/LocAdapterBase.h
index 02b0987..9348a89 100644
--- a/core/LocAdapterBase.h
+++ b/core/LocAdapterBase.h
@@ -101,6 +101,7 @@ public:
const void* data);
inline virtual bool isInSession() { return false; }
virtual void shutdown();
+ ContextBase* getContext() const { return mContext; }
};
} // namespace loc_core
diff --git a/core/LocAdapterProxyBase.h b/core/LocAdapterProxyBase.h
index adc868c..25af10b 100644
--- a/core/LocAdapterProxyBase.h
+++ b/core/LocAdapterProxyBase.h
@@ -46,6 +46,9 @@ protected:
inline virtual ~LocAdapterProxyBase() {
delete mLocAdapterBase;
}
+ ContextBase* getContext() const {
+ return mLocAdapterBase->getContext();
+ }
public:
inline virtual void handleEngineUpEvent() {};
inline virtual void handleEngineDownEvent() {};
@@ -53,4 +56,4 @@ public:
} // namespace loc_core
-#endif //LOC_ADAPTER_PROXY_BASE_H \ No newline at end of file
+#endif //LOC_ADAPTER_PROXY_BASE_H