Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java169 void onSavedNetworkAdded(int networkId); in onSavedNetworkAdded() argument
173 void onSavedNetworkEnabled(int networkId); in onSavedNetworkEnabled() argument
177 void onSavedNetworkPermanentlyDisabled(int networkId, int disableReason); in onSavedNetworkPermanentlyDisabled() argument
181 void onSavedNetworkRemoved(int networkId); in onSavedNetworkRemoved() argument
185 void onSavedNetworkTemporarilyDisabled(int networkId, int disableReason); in onSavedNetworkTemporarilyDisabled() argument
189 void onSavedNetworkUpdated(int networkId); in onSavedNetworkUpdated() argument
543 WifiConfiguration internalConfig = getInternalConfiguredNetwork(config.networkId); in setRandomizedMacToPersistentMac()
696 public WifiConfiguration getConfiguredNetwork(int networkId) { in getConfiguredNetwork() argument
697 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetwork()
733 public WifiConfiguration getConfiguredNetworkWithPassword(int networkId) { in getConfiguredNetworkWithPassword() argument
[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 …]
DConnectionFailureNotifier.java77 int networkId = intent.getIntExtra( in ConnectionFailureNotifier()
84 showRandomizationSettingsDialog(networkId, ssidAndSecurityType); in ConnectionFailureNotifier()
95 public void showFailedToConnectDueToNoRandomizedMacSupportNotification(int networkId) { in showFailedToConnectDueToNoRandomizedMacSupportNotification() argument
96 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(networkId); in showFailedToConnectDueToNoRandomizedMacSupportNotification()
119 mWifiConfigManager.getConfiguredNetwork(mConfig.networkId); in onClick()
125 mWifiConfigManager.enableNetwork(updatedConfig.networkId, true, in onClick()
144 private void showRandomizationSettingsDialog(int networkId, String ssidAndSecurityType) { in showRandomizationSettingsDialog() argument
145 WifiConfiguration config = mWifiConfigManager.getConfiguredNetwork(networkId); in showRandomizationSettingsDialog()
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 …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java493 assertTrue(mWifiConfigManager.removeNetwork(openNetwork.networkId, TEST_CREATOR_UID)); in testRandomizedMacAddressIsGeneratedForConfigurationReadFromStore()
513 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testUpdateSingleOpenNetwork()
525 verify(mWcmListener).onSavedNetworkUpdated(openNetwork.networkId); in testUpdateSingleOpenNetwork()
542 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testCannotUpdateMacRandomizationSettingWithoutPermission()
569 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testCanUpdateMacRandomizationSettingWithNetworkSettingPermission()
599 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testCanUpdateMacRandomizationSettingWithSetupWizardPermission()
635 verify(mWcmListener, never()).onSavedNetworkAdded(ephemeralNetwork.networkId); in testAddSingleEphemeralNetwork()
653 verify(mWcmListener, never()).onSavedNetworkAdded(passpointNetwork.networkId); in testAddSinglePasspointNetwork()
703 verify(mWcmListener, never()).onSavedNetworkAdded(suggestionNetwork.networkId); in testAddSingleSuggestionNetwork()
705 .removeNetwork(suggestionNetwork.networkId, TEST_CREATOR_UID)); in testAddSingleSuggestionNetwork()
[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 …]
DWifiNetworkSelectorTestUtil.java119 eq(chosenCandidate.networkId), eq(chosenScanResult), anyInt()); in verifySelectedScanResult()
203 if (netId == config.networkId) { in prepareConfigStore()
380 int networkId, ScanDetail scanDetail, boolean meteredHint) { in setupEphemeralNetwork() argument
383 .thenReturn(new NetworkUpdateResult(networkId)); in setupEphemeralNetwork()
388 config.networkId = networkId; in setupEphemeralNetwork()
393 when(wifiConfigManager.getConfiguredNetwork(eq(networkId))) in setupEphemeralNetwork()
400 eq(networkId), any(ScanResult.class), anyInt())) in setupEphemeralNetwork()
410 when(wifiConfigManager.updateNetworkSelectionStatus(eq(networkId), in setupEphemeralNetwork()
DConnectionFailureNotifierTest.java105 .RANDOMIZATION_SETTINGS_NETWORK_ID), anyInt())).thenReturn(config.networkId); in buildBroadcastForRandomizationSettingsDialog()
121 when(mWifiConfigManager.getConfiguredNetwork(config.networkId)).thenReturn(config); in testConnectionFailureSendRandomizationSettingsNotification()
125 config.networkId); in testConnectionFailureSendRandomizationSettingsNotification()
160 when(mWifiConfigManager.getConfiguredNetwork(config.networkId)).thenReturn(config); in testWifiConfigurationMismatch()
162 config.networkId); in testWifiConfigurationMismatch()
/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.java54 int type, int subType, String subscriberId, String networkId, boolean roaming, in NetworkIdentity() argument
59 mNetworkId = networkId; in NetworkIdentity()
191 String networkId = null; in buildNetworkIdentity() local
209 if (state.networkId != null) { in buildNetworkIdentity()
210 networkId = state.networkId; in buildNetworkIdentity()
215 networkId = info != null ? info.getSSID() : null; in buildNetworkIdentity()
219 return new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in buildNetworkIdentity()
DNetworkTemplate.java183 public static NetworkTemplate buildTemplateWifi(String networkId) { in buildTemplateWifi() argument
184 return new NetworkTemplate(MATCH_WIFI, null, networkId); in buildTemplateWifi()
234 public NetworkTemplate(int matchRule, String subscriberId, String networkId) { in NetworkTemplate() argument
235 this(matchRule, subscriberId, new String[] { subscriberId }, networkId); in NetworkTemplate()
239 String networkId) { in NetworkTemplate() argument
240 this(matchRule, subscriberId, matchSubscriberIds, networkId, METERED_ALL, ROAMING_ALL, in NetworkTemplate()
245 String networkId, int metered, int roaming, int defaultNetwork, int subType) { in NetworkTemplate() argument
249 mNetworkId = networkId; in NetworkTemplate()
651 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup() local
658 return new NetworkTemplate(matchRule, subscriberId, networkId); in getNetworkTemplateFromBackup()
/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/Tethering/tests/unit/src/com/android/networkstack/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()
624 cb.onAvailable(defaultNetwork.networkId); in makeDefaultNetwork()
626 defaultNetwork.networkId, defaultNetwork.networkCapabilities); in makeDefaultNetwork()
628 defaultNetwork.networkId, defaultNetwork.linkProperties); in makeDefaultNetwork()
710 public final Network networkId; field in UpstreamNetworkMonitorTest.TestNetworkAgent
717 this.networkId = new Network(cm.getNetworkId()); in TestNetworkAgent()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java311 wifiInfo.setNetworkId(configuration.networkId);
327 wifiInfo.setNetworkId(configuration.networkId);
360 wifiInfo.setNetworkId(configuration.networkId);
494 int networkId = 123;
498 config.networkId = networkId;
500 wifiInfo.setNetworkId(networkId);
509 .setNetworkId(networkId)
642 configuration.networkId = 123;
752 int networkId = 123;
755 config.networkId = networkId;
[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()

1234