location: Replace ILocationCollector interface with new ILocationProvider method
This change replaces ILocationCollector with a more general mechanism that passes locations received from a provider to all other providers. The network location provider now uses this to implement the location collector. In the future, this could be used to inject network locations to the GPS as aiding data. This change also removes the now obsolete permission INSTALL_LOCATION_COLLECTOR. Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -219,6 +219,14 @@ public class LocationProviderProxy implements IBinder.DeathRecipient {
|
||||
}
|
||||
}
|
||||
|
||||
public void updateLocation(Location location) {
|
||||
try {
|
||||
mProvider.updateLocation(location);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "updateLocation failed", e);
|
||||
}
|
||||
}
|
||||
|
||||
public boolean sendExtraCommand(String command, Bundle extras) {
|
||||
try {
|
||||
return mProvider.sendExtraCommand(command, extras);
|
||||
|
||||
Reference in New Issue
Block a user