Home
last modified time | relevance | path

Searched refs:networkId (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java168 void onSavedNetworkAdded(int networkId); in onSavedNetworkAdded() argument
172 void onSavedNetworkEnabled(int networkId); in onSavedNetworkEnabled() argument
176 void onSavedNetworkPermanentlyDisabled(int networkId, int disableReason); in onSavedNetworkPermanentlyDisabled() argument
180 void onSavedNetworkRemoved(int networkId); in onSavedNetworkRemoved() argument
184 void onSavedNetworkTemporarilyDisabled(int networkId, int disableReason); in onSavedNetworkTemporarilyDisabled() argument
188 void onSavedNetworkUpdated(int networkId); in onSavedNetworkUpdated() argument
610 public WifiConfiguration getConfiguredNetwork(int networkId) { in getConfiguredNetwork() argument
611 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetwork()
647 public WifiConfiguration getConfiguredNetworkWithPassword(int networkId) { in getConfiguredNetworkWithPassword() argument
648 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetworkWithPassword()
[all …]
DStateChangeResult.java29 StateChangeResult(int networkId, WifiSsid wifiSsid, String BSSID, in StateChangeResult() argument
34 this.networkId = networkId; in StateChangeResult()
37 int networkId; field in StateChangeResult
48 sb.append(" nid: ").append(networkId); in toString()
DWifiCandidates.java163 return key.networkId; in getNetworkConfigId()
298 public final int networkId; // network configuration id field in WifiCandidates.Key
302 int networkId) { in Key() argument
305 this.networkId = networkId; in Key()
314 && this.networkId == that.networkId); in equals()
319 return Objects.hash(matchInfo, bssid, networkId); in hashCode()
365 Key key = new Key(key1, bssid, config.networkId); in add()
379 perBssid.setNetworkConfigId(config.networkId); in add()
383 config.networkId == mCurrentNetworkId, in add()
418 Collection<Candidate> cc = candidatesForNetworkId.get(candidate.key.networkId); in getGroupedCandidates()
[all …]
DWifiNetworkSelector.java248 if (mWifiConfigManager.getLastSelectedNetwork() == network.networkId in isCurrentNetworkSufficient()
363 return (network.SSID + ":" + network.networkId); in toNetworkString()
568 if (network.networkId == selected.networkId) { in setLegacyUserConnectChoice()
572 + network.SSID + " : " + network.networkId); in setLegacyUserConnectChoice()
573 mWifiConfigManager.clearNetworkConnectChoice(network.networkId); in setLegacyUserConnectChoice()
583 mWifiConfigManager.setNetworkConnectChoice(network.networkId, key, currentTime); in setLegacyUserConnectChoice()
612 mWifiConfigManager.tryEnableNetwork(network.networkId); in updateConfiguredNetworks()
614 mWifiConfigManager.clearNetworkCandidateScanResult(network.networkId); in updateConfiguredNetworks()
679 mWifiMetrics.setNominatorForNetwork(candidate.networkId, in overrideCandidateWithUserConnectChoice()
743 wifiCandidates.setCurrent(currentNetwork.networkId, currentBssid); in selectNetwork()
[all …]
DWifiMonitor.java382 public void broadcastNetworkIdentityRequestEvent(String iface, int networkId, String ssid) { in broadcastNetworkIdentityRequestEvent() argument
383 sendMessage(iface, SUP_REQUEST_IDENTITY, 0, networkId, ssid); in broadcastNetworkIdentityRequestEvent()
395 public void broadcastNetworkGsmAuthRequestEvent(String iface, int networkId, String ssid, in broadcastNetworkGsmAuthRequestEvent() argument
398 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data)); in broadcastNetworkGsmAuthRequestEvent()
410 public void broadcastNetworkUmtsAuthRequestEvent(String iface, int networkId, String ssid, in broadcastNetworkUmtsAuthRequestEvent() argument
413 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data)); in broadcastNetworkUmtsAuthRequestEvent()
496 public void broadcastNetworkConnectionEvent(String iface, int networkId, String bssid) { in broadcastNetworkConnectionEvent() argument
497 sendMessage(iface, NETWORK_CONNECTION_EVENT, networkId, 0, bssid); in broadcastNetworkConnectionEvent()
521 public void broadcastSupplicantStateChangeEvent(String iface, int networkId, WifiSsid wifiSsid, in broadcastSupplicantStateChangeEvent() argument
525 new StateChangeResult(networkId, wifiSsid, bssid, newSupplicantState)); in broadcastSupplicantStateChangeEvent()
DSavedNetworkEvaluator.java135 && lastUserSelectedNetworkId == network.networkId) { in calculateBssidScore()
148 if (currentNetwork != null && network.networkId == currentNetwork.networkId) { in calculateBssidScore()
249 network.networkId, scanResult, score); in evaluateNetworks()
261 mWifiConfigManager.getConfiguredNetwork(network.networkId), score); in evaluateNetworks()
271 network.networkId, scanResultCandidate, highestScore); in evaluateNetworks()
273 candidate = mWifiConfigManager.getConfiguredNetwork(network.networkId); in evaluateNetworks()
DConfigurationMap.java46 final WifiConfiguration current = mPerID.put(config.networkId, config); in put()
49 mPerIDForCurrentUser.put(config.networkId, config); in put()
67 if (scanResultMatchInfoEntries.next().getValue().networkId == netID) { in remove()
DScoredNetworkEvaluator.java175 && currentNetwork.networkId == configuredNetwork.networkId in evaluateNetworks()
251 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0); in trackUntrustedCandidate()
272 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0); in trackExternallyScoredCandidate()
286 candidateNetworkId = mEphemeralConfig.networkId; in getCandidateConfiguration()
329 candidateNetworkId = mSavedConfig.networkId; in getCandidateConfiguration()
DWifiConnectivityManager.java545 public void onSavedNetworkAdded(int networkId) { in onSavedNetworkAdded() argument
549 public void onSavedNetworkEnabled(int networkId) { in onSavedNetworkEnabled() argument
553 public void onSavedNetworkRemoved(int networkId) { in onSavedNetworkRemoved() argument
557 public void onSavedNetworkUpdated(int networkId) { in onSavedNetworkUpdated() argument
563 public void onSavedNetworkTemporarilyDisabled(int networkId, int disableReason) { in onSavedNetworkTemporarilyDisabled() argument
565 mConnectivityHelper.removeNetworkIfCurrent(networkId); in onSavedNetworkTemporarilyDisabled()
568 public void onSavedNetworkPermanentlyDisabled(int networkId, int disableReason) { in onSavedNetworkPermanentlyDisabled() argument
574 mConnectivityHelper.removeNetworkIfCurrent(networkId); in onSavedNetworkPermanentlyDisabled()
751 && (currentConnectedNetwork.networkId == candidate.networkId in connectToNetwork()
763 mStateMachine.startRoamToNetwork(candidate.networkId, scanResultCandidate); in connectToNetwork()
[all …]
DWifiConnectivityHelper.java172 public void removeNetworkIfCurrent(int networkId) { in removeNetworkIfCurrent() argument
173 mWifiNative.removeNetworkIfCurrent(mWifiNative.getClientInterfaceName(), networkId); in removeNetworkIfCurrent() local
/frameworks/base/core/java/android/net/
DNetworkState.java41 public final String networkId; field in NetworkState
45 String networkId) { in NetworkState() argument
51 this.networkId = networkId; in NetworkState()
71 networkId = in.readString(); in NetworkState()
86 out.writeString(networkId); in writeToParcel()
DNetworkIdentity.java64 int type, int subType, String subscriberId, String networkId, boolean roaming, in NetworkIdentity() argument
69 mNetworkId = networkId; in NetworkIdentity()
202 String networkId = null; in buildNetworkIdentity() local
220 if (state.networkId != null) { in buildNetworkIdentity()
221 networkId = state.networkId; in buildNetworkIdentity()
226 networkId = info != null ? info.getSSID() : null; in buildNetworkIdentity()
230 return new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in buildNetworkIdentity()
DNetworkTemplate.java146 public static NetworkTemplate buildTemplateWifi(String networkId) { in buildTemplateWifi() argument
147 return new NetworkTemplate(MATCH_WIFI, null, networkId); in buildTemplateWifi()
196 public NetworkTemplate(int matchRule, String subscriberId, String networkId) { in NetworkTemplate() argument
197 this(matchRule, subscriberId, new String[] { subscriberId }, networkId); in NetworkTemplate()
201 String networkId) { in NetworkTemplate() argument
202 this(matchRule, subscriberId, matchSubscriberIds, networkId, METERED_ALL, ROAMING_ALL, in NetworkTemplate()
207 String networkId, int metered, int roaming, int defaultNetwork) { in NetworkTemplate() argument
211 mNetworkId = networkId; in NetworkTemplate()
532 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup() local
539 return new NetworkTemplate(matchRule, subscriberId, networkId); in getNetworkTemplateFromBackup()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java440 assertTrue(mWifiConfigManager.removeNetwork(openNetwork.networkId, TEST_CREATOR_UID)); in testRandomizedMacAddressIsGeneratedForConfigurationReadFromStore()
460 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testUpdateSingleOpenNetwork()
472 verify(mWcmListener).onSavedNetworkUpdated(openNetwork.networkId); in testUpdateSingleOpenNetwork()
489 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testCannotUpdateMacRandomizationSettingWithoutPermission()
516 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
546 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
582 verify(mWcmListener, never()).onSavedNetworkAdded(ephemeralNetwork.networkId); in testAddSingleEphemeralNetwork()
600 verify(mWcmListener, never()).onSavedNetworkAdded(passpointNetwork.networkId); in testAddSinglePasspointNetwork()
649 verify(mWcmListener, never()).onSavedNetworkAdded(suggestionNetwork.networkId); in testAddSingleSuggestionNetwork()
674 verify(mWcmListener, never()).onSavedNetworkAdded(suggestionNetwork.networkId); in testAddSingleSpecifierNetwork()
[all …]
DConfigurationMapTest.java146 assertEquals(config, mConfigs.getForAllUsers(config.networkId)); in verifyGetters()
152 assertEquals(config, mConfigs.getForCurrentUser(config.networkId)); in verifyGetters()
165 assertNull(mConfigs.getForCurrentUser(config.networkId)); in verifyGetters()
242 config2.networkId = config1.networkId; in testPutRemoveClear()
257 assertEquals(config2, mConfigs.remove(config2.networkId)); in testPutRemoveClear()
304 config.networkId = 5; in testScanResultDoesNotMatchAfterNetworkRemove()
310 mConfigs.remove(config.networkId); in testScanResultDoesNotMatchAfterNetworkRemove()
322 config.networkId = 5; in testScanResultDoesNotMatchAfterClear()
DScoredNetworkEvaluatorTest.java317 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_newEphemeralNetworkMustBeReportedAsConnectable()
358 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseEphemeralNetworkBecauseOfNoSavedNetwork()
402 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseHigherScoredEphemeralNetwork()
471 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseSavedNetworkWithExternalScore()
507 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseSavedNetworkWithHigherExternalScore()
544 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseExternallyScoredOverUntrustedNetworksWithSameScore()
601 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseUntrustedWithHigherScoreThanExternallyScoredNetwork()
677 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseActiveEphemeralNetwork()
713 .anyMatch(c -> c.networkId == candidate.networkId)); in testEvaluateNetworks_chooseActiveSavedNetwork()
DWifiMonitorTest.java257 int networkId = NETWORK_ID; in testBroadcastNetworkGsmAuthRequestEvent() local
260 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data); in testBroadcastNetworkGsmAuthRequestEvent()
268 assertEquals(networkId, authData.networkId); in testBroadcastNetworkGsmAuthRequestEvent()
281 int networkId = NETWORK_ID; in testBroadcastNetworkUmtsAuthRequestEvent() local
284 mWifiMonitor.broadcastNetworkUmtsAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data); in testBroadcastNetworkUmtsAuthRequestEvent()
292 assertEquals(networkId, authData.networkId); in testBroadcastNetworkUmtsAuthRequestEvent()
424 int networkId = NETWORK_ID; in testBroadcastNetworkConnectionEvent() local
426 mWifiMonitor.broadcastNetworkConnectionEvent(WLAN_IFACE_NAME, networkId, bssid); in testBroadcastNetworkConnectionEvent()
432 assertEquals(networkId, messageCaptor.getValue().arg1); in testBroadcastNetworkConnectionEvent()
464 int networkId = NETWORK_ID; in testBroadcastSupplicantStateChangeEvent() local
[all …]
DCarrierNetworkEvaluatorTest.java110 public void addConfig(WifiConfiguration config, int networkId) { in addConfig() argument
111 mConfigs.put(config.configKey(), networkId); in addConfig() local
117 Integer networkId = mConfigs.get(config.configKey()); in answer() local
118 if (networkId == null) return null; in answer()
120 when(mWifiConfigManager.getConfiguredNetwork(networkId)).thenReturn(config); in answer()
124 when(networkUpdateResult.getNetworkId()).thenReturn(networkId); in answer()
132 private WifiConfiguration configureNewSsid(int networkId, ScanDetail scanDetail, in configureNewSsid() argument
145 when(mWifiConfigManager.enableNetwork(networkId, false, Process.WIFI_UID)).thenReturn(true); in configureNewSsid()
146 when(mWifiConfigManager.setNetworkCandidateScanResult(eq(networkId), any(), in configureNewSsid()
148 when(mWifiConfigManager.getConfiguredNetwork(networkId)).thenReturn(newConfig); in configureNewSsid()
[all …]
DClientModeImplTest.java730 int networkId = TEST_NETWORK_ID; in canSaveNetworkConfig() local
732 .thenReturn(new NetworkUpdateResult(networkId)); in canSaveNetworkConfig()
733 when(mWifiConfigManager.enableNetwork(eq(networkId), eq(false), anyInt())) in canSaveNetworkConfig()
742 verify(mWifiConfigManager).enableNetwork(eq(networkId), eq(false), anyInt()); in canSaveNetworkConfig()
805 int networkId = 5; in saveNetworkConfigFailsWithConfigEnableFailure() local
807 .thenReturn(new NetworkUpdateResult(networkId)); in saveNetworkConfigFailsWithConfigEnableFailure()
808 when(mWifiConfigManager.enableNetwork(eq(networkId), eq(false), anyInt())) in saveNetworkConfigFailsWithConfigEnableFailure()
817 verify(mWifiConfigManager).enableNetwork(eq(networkId), eq(false), anyInt()); in saveNetworkConfigFailsWithConfigEnableFailure()
836 config.networkId = FRAMEWORK_NETWORK_ID; in addNetworkAndVerifySuccess()
893 when(mWifiConfigManager.enableNetwork(eq(config.networkId), eq(true), anyInt())) in setupAndStartConnectSequence()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java57 final String networkId; in NetworkIdentitySet() local
59 networkId = readOptionalString(in); in NetworkIdentitySet()
61 networkId = null; in NetworkIdentitySet()
87 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java310 wifiInfo.setNetworkId(configuration.networkId);
326 wifiInfo.setNetworkId(configuration.networkId);
359 wifiInfo.setNetworkId(configuration.networkId);
493 int networkId = 123;
497 config.networkId = networkId;
499 wifiInfo.setNetworkId(networkId);
508 .setNetworkId(networkId)
641 configuration.networkId = 123;
751 int networkId = 123;
754 config.networkId = networkId;
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java380 assertEquals(cellAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
390 assertEquals(cellAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
394 assertEquals(wifiAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
398 assertEquals(wifiAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
412 assertEquals(dunAgent.networkId, mUNM.getCurrentPreferredUpstream().network); in testGetCurrentPreferredUpstream()
620 cb.onAvailable(defaultNetwork.networkId); in makeDefaultNetwork()
622 defaultNetwork.networkId, defaultNetwork.networkCapabilities); in makeDefaultNetwork()
624 defaultNetwork.networkId, defaultNetwork.linkProperties); in makeDefaultNetwork()
706 public final Network networkId; field in UpstreamNetworkMonitorTest.TestNetworkAgent
713 this.networkId = new Network(cm.getNetworkId()); in TestNetworkAgent()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java1126 public boolean reinvoke(int networkId, String peerAddress) { in reinvoke() argument
1127 if (TextUtils.isEmpty(peerAddress) || networkId < 0) return false; in reinvoke()
1143 "reinvoke(" + networkId + ", " + peerAddress + ")"); in reinvoke()
1145 result.setResult(mISupplicantP2pIface.reinvoke(networkId, macAddress)); in reinvoke()
1166 public boolean groupAdd(int networkId, boolean isPersistent) { in groupAdd() argument
1170 new SupplicantResult("groupAdd(" + networkId + ", " + isPersistent + ")"); in groupAdd()
1172 result.setResult(mISupplicantP2pIface.addGroup(isPersistent, networkId)); in groupAdd()
1909 public boolean removeNetwork(int networkId) { in removeNetwork() argument
1914 "removeNetwork(" + networkId + ")"); in removeNetwork()
1916 result.setResult(mISupplicantP2pIface.removeNetwork(networkId)); in removeNetwork()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java128 if (c.networkId == netId && c.SSID.equals(config.SSID)) { in testAddRemoveNetwork()
142 if (c.networkId == netId) { in testAddRemoveNetwork()
168 if (c.networkId == netId) { in testEnableDisableNetwork()
182 if (c.networkId == netId) { in testEnableDisableNetwork()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java79 wifiConfig.networkId = mNetworkId; in build()
229 public TestAccessPointBuilder setNetworkId(int networkId) { in setNetworkId() argument
230 mNetworkId = networkId; in setNetworkId()

1234