החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפניה ל-struct של GnssSystemInfo
#include <
gps.h
>
מידע על החדשנות של החומרה והתוכנה של ה-GPS/GNSS.
המידע הזה יהיה זמין לאפליקציות בדיקה ל-Android. אם HAL של GPS לא מספק את המידע הזה, הוא ייחשב כ-'2015 ואילך'.
אם HAL של GPS מספק את המידע הזה, דגמים חדשים יותר יצטרכו לעמוד בתקני CTS חדשים יותר. לדוגמה, אם התאריך הוא 2016 ואילך, תתבצע אימות של תמיכה ברמה N+ ב-
GpsMeasurement
.
ההגדרה מופיעה בשורה
758
בקובץ
gps.h
.
מגדירים את הערך של sizeof(GnssSystemInfo)
ההגדרה מופיעה בשורה
760
בקובץ
gps.h
.
התיעוד של המבנה הזה נוצר מהקובץ הבא:
-
hardware/libhardware/include/hardware/
gps.h
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Android Hardware Abstraction Layer: GnssSystemInfo Struct Reference\n\nGnssSystemInfo Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \nGnssSystemInfo 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_gnss_system_info#a854352f53b148adc24983a58a1866d66) |\n| ||\n| uint16_t | [year_of_hw](/reference/hal/struct_gnss_system_info#aa4f56202c79b8f308ac9f9a12ec25542) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nProvides information about how new the underlying GPS/GNSS hardware and software is.\n\n\nThis information will be available for Android Test Applications. If a GPS HAL does not provide this information, it will be considered \"2015 or\nearlier\".\n\n\nIf a GPS HAL does provide this information, then newer years will need to meet newer CTS standards. E.g. if the date are 2016 or above, then N+ level\n[GpsMeasurement](/reference/hal/struct_gps_measurement)\nsupport will be verified.\n\n\nDefinition at line\n[758](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| size_t size |\n\n\nSet to sizeof(GnssSystemInfo)\n\n\nDefinition at line\n[760](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| uint16_t year_of_hw |\n\n\nDefinition at line\n[763](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)"]]