am 431dd3b1: am 86564dc6: Merge "GPS: Add update_network_state call to AGpsRillInterface" into gingerbread

Merge commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398'

* commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398':
  GPS: Add update_network_state call to AGpsRillInterface
This commit is contained in:
Mike Lockwood
2010-10-12 11:50:23 -07:00
committed by Android Git Automerger
2 changed files with 26 additions and 0 deletions

View File

@@ -493,6 +493,11 @@ public class GpsLocationProvider implements LocationProviderInterface {
+ " info: " + info);
}
if (info != null) {
native_update_network_state(info.isConnected(), info.getType(),
info.isRoaming(), info.getExtraInfo());
}
if (info != null && info.getType() == ConnectivityManager.TYPE_MOBILE_SUPL
&& mAGpsDataConnectionState == AGPS_DATA_CONNECTION_OPENING) {
String apnName = info.getExtraInfo();
@@ -1601,4 +1606,7 @@ public class GpsLocationProvider implements LocationProviderInterface {
private native void native_agps_set_ref_location_cellid(int type, int mcc, int mnc,
int lac, int cid);
private native void native_agps_set_id(int type, String setid);
private native void native_update_network_state(boolean connected, int type,
boolean roaming, String extraInfo);
}