Home
last modified time | relevance | path

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

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigManager.java157 void onSavedNetworkAdded(int networkId); in onSavedNetworkAdded() argument
161 void onSavedNetworkEnabled(int networkId); in onSavedNetworkEnabled() argument
165 void onSavedNetworkPermanentlyDisabled(int networkId); in onSavedNetworkPermanentlyDisabled() argument
169 void onSavedNetworkRemoved(int networkId); in onSavedNetworkRemoved() argument
173 void onSavedNetworkTemporarilyDisabled(int networkId); in onSavedNetworkTemporarilyDisabled() argument
177 void onSavedNetworkUpdated(int networkId); in onSavedNetworkUpdated() argument
507 public WifiConfiguration getConfiguredNetwork(int networkId) { in getConfiguredNetwork() argument
508 WifiConfiguration config = getInternalConfiguredNetwork(networkId); in getConfiguredNetwork()
544 public WifiConfiguration getConfiguredNetworkWithPassword(int networkId) { in getConfiguredNetworkWithPassword() argument
545 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()
DWifiMonitor.java403 public void broadcastNetworkIdentityRequestEvent(String iface, int networkId, String ssid) { in broadcastNetworkIdentityRequestEvent() argument
404 sendMessage(iface, SUP_REQUEST_IDENTITY, 0, networkId, ssid); in broadcastNetworkIdentityRequestEvent()
416 public void broadcastNetworkGsmAuthRequestEvent(String iface, int networkId, String ssid, in broadcastNetworkGsmAuthRequestEvent() argument
419 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data)); in broadcastNetworkGsmAuthRequestEvent()
431 public void broadcastNetworkUmtsAuthRequestEvent(String iface, int networkId, String ssid, in broadcastNetworkUmtsAuthRequestEvent() argument
434 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data)); in broadcastNetworkUmtsAuthRequestEvent()
515 public void broadcastNetworkConnectionEvent(String iface, int networkId, String bssid) { in broadcastNetworkConnectionEvent() argument
516 sendMessage(iface, NETWORK_CONNECTION_EVENT, networkId, 0, bssid); in broadcastNetworkConnectionEvent()
540 public void broadcastSupplicantStateChangeEvent(String iface, int networkId, WifiSsid wifiSsid, in broadcastSupplicantStateChangeEvent() argument
544 new StateChangeResult(networkId, wifiSsid, bssid, newSupplicantState)); in broadcastSupplicantStateChangeEvent()
DSavedNetworkEvaluator.java112 mWifiConfigManager.tryEnableNetwork(network.networkId); in updateSavedNetworkSelectionStatus()
118 mWifiConfigManager.clearNetworkCandidateScanResult(network.networkId); in updateSavedNetworkSelectionStatus()
181 && lastUserSelectedNetworkId == network.networkId) { in calculateBssidScore()
194 && (network.networkId == currentNetwork.networkId in calculateBssidScore()
298 network.networkId, scanResult, score); in evaluateNetworks()
311 candidateIdOfScanResult = network.networkId; in evaluateNetworks()
DWifiNetworkSelector.java142 + " , ID: " + network.networkId); in isCurrentNetworkSufficient()
235 return (network.SSID + ":" + network.networkId); in toNetworkString()
355 if (network.networkId == selected.networkId) { in setUserConnectChoice()
359 + network.SSID + " : " + network.networkId); in setUserConnectChoice()
360 mWifiConfigManager.clearNetworkConnectChoice(network.networkId); in setUserConnectChoice()
371 mWifiConfigManager.setNetworkConnectChoice(network.networkId, key, currentTime); in setUserConnectChoice()
DScoredNetworkEvaluator.java156 && currentNetwork.networkId == configuredNetwork.networkId in evaluateNetworks()
229 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0); in trackUntrustedCandidate()
249 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0); in trackExternallyScoredCandidate()
262 candidateNetworkId = mEphemeralConfig.networkId; in getCandidateConfiguration()
298 candidateNetworkId = mSavedConfig.networkId; in getCandidateConfiguration()
DWifiConnectivityManager.java491 public void onSavedNetworkAdded(int networkId) { in onSavedNetworkAdded() argument
495 public void onSavedNetworkEnabled(int networkId) { in onSavedNetworkEnabled() argument
499 public void onSavedNetworkRemoved(int networkId) { in onSavedNetworkRemoved() argument
503 public void onSavedNetworkUpdated(int networkId) { in onSavedNetworkUpdated() argument
507 public void onSavedNetworkTemporarilyDisabled(int networkId) { in onSavedNetworkTemporarilyDisabled() argument
508 mConnectivityHelper.removeNetworkIfCurrent(networkId); in onSavedNetworkTemporarilyDisabled()
511 public void onSavedNetworkPermanentlyDisabled(int networkId) { in onSavedNetworkPermanentlyDisabled() argument
512 mConnectivityHelper.removeNetworkIfCurrent(networkId); in onSavedNetworkPermanentlyDisabled()
698 && (currentConnectedNetwork.networkId == candidate.networkId in connectToNetwork()
710 mStateMachine.startRoamToNetwork(candidate.networkId, scanResultCandidate); in connectToNetwork()
[all …]
DConfigurationMap.java33 final WifiConfiguration current = mPerID.put(config.networkId, config); in put()
36 mPerIDForCurrentUser.put(config.networkId, config); in put()
54 if (entries.next().getValue().networkId == netID) { in remove()
DWifiConnectivityHelper.java171 public void removeNetworkIfCurrent(int networkId) { in removeNetworkIfCurrent() argument
172 mWifiNative.removeNetworkIfCurrent(networkId); in removeNetworkIfCurrent()
/frameworks/base/core/java/android/net/
DNetworkState.java35 public final String networkId; field in NetworkState
39 String networkId) { in NetworkState() argument
45 this.networkId = networkId; in NetworkState()
54 networkId = in.readString(); in NetworkState()
69 out.writeString(networkId); in writeToParcel()
DNetworkIdentity.java63 int type, int subType, String subscriberId, String networkId, boolean roaming, in NetworkIdentity() argument
68 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.java130 public static NetworkTemplate buildTemplateWifi(String networkId) { in buildTemplateWifi() argument
131 return new NetworkTemplate(MATCH_WIFI, null, networkId); in buildTemplateWifi()
173 public NetworkTemplate(int matchRule, String subscriberId, String networkId) { in NetworkTemplate() argument
174 this(matchRule, subscriberId, new String[] { subscriberId }, networkId); in NetworkTemplate()
178 String networkId) { in NetworkTemplate() argument
182 mNetworkId = networkId; in NetworkTemplate()
497 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup() local
499 return new NetworkTemplate(matchRule, subscriberId, networkId); in getNetworkTemplateFromBackup()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java250 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testUpdateSingleOpenNetwork()
262 verify(mWcmListener).onSavedNetworkUpdated(openNetwork.networkId); in testUpdateSingleOpenNetwork()
286 verify(mWcmListener, never()).onSavedNetworkAdded(ephemeralNetwork.networkId); in testAddSingleEphemeralNetwork()
458 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId); in testRemoveSingleOpenNetwork()
467 verify(mWcmListener).onSavedNetworkRemoved(openNetwork.networkId); in testRemoveSingleOpenNetwork()
482 verify(mWcmListener, never()).onSavedNetworkAdded(ephemeralNetwork.networkId); in testRemoveSingleEphemeralNetwork()
487 verify(mWcmListener, never()).onSavedNetworkRemoved(ephemeralNetwork.networkId); in testRemoveSingleEphemeralNetwork()
501 verify(mWcmListener, never()).onSavedNetworkAdded(passpointNetwork.networkId); in testRemoveSinglePasspointNetwork()
506 verify(mWcmListener, never()).onSavedNetworkRemoved(passpointNetwork.networkId); in testRemoveSinglePasspointNetwork()
524 assertTrue(mWifiConfigManager.removeNetwork(passpointNetwork.networkId, Process.WIFI_UID)); in testRemovePasspointNetworkAddedByOther()
[all …]
DWifiMonitorTest.java255 int networkId = NETWORK_ID; in testBroadcastNetworkGsmAuthRequestEvent() local
258 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data); in testBroadcastNetworkGsmAuthRequestEvent()
266 assertEquals(networkId, authData.networkId); in testBroadcastNetworkGsmAuthRequestEvent()
279 int networkId = NETWORK_ID; in testBroadcastNetworkUmtsAuthRequestEvent() local
282 mWifiMonitor.broadcastNetworkUmtsAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data); in testBroadcastNetworkUmtsAuthRequestEvent()
290 assertEquals(networkId, authData.networkId); in testBroadcastNetworkUmtsAuthRequestEvent()
405 int networkId = NETWORK_ID; in testBroadcastNetworkConnectionEvent() local
407 mWifiMonitor.broadcastNetworkConnectionEvent(WLAN_IFACE_NAME, networkId, bssid); in testBroadcastNetworkConnectionEvent()
413 assertEquals(networkId, messageCaptor.getValue().arg1); in testBroadcastNetworkConnectionEvent()
445 int networkId = NETWORK_ID; in testBroadcastSupplicantStateChangeEvent() local
[all …]
DWifiNetworkSelectorTestUtil.java106 eq(chosenCandidate.networkId), eq(chosenScanResult), anyInt()); in verifySelectedScanResult()
186 if (netId == config.networkId) { in prepareConfigStore()
363 int networkId, ScanDetail scanDetail, boolean meteredHint) { in setupEphemeralNetwork() argument
366 .thenReturn(new NetworkUpdateResult(networkId)); in setupEphemeralNetwork()
370 config.networkId = networkId; in setupEphemeralNetwork()
375 when(wifiConfigManager.getConfiguredNetwork(eq(networkId))) in setupEphemeralNetwork()
382 eq(networkId), any(ScanResult.class), anyInt())) in setupEphemeralNetwork()
392 when(wifiConfigManager.updateNetworkSelectionStatus(eq(networkId), in setupEphemeralNetwork()
DConfigurationMapTest.java123 assertEquals(config, mConfigs.getForAllUsers(config.networkId)); in verifyGetters()
129 assertEquals(config, mConfigs.getForCurrentUser(config.networkId)); in verifyGetters()
145 assertNull(mConfigs.getForCurrentUser(config.networkId)); in verifyGetters()
207 config2.networkId = config1.networkId; in testPutRemoveClear()
222 assertEquals(config2, mConfigs.remove(config2.networkId)); in testPutRemoveClear()
DSupplicantStaIfaceHalTest.java232 public void answer(final int networkId, ISupplicantStaIface.getNetworkCallback cb) { in testLoadNetworks()
237 config.SSID = NETWORK_ID_TO_SSID.get(networkId); in testLoadNetworks()
238 config.networkId = networkId; in testLoadNetworks()
260 assertEquals(network.getKey(), Integer.valueOf(config.networkId)); in testLoadNetworks()
290 public void answer(final int networkId, ISupplicantStaIface.getNetworkCallback cb) { in testLoadNetworksRemovesDuplicates()
295 config.SSID = NETWORK_ID_TO_SSID.get(networkId); in testLoadNetworksRemovesDuplicates()
296 config.networkId = networkId; in testLoadNetworksRemovesDuplicates()
298 if (networkId == duplicateNetworkId) { in testLoadNetworksRemovesDuplicates()
305 NETWORK_ID_TO_SSID.get(networkId)); in testLoadNetworksRemovesDuplicates()
336 assertEquals(network.getKey(), Integer.valueOf(config.networkId)); in testLoadNetworksRemovesDuplicates()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java253 wifiInfo.setNetworkId(configuration.networkId);
269 wifiInfo.setNetworkId(configuration.networkId);
287 wifiInfo.setNetworkId(configuration.networkId);
318 wifiInfo.setNetworkId(configuration.networkId);
344 configuration.networkId = 123;
442 int networkId = 123;
445 config.networkId = networkId;
447 wifiInfo.setNetworkId(networkId);
456 .setNetworkId(networkId)
468 int networkId = 123;
[all …]
DTestAccessPointBuilder.java58 wifiConfig.networkId = mNetworkId; in build()
170 public TestAccessPointBuilder setNetworkId(int networkId) { in setNetworkId() argument
171 mNetworkId = networkId; in setNetworkId()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java56 final String networkId; in NetworkIdentitySet() local
58 networkId = readOptionalString(in); in NetworkIdentitySet()
60 networkId = null; in NetworkIdentitySet()
79 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered)); in NetworkIdentitySet()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHal.java966 public boolean reinvoke(int networkId, String peerAddress) { in reinvoke() argument
967 if (TextUtils.isEmpty(peerAddress) || networkId < 0) return false; in reinvoke()
983 "reinvoke(" + networkId + ", " + peerAddress + ")"); in reinvoke()
985 result.setResult(mISupplicantP2pIface.reinvoke(networkId, macAddress)); in reinvoke()
1006 public boolean groupAdd(int networkId, boolean isPersistent) { in groupAdd() argument
1010 new SupplicantResult("groupAdd(" + networkId + ", " + isPersistent + ")"); in groupAdd()
1012 result.setResult(mISupplicantP2pIface.addGroup(isPersistent, networkId)); in groupAdd()
1704 public boolean removeNetwork(int networkId) { in removeNetwork() argument
1709 "removeNetwork(" + networkId + ")"); in removeNetwork()
1711 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/Osu/src/com/android/hotspot2/flow/
DPlatformAdapter.java255 int networkId = wifiManager.addNetwork(config); in connect() local
256 if (networkId < 0) { in connect()
259 if (wifiManager.enableNetwork(networkId, true)) { in connect()
260 return networkId; in connect()
484 Log.d(OSUManager.TAG, "Found matching config " + config.networkId + ", updating"); in updateNetwork()
490 newConfig.networkId = config.networkId; in updateNetwork()
524 if (passpointConfig.getWifiConfiguration().networkId == wifiInfo.getNetworkId()) { in getActivePasspointConfig()
585 if (config.networkId == wifiInfo.getNetworkId()) { in getActiveWifiConfig()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java135 private int networkId = WifiConfiguration.INVALID_NETWORK_ID; field in AccessPoint
241 this.networkId = that.networkId; in copyFrom()
311 result += 23 * networkId; in hashCode()
444 networkId = WifiConfiguration.INVALID_NETWORK_ID; in clearConfig()
860 (networkId != WifiConfiguration.INVALID_NETWORK_ID || in isActive()
893 if (isPasspoint() == false && networkId != WifiConfiguration.INVALID_NETWORK_ID) { in isInfoForThisAccessPoint()
894 return networkId == info.getNetworkId(); in isInfoForThisAccessPoint()
907 return networkId != WifiConfiguration.INVALID_NETWORK_ID; in isSaved()
936 networkId = config.networkId; in loadConfig()
1035 networkId = config.networkId; in update()
/frameworks/base/telephony/java/android/telephony/cdma/
DCdmaCellLocation.java150 int baseStationLongitude, int systemId, int networkId) { in setCellLocationData() argument
156 this.mNetworkId = networkId; in setCellLocationData()

123