Lines Matching defs:netId

397             public void onDeleteGroup(int netId) {
398 if (DBG) logd("called onDeleteGroup() netId=" + netId);
399 mWifiNative.removeNetwork(netId);
1059 int netId = message.arg1;
1061 if (netId == WifiP2pGroup.PERSISTENT_NET_ID) {
1063 netId = mGroups.getNetworkId(mThisDevice.deviceAddress);
1064 if (netId != -1) {
1065 ret = mWifiNative.p2pGroupAdd(netId);
1359 int netId = mSavedPeerConfig.netId;
1360 if (netId >= 0) {
1362 removeClientFromList(netId, mSavedPeerConfig.deviceAddress, true);
1366 mSavedPeerConfig.netId = WifiP2pGroup.PERSISTENT_NET_ID;
1653 int netId = mGroup.getNetworkId();
1654 if (netId >= 0) {
1656 if (!removeClientFromList(netId,
1977 int netId = -1;
1982 netId = Integer.parseInt(result[0]);
1996 if (DBG) logd("clean up the unused persistent group. netId=" + netId);
1997 mWifiNative.removeNetwork(netId);
2002 if (mGroups.contains(netId)) {
2007 group.setNetworkId(netId);
2009 String mode = mWifiNative.getNetworkVariable(netId, "mode");
2067 int netId = mGroups.getNetworkId(dev.deviceAddress, ssid);
2068 if (netId >= 0) {
2070 if (!mWifiNative.p2pGroupAdd(netId)) {
2083 int netId = WifiP2pGroup.PERSISTENT_NET_ID;
2084 if (config.netId >= 0) {
2085 if (config.deviceAddress.equals(mGroups.getOwnerAddr(config.netId))) {
2086 netId = config.netId;
2089 netId = mGroups.getNetworkId(dev.deviceAddress);
2091 if (netId < 0) {
2092 netId = getNetworkIdFromClientList(dev.deviceAddress);
2094 if (DBG) logd("netId related with " + dev.deviceAddress + " = " + netId);
2095 if (netId >= 0) {
2097 if (mWifiNative.p2pReinvoke(netId, dev.deviceAddress)) {
2099 mSavedPeerConfig.netId = netId;
2134 int netId = group.getNetworkId();
2135 String[] p2pClientList = getClientList(netId);
2139 return netId;
2148 * @param netId network id.
2151 private String[] getClientList(int netId) {
2152 String p2pClients = mWifiNative.getNetworkVariable(netId, "p2p_client_list");
2161 * @param netId network id of the profile.
2166 private boolean removeClientFromList(int netId, String addr, boolean isRemovable) {
2168 String[] currentClientList = getClientList(netId);
2183 mGroups.remove(netId);
2196 mWifiNative.setNetworkVariable(netId,