Loading src/java/com/android/internal/telephony/dataconnection/DataConnection.java +3 −5 Original line number Diff line number Diff line Loading @@ -1859,10 +1859,8 @@ public class DataConnection extends StateMachine { DataConnection.this, mTransportType); NetworkInfo networkInfo = mHandoverSourceNetworkAgent.getNetworkInfo(); if (networkInfo != null) { networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "dangling clean up", networkInfo.getExtraInfo()); mHandoverSourceNetworkAgent.sendNetworkInfo(networkInfo, DataConnection.this); log("Cleared dangling network agent. " + mHandoverSourceNetworkAgent); mHandoverSourceNetworkAgent.unregister(DataConnection.this); } else { String str = "Failed to get network info."; loge(str); Loading src/java/com/android/internal/telephony/dataconnection/DcNetworkAgent.java +17 −6 Original line number Diff line number Diff line Loading @@ -269,6 +269,22 @@ public class DcNetworkAgent extends NetworkAgent { sendNetworkScore(score); } /** * Unregister the network agent from connectivity service. * * @param dc The data connection that invokes this method. */ public synchronized void unregister(DataConnection dc) { if (!isOwned(dc, "unregister")) return; if (dc.getLinkProperties() != null && !TextUtils.isEmpty(dc.getLinkProperties().getInterfaceName())) { sInterfaceNames.remove(dc.getLinkProperties().getInterfaceName()); } logd("Unregister from connectivity service"); super.unregister(); } /** * Set the network info. * Loading @@ -288,12 +304,7 @@ public class DcNetworkAgent extends NetworkAgent { } if ((oldState == NetworkInfo.State.SUSPENDED || oldState == NetworkInfo.State.CONNECTED) && state == NetworkInfo.State.DISCONNECTED) { if (dc.getLinkProperties() != null && !TextUtils.isEmpty(dc.getLinkProperties().getInterfaceName())) { sInterfaceNames.remove(dc.getLinkProperties().getInterfaceName()); } logd("Unregister from connectivity service"); unregister(); unregister(dc); } mNetworkInfo = new NetworkInfo(networkInfo); } Loading Loading
src/java/com/android/internal/telephony/dataconnection/DataConnection.java +3 −5 Original line number Diff line number Diff line Loading @@ -1859,10 +1859,8 @@ public class DataConnection extends StateMachine { DataConnection.this, mTransportType); NetworkInfo networkInfo = mHandoverSourceNetworkAgent.getNetworkInfo(); if (networkInfo != null) { networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "dangling clean up", networkInfo.getExtraInfo()); mHandoverSourceNetworkAgent.sendNetworkInfo(networkInfo, DataConnection.this); log("Cleared dangling network agent. " + mHandoverSourceNetworkAgent); mHandoverSourceNetworkAgent.unregister(DataConnection.this); } else { String str = "Failed to get network info."; loge(str); Loading
src/java/com/android/internal/telephony/dataconnection/DcNetworkAgent.java +17 −6 Original line number Diff line number Diff line Loading @@ -269,6 +269,22 @@ public class DcNetworkAgent extends NetworkAgent { sendNetworkScore(score); } /** * Unregister the network agent from connectivity service. * * @param dc The data connection that invokes this method. */ public synchronized void unregister(DataConnection dc) { if (!isOwned(dc, "unregister")) return; if (dc.getLinkProperties() != null && !TextUtils.isEmpty(dc.getLinkProperties().getInterfaceName())) { sInterfaceNames.remove(dc.getLinkProperties().getInterfaceName()); } logd("Unregister from connectivity service"); super.unregister(); } /** * Set the network info. * Loading @@ -288,12 +304,7 @@ public class DcNetworkAgent extends NetworkAgent { } if ((oldState == NetworkInfo.State.SUSPENDED || oldState == NetworkInfo.State.CONNECTED) && state == NetworkInfo.State.DISCONNECTED) { if (dc.getLinkProperties() != null && !TextUtils.isEmpty(dc.getLinkProperties().getInterfaceName())) { sInterfaceNames.remove(dc.getLinkProperties().getInterfaceName()); } logd("Unregister from connectivity service"); unregister(); unregister(dc); } mNetworkInfo = new NetworkInfo(networkInfo); } Loading