Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
GpsData Struct Reference
#include <
gps.h
>
Legacy struct to represents a reading of GPS measurements. Deprecated, to be removed in the next Android release. Use
GnssData
instead.
Definition at line
1917
of file
gps.h
.
The GPS clock time reading.
Definition at line
1924
of file
gps.h
.
set to sizeof(GpsData)
Definition at line
1919
of file
gps.h
.
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
gps.h
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[],null,["# Android Hardware Abstraction Layer: GpsData Struct Reference\n\nGpsData Struct Reference\n========================\n\n[Data Fields](#pub-attribs) \nGpsData Struct Reference \n\n`\n#include \u003c\n`[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)`\n\u003e\n`\n\n|---------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_gps_data#a854352f53b148adc24983a58a1866d66) |\n| ||\n| size_t | [measurement_count](/reference/hal/struct_gps_data#a007cd37623aa72716bf35e49a934aa8f) |\n| ||\n| [GpsMeasurement](/reference/hal/struct_gps_measurement) | [measurements](/reference/hal/struct_gps_data#ab8b4961b731b93780293be8d42858be5) \\[ [GPS_MAX_MEASUREMENT](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) \\] |\n| ||\n| [GpsClock](/reference/hal/struct_gps_clock) | [clock](/reference/hal/struct_gps_data#a163976a366d7643605fe77fc2d1765e7) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nLegacy struct to represents a reading of GPS measurements. Deprecated, to be removed in the next Android release. Use\n[GnssData](/reference/hal/struct_gnss_data)\ninstead.\n\n\nDefinition at line\n[1917](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\nField Documentation\n-------------------\n\n\n|---------------------------------------------------|\n| [GpsClock](/reference/hal/struct_gps_clock) clock |\n\n\nThe GPS clock time reading.\n\n\nDefinition at line\n[1924](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|--------------------------|\n| size_t measurement_count |\n\n\nDefinition at line\n[1920](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GpsMeasurement](/reference/hal/struct_gps_measurement) measurements\\[ [GPS_MAX_MEASUREMENT](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) \\] |\n\n\nDefinition at line\n[1921](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(GpsData)\n\n\nDefinition at line\n[1919](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)"]]