/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkUpdateResult.java | 19 import static android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID; 36 netId = INVALID_NETWORK_ID; in NetworkUpdateResult() 71 return netId != INVALID_NETWORK_ID; in isSuccess()
|
D | WifiConfigManager.java | 357 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 …]
|
D | WifiNetworkSelector.java | 810 ? WifiConfiguration.INVALID_NETWORK_ID in selectNetwork() 827 ? WifiConfiguration.INVALID_NETWORK_ID in selectNetwork() 887 if (lastUserSelectedNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in calculateLastSelectionWeight()
|
D | ClientModeImpl.java | 342 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 …]
|
D | SavedNetworkEvaluator.java | 134 if (lastUserSelectedNetworkId != WifiConfiguration.INVALID_NETWORK_ID in calculateBssidScore()
|
D | ScoredNetworkEvaluator.java | 282 int candidateNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in getCandidateConfiguration()
|
D | WifiServiceImpl.java | 286 && 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()
|
D | SupplicantStaIfaceHal.java | 308 return WifiConfiguration.INVALID_NETWORK_ID; in getCurrentNetworkId()
|
D | WifiMetrics.java | 4908 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) return;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigManagerTest.java | 318 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 …]
|
D | SavedNetworkEvaluatorTest.java | 152 .thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
|
D | WifiNetworkSelectorTest.java | 248 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo() 253 setupWifiConfigManager(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
|
D | NetworkSuggestionEvaluatorTest.java | 389 .thenReturn(new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID)); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
|
D | WifiConnectivityManagerTest.java | 295 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo()
|
D | WifiServiceImplTest.java | 1198 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreHiddenFromAppWithoutPermission() 1216 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreHiddenOnSecurityException()
|
D | ClientModeImplTest.java | 786 .thenReturn(new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID)); in saveNetworkConfigFailsWithConfigAddFailure() 2026 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, wifiInfo.getNetworkId()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent()
|
D | SupplicantStaIfaceHalTest.java | 1173 eq(WLAN0_IFACE_NAME), eq(WifiConfiguration.INVALID_NETWORK_ID), in testStateChangeCallbackWithNoConfiguredNetwork()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | TestAccessPointBuilder.java | 51 private int mNetworkId = WifiConfiguration.INVALID_NETWORK_ID; 77 if (mNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in build() 187 mNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in setSaved()
|
D | AccessPoint.java | 228 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/ |
D | WifiConfiguration.java | 88 public static final int INVALID_NETWORK_ID = -1; field in WifiConfiguration 1760 networkId = INVALID_NETWORK_ID; in WifiConfiguration()
|
D | WifiManager.java | 3640 getChannel().sendMessage(CONNECT_NETWORK, WifiConfiguration.INVALID_NETWORK_ID, in connect()
|