From e0d9e7cbb6ea355b9ae0ddb706adce2bac69aef1 Mon Sep 17 00:00:00 2001 From: Yu-Han Yang Date: Wed, 22 Nov 2023 23:01:25 +0000 Subject: [PATCH] Clarify setPositionMode doc Bug: 306874828 Test: doc update only Change-Id: I5fc99039ef44c2a1ceb398ad00d38ea179d181ea --- gnss/aidl/android/hardware/gnss/IGnss.aidl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnss/aidl/android/hardware/gnss/IGnss.aidl b/gnss/aidl/android/hardware/gnss/IGnss.aidl index aaafe7f583..8a22d6e67f 100644 --- a/gnss/aidl/android/hardware/gnss/IGnss.aidl +++ b/gnss/aidl/android/hardware/gnss/IGnss.aidl @@ -217,6 +217,10 @@ interface IGnss { * Starts a location output stream using the IGnssCallback gnssLocationCb(), following the * settings from the most recent call to setPositionMode(). * + * When a location output stream is in progress, calling setPositionMode() does not change the + * settings of the current location output stream. stop() and start() must be called to make the + * new settings effective. + * * This output must operate independently of any GNSS location batching operations, * see the IGnssBatching for details. */ @@ -306,6 +310,10 @@ interface IGnss { /** * Sets the GnssPositionMode parameter, its associated recurrence value, the time between fixes, * requested fix accuracy, time to first fix. + * + * If a location output stream is in progress, calling this method does not affect the settings + * of current location output stream. stop() and start() must be called to make the new settings + * effective. */ void setPositionMode(in PositionModeOptions options);