Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Справочник по структуре AGpsRilInterface
#include < gps.h >
Расширенный интерфейс для поддержки AGPS_RIL.
Определение в строке 1145 файла gps.h.
Открывает интерфейс AGPS и предоставляет процедуры обратного вызова для реализации этого интерфейса.
Определение в строке 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 доступен, const char *apn) |
Уведомляйте GPS об изменениях состояния сети. Эти параметры соответствуют значениям в классе android.net.NetworkInfo.
Определение в строке 1178 файла gps.h.
void(* update_network_state)(int linked, int type, int roaming, const char *extra_info) |
Уведомляйте GPS об изменениях состояния сети. Эти параметры соответствуют значениям в классе android.net.NetworkInfo.
Определение в строке 1172 файла gps.h.
Документация для этой структуры была создана из следующего файла:
- оборудование/libhardware/include/hardware/ gps.h
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-29 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-29 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)"]]