summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordestradaa <destradaa@google.com>2015-04-28 22:52:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-28 22:52:05 +0000
commitf68e4fe37be212c008c1de68388ec997e6b8b993 (patch)
treeb2d719cd23663f150a94d96af692e479271070f5 /include
parentacccf647af36b56540fd815a94a6a0b9496d2a50 (diff)
parent8153488b70d13ddc1122426e961783084fd46572 (diff)
downloadhardware_libhardware-f68e4fe37be212c008c1de68388ec997e6b8b993.zip
hardware_libhardware-f68e4fe37be212c008c1de68388ec997e6b8b993.tar.gz
hardware_libhardware-f68e4fe37be212c008c1de68388ec997e6b8b993.tar.bz2
Merge "Update documentation related to A-GPS modes." into mnc-dev
Diffstat (limited to 'include')
-rw-r--r--include/hardware/gps.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/hardware/gps.h b/include/hardware/gps.h
index 75453ce..38353f2 100644
--- a/include/hardware/gps.h
+++ b/include/hardware/gps.h
@@ -51,7 +51,10 @@ typedef uint32_t GpsPositionMode;
#define GPS_POSITION_MODE_STANDALONE 0
/** AGPS MS-Based mode. */
#define GPS_POSITION_MODE_MS_BASED 1
-/** AGPS MS-Assisted mode. */
+/**
+ * AGPS MS-Assisted mode. This mode is not maintained by the platform anymore.
+ * It is strongly recommended to use GPS_POSITION_MODE_MS_BASE instead.
+ */
#define GPS_POSITION_MODE_MS_ASSISTED 2
/** Requested recurrence mode for GPS operation. */
@@ -619,6 +622,12 @@ typedef struct {
* min_interval represents the time between fixes in milliseconds.
* preferred_accuracy represents the requested fix accuracy in meters.
* preferred_time represents the requested time to first fix in milliseconds.
+ *
+ * 'mode' parameter should be one of GPS_POSITION_MODE_MS_BASE
+ * or GPS_POSITION_MODE_STANDALONE.
+ * It is allowed by the platform (and it is recommended) to fallback to
+ * GPS_POSITION_MODE_MS_BASE if GPS_POSITION_MODE_MS_ASSISTED is passed in, and
+ * GPS_POSITION_MODE_MS_BASED is supported.
*/
int (*set_position_mode)(GpsPositionMode mode, GpsPositionRecurrence recurrence,
uint32_t min_interval, uint32_t preferred_accuracy, uint32_t preferred_time);