public void addNetwork(Network network, NetworkInfo networkInfo) {
    ShadowNetwork shadowNetwork = Shadow.extract(network);
    int netId = shadowNetwork.getNetId();
    netIdToNetwork.put(netId, network);
    netIdToNetworkInfo.put(netId, networkInfo);
  }
public void addNetwork(Network network, NetworkInfo networkInfo) {
    ShadowNetwork shadowNetwork = Shadow.extract(network);
    int netId = shadowNetwork.getNetId();
    netIdToNetwork.put(netId, network);
    netIdToNetworkInfo.put(netId, networkInfo);
  }
public void addNetwork ( Network network , NetworkInfo networkInfo ) { ShadowNetwork shadowNetwork = Shadow . extract ( network ) ; int netId = shadowNetwork . getNetId ( ) ; netIdToNetwork . put ( netId , network ) ; netIdToNetworkInfo . put ( netId , networkInfo ) ; }
Adds new {@code network} to the list of all {@link android.net.Network}s.

@param network The network.
@param networkInfo The network info paired with the {@link android.net.Network}.
Adds new { @code network } to the list of all { @link android . net . Network } s .