diff options
Diffstat (limited to 'gnss/2.0/default/Gnss.h')
-rw-r--r-- | gnss/2.0/default/Gnss.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gnss/2.0/default/Gnss.h b/gnss/2.0/default/Gnss.h index 7d9e7831cd..f02ab0a21e 100644 --- a/gnss/2.0/default/Gnss.h +++ b/gnss/2.0/default/Gnss.h @@ -91,15 +91,16 @@ struct Gnss : public IGnss { getExtensionMeasurementCorrections() override; Return<sp<visibility_control::V1_0::IGnssVisibilityControl>> getExtensionVisibilityControl() override; + Return<bool> injectBestLocation_2_0(const V2_0::GnssLocation& location) override; - private: - Return<void> reportLocation(const GnssLocation&) const; - static sp<V2_0::IGnssCallback> sGnssCallback_2_0; - static sp<V1_1::IGnssCallback> sGnssCallback_1_1; - std::atomic<long> mMinIntervalMs; - std::atomic<bool> mIsActive; - std::thread mThread; - mutable std::mutex mMutex; + private: + Return<void> reportLocation(const V2_0::GnssLocation&) const; + static sp<V2_0::IGnssCallback> sGnssCallback_2_0; + static sp<V1_1::IGnssCallback> sGnssCallback_1_1; + std::atomic<long> mMinIntervalMs; + std::atomic<bool> mIsActive; + std::thread mThread; + mutable std::mutex mMutex; }; } // namespace implementation |