Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
GpsNiInterface Struct Reference
#include <
gps.h
>
Extended interface for Network-initiated (NI) support.
Definition at line
1106
of file
gps.h
.
Registers the callbacks for HAL to use.
Definition at line
1112
of file
gps.h
.
Sends a response to HAL.
Definition at line
1115
of file
gps.h
.
set to sizeof(GpsNiInterface)
Definition at line
1109
of file
gps.h
.
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
gps.h
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."],[],[],null,["# Android Hardware Abstraction Layer: GpsNiInterface Struct Reference\n\nGpsNiInterface Struct Reference\n===============================\n\n[Data Fields](#pub-attribs) \nGpsNiInterface 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_ni_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| void(\\* | [init](/reference/hal/struct_gps_ni_interface#a1a30606a934ba9dd8c5b20ecaa6d0993) )( [GpsNiCallbacks](/reference/hal/struct_gps_ni_callbacks) \\*callbacks) |\n| ||\n| void(\\* | [respond](/reference/hal/struct_gps_ni_interface#acd9630cb0d6596df6ccc01e3d0614dce) )(int notif_id, [GpsUserResponseType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) user_response) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nExtended interface for Network-initiated (NI) support.\n\n\nDefinition at line\n[1106](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)( [GpsNiCallbacks](/reference/hal/struct_gps_ni_callbacks) \\*callbacks) |\n\n\nRegisters the callbacks for HAL to use.\n\n\nDefinition at line\n[1112](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(\\* respond)(int notif_id, [GpsUserResponseType](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h) user_response) |\n\n\nSends a response to HAL.\n\n\nDefinition at line\n[1115](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(GpsNiInterface)\n\n\nDefinition at line\n[1109](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)"]]