Home
last modified time | relevance | path

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

12

/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.java323 private int mLastSelectedNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
814 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { in getInternalConfiguredNetwork()
1218 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1232 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1238 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1255 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1266 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1274 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1300 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetworkInternal()
1339 return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetwork()
[all …]
DConnectionFailureNotifier.java77 WifiConfiguration.INVALID_NETWORK_ID); in ConnectionFailureNotifier()
DClientModeImpl.java371 private int mTargetNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
805 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in ClientModeImpl()
2642 mWifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in handleSupplicantStateChange()
2753 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID in handleNetworkDisconnect()
2754 && mTargetNetworkId != WifiConfiguration.INVALID_NETWORK_ID in handleNetworkDisconnect()
2784 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in handleNetworkDisconnect()
2963 int networkId = (configuration == null) ? WifiConfiguration.INVALID_NETWORK_ID in reportConnectionAttemptEnd()
3619 mLastNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
3695 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) {
3706 if (mLastNetworkId != WifiConfiguration.INVALID_NETWORK_ID) {
[all …]
DScoredNetworkNominator.java296 int candidateNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in getCandidateConfiguration()
DWifiNetworkSelector.java874 int selectedNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in selectNetwork()
887 ? WifiConfiguration.INVALID_NETWORK_ID in selectNetwork()
DWifiServiceImpl.java2406 WifiConfiguration.INVALID_NETWORK_ID); in addOrUpdateNetwork()
2690 result.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getConnectionInfo()
3555 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) {
DSupplicantStaIfaceHal.java318 return WifiConfiguration.INVALID_NETWORK_ID; in getCurrentNetworkId()
DWifiMetrics.java6156 if (networkId == WifiConfiguration.INVALID_NETWORK_ID) return;
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java415 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
448 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
677 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
682 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
709 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
743 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
953 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
975 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
1459 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, in testEnableNetworkFailedDueToPermissionDenied()
1503 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, in testDisableNetworkFailedDueToPermissionDenied()
[all …]
DNetworkSuggestionNominatorTest.java19 import static android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID;
438 .thenReturn(new NetworkUpdateResult(INVALID_NETWORK_ID)); in testSelectNetworkSuggestionForOneMatchButFailToAddToWifiConfigManager()
DWifiNetworkSelectorTest.java301 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
306 setupWifiConfigManager(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiConfigManager()
DClientModeImplTest.java824 .thenReturn(new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID)); in saveNetworkConfigFailsWithConfigAddFailure()
1531 mCmi.connect(config, WifiConfiguration.INVALID_NETWORK_ID, mock(Binder.class), in reconnectToConnectedNetworkWithConfig()
1585 mCmi.connect(config, WifiConfiguration.INVALID_NETWORK_ID, mock(Binder.class), in reconnectToConnectingNetworkWithCredentialChange()
2286 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, wifiInfo.getNetworkId()); in testWifiInfoUpdatedUponSupplicantStateChangedEvent()
4997 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, mCmi.getWifiInfo().getNetworkId()); in testWifiInfoOnConnectingNextNetwork()
DSupplicantStaIfaceHalTest.java972 eq(WLAN0_IFACE_NAME), eq(WifiConfiguration.INVALID_NETWORK_ID), in testStateChangeCallbackWithNoConfiguredNetwork()
2744 eq(WLAN0_IFACE_NAME), eq(WifiConfiguration.INVALID_NETWORK_ID), in testonStateChangedV13CallbackWithNoConfiguredNetwork()
DWifiConnectivityManagerTest.java386 wifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID); in getWifiInfo()
DWifiServiceImplTest.java1634 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreHiddenFromAppWithoutPermission()
1654 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, connectionInfo.getNetworkId()); in testConnectedIdsAreHiddenOnSecurityException()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java52 private int mNetworkId = WifiConfiguration.INVALID_NETWORK_ID;
76 if (mNetworkId != WifiConfiguration.INVALID_NETWORK_ID) { in build()
184 mNetworkId = WifiConfiguration.INVALID_NETWORK_ID; in setSaved()
DAccessPoint.java241 private int networkId = WifiConfiguration.INVALID_NETWORK_ID;
877 networkId = WifiConfiguration.INVALID_NETWORK_ID; in clearConfig()
1249 (networkId != WifiConfiguration.INVALID_NETWORK_ID || in isActive()
1337 if (networkId != WifiConfiguration.INVALID_NETWORK_ID) { in isInfoForThisAccessPoint()
1556 networkId = config != null ? config.networkId : WifiConfiguration.INVALID_NETWORK_ID; in update()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DPasspointWifiEntryTest.java79 when(mMockWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setUp()
DWifiPickerTrackerTest.java120 when(mMockWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setUp()
DStandardWifiEntryTest.java109 when(mMockWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setUp()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java94 public static final int INVALID_NETWORK_ID = -1; field in WifiConfiguration
2084 networkId = INVALID_NETWORK_ID; in WifiConfiguration()
DWifiManager.java4185 connectInternal(config, WifiConfiguration.INVALID_NETWORK_ID, listener); in connect()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java2048 verify(mWifiService).connect(configuration, WifiConfiguration.INVALID_NETWORK_ID, null, in testConnectWithoutListener()
/frameworks/base/wifi/api/
Dsystem-current.txt319 field @Deprecated public static final int INVALID_NETWORK_ID = -1; // 0xffffffff

12