Annotate Locations coming from mock providers

LocationManagerService now annotates incoming Location objects that
have come from mock location providers. The new isFromMockProvider()
method can be called on any Location to determine whether the
provider that supplied the Location was a mock location provider.

Bug: 6813235
Change-Id: Ib5140e93ea427f2e0b0036151047f87a02b4d23a
This commit is contained in:
Victoria Lease
2013-01-08 09:39:50 -08:00
parent f25febf014
commit 54ca7aef2e
4 changed files with 48 additions and 6 deletions

View File

@@ -1549,9 +1549,9 @@ public class LocationManager {
public GpsStatus getGpsStatus(GpsStatus status) {
if (status == null) {
status = new GpsStatus();
}
status.setStatus(mGpsStatus);
return status;
}
status.setStatus(mGpsStatus);
return status;
}
/**