Home
last modified time | relevance | path

Searched refs:NetworkUpdateResult (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/Wifi/service/java/com/android/server/wifi/
DNetworkUpdateResult.java27 public class NetworkUpdateResult { class
35 public NetworkUpdateResult(int netId) { in NetworkUpdateResult() method in NetworkUpdateResult
40 public NetworkUpdateResult(int netId, int addNetworkFailureCode) { in NetworkUpdateResult() method in NetworkUpdateResult
44 public NetworkUpdateResult( in NetworkUpdateResult() method in NetworkUpdateResult
60 public static NetworkUpdateResult makeFailed() { in makeFailed()
61 return new NetworkUpdateResult(INVALID_NETWORK_ID); in makeFailed()
96 NetworkUpdateResult that = (NetworkUpdateResult) o; in equals()
DWifiConfigManager.java1425 private @NonNull Pair<NetworkUpdateResult, WifiConfiguration> addOrUpdateNetworkInternal( in addOrUpdateNetworkInternal()
1444 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID, in addOrUpdateNetworkInternal()
1462 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID, in addOrUpdateNetworkInternal()
1471 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID, in addOrUpdateNetworkInternal()
1486 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID), in addOrUpdateNetworkInternal()
1497 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID), in addOrUpdateNetworkInternal()
1511 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID), in addOrUpdateNetworkInternal()
1530 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID), in addOrUpdateNetworkInternal()
1541 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID), in addOrUpdateNetworkInternal()
1558 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID, in addOrUpdateNetworkInternal()
[all …]
DConnectHelper.java48 @NonNull NetworkUpdateResult result, in connectToNetwork()
62 @NonNull NetworkUpdateResult result, in connectToNetwork()
DClientModeDefaults.java50 default void connectNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, in connectNetwork()
56 default void saveNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, in saveNetwork()
DClientMode.java68 void connectNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, int callingUid, in connectNetwork()
71 void saveNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, int callingUid, in saveNetwork()
DAvailableNetworkNotifier.java461 NetworkUpdateResult result = mConfigManager.addOrUpdateNetwork(network, Process.WIFI_UID); in handleConnectToNetworkAction()
468 new NetworkUpdateResult(result.getNetworkId()), in handleConnectToNetworkAction()
DDppManager.java696 NetworkUpdateResult networkUpdateResult = mWifiConfigManager in onSuccessConfigReceived()
713 NetworkUpdateResult networkUpdateResult = mWifiConfigManager in onSuccessConfigReceived()
860 NetworkUpdateResult networkUpdateResult = mWifiConfigManager in onDppConfiguratorKeyUpdate()
DNetworkSuggestionNominator.java139 NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork( in addOrUpdateSuggestionToWifiConfigManger()
DConcreteClientModeManager.java1382 public void connectNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, in connectNetwork()
1388 public void saveNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, in saveNetwork()
DWifiNetworkFactory.java1082 NetworkUpdateResult networkUpdateResult = in addNetworkToWifiConfigManager()
1144 new NetworkUpdateResult(networkId), in connectToNetwork()
DWifiServiceImpl.java3986 NetworkUpdateResult result = mWifiThreadRunner.call( in addOrUpdateNetworkInternal()
3989 new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID), in addOrUpdateNetworkInternal()
4073 new NetworkUpdateResult(netId), in triggerConnectAndReturnStatus()
6761 final NetworkUpdateResult result;
6780 result = new NetworkUpdateResult(netId);
6904 NetworkUpdateResult result =
DClientModeImpl.java4870 NetworkUpdateResult result = cnm.result; in processMessageImpl()
4887 NetworkUpdateResult result = cnm.result; in processMessageImpl()
7943 public final NetworkUpdateResult result;
7948 ConnectNetworkMessage(NetworkUpdateResult result, ActionListenerWrapper listener, in ConnectNetworkMessage()
7958 public void connectNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, in connectNetwork()
7968 public void saveNetwork(NetworkUpdateResult result, ActionListenerWrapper wrapper, in saveNetwork()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelperTest.java53 import com.android.server.wifi.NetworkUpdateResult;
250 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingHomeProvider()
305 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNoInternetBit()
348 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansWithNetworkMatchingRoamingProvider()
394 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)) in evaluateScansWithHomeProviderNetworkAndRoamingProviderNetwork()
395 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID + 1)); in evaluateScansWithHomeProviderNetworkAndRoamingProviderNetwork()
430 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateSIMProviderWithNetworkSupportingEncryptedIMSI()
461 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScansMatchingActiveNetworkWithDifferentBSS()
534 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in evaluateScanResultWithHomeMatchButPreviouslyUserDisconnected()
559 any(), eq(false))).thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)) in evaluateScansWithNetworkMatchingHomeProviderUseAnqpLinkDown()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java581 NetworkUpdateResult result = addNetworkToWifiConfigManager(openNetwork); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
617 NetworkUpdateResult result = addNetworkToWifiConfigManager(ephemeralNetwork2); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
737 NetworkUpdateResult result = addNetworkToWifiConfigManager(openNetwork); in testAddOrUpdateNetworkRepeaterEnabled()
881 NetworkUpdateResult result = in testOverrideWifiConfigModifyAllNetworks()
927 NetworkUpdateResult networkUpdateResult = updateNetworkToWifiConfigManager(openNetwork); in testCannotUpdateMacRandomizationSettingWithoutPermissionDO()
961 NetworkUpdateResult networkUpdateResult = in testCanUpdateMacRandomizationSettingForAdminNetwork()
995 NetworkUpdateResult networkUpdateResult = updateNetworkToWifiConfigManager(openNetwork); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
1028 NetworkUpdateResult networkUpdateResult = updateNetworkToWifiConfigManager(openNetwork); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
1290 NetworkUpdateResult result = updateNetworkToWifiConfigManager(openNetwork); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
1307 NetworkUpdateResult result = addNetworkToWifiConfigManager(configuration, in testAddNetworkWithVendorDataPermissionCheck()
[all …]
DConnectHelperTest.java76 NetworkUpdateResult result = new NetworkUpdateResult(TEST_NETWORK_ID); in verifyConnectNetworkSuccess()
103 mConnectHelper.connectToNetwork(new NetworkUpdateResult(TEST_NETWORK_ID), mActionListener, in connectToNetwork_invalidNetId_failure()
DDppManagerTest.java613 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testStartDppAsEnrolleeInitiatorStartCorrectlyOnSuccessCallback()
1192 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testStartDppAsEnrolleeResponderStartCorrectlyOnSuccessCallback()
1304 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testDppAsEnrolleeResponderWaitForConnectionStatusResult()
1345 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult(TEST_NETWORK_ID); in testDppAsEnrolleeInitiatorWaitForConnectionStatusResult()
DWifiServiceImplTest.java5112 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
5114 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testRestoreNetworkConfiguration()
5445 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testConnectNetworkWithPrivilegedPermission()
5453 verify(mConnectHelper).connectToNetwork(any(NetworkUpdateResult.class), in testConnectNetworkWithPrivilegedPermission()
5471 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testConnectNetworkWithNfcUid()
5480 verify(mConnectHelper).connectToNetwork(any(NetworkUpdateResult.class), in testConnectNetworkWithNfcUid()
5501 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testConnectNetworkStopConnectedSecondaryInternetCmm()
5541 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in testConnectNetworkStopSecondaryCmmOnSameNetwork()
5567 verify(mConnectHelper).connectToNetwork(any(NetworkUpdateResult.class), in testConnectNetworkStopSecondaryCmmOnSameNetwork()
5583 verify(mConnectHelper, times(2)).connectToNetwork(any(NetworkUpdateResult.class), in testConnectNetworkStopSecondaryCmmOnSameNetwork()
[all …]
DOpenNetworkNotifierTest.java143 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID)); in setUp()
577 verify(mConnectHelper).connectToNetwork(eq(new NetworkUpdateResult(TEST_NETWORK_ID)), in actionConnectToNetwork_currentRecommendationExists_connectsAndPostsNotification()
761 verify(mConnectHelper).connectToNetwork(eq(new NetworkUpdateResult(TEST_NETWORK_ID)), in connectionFailedCallback_postsFailedToConnectNotification()
DWifiNetworkFactoryTest.java275 .thenReturn(new NetworkUpdateResult(TEST_NETWORK_ID_1)); in setUp()
1342 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testNetworkSpecifierHandleUserSelectionConnectToNetwork()
1447 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testNetworkSpecifierHandleUserSelectionConnectToExistingSavedNetwork()
1497 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testNetworkSpecifierHandleUserSelectionConnectToNetworkUsingLiteralSsidAndBssidMatch()
1548 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testNetworkSpecifierHandleUserSelectionConnectToNetworkMultipleBssidMatches()
1609 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testNetworkSpecifierHandleUserSelectionConnectToNetworkMissingBssidInLatest()
1676 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testNetworkSpecifierHandleUserSelectionConnectToNetworkStaleMissingBssidInLatest()
2471 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testHandleNewNetworkRequestWithSpecifierWhenAwaitingCmRetrieval()
3725 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in testShareConnectedNetworkWithCarModePriorityAndSavedNetwork()
3789 eq(new NetworkUpdateResult(TEST_NETWORK_ID_1)), in sendNetworkRequestAndSetupForConnectionStatus()
[all …]
DWifiHealthMonitorTest.java283 public NetworkUpdateResult answer(WifiConfiguration config, int uid) throws Exception { in mockConfigManager()
285 return new NetworkUpdateResult(1); in mockConfigManager()
DWifiNetworkSelectorTestUtil.java456 .thenReturn(new NetworkUpdateResult(networkId)); in setupEphemeralNetwork()
DClientModeImplTest.java923 new NetworkUpdateResult(TEST_NETWORK_ID), in canSaveNetworkConfig()
949 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveAdminRestrictedNetworkWithoutConnecting()
969 new NetworkUpdateResult(TEST_NETWORK_ID, STATUS_SUCCESS, false, false, true, false), in canSaveDeprecatedSecurityTypeNetworkWithoutConnecting()
1022 new NetworkUpdateResult(config.networkId), in setupAndStartConnectSequence()
2429 new NetworkUpdateResult(FRAMEWORK_NETWORK_ID), in reconnectToConnectedNetworkWithNetworkId()
2454 new NetworkUpdateResult(FRAMEWORK_NETWORK_ID), in reconnectToConnectedNetworkWithConfig()
2479 new NetworkUpdateResult(FRAMEWORK_NETWORK_ID), in reconnectToConnectingNetwork()
2503 NetworkUpdateResult networkUpdateResult = new NetworkUpdateResult( in reconnectToConnectingNetworkWithCredentialChange()
2542 new NetworkUpdateResult(FRAMEWORK_NETWORK_ID), in connectAfterAssociationRejection()
2572 new NetworkUpdateResult(FRAMEWORK_NETWORK_ID), in connectAfterConnectionFailure()
[all …]
DWifiPseudonymManagerTest.java85 private NetworkUpdateResult mNetworkUpdateResult;
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelper.java32 import com.android.server.wifi.NetworkUpdateResult;
337 NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork( in createWifiConfigForProvider()
DPasspointManager.java49 import com.android.server.wifi.NetworkUpdateResult;
450 NetworkUpdateResult result = mWifiConfigManager.addOrUpdateNetwork( in updateWifiConfigInWcmIfPresent()

12