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 GpsSvInfo
#include <
gps.h
>
Cấu trúc cũ để biểu thị thông tin về Chế độ xem đường phố. Không dùng nữa, sẽ bị xoá trong bản phát hành Android tiếp theo. Thay vào đó, hãy sử dụng
GnssSvInfo
.
Định nghĩa tại dòng
562
của tệp
gps.h
.
Độ góc phương vị của vệ tinh tính bằng độ.
Định nghĩa tại dòng
572
của tệp
gps.h
.
Độ cao của vệ tinh truyền hình trực tiếp tính bằng độ.
Định nghĩa tại dòng
570
của tệp
gps.h
.
Số giả ngẫu nhiên cho SV.
Định nghĩa tại dòng
566
của tệp
gps.h
.
đặt thành sizeof(GpsSvInfo)
Định nghĩa tại dòng
564
của tệp
gps.h
.
Tỷ lệ tín hiệu trên tạp âm.
Định nghĩa tại dòng
568
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: GpsSvInfo Struct Reference\n\nGpsSvInfo Struct Reference\n==========================\n\n[Data Fields](#pub-attribs) \nGpsSvInfo 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_sv_info#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int | [prn](/reference/hal/struct_gps_sv_info#a1a20174966be60ad4e9d2c1c00a75bf9) |\n| ||\n| float | [snr](/reference/hal/struct_gps_sv_info#a2f13c0d577ea505db647b3e3a8600831) |\n| ||\n| float | [elevation](/reference/hal/struct_gps_sv_info#a1c921d7f2f6a29b15d709c49d2df1797) |\n| ||\n| float | [azimuth](/reference/hal/struct_gps_sv_info#a01b03ebfa7d0a95760e743f611fecbc5) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nLegacy struct to represents SV information. Deprecated, to be removed in the next Android release. Use\n[GnssSvInfo](/reference/hal/struct_gnss_sv_info)\ninstead.\n\n\nDefinition at line\n[562](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| float azimuth |\n\n\nAzimuth of SV in degrees.\n\n\nDefinition at line\n[572](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| float elevation |\n\n\nElevation of SV in degrees.\n\n\nDefinition at line\n[570](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| int prn |\n\n\nPseudo-random number for the SV.\n\n\nDefinition at line\n[566](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(GpsSvInfo)\n\n\nDefinition at line\n[564](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| float snr |\n\n\nSignal to noise ratio.\n\n\nDefinition at line\n[568](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)"]]