Home
last modified time | relevance | path

Searched refs:currentBestLocation (Results 1 – 1 of 1) sorted by relevance

/development/samples/training/location-aware/src/com/example/android/location/
DLocationActivity.java287 protected Location getBetterLocation(Location newLocation, Location currentBestLocation) { in getBetterLocation() argument
288 if (currentBestLocation == null) { in getBetterLocation()
294 long timeDelta = newLocation.getTime() - currentBestLocation.getTime(); in getBetterLocation()
305 return currentBestLocation; in getBetterLocation()
309 int accuracyDelta = (int) (newLocation.getAccuracy() - currentBestLocation.getAccuracy()); in getBetterLocation()
316 currentBestLocation.getProvider()); in getBetterLocation()
326 return currentBestLocation; in getBetterLocation()