Home
last modified time | relevance | path

Searched refs:INVALID_NETWORK_ID (Results 1 – 19 of 19) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkUpdateResult.java19 import static android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID;
36 netId = INVALID_NETWORK_ID; in NetworkUpdateResult()
71 return netId != INVALID_NETWORK_ID; in isSuccess()
DWifiConfigManager.java325 private int mLastSelectedNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
619 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getInternalConfiguredNetwork()
992 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1005 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1011 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1024 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1033 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1059 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1096 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetwork()
1100 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetwork()
[all …]
DWifiStateMachine.java329 private int mTargetNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
814 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in WifiStateMachine()
2713 mWifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in handleSupplicantStateChange()
2783 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in handleNetworkDisconnect()
3665 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in setupClientMode()
3748 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in registerConnected()
3762 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in registerDisconnected()
3774 if (mLastNetworkId == WifiConfiguration.INVALID_NETWORK_ID) { in getCurrentWifiConfiguration()
4517 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { in isProviderOwnedNetwork()
4754 if (mLastBssid != null || mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in exit()
[all …]
DSavedNetworkEvaluator.java176 if (lastUserSelectedNetworkId != WifiConfiguration.INVALID_NETWORK_ID in calculateBssidScore()
DScoredNetworkEvaluator.java276 int candidateNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in getCandidateConfiguration()
DAvailableNetworkNotifier.java425 msg.arg1 = WifiConfiguration.INVALID_NETWORK_ID; in handleConnectToNetworkAction()
DWifiNetworkHistory.java621 if (cache == null && config.networkId != WifiConfiguration.INVALID_NETWORK_ID) { in getScanDetailCache()
DWifiServiceImpl.java295 && networkId != WifiConfiguration.INVALID_NETWORK_ID) { in handleMessage()
1879 if (config.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in addOrUpdateNetwork()
2764 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { in restoreNetworks()
DSupplicantStaIfaceHal.java264 return WifiConfiguration.INVALID_NETWORK_ID; in getCurrentNetworkId()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java353 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
375 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
1030 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleNetworkWithNullValues()
1089 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
2156 int sharedNetwork1Id = WifiConfiguration.INVALID_NETWORK_ID; in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2157 int sharedNetwork2Id = WifiConfiguration.INVALID_NETWORK_ID; in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2167 assertTrue(sharedNetwork1Id != WifiConfiguration.INVALID_NETWORK_ID); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2168 assertTrue(sharedNetwork2Id != WifiConfiguration.INVALID_NETWORK_ID); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2184 int updatedSharedNetwork1Id = WifiConfiguration.INVALID_NETWORK_ID; in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2185 int updatedSharedNetwork2Id = WifiConfiguration.INVALID_NETWORK_ID; in testHandleUserSwitchDoesNotChangeSharedNetworksId()
[all …]
DWifiNetworkSelectorTest.java186 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
192 .thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
DSavedNetworkEvaluatorTest.java145 .thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
DWifiStateMachineTest.java754 .thenReturn(new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID)); in saveNetworkConfigFailsWithConfigAddFailure()
1797 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, wifiInfo.getNetworkId()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent()
DWifiConnectivityManagerTest.java289 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo()
DSupplicantStaIfaceHalTest.java1106 eq(WLAN0_IFACE_NAME), eq(WifiConfiguration.INVALID_NETWORK_ID), in testStateChangeCallbackWithNoConfiguredNetwork()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java50 private int mNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
182 mNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in setSaved()
DAccessPoint.java186 private int networkId = WifiConfiguration.INVALID_NETWORK_ID;
639 networkId = WifiConfiguration.INVALID_NETWORK_ID; in clearConfig()
925 (networkId != WifiConfiguration.INVALID_NETWORK_ID || in isActive()
958 if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) { in isInfoForThisAccessPoint()
972 return networkId != WifiConfiguration.INVALID_NETWORK_ID; in isSaved()
1135 networkId = config != null ? config.networkId : WifiConfiguration.INVALID_NETWORK_ID; in update()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java77 public static final int INVALID_NETWORK_ID = -1; field in WifiConfiguration
1498 networkId = INVALID_NETWORK_ID; in WifiConfiguration()
DWifiManager.java2964 getChannel().sendMessage(CONNECT_NETWORK, WifiConfiguration.INVALID_NETWORK_ID, in connect()