Adding injectBestLocation API in GNSS HIDL

Adding implementation for new API added in
GNSS HIDL 1.1 interface

Change-Id: I17502ef64ab3c3e2f20a9fe74a55cf092c0e1966
CRs-Fixed: 2186412
diff --git a/sdm845/android/Gnss.cpp b/sdm845/android/Gnss.cpp
index 1ede88c..f49fa7e 100644
--- a/sdm845/android/Gnss.cpp
+++ b/sdm845/android/Gnss.cpp
@@ -387,6 +387,11 @@
     return mGnssConfig;
 }
 
+Return<bool> Gnss::injectBestLocation(const GnssLocation&) {
+    ENTRY_LOG_CALLFLOW();
+    return true;
+}
+
 IGnss* HIDL_FETCH_IGnss(const char* hal) {
     ENTRY_LOG_CALLFLOW();
     IGnss* iface = nullptr;
diff --git a/sdm845/android/Gnss.h b/sdm845/android/Gnss.h
index a0b815f..c562b1f 100644
--- a/sdm845/android/Gnss.h
+++ b/sdm845/android/Gnss.h
@@ -50,6 +50,7 @@
 using ::android::hardware::Return;
 using ::android::hardware::Void;
 using ::android::sp;
+using ::android::hardware::gnss::V1_0::GnssLocation;
 
 struct Gnss : public IGnss {
     Gnss();
@@ -102,6 +103,7 @@
             uint32_t preferredTimeMs, bool lowPowerMode) override;
     Return<sp<V1_1::IGnssMeasurement>> getExtensionGnssMeasurement_1_1() override;
     Return<sp<V1_1::IGnssConfiguration>> getExtensionGnssConfiguration_1_1() override;
+    Return<bool> injectBestLocation(const GnssLocation& location) override;
 
     // These methods are not part of the IGnss base class.
     GnssAPIClient* getApi();