Add gnssRequestLocationCb to IGnssCallback.hal and injectBestLocation
to IGnss.hal
- add the gnssRequestLocationCb to IGnssCallback.hal, with a boolean
flag to supply with or without GNSS information, to request location for
fast TTFF (or error recovery).
- correspondingly add the injectBestLocation to IGnss.hal for the
location provider to inject the location.
Bug: 72341681
Test: Copied the same change and test to v1.0 and manually ran vts
tests. All passed.
Change-Id: I2e9d11603a2f16ef52d6c1556be75bdbcd8d0e80
diff --git a/gnss/1.1/IGnssCallback.hal b/gnss/1.1/IGnssCallback.hal
index 7a2849e..9fd71ae 100644
--- a/gnss/1.1/IGnssCallback.hal
+++ b/gnss/1.1/IGnssCallback.hal
@@ -35,4 +35,17 @@
* @param name String providing the name of the GNSS HAL implementation
*/
gnssNameCb(string name);
+
+ /**
+ * Callback for requesting Location.
+ *
+ * HAL implementation shall call this when it wants the framework to provide location to assist
+ * with GNSS HAL operation. For example, to assist with time to first fix, and/or error
+ * recovery, it may ask for a location that is independent from GNSS (e.g. from the "network"
+ * LocationProvier), or to provide a Device-Based-Hybrid location to supplement A-GPS/GNSS
+ * emergency call flows managed by the GNSS HAL.
+ *
+ * @param independentFromGnss True if requesting a location that is independent from GNSS.
+ */
+ gnssRequestLocationCb(bool independentFromGnss);
};
\ No newline at end of file