Ab dem 27. März 2025 empfehlen wir, android-latest-release
anstelle von aosp-main
zu verwenden, um AOSP zu erstellen und Beiträge dazu zu leisten. Weitere Informationen finden Sie unter Änderungen am AOSP.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
GpsData-Strukturreferenz
#include <
gps.h
>
Ältere Struktur, die eine GPS-Messung darstellt. Eingestellt, wird in der nächsten Android-Version entfernt. Verwenden Sie stattdessen
GnssData
.
Definition in Zeile
1917
der Datei
gps.h
.
Die Uhrzeit der GPS-Uhr.
Definition in Zeile
1924
der Datei
gps.h
.
auf sizeof(GpsData) festgelegt
Definition in Zeile
1919
der Datei
gps.h
.
Die Dokumentation für diese Struktur wurde aus der folgenden Datei generiert:
-
hardware/libhardware/include/hardware/
gps.h
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2025-07-27 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-27 (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)"]]