Searched refs:networkId (Results 1 - 25 of 67) sorted by relevance

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DStateChangeResult.java29 StateChangeResult(int networkId, WifiSsid wifiSsid, String BSSID, argument
34 this.networkId = networkId;
37 int networkId; field in class:StateChangeResult
48 sb.append(" nid: ").append(networkId);
H A DWifiConfigManager.java92 * methods of this class using the configuration's unique networkId.
162 void onSavedNetworkAdded(int networkId); argument
166 void onSavedNetworkEnabled(int networkId); argument
170 void onSavedNetworkPermanentlyDisabled(int networkId, int disableReason); argument
174 void onSavedNetworkRemoved(int networkId); argument
178 void onSavedNetworkTemporarilyDisabled(int networkId, int disableReason); argument
182 void onSavedNetworkUpdated(int networkId); argument
516 * Retrieves the configured network corresponding to the provided networkId with password
519 * @param networkId networkId o
522 getConfiguredNetwork(int networkId) argument
559 getConfiguredNetworkWithPassword(int networkId) argument
579 getConfiguredNetworkWithoutMasking(int networkId) argument
618 getInternalConfiguredNetwork(int networkId) argument
1169 removeNetwork(int networkId, int uid) argument
1416 updateNetworkSelectionStatus(int networkId, int reason) argument
1431 updateNetworkNotRecommended(int networkId, boolean notRecommended) argument
1486 tryEnableNetwork(int networkId) argument
1503 enableNetwork(int networkId, boolean disableOthers, int uid) argument
1538 disableNetwork(int networkId, int uid) argument
1573 updateLastConnectUid(int networkId, int uid) argument
1602 updateNetworkAfterConnect(int networkId) argument
1629 updateNetworkAfterDisconnect(int networkId) argument
1654 setNetworkDefaultGwMacAddress(int networkId, String macAddress) argument
1670 setNetworkRandomizedMacAddress(int networkId, MacAddress macAddress) argument
1690 clearNetworkCandidateScanResult(int networkId) argument
1717 setNetworkCandidateScanResult(int networkId, ScanResult scanResult, int score) argument
1764 clearNetworkConnectChoice(int networkId) argument
1792 setNetworkConnectChoice( int networkId, String connectChoiceConfigKey, long timestamp) argument
1813 incrementNetworkNoInternetAccessReports(int networkId) argument
1829 setNetworkValidatedInternetAccess(int networkId, boolean validated) argument
1847 setNetworkNoInternetAccessExpected(int networkId, boolean expected) argument
1873 setLastSelectedNetwork(int networkId) argument
1924 getScanDetailCacheForNetwork(int networkId) argument
2080 updateScanDetailForNetwork(int networkId, ScanDetail scanDetail) argument
2291 fetchChannelSetForNetworkForPartialScan(int networkId, long ageInMillis, int homeChannelFreq) argument
[all...]
H A DSavedNetworkEvaluator.java108 mWifiConfigManager.tryEnableNetwork(network.networkId);
114 mWifiConfigManager.clearNetworkCandidateScanResult(network.networkId);
177 && lastUserSelectedNetworkId == network.networkId) {
190 && (network.networkId == currentNetwork.networkId
291 network.networkId, scanResult, score);
304 mWifiConfigManager.getConfiguredNetwork(network.networkId)));
314 network.networkId, scanResultCandidate, highestScore);
316 candidate = mWifiConfigManager.getConfiguredNetwork(network.networkId);
H A DConfigurationMap.java30 final WifiConfiguration current = mPerID.put(config.networkId, config);
33 mPerIDForCurrentUser.put(config.networkId, config);
51 if (scanResultMatchInfoEntries.next().getValue().networkId == netID) {
H A DWifiMonitor.java382 * @param networkId ID of the network in wpa_supplicant.
385 public void broadcastNetworkIdentityRequestEvent(String iface, int networkId, String ssid) { argument
386 sendMessage(iface, SUP_REQUEST_IDENTITY, 0, networkId, ssid);
394 * @param networkId ID of the network in wpa_supplicant.
398 public void broadcastNetworkGsmAuthRequestEvent(String iface, int networkId, String ssid, argument
401 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.SIM, ssid, data));
409 * @param networkId ID of the network in wpa_supplicant.
413 public void broadcastNetworkUmtsAuthRequestEvent(String iface, int networkId, String ssid, argument
416 new SimAuthRequestData(networkId, WifiEnterpriseConfig.Eap.AKA, ssid, data));
496 * @param networkId I
499 broadcastNetworkConnectionEvent(String iface, int networkId, String bssid) argument
524 broadcastSupplicantStateChangeEvent(String iface, int networkId, WifiSsid wifiSsid, String bssid, SupplicantState newSupplicantState) argument
[all...]
H A DScoredNetworkEvaluator.java174 && currentNetwork.networkId == configuredNetwork.networkId
247 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0);
267 mWifiConfigManager.setNetworkCandidateScanResult(config.networkId, scanResult, 0);
280 candidateNetworkId = mEphemeralConfig.networkId;
316 candidateNetworkId = mSavedConfig.networkId;
H A DWifiConnectivityHelper.java166 * Remove the request |networkId| from supplicant if it's the current network,
167 * if the current configured network matches |networkId|.
169 * @param networkId network id of the network to be removed from supplicant.
171 public void removeNetworkIfCurrent(int networkId) { argument
172 mWifiNative.removeNetworkIfCurrent(mWifiNative.getClientInterfaceName(), networkId);
H A DWifiNetworkSelector.java145 + " , ID: " + network.networkId);
260 return (network.SSID + ":" + network.networkId);
441 if (network.networkId == selected.networkId) {
445 + network.SSID + " : " + network.networkId);
446 mWifiConfigManager.clearNetworkConnectChoice(network.networkId);
457 mWifiConfigManager.setNetworkConnectChoice(network.networkId, key, currentTime);
H A DWifiConnectivityManager.java531 public void onSavedNetworkAdded(int networkId) { argument
535 public void onSavedNetworkEnabled(int networkId) { argument
539 public void onSavedNetworkRemoved(int networkId) { argument
543 public void onSavedNetworkUpdated(int networkId) { argument
549 public void onSavedNetworkTemporarilyDisabled(int networkId, int disableReason) { argument
551 mConnectivityHelper.removeNetworkIfCurrent(networkId);
554 public void onSavedNetworkPermanentlyDisabled(int networkId, int disableReason) { argument
555 mConnectivityHelper.removeNetworkIfCurrent(networkId);
750 && (currentConnectedNetwork.networkId == candidate.networkId
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkState.java38 public final String networkId; field in class:NetworkState
42 String networkId) {
48 this.networkId = networkId;
67 networkId = in.readString();
82 out.writeString(networkId);
40 NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, Network network, String subscriberId, String networkId) argument
H A DNetworkIdentity.java64 int type, int subType, String subscriberId, String networkId, boolean roaming,
69 mNetworkId = networkId;
110 builder.append(", networkId=").append(mNetworkId);
202 String networkId = null;
220 if (state.networkId != null) {
221 networkId = state.networkId;
226 networkId = info != null ? info.getSSID() : null;
230 return new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered,
63 NetworkIdentity( int type, int subType, String subscriberId, String networkId, boolean roaming, boolean metered, boolean defaultNetwork) argument
H A DNetworkTemplate.java128 public static NetworkTemplate buildTemplateWifi(String networkId) { argument
129 return new NetworkTemplate(MATCH_WIFI, null, networkId);
176 public NetworkTemplate(int matchRule, String subscriberId, String networkId) { argument
177 this(matchRule, subscriberId, new String[] { subscriberId }, networkId);
181 String networkId) {
182 this(matchRule, subscriberId, matchSubscriberIds, networkId, METERED_ALL, ROAMING_ALL,
187 String networkId, int metered, int roaming, int defaultNetwork) {
191 mNetworkId = networkId;
241 builder.append(", networkId=").append(mNetworkId);
508 String networkId
180 NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds, String networkId) argument
186 NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds, String networkId, int metered, int roaming, int defaultNetwork) argument
[all...]
H A DINetworkPolicyManager.aidl65 void setWifiMeteredOverride(String networkId, int meteredOverride);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DConfigurationMapTest.java145 assertEquals(config, mConfigs.getForAllUsers(config.networkId));
151 assertEquals(config, mConfigs.getForCurrentUser(config.networkId));
164 assertNull(mConfigs.getForCurrentUser(config.networkId));
241 config2.networkId = config1.networkId;
256 assertEquals(config2, mConfigs.remove(config2.networkId));
303 config.networkId = 5;
309 mConfigs.remove(config.networkId);
321 config.networkId = 5;
H A DWifiConfigManagerTest.java270 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId);
282 verify(mWcmListener).onSavedNetworkUpdated(openNetwork.networkId);
306 verify(mWcmListener, never()).onSavedNetworkAdded(ephemeralNetwork.networkId);
478 verify(mWcmListener).onSavedNetworkAdded(openNetwork.networkId);
487 verify(mWcmListener).onSavedNetworkRemoved(openNetwork.networkId);
502 verify(mWcmListener, never()).onSavedNetworkAdded(ephemeralNetwork.networkId);
507 verify(mWcmListener, never()).onSavedNetworkRemoved(ephemeralNetwork.networkId);
521 verify(mWcmListener, never()).onSavedNetworkAdded(passpointNetwork.networkId);
526 verify(mWcmListener, never()).onSavedNetworkRemoved(passpointNetwork.networkId);
544 assertTrue(mWifiConfigManager.removeNetwork(passpointNetwork.networkId, Proces
3566 verifyAddOrUpdateNetworkWithProxySettingsAndPermissions( boolean withNetworkSettings, boolean withProfileOwnerPolicy, boolean withDeviceOwnerPolicy, IpConfiguration ipConfiguration, boolean assertSuccess, int networkId) argument
4097 verifyUpdateNetworkSelectionStatus( int networkId, int reason, int temporaryDisableReasonCounter) argument
4239 verifyUpdateNetworkAfterConnectHasEverConnectedTrue(int networkId) argument
[all...]
H A DWifiNetworkSelectorTestUtil.java106 eq(chosenCandidate.networkId), eq(chosenScanResult), anyInt());
186 if (netId == config.networkId) {
358 * @param networkId ID of the ephemeral network
363 int networkId, ScanDetail scanDetail, boolean meteredHint) {
366 .thenReturn(new NetworkUpdateResult(networkId));
370 config.networkId = networkId;
375 when(wifiConfigManager.getConfiguredNetwork(eq(networkId)))
382 eq(networkId), any(ScanResult.class), anyInt()))
392 when(wifiConfigManager.updateNetworkSelectionStatus(eq(networkId),
362 setupEphemeralNetwork(WifiConfigManager wifiConfigManager, int networkId, ScanDetail scanDetail, boolean meteredHint) argument
[all...]
H A DWifiStateMachineTest.java698 int networkId = TEST_NETWORK_ID;
700 .thenReturn(new NetworkUpdateResult(networkId));
701 when(mWifiConfigManager.enableNetwork(eq(networkId), eq(false), anyInt()))
710 verify(mWifiConfigManager).enableNetwork(eq(networkId), eq(false), anyInt());
773 int networkId = 5;
775 .thenReturn(new NetworkUpdateResult(networkId));
776 when(mWifiConfigManager.enableNetwork(eq(networkId), eq(false), anyInt()))
785 verify(mWifiConfigManager).enableNetwork(eq(networkId), eq(false), anyInt());
804 config.networkId = FRAMEWORK_NETWORK_ID;
859 when(mWifiConfigManager.enableNetwork(eq(config.networkId), e
[all...]
H A DWifiMonitorTest.java256 int networkId = NETWORK_ID;
259 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data);
267 assertEquals(networkId, authData.networkId);
280 int networkId = NETWORK_ID;
283 mWifiMonitor.broadcastNetworkUmtsAuthRequestEvent(WLAN_IFACE_NAME, networkId, ssid, data);
291 assertEquals(networkId, authData.networkId);
423 int networkId = NETWORK_ID;
425 mWifiMonitor.broadcastNetworkConnectionEvent(WLAN_IFACE_NAME, networkId, bssi
[all...]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
H A DAccessPointTest.java283 wifiInfo.setNetworkId(configuration.networkId);
299 wifiInfo.setNetworkId(configuration.networkId);
332 wifiInfo.setNetworkId(configuration.networkId);
466 int networkId = 123;
470 config.networkId = networkId;
472 wifiInfo.setNetworkId(networkId);
481 .setNetworkId(networkId)
551 configuration.networkId = 123;
661 int networkId
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkIdentitySet.java57 final String networkId;
59 networkId = readOptionalString(in);
61 networkId = null;
87 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered,
/frameworks/base/telephony/java/android/telephony/cdma/
H A DCdmaCellLocation.java73 this.mNetworkId = bundle.getInt("networkId", mNetworkId);
150 int baseStationLongitude, int systemId, int networkId) {
156 this.mNetworkId = networkId;
217 bundleToFill.putInt("networkId", this.mNetworkId);
149 setCellLocationData(int baseStationId, int baseStationLatitude, int baseStationLongitude, int systemId, int networkId) argument
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiClientTest.java128 if (c.networkId == netId && c.SSID.equals(config.SSID)) {
142 if (c.networkId == netId) {
168 if (c.networkId == netId) {
182 if (c.networkId == netId) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DSupplicantP2pIfaceHal.java1095 * @param networkId Used to specify the persistent group.
1100 public boolean reinvoke(int networkId, String peerAddress) { argument
1101 if (TextUtils.isEmpty(peerAddress) || networkId < 0) return false;
1117 "reinvoke(" + networkId + ", " + peerAddress + ")");
1119 result.setResult(mISupplicantP2pIface.reinvoke(networkId, macAddress));
1135 * @param networkId Used to specify the restart of a persistent group.
1140 public boolean groupAdd(int networkId, boolean isPersistent) { argument
1144 new SupplicantResult("groupAdd(" + networkId + ", " + isPersistent + ")");
1146 result.setResult(mISupplicantP2pIface.addGroup(isPersistent, networkId));
1157 * This is a helper method that invokes groupAdd(networkId, isPersisten
1838 removeNetwork(int networkId) argument
1883 getNetwork(int networkId) argument
2207 setClientList(int networkId, String clientListStr) argument
2244 getClientList(int networkId) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DAccessPointControllerImpl.java116 if (DEBUG) Log.d(TAG, "connect networkId=" + ap.getConfig().networkId);
118 mWifiTracker.getManager().connect(ap.getConfig().networkId, mConnectListener);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DNetworkPolicyEditor.java218 final String networkId = template.getNetworkId();
219 final String strippedNetworkId = WifiInfo.removeDoubleQuotes(networkId);
220 if (!TextUtils.equals(strippedNetworkId, networkId)) {

Completed in 203 milliseconds

123