Home
last modified time | relevance | path

Searched refs:getNetworkId (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/
DWifiP2pGroupListTest.java80 assertEquals(mTestGroup2.getNetworkId(), in testListOperations()
81 list.getNetworkId(TEST_GROUP_OWNER_2.deviceAddress)); in testListOperations()
83 list.getOwnerAddr(mTestGroup2.getNetworkId())); in testListOperations()
85 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_OTHER.deviceAddress)); in testListOperations()
87 assertEquals(mTestGroup1.getNetworkId(), in testListOperations()
88 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress)); in testListOperations()
90 assertEquals(mTestGroup4.getNetworkId(), in testListOperations()
91 list.getNetworkId(TEST_GROUP_OWNER_1.deviceAddress, "testGroup4")); in testListOperations()
93 list.remove(mTestGroup3.getNetworkId()); in testListOperations()
94 assertEquals(-1, list.getNetworkId(TEST_GROUP_OWNER_3.deviceAddress)); in testListOperations()
[all …]
DWifiP2pGroupTest.java62 assertEquals(NETWORK_ID, group.getNetworkId()); in testSetterGetter()
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/
DWifiP2pGroupList.java67 mListener.onDeleteGroup(oldValue.getNetworkId()); in WifiP2pGroupList()
94 mGroups.put(group.getNetworkId(), group); in add()
113 remove(getNetworkId(deviceAddress)); in remove()
138 public int getNetworkId(String deviceAddress) { in getNetworkId() method in WifiP2pGroupList
145 mGroups.get(grp.getNetworkId()); in getNetworkId()
146 return grp.getNetworkId(); in getNetworkId()
161 public int getNetworkId(String deviceAddress, String ssid) { in getNetworkId() method in WifiP2pGroupList
171 mGroups.get(grp.getNetworkId()); in getNetworkId()
172 return grp.getNetworkId(); in getNetworkId()
206 if (netId == grp.getNetworkId()) { in contains()
DWifiP2pGroup.java280 public int getNetworkId() { in getNetworkId() method in WifiP2pGroup
328 mNetId = source.getNetworkId(); in WifiP2pGroup()
DWifiP2pConfig.java150 public int getNetworkId() { in getNetworkId() method in WifiP2pConfig
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java498 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddSingleOpenNetworkWhenCorrespondingEphemeralNetworkExists()
531 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testAddEphemeralNetworkWhenCorrespondingEphemeralNetworkExists()
775 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
780 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCannotUpdateMacRandomizationSettingWithoutPermission()
807 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
841 assertNotEquals(WifiConfiguration.INVALID_NETWORK_ID, networkUpdateResult.getNetworkId()); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
1083 assertTrue(result.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkFailedDueToPermissionDenied()
1105 assertTrue(result.getNetworkId() != WifiConfiguration.INVALID_NETWORK_ID); in testUpdateSingleOpenNetworkSuccessWithCreatorUID()
1364 int networkId = result.getNetworkId(); in testNetworkSelectionStatus()
1405 assertTrue(mWifiConfigManager.tryEnableNetwork(result.getNetworkId())); in testTryEnableNetwork()
[all …]
DWifiNetworkSelectorTest.java333 when(mWifiInfo.getNetworkId()).thenReturn(WifiConfiguration.INVALID_NETWORK_ID); in setupWifiInfo()
546 when(mWifiInfo.getNetworkId()).thenReturn(0); in lowRssi5GNetworkIsNotSufficient()
601 when(mWifiInfo.getNetworkId()).thenReturn(0); in noInternetAccessNetworkIsNotSufficient()
732 when(mWifiInfo.getNetworkId()).thenReturn(0); in noSelectionWhenCurrentNetworkNotInScanResults()
795 when(mWifiInfo.getNetworkId()).thenReturn(0); // 0 is current network in includeCurrentNetworkWhenCurrentNetworkNotNominated()
1364 when(mWifiInfo.getNetworkId()).thenReturn(0); in testStayOrTryToSwitchImpl()
1376 when(mWifiConfigManager.getConfiguredNetwork(mWifiInfo.getNetworkId())) in testStayOrTryToSwitchImpl()
1382 when(mWifiConfigManager.getConfiguredNetwork(mWifiInfo.getNetworkId())) in testStayOrTryToSwitchImpl()
1388 when(mWifiConfigManager.getConfiguredNetwork(mWifiInfo.getNetworkId())) in testStayOrTryToSwitchImpl()
1962 when(mWifiInfo.getNetworkId()).thenReturn(0); in networkSelectionPerformedWhenAnyCmmIsNotSufficient()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointNetworkNominateHelper.java220 mWifiConfigManager.allowAutojoin(result.getNetworkId(), config.allowAutojoin); in createWifiConfigForProvider()
221 mWifiConfigManager.enableNetwork(result.getNetworkId(), false, Process.WIFI_UID, null); in createWifiConfigForProvider()
222 mWifiConfigManager.setNetworkCandidateScanResult(result.getNetworkId(), in createWifiConfigForProvider()
225 result.getNetworkId(), candidate.mScanDetail); in createWifiConfigForProvider()
226 return mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in createWifiConfigForProvider()
DOsuNetworkConnection.java249 if (mNetworkId < 0 || mNetworkId != wifiInfo.getNetworkId()) { in onAvailable()
251 + wifiInfo.getNetworkId()); in onAvailable()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiInfoTest.java102 assertEquals(TEST_NETWORK_ID, info.getNetworkId()); in assertNoRedaction()
196 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, info.getNetworkId()); in assertLocationSensitiveRedaction()
334 assertEquals(WifiConfiguration.INVALID_NETWORK_ID, info.getNetworkId()); in assertLocationSensitiveAndLocalMacAddressRedaction()
470 assertEquals(-1, wifiInfo.getNetworkId()); in testWifiInfoResetValue()
497 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
510 assertEquals(TEST_NETWORK_ID, info1.getNetworkId()); in testWifiInfoBuilder()
516 assertEquals(TEST_NETWORK_ID2, info2.getNetworkId()); in testWifiInfoBuilder()
/packages/apps/Settings/src/com/android/settings/wifi/p2p/
DWifiP2pPersistentGroup.java34 int getNetworkId() { in getNetworkId() method in WifiP2pPersistentGroup
35 return mGroup.getNetworkId(); in getNetworkId()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pMetrics.java398 mCurrentGroupEvent.netId = group.getNetworkId(); in startGroupEvent()
423 if (mCurrentGroupEvent.netId != group.getNetworkId()) { in updateGroupEvent()
424 Log.w(TAG, "Updating group id " + group.getNetworkId() in updateGroupEvent()
DWifiP2pServiceImpl.java2094 int id = group.getNetworkId(); in processMessage()
2189 netId = mGroups.getNetworkId(mThisDevice.deviceAddress); in processMessage()
2230 if (mGroup.getNetworkId() == WifiP2pGroup.NETWORK_ID_PERSISTENT) { in processMessage()
2611 if (mGroup.getNetworkId() == WifiP2pGroup.NETWORK_ID_PERSISTENT) { in processMessage()
2615 mGroup.setNetworkId(mGroups.getNetworkId(devAddr, in processMessage()
3096 int netId = mGroup.getNetworkId(); in processMessage()
3793 int netId = mGroups.getNetworkId(dev.deviceAddress, ssid); in reinvokePersistentGroup()
3795 netId = mGroups.getNetworkId(dev.deviceAddress); in reinvokePersistentGroup()
3818 netId = mGroups.getNetworkId(dev.deviceAddress); in reinvokePersistentGroup()
3857 int netId = group.getNetworkId(); in getNetworkIdFromClientList()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DNetworkSuggestionNominator.java133 mWifiConfigManager.allowAutojoin(result.getNetworkId(), config.allowAutojoin); in addOrUpdateSuggestionToWifiConfigManger()
135 mWifiConfigManager.getConfiguredNetwork(result.getNetworkId()); in addOrUpdateSuggestionToWifiConfigManger()
138 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in addOrUpdateSuggestionToWifiConfigManger()
DWifiNetworkSelector.java231 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in hasInternetOrExpectNoInternet()
252 localLog("Current connected network: " + wifiInfo.getNetworkId()); in isNetworkSufficient()
255 mWifiConfigManager.getConfiguredNetwork(wifiInfo.getNetworkId()); in isNetworkSufficient()
678 if (info != null && info.getNetworkId() != config.networkId) info = null; in isEverMetered()
840 mWifiConfigManager.getConfiguredNetwork(cmmState.wifiInfo.getNetworkId()); in getCandidatesFromScan()
DScoredNetworkNominator.java349 if (!mWifiConfigManager.updateNetworkSelectionStatus(result.getNetworkId(), in getCandidateConfiguration()
354 candidateNetworkId = result.getNetworkId(); in getCandidateConfiguration()
DConnectHelper.java63 int netId = result.getNetworkId(); in connectToNetwork()
DNetworkUpdateResult.java52 public int getNetworkId() { in getNetworkId() method in NetworkUpdateResult
DAvailableNetworkNotifier.java446 mWifiMetrics.setNominatorForNetwork(result.getNetworkId(), mNominatorId); in handleConnectToNetworkAction()
451 new NetworkUpdateResult(result.getNetworkId()), in handleConnectToNetworkAction()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppConfiguratorActivity.java346 outState.putInt(KEY_WIFI_NETWORK_ID, mWifiNetworkConfig.getNetworkId()); in onSaveInstanceState()
371 final int connectionNetworkId = connectionInfo.getNetworkId(); in getConnectedWifiNetworkConfigOrNull()
DWifiNetworkConfig.java199 public int getNetworkId() { in getNetworkId() method in WifiNetworkConfig
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DConnectivityListener.java256 if (wifiInfo != null && wifiInfo.getNetworkId() == ap.getConfig().networkId) { in applyMacRandomizationSetting()
272 return connectionInfo.getNetworkId() != -1; in isWifiConnected()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java193 mNetworkId.setText(String.valueOf(wifiInfo.getNetworkId()));
301 info.getNetworkId() == WifiConfiguration.INVALID_NETWORK_ID, in handleNetworkStateChanged()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTestConnectivityManager.java138 int getNetworkId() { in getNetworkId() method in TestConnectivityManager
307 this.networkId = new Network(cm.getNetworkId()); in TestNetworkAgent()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackImplTest.java361 assertEquals(group.getNetworkId(), WifiP2pGroup.NETWORK_ID_PERSISTENT); in testOnGroupStarted_success()
627 assertEquals(TEST_NETWORK_ID, group.getNetworkId()); in testOnInvitationReceived()

123