Searched defs:mLastLocation (Results 1 - 2 of 2) sorted by relevance

/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DClusterManager.java58 private Location mLastLocation = null; field in class:ClusterManager
113 if (mLastLocation != null) {
114 if (location.getTime() == mLastLocation.getTime()) {
118 long duration = (location.getTime() - mLastLocation.getTime()) / 1000;
128 float distance = mLocationClusters.get(i).distanceToCenter(mLastLocation);
138 mLocationClusters.get(bestClusterIndex).addSample(mLastLocation, duration);
141 LocationCluster cluster = new LocationCluster(mLastLocation, duration);
170 mLastLocation = location;
316 if (mLastLocation != null) {
320 if (cluster.distanceToCenter(mLastLocation) < SEMANTIC_CLUSTER_RADIU
[all...]
/frameworks/base/services/java/com/android/server/
H A DLocationManagerService.java182 private final HashMap<String, Location> mLastLocation = new HashMap<String, Location>(); field in class:LocationManagerService
184 // same as mLastLocation, but is not updated faster than LocationFudger.FASTEST_INTERVAL_MS.
458 mLastLocation.clear();
1608 location = mLastLocation.get(name);
1919 Location lastLocation = mLastLocation.get(provider);
1922 mLastLocation.put(provider, lastLocation);
2207 mLastLocation.put(name, null);
2230 mLastLocation.put(provider, null);
2357 for (Map.Entry<String, Location> entry : mLastLocation.entrySet()) {

Completed in 182 milliseconds