public class LocationProviderProxy extends Object implements LocationProviderInterface
Modifier and Type | Method and Description |
---|---|
static LocationProviderProxy |
createAndBind(Context context,
String name,
String action,
int overlaySwitchResId,
int defaultServicePackageNameResId,
int initialPackageNamesResId,
Handler handler) |
void |
disable() |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
enable() |
String |
getConnectedPackageName() |
String |
getName() |
ProviderProperties |
getProperties() |
int |
getStatus(Bundle extras) |
long |
getStatusUpdateTime() |
boolean |
isEnabled() |
boolean |
sendExtraCommand(String command,
Bundle extras) |
void |
setRequest(ProviderRequest request,
WorkSource source) |
public static LocationProviderProxy createAndBind(Context context, String name, String action, int overlaySwitchResId, int defaultServicePackageNameResId, int initialPackageNamesResId, Handler handler)
public String getConnectedPackageName()
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 void setRequest(ProviderRequest request, WorkSource source)
setRequest
in interface LocationProviderInterface
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)
dump
in interface LocationProviderInterface
public int getStatus(Bundle extras)
getStatus
in interface LocationProviderInterface
public long getStatusUpdateTime()
getStatusUpdateTime
in interface LocationProviderInterface
public boolean sendExtraCommand(String command, Bundle extras)
sendExtraCommand
in interface LocationProviderInterface