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