GPS: Add update_network_state call to AGpsRillInterface

Change-Id: I404a7a45773f592de7dfe75a8287fef15515ea8b
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
Mike Lockwood
2010-10-11 06:22:50 -04:00
committed by Mike Lockwood
parent c8511af04a
commit 50130bbc88
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);
}