Searched refs:netId (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/wifi/java/android/net/wifi/
H A DNetworkUpdateResult.java22 int netId; field in class:NetworkUpdateResult
28 netId = id;
34 netId = INVALID_NETWORK_ID;
40 netId = id;
44 return netId;
H A DWifiConfigStore.java210 * @param netId network to select for connection
213 boolean selectNetwork(int netId) { argument
214 if (netId == INVALID_NETWORK_ID) return false;
229 config.networkId = netId;
236 enableNetworkWithoutBroadcast(netId, true);
258 int netId = result.getNetworkId();
260 if (newNetwork && netId != INVALID_NETWORK_ID) {
261 mWifiNative.enableNetwork(netId, false);
262 mConfiguredNetworks.get(netId).status = Status.ENABLED;
270 void updateStatus(int netId, DetailedStat argument
297 forgetNetwork(int netId) argument
336 removeNetwork(int netId) argument
344 removeConfigAndSendBroadcastIfNeeded(int netId) argument
368 enableNetwork(int netId, boolean disableOthers) argument
386 enableNetworkWithoutBroadcast(int netId, boolean disableOthers) argument
420 disableNetwork(int netId) argument
430 disableNetwork(int netId, int reason) argument
515 getLinkProperties(int netId) argument
524 setLinkProperties(int netId, LinkProperties linkProperties) argument
539 clearLinkProperties(int netId) argument
555 getProxyProperties(int netId) argument
568 isUsingStaticIp(int netId) argument
648 markAllNetworksDisabledExcept(int netId) argument
[all...]
H A DWifiNative.java146 public boolean setNetworkVariable(int netId, String name, String value) { argument
148 return doBooleanCommand("SET_NETWORK " + netId + " " + name + " " + value);
151 public String getNetworkVariable(int netId, String name) { argument
153 return doStringCommand("GET_NETWORK " + netId + " " + name);
156 public boolean removeNetwork(int netId) { argument
157 return doBooleanCommand("REMOVE_NETWORK " + netId);
160 public boolean enableNetwork(int netId, boolean disableOthers) { argument
162 return doBooleanCommand("SELECT_NETWORK " + netId);
164 return doBooleanCommand("ENABLE_NETWORK " + netId);
168 public boolean disableNetwork(int netId) { argument
629 p2pGroupAdd(int netId) argument
655 p2pReinvoke(int netId, String deviceAddress) argument
[all...]
H A DIWifiManager.aidl38 boolean removeNetwork(int netId);
40 boolean enableNetwork(int netId, boolean disableOthers);
42 boolean disableNetwork(int netId);
H A DWifiManager.java647 * @param netId the integer that identifies the network configuration
651 public boolean removeNetwork(int netId) { argument
653 return mService.removeNetwork(netId);
665 * @param netId the ID of the network in the list of configured networks
671 public boolean enableNetwork(int netId, boolean disableOthers) { argument
673 return mService.enableNetwork(netId, disableOthers);
683 * @param netId the ID of the network as returned by {@link #addNetwork}.
686 public boolean disableNetwork(int netId) { argument
688 return mService.disableNetwork(netId);
1492 public void forget(int netId, ActionListene argument
1507 disable(int netId, ActionListener listener) argument
[all...]
H A DWifiEnterpriseConfig.java623 boolean migrateOldEapTlsNative(WifiNative wifiNative, int netId) { argument
624 String oldPrivateKey = wifiNative.getNetworkVariable(netId, OLD_PRIVATE_KEY_NAME);
654 wifiNative.setNetworkVariable(netId, ENGINE_KEY, mFields.get(ENGINE_KEY));
655 wifiNative.setNetworkVariable(netId, ENGINE_ID_KEY, mFields.get(ENGINE_ID_KEY));
656 wifiNative.setNetworkVariable(netId, PRIVATE_KEY_ID_KEY, mFields.get(PRIVATE_KEY_ID_KEY));
658 wifiNative.setNetworkVariable(netId, OLD_PRIVATE_KEY_NAME, EMPTY_VALUE);
H A DSupplicantStateTracker.java92 private void handleNetworkConnectionFailure(int netId) { argument
99 mWifiConfigStore.disableNetwork(netId, WifiConfiguration.DISABLED_AUTH_FAILURE);
H A DWifiMonitor.java745 void notifyNetworkStateChange(NetworkInfo.DetailedState newState, String BSSID, int netId) { argument
748 netId, 0, BSSID);
752 netId, 0, BSSID);
H A DWifiStateMachine.java950 * @param netId network id of the network
954 public boolean syncEnableNetwork(AsyncChannel channel, int netId, boolean disableOthers) { argument
955 Message resultMsg = channel.sendMessageSynchronously(CMD_ENABLE_NETWORK, netId,
965 * @param netId network id of the network
968 public boolean syncDisableNetwork(AsyncChannel channel, int netId) { argument
969 Message resultMsg = channel.sendMessageSynchronously(WifiManager.DISABLE_NETWORK, netId);
1598 if (DBG) log("netId=" + mLastNetworkId + " Link configured: " + mLinkProperties);
1835 log("Link configuration changed for netId: " + mLastNetworkId
2892 int netId = message.arg1;
2898 netId
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiClientTest.java128 int netId = mWifiManager.addNetwork(config);
129 assertTrue(netId != -1);
135 if (c.networkId == netId && c.SSID.equals(config.SSID)) {
142 boolean ret = mWifiManager.removeNetwork(netId);
149 if (c.networkId == netId) {
165 int netId = mWifiManager.addNetwork(config);
166 assertTrue(netId != -1);
169 boolean ret = mWifiManager.enableNetwork(netId, true);
175 if (c.networkId == netId) {
183 ret = mWifiManager.disableNetwork(netId);
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pConfig.java55 public int netId = WifiP2pGroup.PERSISTENT_NET_ID; field in class:WifiP2pConfig
112 sbuf.append("\n persist: ").append(netId);
127 netId = source.netId;
136 dest.writeInt(netId);
147 config.netId = in.readInt();
H A DWifiP2pGroupList.java42 public void onDeleteGroup(int netId); argument
53 protected void entryRemoved(boolean evicted, Integer netId,
89 * @param netId
91 void remove(int netId) { argument
92 mGroups.remove(netId);
167 * @param netId network id.
170 String getOwnerAddr(int netId) { argument
171 WifiP2pGroup grp = mGroups.get(netId);
183 * @param netId network id.
186 boolean contains(int netId) { argument
[all...]
H A DWifiP2pService.java426 public void onDeleteGroup(int netId) {
427 if (DBG) logd("called onDeleteGroup() netId=" + netId);
428 mWifiNative.removeNetwork(netId);
1137 int netId = message.arg1;
1139 if (netId == WifiP2pGroup.PERSISTENT_NET_ID) {
1141 netId = mGroups.getNetworkId(mThisDevice.deviceAddress);
1142 if (netId != -1) {
1143 ret = mWifiNative.p2pGroupAdd(netId);
1481 int netId
2323 getClientList(int netId) argument
2338 removeClientFromList(int netId, String addr, boolean isRemovable) argument
[all...]
H A DWifiP2pGroup.java261 public void setNetworkId(int netId) { argument
262 this.mNetId = netId;
H A DWifiP2pManager.java1240 * @param netId he network id of the p2p group.
1244 public void deletePersistentGroup(Channel c, int netId, ActionListener listener) { argument
1246 c.mAsyncChannel.sendMessage(DELETE_PERSISTENT_GROUP, netId, c.putListener(listener));
/frameworks/base/services/java/com/android/server/wifi/
H A DWifiService.java483 * @param netId the integer that identifies the network configuration
487 public boolean removeNetwork(int netId) { argument
490 return mWifiStateMachine.syncRemoveNetwork(mWifiStateMachineChannel, netId);
499 * @param netId the integer that identifies the network configuration
504 public boolean enableNetwork(int netId, boolean disableOthers) { argument
507 return mWifiStateMachine.syncEnableNetwork(mWifiStateMachineChannel, netId,
517 * @param netId the integer that identifies the network configuration
521 public boolean disableNetwork(int netId) { argument
524 return mWifiStateMachine.syncDisableNetwork(mWifiStateMachineChannel, netId);
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
H A DConnectivityManagerTestActivity.java614 int netId = wifiConfig.networkId;
615 mWifiManager.forget(netId, new WifiManager.ActionListener() {
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
H A DConnectionUtil.java628 int netId = wifiConfig.networkId;
629 mWifiManager.forget(netId, new WifiManager.ActionListener() {

Completed in 201 milliseconds