A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Riferimento alla struttura GpsData
#include <
gps.h
>
Struttura precedente per rappresentare una lettura delle misurazioni GPS. Ritirato, verrà rimosso nella prossima release di Android. Utilizza
GnssData
al suo posto.
Definizione nella riga
1917
del file
gps.h
.
La lettura dell'ora dell'orologio GPS.
Definizione nella riga
1924
del file
gps.h
.
impostato su sizeof(GpsData)
Definizione nella riga
1919
del file
gps.h
.
La documentazione di questa struttura è stata generata dal seguente file:
-
hardware/libhardware/include/hardware/
gps.h
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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)"]]