Searched refs:netIdToNetwork (Results 1 – 1 of 1) sorted by relevance
40 private final Map<Integer, Network> netIdToNetwork = new HashMap<>(); field in ShadowConnectivityManager63 netIdToNetwork.put(NET_ID_WIFI, ShadowNetwork.newInstance(NET_ID_WIFI)); in ShadowConnectivityManager()64 netIdToNetwork.put(NET_ID_MOBILE, ShadowNetwork.newInstance(NET_ID_MOBILE)); in ShadowConnectivityManager()125 return netIdToNetwork.get(getActiveNetworkInfo().getType()); in getActiveNetwork()161 return netIdToNetwork.values().toArray(new Network[netIdToNetwork.size()]); in getAllNetworks()238 netIdToNetwork.put(info.getType(), ShadowNetwork.newInstance(info.getType())); in setActiveNetworkInfo()242 netIdToNetwork.clear(); in setActiveNetworkInfo()263 netIdToNetwork.put(netId, network); in addNetwork()274 netIdToNetwork.remove(netId); in removeNetwork()282 netIdToNetwork.clear(); in clearAllNetworks()