Searched refs:networks (Results 1 – 10 of 10) sorted by relevance
42 public void onHotspotNetworksUpdated(List<HotspotNetwork> networks) { in onHotspotNetworksUpdated() argument44 mHotspotNetworksList = networks; in onHotspotNetworksUpdated()48 public void onKnownNetworksUpdated(List<KnownNetwork> networks) { in onKnownNetworksUpdated() argument50 mKnownNetworksList = networks; in onKnownNetworksUpdated()
118 Network[] networks = connectivityManager.getAllNetworks(); in run() local120 "testSetNetwork requires at least one available Network", networks.length > 0); in run()125 pacProcessor.setNetwork(networks[0]); in run()126 Assert.assertEquals("Network is not set", networks[0], pacProcessor.getNetwork()); in run()
260 public void onHotspotNetworksUpdated(List<HotspotNetwork> networks) { in setHotspotNetworks_managerCallbackReceivedWithCorrectData()261 super.onHotspotNetworksUpdated(networks); in setHotspotNetworks_managerCallbackReceivedWithCorrectData()269 List<HotspotNetwork> networks = Arrays.asList(mTestHotspotNetwork1, in setHotspotNetworks_managerCallbackReceivedWithCorrectData() local271 service.setHotspotNetworks(networks); in setHotspotNetworks_managerCallbackReceivedWithCorrectData()274 assertThat(callback.getHotspotNetworksList()).containsExactlyElementsIn(networks); in setHotspotNetworks_managerCallbackReceivedWithCorrectData()290 public void onKnownNetworksUpdated(List<KnownNetwork> networks) { in setKnownNetworks_managerCallbackReceivedWithCorrectData()291 super.onKnownNetworksUpdated(networks); in setKnownNetworks_managerCallbackReceivedWithCorrectData()299 List<KnownNetwork> networks = Arrays.asList(mTestKnownNetwork1, mTestKnownNetwork2); in setKnownNetworks_managerCallbackReceivedWithCorrectData() local300 service.setKnownNetworks(networks); in setKnownNetworks_managerCallbackReceivedWithCorrectData()303 assertThat(callback.getKnownNetworksList()).containsExactlyElementsIn(networks); in setKnownNetworks_managerCallbackReceivedWithCorrectData()
174 Network[] networks = mConnectivityManager.getAllNetworks(); in hasCellularNetwork() local175 for (Network network : networks) { in hasCellularNetwork()188 Network[] networks = mConnectivityManager.getAllNetworks(); in hasEthernetConnection()189 for (Network network : networks) { in hasEthernetConnection()269 Network[] networks = mConnectivityManager.getAllNetworks(); in setAirplaneMode()270 for (Network network : networks) { in setAirplaneMode()
98 Network[] networks = mCm.getAllNetworks(); in getIpAddresses() local99 for (int i = 0; i < networks.length; i++) { in getIpAddresses()100 NetworkInfo ni = mCm.getNetworkInfo(networks[i]); in getIpAddresses()104 LinkProperties lp = mCm.getLinkProperties(networks[i]); in getIpAddresses()
504 List<HotspotNetwork> networks = List.of(buildHotspotNetwork()); in getHotspotNetworks_shouldReturnNetworksList() local506 when(mService.getHotspotNetworks()).thenReturn(networks); in getHotspotNetworks_shouldReturnNetworksList()532 List<KnownNetwork> networks = List.of(buildKnownNetwork()); in getKnownNetworks_shouldReturnNetworksList() local534 when(mService.getKnownNetworks()).thenReturn(networks); in getKnownNetworks_shouldReturnNetworksList()
176 List<WifiConfiguration> networks = TestHelper.findMatchingSavedNetworksWithBssid( in setUpClass() local178 if (!networks.isEmpty()) { in setUpClass()179 sTestNetwork = networks.get(0); in setUpClass()
956 Network[] networks = mConnectivityManager.getAllNetworks(); in getNumWifiConnections() local957 return Arrays.stream(networks) in getNumWifiConnections()
619 private int findConfiguredNetworks(String SSID, List<WifiConfiguration> networks) { in findConfiguredNetworks() argument620 for (final WifiConfiguration w : networks) { in findConfiguredNetworks()622 return networks.indexOf(w); in findConfiguredNetworks()
1067 Network[] networks = connManager.getAllNetworks(); in isWifiConnected() local1068 for (Network network : networks) { in isWifiConnected()