Home
last modified time | relevance | path

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

12

/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/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DCurrentEthernetNetworksViewModel.java87 private void addNetwork(Network network) { in addNetwork() method in CurrentEthernetNetworksViewModel
146 runOnUiThread(() -> addNetwork(network)); in onAvailable()
/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/Permission/tests/cts/permission/src/android/permission/cts/
DNoWifiStatePermissionTest.java147 mWifiManager.addNetwork(TEST_WIFI_CONFIGURATION); in testAddNetwork()
/packages/apps/Nfc/src/com/android/nfc/
DConfirmConnectToWifiNetworkActivity.java100 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/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DConnectUtil.kt221 val networkId = wifiManager.addNetwork(virtualConfig) in maybeConfigureVirtualNetwork()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConnectivityManagerTest.java5677 mLruConnectionTracker.addNetwork(network3); in testExternalPnoScanRequest_withSavedNetworks()
5678 mLruConnectionTracker.addNetwork(network2); in testExternalPnoScanRequest_withSavedNetworks()
5679 mLruConnectionTracker.addNetwork(network1); in testExternalPnoScanRequest_withSavedNetworks()
5752 mLruConnectionTracker.addNetwork(network4); in testRetrievePnoList()
5753 mLruConnectionTracker.addNetwork(network3); in testRetrievePnoList()
5754 mLruConnectionTracker.addNetwork(network2); in testRetrievePnoList()
5755 mLruConnectionTracker.addNetwork(network1); in testRetrievePnoList()
5810 mLruConnectionTracker.addNetwork(network2); in testRetrievePnoListFrequencies()
5811 mLruConnectionTracker.addNetwork(network1); in testRetrievePnoListFrequencies()
5880 mLruConnectionTracker.addNetwork(network1); in testRetrievePnoListOrder()
[all …]
DSupplicantStaIfaceHalAidlImplTest.java404 verify(mISupplicantStaIfaceMock).addNetwork(); in testConnectToNetworkWithDifferentConfigReplacesNetworkInSupplicant()
422 verify(mISupplicantStaIfaceMock, never()).addNetwork(); in connectToNetworkWithSameNetworkDoesNotRemoveNetworkFromSupplicant()
449 verify(mISupplicantStaIfaceMock, never()).addNetwork(); in connectToNetworkWithSameNetworkButDifferentBssidUpdatesNetworkFromSupplicant()
460 .when(mISupplicantStaIfaceMock).addNetwork(); in testConnectFailureDueToNetworkAddFailure()
2617 verify(mISupplicantStaIfaceMock, never()).addNetwork(); in verifySetEapAnonymousIdentity()
2925 doReturn(mock(ISupplicantStaNetwork.class)).when(mISupplicantStaIfaceMock).addNetwork(); in setupMocksForConnectSequence()
2940 verify(mISupplicantStaIfaceMock, times(numNetworkAdditions)).addNetwork(); in validateConnectSequence()
3067 verify(mISupplicantStaIfaceMock, times(2)).addNetwork(); in executeAndValidateRoamSequence()
DSupplicantStaIfaceHalHidlImplTest.java542 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in testConnectToNetworkWithDifferentConfigReplacesNetworkInSupplicant()
557 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in connectToNetworkWithSameNetworkDoesNotRemoveNetworkFromSupplicant()
580 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in connectToNetworkWithSameNetworkButDifferentBssidUpdatesNetworkFromSupplicant()
595 }).when(mISupplicantStaIfaceMock).addNetwork( in testConnectFailureDueToNetworkAddFailure()
3233 }).when(mISupplicantStaIfaceMock).addNetwork( in setupMocksForConnectSequence()
3250 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in validateConnectSequence()
3383 .addNetwork(any(ISupplicantStaIface.addNetworkCallback.class)); in executeAndValidateRoamSequence()
DWifiNetworkSuggestionsManagerTest.java4454 verify(mLruConnectionTracker).addNetwork(any()); in testIsMostRecentlyConnectedSuggestion()
4463 verify(mLruConnectionTracker, never()).addNetwork(any()); in testIsMostRecentlyConnectedSuggestion()
DWifiConfigManagerTest.java899 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, mWifiConfigManager.addNetwork( in testAddNetworkDoNotOverrideExistingNetwork()
902 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, mWifiConfigManager.addNetwork( in testAddNetworkDoNotOverrideExistingNetwork()
DWifiServiceImplTest.java5113 when(mWifiConfigManager.addNetwork(any(), anyInt())) in testRestoreNetworkConfiguration()
5119 verify(mWifiConfigManager, never()).addNetwork(eq(config), anyInt()); in testRestoreNetworkConfiguration()
5122 verify(mWifiConfigManager, times(configNum)).addNetwork(eq(config), anyInt()); in testRestoreNetworkConfiguration()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeScannerFragment.java192 final int id = wifiManager.addNetwork(qrCodeWifiConfiguration);
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceHalAidlImpl.java607 SupplicantStaNetworkHalAidlImpl network = addNetwork(ifaceName); in addNetworkAndSaveConfig()
1076 private SupplicantStaNetworkHalAidlImpl addNetwork(@NonNull String ifaceName) { in addNetwork() method in SupplicantStaIfaceHalAidlImpl
1084 ISupplicantStaNetwork network = iface.addNetwork(); in addNetwork()
DSupplicantStaIfaceHalHidlImpl.java941 SupplicantStaNetworkHalHidlImpl network = addNetwork(ifaceName); in addNetworkAndSaveConfig()
1387 private SupplicantStaNetworkHalHidlImpl addNetwork(@NonNull String ifaceName) { in addNetwork() method in SupplicantStaIfaceHalHidlImpl
1394 iface.addNetwork((SupplicantStatus status, in addNetwork()
DWifiConfigManager.java1754 public NetworkUpdateResult addNetwork(WifiConfiguration config, int uid) { in addNetwork() method in WifiConfigManager
2439 mLruConnectionTracker.addNetwork(config); in updateNetworkAfterConnect()
3617 mLruConnectionTracker.addNetwork(configuration); in loadInternalDataFromUserStore()
DWifiNetworkSuggestionsManager.java555 .addNetwork(ewns.createInternalWifiConfiguration( in fromDeserialized()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java2677 assertEquals(mWifiManager.addNetwork(configuration), TEST_NETWORK_ID); in testAddNetwork()
2688 assertEquals(mWifiManager.addNetwork(null), -1); in testAddNetwork()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiManager.java2840 public int addNetwork(WifiConfiguration config) { in addNetwork() method in WifiManager

12