public class PassiveProvider extends Object implements LocationProviderInterface
Constructor and Description |
---|
PassiveProvider(ILocationManager locationManager) |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
enable() |
String |
getName() |
ProviderProperties |
getProperties() |
int |
getStatus(Bundle extras) |
long |
getStatusUpdateTime() |
boolean |
isEnabled() |
boolean |
sendExtraCommand(String command,
Bundle extras) |
void |
setRequest(ProviderRequest request,
WorkSource source) |
void |
updateLocation(Location location) |
public String getName()
getName
in interface LocationProviderInterface
public ProviderProperties getProperties()
getProperties
in interface LocationProviderInterface
public boolean isEnabled()
isEnabled
in interface LocationProviderInterface
public void enable()
enable
in interface LocationProviderInterface
public void disable()
disable
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 void updateLocation(Location location)
public boolean sendExtraCommand(String command, Bundle extras)
sendExtraCommand
in interface LocationProviderInterface
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
dump
in interface LocationProviderInterface