Home
last modified time | relevance | path

Searched refs:netId (Results 1 – 8 of 8) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNetwork.java17 private int netId; field in ShadowNetwork
25 public static Network newInstance(int netId) { in newInstance() argument
26 return Shadow.newInstance(Network.class, new Class[] {int.class}, new Object[] {netId}); in newInstance()
30 protected void __constructor__(int netId) { in __constructor__() argument
31 this.netId = netId; in __constructor__()
61 return netId; in getNetId()
DShadowConnectivityManager.java262 int netId = shadowNetwork.getNetId(); in addNetwork() local
263 netIdToNetwork.put(netId, network); in addNetwork()
264 netIdToNetworkInfo.put(netId, networkInfo); in addNetwork()
273 int netId = shadowNetwork.getNetId(); in removeNetwork() local
274 netIdToNetwork.remove(netId); in removeNetwork()
275 netIdToNetworkInfo.remove(netId); in removeNetwork()
DShadowWifiManager.java133 protected boolean removeNetwork(int netId) { in removeNetwork() argument
134 networkIdToConfiguredNetworks.remove(netId); in removeNetwork()
154 protected boolean enableNetwork(int netId, boolean disableOthers) { in enableNetwork() argument
155 lastEnabledNetwork = new Pair<>(netId, disableOthers); in enableNetwork()
336 public WifiConfiguration getWifiConfiguration(int netId) { in getWifiConfiguration() argument
337 return networkIdToConfiguredNetworks.get(netId); in getWifiConfiguration()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNetworkTest.java23 final int netId = 123; in getNetId_shouldReturnConstructorNetId() local
25 Network network = ShadowNetwork.newInstance(netId); in getNetId_shouldReturnConstructorNetId()
27 assertThat(shadowNetwork.getNetId()).isEqualTo(netId); in getNetId_shouldReturnConstructorNetId()
DShadowWifiManagerTest.java410 int netId = wifiManager.addNetwork(wifiConfiguration); in reconnect_setsConnectionInfo() local
411 wifiManager.enableNetwork(netId, false); in reconnect_setsConnectionInfo()
425 int netId = wifiManager.addNetwork(config); in reconnect_shouldEnableDhcp() local
426 wifiManager.enableNetwork(netId, false); in reconnect_shouldEnableDhcp()
440 int netId = wifiManager.addNetwork(config); in reconnect_updatesConnectivityManager() local
441 wifiManager.enableNetwork(netId, false); in reconnect_updatesConnectivityManager()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiP2pManagerFacade.java547 public void wifiP2pDeletePersistentGroup(@RpcParameter(name = "netId") Integer netId) { in wifiP2pDeletePersistentGroup()
548 mP2p.deletePersistentGroup(mChannel, netId, in wifiP2pDeletePersistentGroup()
703 config.netId = j.getInt("netId"); in genWifiP2pConfig()
DWifiManagerFacade.java1086 public Boolean wifiEnableNetwork(@RpcParameter(name = "netId") Integer netId, in wifiEnableNetwork()
1088 return mWifi.enableNetwork(netId, disableOthers); in wifiEnableNetwork()
1321 public Boolean wifiRemoveNetwork(@RpcParameter(name = "netId") Integer netId) { in wifiRemoveNetwork()
1322 return mWifi.removeNetwork(netId); in wifiRemoveNetwork()
/external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
DJsonBuilder.java909 nw.put("netId", data.netId); in buildNetwork()
1120 wifiP2pConfig.put("netId", data.netId); in buildWifiP2pConfig()