Home
last modified time | relevance | path

Searched refs:newLocation (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
290 return newLocation; in getBetterLocation()
294 long timeDelta = newLocation.getTime() - currentBestLocation.getTime(); in getBetterLocation()
302 return newLocation; in getBetterLocation()
309 int accuracyDelta = (int) (newLocation.getAccuracy() - currentBestLocation.getAccuracy()); in getBetterLocation()
315 boolean isFromSameProvider = isSameProvider(newLocation.getProvider(), in getBetterLocation()
320 return newLocation; in getBetterLocation()
322 return newLocation; in getBetterLocation()
324 return newLocation; in getBetterLocation()