Home
last modified time | relevance | path

Searched refs:INVALID_NETWORK_ID (Results 1 – 21 of 21) 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.java357 private int mLastSelectedNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
707 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getInternalConfiguredNetwork()
1126 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1140 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1146 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1159 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1168 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1177 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1203 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1242 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetwork()
[all …]
DWifiNetworkSelector.java810 ? WifiConfiguration.INVALID_NETWORK_ID in selectNetwork()
827 ? WifiConfiguration.INVALID_NETWORK_ID in selectNetwork()
887 if (lastUserSelectedNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in calculateLastSelectionWeight()
DClientModeImpl.java342 private int mTargetNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
821 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in ClientModeImpl()
1623 if (messageIsNull(resultMsg)) return WifiConfiguration.INVALID_NETWORK_ID; in syncAddOrUpdateNetwork()
2905 mWifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in handleSupplicantStateChange()
3009 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in handleNetworkDisconnect()
3757 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in setupClientMode()
3828 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in registerConnected()
3839 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in registerDisconnected()
3849 if (mLastNetworkId == WifiConfiguration.INVALID_NETWORK_ID) { in getCurrentWifiConfiguration()
3856 if (mTargetNetworkId == WifiConfiguration.INVALID_NETWORK_ID) { in getTargetWifiConfiguration()
[all …]
DSavedNetworkEvaluator.java134 if (lastUserSelectedNetworkId != WifiConfiguration.INVALID_NETWORK_ID in calculateBssidScore()
DScoredNetworkEvaluator.java282 int candidateNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in getCandidateConfiguration()
DWifiServiceImpl.java286 && networkId != WifiConfiguration.INVALID_NETWORK_ID) { in handleMessage()
2066 if (config.networkId == WifiConfiguration.INVALID_NETWORK_ID) { in addOrUpdateNetwork()
2215 result.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getConnectionInfo()
3053 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { in restoreNetworks()
DSupplicantStaIfaceHal.java308 return WifiConfiguration.INVALID_NETWORK_ID; in getCurrentNetworkId()
DWifiMetrics.java4908 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) return;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java318 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
351 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
495 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
500 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
522 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
552 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
697 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
719 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
1174 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, in testEnableNetworkFailedDueToPermissionDenied()
1217 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, in testDisableNetworkFailedDueToPermissionDenied()
[all …]
DSavedNetworkEvaluatorTest.java152 .thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
DWifiNetworkSelectorTest.java248 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
253 setupWifiConfigManager(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
DNetworkSuggestionEvaluatorTest.java389 .thenReturn(new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID)); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
DWifiConnectivityManagerTest.java295 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo()
DWifiServiceImplTest.java1198 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreHiddenFromAppWithoutPermission()
1216 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreHiddenOnSecurityException()
DClientModeImplTest.java786 .thenReturn(new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID)); in saveNetworkConfigFailsWithConfigAddFailure()
2026 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, wifiInfo.getNetworkId()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent()
DSupplicantStaIfaceHalTest.java1173 eq(WLAN0_IFACE_NAME), eq(WifiConfiguration.INVALID_NETWORK_ID), in testStateChangeCallbackWithNoConfiguredNetwork()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java51 private int mNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
77 if (mNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in build()
187 mNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in setSaved()
DAccessPoint.java228 private int networkId = WifiConfiguration.INVALID_NETWORK_ID;
747 networkId = WifiConfiguration.INVALID_NETWORK_ID; in clearConfig()
1134 (networkId != WifiConfiguration.INVALID_NETWORK_ID || in isActive()
1194 if (networkId != WifiConfiguration.INVALID_NETWORK_ID) { in isInfoForThisAccessPoint()
1441 networkId = config != null ? config.networkId : WifiConfiguration.INVALID_NETWORK_ID; in update()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java88 public static final int INVALID_NETWORK_ID = -1; field in WifiConfiguration
1760 networkId = INVALID_NETWORK_ID; in WifiConfiguration()
DWifiManager.java3640 getChannel().sendMessage(CONNECT_NETWORK, WifiConfiguration.INVALID_NETWORK_ID, in connect()