2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
GpsNavigationMessage 構造体リファレンス
#include <
gps.h
>
GPS ナビゲーション メッセージ(またはそのフラグメント)を表すレガシー構造体。非推奨。次回の Android リリースで削除されます。代わりに
GnssNavigationMessage
を使用してください。
ファイル
gps.h
の
2014
行の定義。
ファイル
gps.h
の 2020 行
に定義されています。
sizeof(GpsNavigationMessage) に設定
ファイル
gps.h
の
2016
行の定義。
この構造体のドキュメントは、次のファイルから生成されました。
-
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)"]]