27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
AGpsRilInterface Yapı Referansı
#include <
gps.h
>
AGPS_RIL desteği için genişletilmiş arayüz.
Tanım,
gps.h
dosyasının
1145
satırındadır.
AGPS arayüzünü açar ve bu arayüzün uygulanması için geri çağırma rutinlerini sağlar.
Tanımı,
gps.h
dosyasının
1152
satırı
void(* ni_message)(uint8_t *msg, size_t len)
|
Ağ tarafından başlatılan mesaj gönderme.
gps.h
dosyasının
1166
satırı
void(* set_ref_location)(const
AGpsRefLocation
*agps_reflocation, size_t sz_struct)
|
Referans konumunu ayarlar.
Tanım,
gps.h
dosyasının
1157
satırındadır.
Set kimliğini ayarlar.
Tanımı,
gps.h
dosyasının
1161
satırı
sizeof(AGpsRilInterface) olarak ayarlandı
Tanımı,
gps.h
dosyasının
1147
satırı
void(* update_network_availability)(int avaiable, const char *apn)
|
GPS'ye ağ durumu değişikliklerini bildirir. Bu parametreler, android.net.NetworkInfo sınıfındaki değerlerle eşleşir.
gps.h
dosyasının
1178
satırı
void(* update_network_state)(int connected, int type, int roaming, const char *extra_info)
|
GPS'ye ağ durumu değişikliklerini bildirir. Bu parametreler, android.net.NetworkInfo sınıfındaki değerlerle eşleşir.
gps.h
dosyasının
1172
satırı
Bu yapının dokümanları aşağıdaki dosyadan oluşturulmuştur:
-
hardware/libhardware/include/hardware/
gps.h
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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)"]]