اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
مرجع بنية 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 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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)"]]