自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
AGpsInterface 結構體參考資料
#include <
gps.h
>
延伸介面可支援 AGPS,可用於傳遞額外的 APN 資料。
定義位於檔案
gps.h
的
921
行。
int(* data_conn_closed)()
|
int(* data_conn_failed)()
|
int(* data_conn_open)(const char *apn)
|
已淘汰。如果 HAL 支援 AGpsInterface_v2,這個 API 就不會使用,詳情請參閱 data_conn_open_with_apn_ip_type。
定義位於檔案
gps.h
的
935
行。
int(* data_conn_open_with_apn_ip_type)(const char *apn,
ApnIpType
apnIpType)
|
通知系統可使用資料連線,並設定 APN 名稱和 IP 類型,以便用於 SUPL 連線。
定義位於檔案
gps.h
的
953
行。
開啟 AGPS 介面,並為此介面的實作提供回呼例程式。
定義位於檔案
gps.h
的
929
行。
int(* set_server)(
AgpsType
type, const char *hostname, int port)
|
設定 AGPS 伺服器的主機名稱和通訊埠。
定義位於檔案
gps.h
的
947
行。
設為 sizeof(AGpsInterface)
定義位於檔案
gps.h
的
923
行。
這個結構體的說明文件是由下列檔案產生:
-
hardware/libhardware/include/hardware/
gps.h
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-03-26 (世界標準時間)。
[null,null,["上次更新時間:2025-03-26 (世界標準時間)。"],[],[]]