Home
last modified time | relevance | path

Searched refs:addNetwork (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DLruConnectionTrackerTest.java57 mList.addNetwork(network); in testAddRemoveNetwork()
70 mList.addNetwork(network1); in testConnectionOrderStore()
71 mList.addNetwork(network2); in testConnectionOrderStore()
72 mList.addNetwork(network3); in testConnectionOrderStore()
73 mList.addNetwork(network4); in testConnectionOrderStore()
80 mList.addNetwork(network5); in testConnectionOrderStore()
84 mList.addNetwork(network3); in testConnectionOrderStore()
97 mList.addNetwork(network1); in testIsMostRecentlyNetwork()
98 mList.addNetwork(network2); in testIsMostRecentlyNetwork()
99 mList.addNetwork(network3); in testIsMostRecentlyNetwork()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java95 when(mWifiManager.addNetwork(any(WifiConfiguration.class))).thenReturn(TEST_NETWORK_ID); in setUp()
177 when(mWifiManager.addNetwork(any(WifiConfiguration.class))).thenReturn(-1); in verifyNetworkConnectionWhenAddNetworkFails()
307 verify(mWifiManager, times(1)).addNetwork(wifiConfigurationCaptor.capture()); in verifyWifiConfigurationForOsuNetwork()
335 verify(mWifiManager, times(1)).addNetwork(wifiConfigurationCaptor.capture()); in verifyWifiConfigurationForOsenOsuNetwork()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DAddWifiNetworkTaskTest.java215 when(mWifiManager.addNetwork(any())).thenReturn(ADD_NETWORK_FAIL); in testFailingAddingNetwork()
245 when(mWifiManager.addNetwork(any())).thenReturn(ADD_NETWORK_OK); in testFailingToReconnectAfterAddingNetwork()
281 when(mWifiManager.addNetwork(any())).thenReturn(ADD_NETWORK_OK); in testReconnectAfterAddingNetworkSuccess()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAddWifiNetworkTask.java154 int netId = mWifiManager.addNetwork(wifiConf); in tryAddingNetwork()
167 netId = mWifiManager.addNetwork(wifiConf); in tryAddingNetwork()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DLruConnectionTracker.java48 public void addNetwork(@NonNull WifiConfiguration config) { in addNetwork() method in LruConnectionTracker
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowConnectivityManager.java62 super.addNetwork(network, mock(NetworkInfo.class)); in addNetworkCapabilities()
DShadowWifiManager.java55 protected int addNetwork(WifiConfiguration config) { in addNetwork() method in ShadowWifiManager
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java3980 mLruConnectionTracker.addNetwork(network3); in testRetrievePnoList()
3981 mLruConnectionTracker.addNetwork(network2); in testRetrievePnoList()
3982 mLruConnectionTracker.addNetwork(network1); in testRetrievePnoList()
4023 mLruConnectionTracker.addNetwork(network2); in testRetrievePnoListFrequencies()
4024 mLruConnectionTracker.addNetwork(network1); in testRetrievePnoListFrequencies()
4078 mLruConnectionTracker.addNetwork(network1); in testRetrievePnoListOrder()
4079 mLruConnectionTracker.addNetwork(network2); in testRetrievePnoListOrder()
4080 mLruConnectionTracker.addNetwork(network3); in testRetrievePnoListOrder()
4121 mLruConnectionTracker.addNetwork(configuration2); in testFetchChannelSetForPartialScanMaxCount()
4122 mLruConnectionTracker.addNetwork(configuration1); in testFetchChannelSetForPartialScanMaxCount()
DSupplicantStaIfaceHalTest.java524 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in testConnectToNetworkWithDifferentConfigReplacesNetworkInSupplicant()
538 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in connectToNetworkWithSameNetworkDoesNotRemoveNetworkFromSupplicant()
560 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in connectToNetworkWithSameNetworkButDifferentBssidUpdatesNetworkFromSupplicant()
575 }).when(mISupplicantStaIfaceMock).addNetwork( in testConnectFailureDueToNetworkAddFailure()
2887 }).when(mISupplicantStaIfaceMock).addNetwork( in setupMocksForConnectSequence()
2903 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in validateConnectSequence()
3002 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in executeAndValidateRoamSequence()
DWifiNetworkSuggestionsManagerTest.java4253 verify(mLruConnectionTracker).addNetwork(any()); in testIsMostRecentlyConnectedSuggestion()
4262 verify(mLruConnectionTracker, never()).addNetwork(any()); in testIsMostRecentlyConnectedSuggestion()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java97 int networkId = wifiManager.addNetwork(mCurrentWifiConfiguration); in doConnect()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuNetworkConnection.java202 mNetworkId = mWifiManager.addNetwork(config); in connect()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiConfigHelper.java193 int networkId = wifiMan.addNetwork(config); in saveConfiguration()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java184 mWifiManager.addNetwork(mWifiConfiguration); in proceedDependOnNetworkState()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java184 final int id = wifiManager.addNetwork(qrCodeWifiConfiguration);
/packages/modules/Connectivity/tests/cts/net/util/java/android/net/cts/util/
DCtsNetUtils.java322 final int networkId = mWifiManager.addNetwork(virtualConfig); in maybeConfigureVirtualNetwork()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceHal.java962 SupplicantStaNetworkHal network = addNetwork(ifaceName); in addNetworkAndSaveConfig()
1336 private SupplicantStaNetworkHal addNetwork(@NonNull String ifaceName) { in addNetwork() method in SupplicantStaIfaceHal
1343 iface.addNetwork((SupplicantStatus status, in addNetwork()
DWifiConfigManager.java2050 mLruConnectionTracker.addNetwork(config); in updateNetworkAfterConnect()
3165 mLruConnectionTracker.addNetwork(configuration); in loadInternalDataFromUserStore()
DWifiNetworkSuggestionsManager.java538 .addNetwork(ewns.createInternalWifiConfiguration( in fromDeserialized()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java2453 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork()
2457 assertEquals(mWifiManager.addNetwork(null), -1); in testAddNetwork()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiManager.java1685 public int addNetwork(WifiConfiguration config) { in addNetwork() method in WifiManager
/packages/modules/Wifi/framework/api/
Dcurrent.txt345 method @Deprecated public int addNetwork(android.net.wifi.WifiConfiguration);