Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Odwołania do struktury AGpsStatus
#include <
gps.h
>
Definicja w wierszu
885
pliku
gps.h
.
struct sockaddr_storage addr
|
Musi zawierać adres IPv4 (AF_INET) lub IPv6 (AF_INET6), który ma zostać zgłoszony. Inne wartości atrybutu addr.ss_family zostaną odrzucone.
Definicja w wierszu
902
pliku
gps.h
.
Musi być ustawiony na prawidłowy adres IPv4, jeśli pole „addr” zawiera adres IPv4, lub na INADDR_NONE w przeciwnym razie.
Definicja w wierszu
896
w pliku
gps.h
.
ustaw na sizeof(AGpsStatus)
Definicja w wierszu
887
pliku
gps.h
.
Dokumentacja tego typu danych została wygenerowana z tego pliku:
-
hardware/libhardware/include/hardware/
gps.h
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-27 UTC."],[],[],null,["# Android Hardware Abstraction Layer: AGpsStatus Struct Reference\n\nAGpsStatus Struct Reference\n===========================\n\n[Data Fields](#pub-attribs) \nAGpsStatus 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_a_gps_status#a854352f53b148adc24983a58a1866d66) |\n| ||\n| [AGpsType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [type](/reference/hal/struct_a_gps_status#ab639ef6817d6d72c3935f2fefaceb388) |\n| ||\n| [AGpsStatusValue](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [status](/reference/hal/struct_a_gps_status#ae9d376f9eb394301034e54329ce1c0d9) |\n| ||\n| uint32_t | [ipaddr](/reference/hal/struct_a_gps_status#ae1eb735f98e6aa289cc149178b6e0b00) |\n| ||\n| struct sockaddr_storage | [addr](/reference/hal/struct_a_gps_status#a7fe4b3f87e7a49d2520a0d26563bb921) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nDefinition at line\n[885](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| struct sockaddr_storage addr |\n\n\nMust contain the IPv4 (AF_INET) or IPv6 (AF_INET6) address to report. Any other value of addr.ss_family will be rejected.\n\n\nDefinition at line\n[902](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| uint32_t ipaddr |\n\n\nMust be set to a valid IPv4 address if the field 'addr' contains an IPv4 address, or set to INADDR_NONE otherwise.\n\n\nDefinition at line\n[896](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(AGpsStatus)\n\n\nDefinition at line\n[887](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| [AGpsStatusValue](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) status |\n\n\nDefinition at line\n[890](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| [AGpsType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) type |\n\n\nDefinition at line\n[889](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)"]]