Stay organized with collections
Save and categorize content based on your preferences.
GpsInterface Struct Reference
#include <
gps.h
>
Represents the standard GPS interface.
Definition at line
790
of file
gps.h
.
Closes the interface.
Definition at line
806
of file
gps.h
.
Specifies that the next call to start will not use the information defined in the flags. GPS_DELETE_ALL is passed for a cold start.
Definition at line
824
of file
gps.h
.
const void*(* get_extension)(const char *name)
|
Get a pointer to extension information.
Definition at line
841
of file
gps.h
.
Opens the interface and provides the callback routines to the implementation of this interface.
Definition at line
797
of file
gps.h
.
int(* inject_location)(double latitude, double longitude, float accuracy)
|
Injects current location from another location provider (typically cell ID). Latitude and longitude are measured in degrees expected accuracy is measured in meters
Definition at line
817
of file
gps.h
.
int(* inject_time)(
GpsUtcTime
time, int64_t timeReference, int uncertainty)
|
Injects the current time.
Definition at line
809
of file
gps.h
.
min_interval represents the time between fixes in milliseconds. preferred_accuracy represents the requested fix accuracy in meters. preferred_time represents the requested time to first fix in milliseconds.
'mode' parameter should be one of GPS_POSITION_MODE_MS_BASED or GPS_POSITION_MODE_STANDALONE. It is allowed by the platform (and it is recommended) to fallback to GPS_POSITION_MODE_MS_BASED if GPS_POSITION_MODE_MS_ASSISTED is passed in, and GPS_POSITION_MODE_MS_BASED is supported.
Definition at line
837
of file
gps.h
.
set to sizeof(GpsInterface)
Definition at line
792
of file
gps.h
.
Starts navigating.
Definition at line
800
of file
gps.h
.
Stops navigating.
Definition at line
803
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "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."]]