27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
GpsData Yapısı Referansı
#include <
gps.h
>
GPS ölçümlerinin bir okumasını temsil eden eski yapı. Desteği sonlandırıldı, sonraki Android sürümünde kaldırılacak. Bunun yerine
GnssData
özelliğini kullanın.
Tanımı,
gps.h
dosyasının
1917
satırı
GPS saati zaman okuması.
Tanımı,
gps.h
dosyasının
1924
satırı
sizeof(GpsData) olarak ayarlanır.
Tanımı,
gps.h
dosyasının
1919
satırı
Bu yapının dokümanları aşağıdaki dosyadan oluşturulmuştur:
-
hardware/libhardware/include/hardware/
gps.h
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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)"]]