החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
AGpsRilInterface Struct Reference
#include <
gps.h
>
ממשק מורחב לתמיכה ב-AGPS_RIL.
ההגדרה מופיעה בשורה
1145
בקובץ
gps.h
.
הפונקציה פותחת את ממשק ה-AGPS ומספקת את פונקציות ה-callback להטמעה של הממשק הזה.
ההגדרה מופיעה בשורה
1152
בקובץ
gps.h
.
void(* ni_message)(uint8_t *msg, size_t len)
|
שליחת הודעה ביוזמת הרשת.
ההגדרה מופיעה בשורה
1166
בקובץ
gps.h
.
void(* set_ref_location)(const
AGpsRefLocation
*agps_reflocation, size_t sz_struct)
|
הגדרת מיקום העזר.
ההגדרה מופיעה בשורה
1157
בקובץ
gps.h
.
הגדרת מזהה הקבוצה.
ההגדרה מופיעה בשורה
1161
בקובץ
gps.h
.
מוגדר ל-sizeof(AGpsRilInterface)
ההגדרה מופיעה בשורה
1147
בקובץ
gps.h
.
void(* update_network_availability)(int avaiable, const char *apn)
|
דיווח ל-GPS על שינויים בסטטוס הרשת. הפרמטרים האלה תואמים לערכים בכיתה android.net.NetworkInfo.
ההגדרה מופיעה בשורה
1178
בקובץ
gps.h
.
void(* update_network_state)(int connected, int type, int roaming, const char *extra_info)
|
דיווח ל-GPS על שינויים בסטטוס הרשת. הפרמטרים האלה תואמים לערכים בכיתה android.net.NetworkInfo.
ההגדרה מופיעה בשורה
1172
בקובץ
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: AGpsRilInterface Struct Reference\n\nAGpsRilInterface Struct Reference\n=================================\n\n[Data Fields](#pub-attribs) \nAGpsRilInterface 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_a_gps_ril_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| void(\\* | [init](/reference/hal/struct_a_gps_ril_interface#a6ecde4533873a8523bcc21de388ffa9a) )( [AGpsRilCallbacks](/reference/hal/struct_a_gps_ril_callbacks) \\*callbacks) |\n| ||\n| void(\\* | [set_ref_location](/reference/hal/struct_a_gps_ril_interface#a89daae6f347b02451c9e590e3aed4bc3) )(const [AGpsRefLocation](/reference/hal/struct_a_gps_ref_location) \\*agps_reflocation, size_t sz_struct) |\n| ||\n| void(\\* | [set_set_id](/reference/hal/struct_a_gps_ril_interface#a9e37e6820e27545df93790487e08e062) )( [AGpsSetIDType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) type, const char \\*setid) |\n| ||\n| void(\\* | [ni_message](/reference/hal/struct_a_gps_ril_interface#a47a5dbc152e1bfef40da67acc92352a4) )(uint8_t \\*msg, size_t len) |\n| ||\n| void(\\* | [update_network_state](/reference/hal/struct_a_gps_ril_interface#a18f3edddb80356092dd97986b41271cd) )(int connected, int type, int roaming, const char \\*extra_info) |\n| ||\n| void(\\* | [update_network_availability](/reference/hal/struct_a_gps_ril_interface#a4057912a4ed5c39cafce1eee01b19159) )(int avaiable, const char \\*apn) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for AGPS_RIL support.\n\n\nDefinition at line\n[1145](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| void(\\* init)( [AGpsRilCallbacks](/reference/hal/struct_a_gps_ril_callbacks) \\*callbacks) |\n\n\nOpens the AGPS interface and provides the callback routines to the implementation of this interface.\n\n\nDefinition at line\n[1152](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| void(\\* ni_message)(uint8_t \\*msg, size_t len) |\n\n\nSend network initiated message.\n\n\nDefinition at line\n[1166](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| void(\\* set_ref_location)(const [AGpsRefLocation](/reference/hal/struct_a_gps_ref_location) \\*agps_reflocation, size_t sz_struct) |\n\n\nSets the reference location.\n\n\nDefinition at line\n[1157](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| void(\\* set_set_id)( [AGpsSetIDType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) type, const char \\*setid) |\n\n\nSets the set ID.\n\n\nDefinition at line\n[1161](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(AGpsRilInterface)\n\n\nDefinition at line\n[1147](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| void(\\* update_network_availability)(int avaiable, const char \\*apn) |\n\n\nNotify GPS of network status changes. These parameters match values in the android.net.NetworkInfo class.\n\n\nDefinition at line\n[1178](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| void(\\* update_network_state)(int connected, int type, int roaming, const char \\*extra_info) |\n\n\nNotify GPS of network status changes. These parameters match values in the android.net.NetworkInfo class.\n\n\nDefinition at line\n[1172](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)"]]