החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הפניה ל-struct של GpsNavigationMessage
#include <
gps.h
>
מבנה מדור קודם שמייצג הודעת ניווט ב-GPS (או קטע ממנה). הוצא משימוש, והוא יוסר במהדורת Android הבאה. במקום זאת, צריך להשתמש ב-
GnssNavigationMessage
.
ההגדרה מופיעה בשורה
2014
בקובץ
gps.h
.
מוגדר ל-sizeof(GpsNavigationMessage)
ההגדרה מופיעה בשורה
2016
בקובץ
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: GpsNavigationMessage Struct Reference\n\nGpsNavigationMessage Struct Reference\n=====================================\n\n[Data Fields](#pub-attribs) \nGpsNavigationMessage 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_navigation_message#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int8_t | [prn](/reference/hal/struct_gps_navigation_message#a3ffcc691f30833f5242fbcd5361f02a0) |\n| ||\n| [GpsNavigationMessageType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [type](/reference/hal/struct_gps_navigation_message#af19a32895b89fa1df99eeff0fee64041) |\n| ||\n| [NavigationMessageStatus](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) | [status](/reference/hal/struct_gps_navigation_message#a8e3b7677cbc7162abe1d1624c8fecc49) |\n| ||\n| int16_t | [message_id](/reference/hal/struct_gps_navigation_message#a73c0dbf15262619a62617280bcef653b) |\n| ||\n| int16_t | [submessage_id](/reference/hal/struct_gps_navigation_message#ad7288f28c8c5aa93cda8e6b1c23d06b3) |\n| ||\n| size_t | [data_length](/reference/hal/struct_gps_navigation_message#ac710ca74549e34346fcf7c3a81c63ea3) |\n| ||\n| uint8_t \\* | [data](/reference/hal/struct_gps_navigation_message#abe222f6d3581e7920dcad5306cc906a8) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nLegacy struct to represents a GPS navigation message (or a fragment of it). Deprecated, to be removed in the next Android release. Use\n[GnssNavigationMessage](/reference/hal/struct_gnss_navigation_message)\ninstead.\n\n\nDefinition at line\n[2014](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| uint8_t\\* data |\n\n\nDefinition at line\n[2023](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 data_length |\n\n\nDefinition at line\n[2022](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| int16_t message_id |\n\n\nDefinition at line\n[2020](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| int8_t prn |\n\n\nDefinition at line\n[2017](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(GpsNavigationMessage)\n\n\nDefinition at line\n[2016](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| [NavigationMessageStatus](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) status |\n\n\nDefinition at line\n[2019](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| int16_t submessage_id |\n\n\nDefinition at line\n[2021](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| [GpsNavigationMessageType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) type |\n\n\nDefinition at line\n[2018](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)"]]