Home
last modified time | relevance | path

Searched refs:addOrUpdateNetwork (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluatorTest.java221 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingHomeProvider()
231 verify(mWifiConfigManager).addOrUpdateNetwork(addedConfig.capture(), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider()
264 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingRoamingProvider()
274 verify(mWifiConfigManager).addOrUpdateNetwork(addedConfig.capture(), anyInt()); in evaluateScansWithNetworkMatchingRoamingProvider()
309 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork()
319 verify(mWifiConfigManager).addOrUpdateNetwork(addedConfig.capture(), anyInt()); in evaluateScansWithHomeProviderNewtorkAndRoamingProviderNetwork()
364 verify(mWifiConfigManager, never()).addOrUpdateNetwork( in evaluateScansWithActiveNetworkMatchingHomeProvider()
421 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateSIMProviderWithNetworkSupportingEncryptedIMSI()
663 verify(mWifiConfigManager, never()).addOrUpdateNetwork(any(WifiConfiguration.class), in evaluateNetworkWithDisabledWifiConfig()
683 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScanResultWithHomeMatchButPreviouslyUserDisconnected()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionEvaluatorTest.java388 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt(), anyString())) in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
405 verify(mWifiConfigManager).addOrUpdateNetwork(any(), anyInt(), anyString()); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
636 when(mWifiConfigManager.addOrUpdateNetwork( in setupAddToWifiConfigManager()
668 verify(mWifiConfigManager, times(candidates.length)).addOrUpdateNetwork( in verifyAddToWifiConfigManager()
DConnectionFailureNotifierTest.java147 verify(mWifiConfigManager).addOrUpdateNetwork( in testConnectionFailureSendRandomizationSettingsNotification()
DClientModeImplTest.java742 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in canSaveNetworkConfig()
752 verify(mWifiConfigManager).addOrUpdateNetwork(any(WifiConfiguration.class), anyInt()); in canSaveNetworkConfig()
784 .addOrUpdateNetwork(any(WifiConfiguration.class), anyInt()); in saveNetworkConfigFailsWithNullConfig()
796 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in saveNetworkConfigFailsWithConfigAddFailure()
804 verify(mWifiConfigManager).addOrUpdateNetwork(any(WifiConfiguration.class), anyInt()); in saveNetworkConfigFailsWithConfigAddFailure()
817 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in saveNetworkConfigFailsWithConfigEnableFailure()
827 verify(mWifiConfigManager).addOrUpdateNetwork(any(WifiConfiguration.class), anyInt()); in saveNetworkConfigFailsWithConfigEnableFailure()
852 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in addNetworkAndVerifySuccess()
862 verify(mWifiConfigManager).addOrUpdateNetwork(eq(config), anyInt()); in addNetworkAndVerifySuccess()
1093 verify(mWifiConfigManager).addOrUpdateNetwork(any(), anyInt()); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
[all …]
DWifiServiceImplTest.java2681 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddPasspointProfileViaAddNetwork()
2690 assertEquals(-1, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddPasspointProfileViaAddNetwork()
3733 assertEquals(-1, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsNotAllowedForAppsTargetingQSDK()
3753 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsAllowedForAppsTargetingBelowQSDK()
3772 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsAllowedForSettingsApp()
3795 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsAllowedForSystemApp()
3816 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsAllowedForAppsWithSystemAlertPermission()
3838 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsAllowedForDOApp()
3859 assertEquals(0, mWifiServiceImpl.addOrUpdateNetwork(config, TEST_PACKAGE_NAME)); in testAddOrUpdateNetworkIsAllowedForPOApp()
DWifiNetworkSelectorTestUtil.java382 when(wifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in setupEphemeralNetwork()
DWifiConfigManagerTest.java287 mWifiConfigManager.addOrUpdateNetwork(openNetwork, TEST_CREATOR_UID).isSuccess()); in testAddNetworkIsRejectedBeforeLoadFromStore()
497 mWifiConfigManager.addOrUpdateNetwork(openNetwork, TEST_CREATOR_UID); in testRandomizedMacAddressIsGeneratedForConfigurationReadFromStore()
775 mWifiConfigManager.addOrUpdateNetwork(openNetwork, TEST_CREATOR_UID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
1303 NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork(null, TEST_CREATOR_UID); in testAddOrUpdateNetworkWithNullConfig()
1491 mWifiConfigManager.addOrUpdateNetwork(network, TEST_CREATOR_UID); in testAddSingleNetworkWithNullIpConfigurationFails()
1519 mWifiConfigManager.addOrUpdateNetwork(network, TEST_UPDATE_UID); in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
4992 mWifiConfigManager.addOrUpdateNetwork(configuration, uid, packageName); in addNetworkToWifiConfigManager()
5083 mWifiConfigManager.addOrUpdateNetwork(configuration, TEST_UPDATE_UID); in updateNetworkToWifiConfigManager()
DCarrierNetworkEvaluatorTest.java186 when(mWifiConfigManager.addOrUpdateNetwork(any(), eq(Process.WIFI_UID))).thenAnswer( in setUp()
DCarrierNetworkNotifierTest.java132 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp()
DScoredNetworkEvaluatorTest.java303 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
DOpenNetworkNotifierTest.java131 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp()
DWifiNetworkFactoryTest.java187 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt(), anyString())) in setUp()
1184 verify(mWifiConfigManager, never()).addOrUpdateNetwork(any(), anyInt(), anyString()); in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
2867 verify(mWifiConfigManager).addOrUpdateNetwork( in validateConnectParams()
DDppManagerTest.java493 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DConnectionFailureNotifier.java117 mWifiConfigManager.addOrUpdateNetwork(mConfig, Process.SYSTEM_UID); in onClick()
DCarrierNetworkEvaluator.java138 NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork(config, in evaluateNetworks()
DNetworkSuggestionEvaluator.java144 mWifiConfigManager.addOrUpdateNetwork(wifiConfiguration, uid, packageName); in addCandidateToWifiConfigManager()
DScoredNetworkEvaluator.java303 mWifiConfigManager.addOrUpdateNetwork(mEphemeralConfig, in getCandidateConfiguration()
DDppManager.java441 .addOrUpdateNetwork(newWifiConfiguration, mDppRequestInfo.uid); in onSuccessConfigReceived()
DAvailableNetworkNotifier.java438 NetworkUpdateResult result = mConfigManager.addOrUpdateNetwork(network, Process.WIFI_UID); in handleConnectToNetworkAction()
DWifiConfigManager.java1300 public NetworkUpdateResult addOrUpdateNetwork(WifiConfiguration config, int uid, in addOrUpdateNetwork() method in WifiConfigManager
1360 public NetworkUpdateResult addOrUpdateNetwork(WifiConfiguration config, int uid) { in addOrUpdateNetwork() method in WifiConfigManager
1361 return addOrUpdateNetwork(config, uid, null); in addOrUpdateNetwork()
/frameworks/base/wifi/java/android/net/wifi/
DIWifiManager.aidl72 int addOrUpdateNetwork(in WifiConfiguration config, String packageName); in addOrUpdateNetwork() method
DWifiManager.java1385 return addOrUpdateNetwork(config); in addNetwork()
1419 return addOrUpdateNetwork(config); in updateNetwork()
1430 private int addOrUpdateNetwork(WifiConfiguration config) { in addOrUpdateNetwork() method in WifiManager
1432 return mService.addOrUpdateNetwork(config, mContext.getOpPackageName()); in addOrUpdateNetwork()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkEvaluator.java244 mWifiConfigManager.addOrUpdateNetwork(config, Process.WIFI_UID); in createWifiConfigForProvider()
/frameworks/base/wifi/java/com/android/server/wifi/
DBaseWifiService.java111 public int addOrUpdateNetwork(WifiConfiguration config, String packageName) { in addOrUpdateNetwork() method in BaseWifiService
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java1451 when(mWifiService.addOrUpdateNetwork(any(), anyString())) in testAddNetwork()
1455 verify(mWifiService).addOrUpdateNetwork(configuration, mContext.getOpPackageName()); in testAddNetwork()
1467 when(mWifiService.addOrUpdateNetwork(any(), anyString())) in testUpdateNetwork()
1472 verify(mWifiService).addOrUpdateNetwork(configuration, mContext.getOpPackageName()); in testUpdateNetwork()

12