Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tham chiếu cấu trúc GnssSystemInfo
#include <
gps.h
>
Cung cấp thông tin về phần cứng và phần mềm GPS/GNSS cơ bản mới đến mức nào.
Thông tin này sẽ có sẵn cho Ứng dụng kiểm thử Android. Nếu HAL GPS không cung cấp thông tin này, thì HAL đó sẽ được coi là "2015 trở về trước".
Nếu HAL GPS cung cấp thông tin này, thì các năm mới hơn sẽ cần đáp ứng các tiêu chuẩn CTS mới hơn. Ví dụ: nếu ngày là năm 2016 trở lên, thì tính năng hỗ trợ cấp N trở lên
GpsMeasurement
sẽ được xác minh.
Định nghĩa tại dòng
758
của tệp
gps.h
.
Đặt thành sizeof(GnssSystemInfo)
Định nghĩa tại dòng
760
của tệp
gps.h
.
Tài liệu cho cấu trúc này được tạo từ tệp sau:
-
hardware/libhardware/include/hardware/
gps.h
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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)"]]