public void interfaceLinkStateChanged(String iface, boolean up) { if (mIface.equals(iface) && mLinkUp != up) { Log.d(TAG, "Interface " + iface + " link " + (up ? "up" : "down")); mLinkUp = up; // use DHCP if (up) { mTracker.reconnect(); } else { NetworkUtils.stopDhcp(mIface); mTracker.mNetworkInfo.setIsAvailable(false); mTracker.mNetworkInfo.setDetailedState(DetailedState.DISCONNECTED, null, null); } } }
public void interfaceRemoved(String iface) { mTracker.interfaceRemoved(iface); }
public void interfaceAdded(String iface) { mTracker.interfaceAdded(iface); }