FileDocCategorySizeDatePackage
ILocationCollector.javaAPI DocAndroid 1.5 API2428Wed May 06 22:42:00 BST 2009com.android.internal.location

ILocationCollector

public interface ILocationCollector
Listens for GPS and cell/wifi changes and anonymously uploads to server for improving quality of service of NetworkLocationProvider. This service is only enabled when the user has enabled the network location provider. {@hide}

Fields Summary
Constructors Summary
Methods Summary
public abstract voidupdateBatteryState(int scale, int level, boolean plugged)
Updates the battery health. Battery level is healthy if there is greater than {@link #MIN_BATTERY_LEVEL} percentage left or if the device is plugged in

param
scale maximum scale for battery
param
level current level
param
plugged true if device is plugged in

public abstract voidupdateCellState(com.android.internal.location.CellState newState)
Updates cell tower state. This is usually always up to date so should be uploaded each time a new location is available.

param
newState cell state

public abstract voidupdateLocation(android.location.Location location)
Updates GPS location if collection is enabled

param
location location object

public abstract voidupdateNetworkProviderStatus(boolean enabled)
Updates the status of the network location provider.

param
enabled true if user has enabled network location based on Google's database of wifi points and cell towers.

public abstract voidupdateWifiScanResults(java.util.List currentScanResults)
Updates wifi scan results if collection is enabled

param
currentScanResults scan results