Lines Matching refs:netId

592                     public void onDeleteGroup(int netId) {
593 if (DBG) logd("called onDeleteGroup() netId=" + netId);
594 mWifiNative.removeP2pNetwork(netId);
1464 int netId = message.arg1;
1466 if (netId == WifiP2pGroup.PERSISTENT_NET_ID) {
1468 netId = mGroups.getNetworkId(mThisDevice.deviceAddress);
1469 if (netId != -1) {
1470 ret = mWifiNative.p2pGroupAdd(netId);
1902 int netId = mSavedPeerConfig.netId;
1903 if (netId >= 0) {
1905 removeClientFromList(netId, mSavedPeerConfig.deviceAddress, true);
1909 mSavedPeerConfig.netId = WifiP2pGroup.PERSISTENT_NET_ID;
1917 mSavedPeerConfig.netId = WifiP2pGroup.PERSISTENT_NET_ID;
2245 int netId = mGroup.getNetworkId();
2246 if (netId >= 0) {
2248 if (!removeClientFromList(netId,
2706 int netId = mGroups.getNetworkId(dev.deviceAddress, ssid);
2707 if (netId >= 0) {
2709 if (!mWifiNative.p2pGroupAdd(netId)) {
2722 int netId = WifiP2pGroup.PERSISTENT_NET_ID;
2723 if (config.netId >= 0) {
2724 if (config.deviceAddress.equals(mGroups.getOwnerAddr(config.netId))) {
2725 netId = config.netId;
2728 netId = mGroups.getNetworkId(dev.deviceAddress);
2730 if (netId < 0) {
2731 netId = getNetworkIdFromClientList(dev.deviceAddress);
2733 if (DBG) logd("netId related with " + dev.deviceAddress + " = " + netId);
2734 if (netId >= 0) {
2736 if (mWifiNative.p2pReinvoke(netId, dev.deviceAddress)) {
2739 config.netId = netId;
2765 int netId = group.getNetworkId();
2766 String[] p2pClientList = getClientList(netId);
2770 return netId;
2779 * @param netId network id.
2782 private String[] getClientList(int netId) {
2783 String p2pClients = mWifiNative.getP2pClientList(netId);
2792 * @param netId network id of the profile.
2798 private boolean removeClientFromList(int netId, String addr, boolean isRemovable) {
2800 String[] currentClientList = getClientList(netId);
2815 mGroups.remove(netId);
2828 mWifiNative.setP2pClientList(netId, modifiedClientList.toString());