public class GnssLocationProvider extends Object implements LocationProviderInterface
Modifier and Type | Class and Description |
---|---|
static interface |
GnssLocationProvider.GnssSystemInfoProvider |
Constructor and Description |
---|
GnssLocationProvider(Context context,
ILocationManager ilocationManager,
Looper looper) |
Modifier and Type | Method and Description |
---|---|
void |
disable()
Disables this provider.
|
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
enable()
Enables this provider.
|
GnssMeasurementsProvider |
getGnssMeasurementsProvider() |
GnssNavigationMessageProvider |
getGnssNavigationMessageProvider() |
IGnssStatusProvider |
getGnssStatusProvider() |
GnssLocationProvider.GnssSystemInfoProvider |
getGnssSystemInfoProvider() |
IGpsGeofenceHardware |
getGpsGeofenceProxy() |
String |
getName()
Returns the name of this provider.
|
INetInitiatedListener |
getNetInitiatedListener() |
ProviderProperties |
getProperties() |
int |
getStatus(Bundle extras) |
long |
getStatusUpdateTime() |
boolean |
isEnabled() |
static boolean |
isSupported() |
void |
reportNiNotification(int notificationId,
int niType,
int notifyFlags,
int timeout,
int defaultResponse,
String requestorId,
String text,
int requestorIdEncoding,
int textEncoding,
String extras) |
boolean |
sendExtraCommand(String command,
Bundle extras) |
void |
setRequest(ProviderRequest request,
WorkSource source) |
public IGnssStatusProvider getGnssStatusProvider()
public IGpsGeofenceHardware getGpsGeofenceProxy()
public GnssMeasurementsProvider getGnssMeasurementsProvider()
public GnssNavigationMessageProvider getGnssNavigationMessageProvider()
public static boolean isSupported()
public String getName()
getName
in interface LocationProviderInterface
public ProviderProperties getProperties()
getProperties
in interface LocationProviderInterface
public void enable()
enable
in interface LocationProviderInterface
public void disable()
disable
in interface LocationProviderInterface
public boolean isEnabled()
isEnabled
in interface LocationProviderInterface
public int getStatus(Bundle extras)
getStatus
in interface LocationProviderInterface
public long getStatusUpdateTime()
getStatusUpdateTime
in interface LocationProviderInterface
public void setRequest(ProviderRequest request, WorkSource source)
setRequest
in interface LocationProviderInterface
public boolean sendExtraCommand(String command, Bundle extras)
sendExtraCommand
in interface LocationProviderInterface
public GnssLocationProvider.GnssSystemInfoProvider getGnssSystemInfoProvider()
public INetInitiatedListener getNetInitiatedListener()
public void reportNiNotification(int notificationId, int niType, int notifyFlags, int timeout, int defaultResponse, String requestorId, String text, int requestorIdEncoding, int textEncoding, String extras)
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
dump
in interface LocationProviderInterface