/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | NetworkUpdateResult.java | 22 int netId; field in class:NetworkUpdateResult 29 netId = id; 36 netId = INVALID_NETWORK_ID; 43 netId = id; 47 return netId; 71 return netId != INVALID_NETWORK_ID;
|
H A D | SupplicantStateTracker.java | 126 private void handleNetworkConnectionFailure(int netId, int disableReason) { argument 128 Log.d(TAG, "handleNetworkConnectionFailure netId=" + Integer.toString(netId) 137 mWifiConfigManager.updateNetworkSelectionStatus(netId, disableReason);
|
H A D | WifiConnectivityManager.java | 1080 public void setUserConnectChoice(int netId) { argument 1081 localLog("setUserConnectChoice: netId=" + netId); 1083 mNetworkSelector.setUserConnectChoice(netId); 1089 public void prepareForForcedConnection(int netId) { argument 1090 localLog("prepareForForcedConnection: netId=" + netId);
|
H A D | WifiNetworkSelector.java | 228 * Format the given WifiConfiguration as a SSID:netId string 328 * @param netId ID for the network chosen by the user 332 public boolean setUserConnectChoice(int netId) { argument 333 localLog("userSelectNetwork: network ID=" + netId); 334 WifiConfiguration selected = mWifiConfigManager.getConfiguredNetwork(netId); 337 localLog("userSelectNetwork: Invalid configuration with nid=" + netId); 343 mWifiConfigManager.updateNetworkSelectionStatus(netId,
|
H A D | WifiServiceImpl.java | 644 // TODO Add private logging for netId b/33807876 1610 * @param netId the integer that identifies the network configuration 1615 public boolean removeNetwork(int netId) { argument 1618 // TODO Add private logging for netId b/33807876 1620 return mWifiStateMachine.syncRemoveNetwork(mWifiStateMachineChannel, netId); 1629 * @param netId the integer that identifies the network configuration 1635 public boolean enableNetwork(int netId, boolean disableOthers) { argument 1637 // TODO b/33807876 Log netId 1643 return mWifiStateMachine.syncEnableNetwork(mWifiStateMachineChannel, netId, 1653 * @param netId th 1658 disableNetwork(int netId) argument [all...] |
H A D | WifiStateMachine.java | 1284 * @param netId Id network to initiate connection. 1289 private boolean connectToUserSelectNetwork(int netId, int uid, boolean forceReconnect) { argument 1290 logd("connectToUserSelectNetwork netId " + netId + ", uid " + uid 1292 if (mWifiConfigManager.getConfiguredNetwork(netId) == null) { 1293 loge("connectToUserSelectNetwork Invalid network Id=" + netId); 1296 if (!mWifiConfigManager.enableNetwork(netId, true, uid) 1297 || !mWifiConfigManager.checkAndUpdateLastConnectUid(netId, uid)) { 1299 + " with insufficient permissions to connect=" + netId); 1303 mWifiConnectivityManager.setUserConnectChoice(netId); 1972 syncEnableNetwork(AsyncChannel channel, int netId, boolean disableOthers) argument 1986 syncDisableNetwork(AsyncChannel channel, int netId) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | SupplicantP2pIfaceHal.java | 664 boolean persistent = (config.netId == WifiP2pGroup.PERSISTENT_NET_ID);
|
H A D | WifiP2pNative.java | 134 * @param netId Id of the network to lookup. 137 public boolean removeP2pNetwork(int netId) { argument 138 return mSupplicantP2pIfaceHal.removeNetwork(netId); 371 * @param netId Used to specify the restart of a persistent group. 375 public boolean p2pGroupAdd(int netId) { argument 376 return mSupplicantP2pIfaceHal.groupAdd(netId, true); 425 * @param netId Used to specify the persistent group. 430 public boolean p2pReinvoke(int netId, String deviceAddress) { argument 431 return mSupplicantP2pIfaceHal.reinvoke(netId, deviceAddress); 574 * @param netId I 577 getP2pClientList(int netId) argument 588 setP2pClientList(int netId, String list) argument [all...] |
H A D | WifiP2pServiceImpl.java | 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 2782 getClientList(int netId) argument 2798 removeClientFromList(int netId, String addr, boolean isRemovable) argument [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiConfigManagerTest.java | 671 WifiConfiguration retrievedNetwork = mWifiConfigManager.getConfiguredNetwork(result.netId); 677 result.netId, true /* notRecommended*/)); 679 retrievedNetwork = mWifiConfigManager.getConfiguredNetwork(result.netId); 685 result.netId, false/* notRecommended*/)); 687 retrievedNetwork = mWifiConfigManager.getConfiguredNetwork(result.netId);
|
H A D | WifiNetworkSelectorTestUtil.java | 151 int netId = 0; 160 id = new Integer(netId); 162 netId++; 184 public WifiConfiguration answer(int netId) { 186 if (netId == config.networkId) { 208 for (int netId = 0; netId < configs.length; netId++) { 209 savedNetworks.add(new WifiConfiguration(configs[netId])); 216 public boolean answer(int netId) { [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | IWifiManager.aidl | 78 boolean removeNetwork(int netId); 80 boolean enableNetwork(int netId, boolean disableOthers); 82 boolean disableNetwork(int netId);
|
H A D | WifiManager.java | 1194 * @param netId the ID of the network as returned by {@link #addNetwork} or {@link 1198 public boolean removeNetwork(int netId) { argument 1200 return mService.removeNetwork(netId); 1228 * @param netId the ID of the network as returned by {@link #addNetwork} or {@link 1234 public boolean enableNetwork(int netId, boolean attemptConnect) { argument 1246 success = mService.enableNetwork(netId, attemptConnect); 1266 * @param netId the ID of the network as returned by {@link #addNetwork} or {@link 1270 public boolean disableNetwork(int netId) { argument 1272 return mService.disableNetwork(netId); 2853 public void forget(int netId, ActionListene argument 2867 disable(int netId, ActionListener listener) argument [all...] |
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pConfig.java | 55 public int netId = WifiP2pGroup.PERSISTENT_NET_ID; field in class:WifiP2pConfig 113 sbuf.append("\n persist: ").append(netId); 128 netId = source.netId; 137 dest.writeInt(netId); 148 config.netId = in.readInt();
|
H A D | WifiP2pGroup.java | 260 public void setNetworkId(int netId) { argument 261 this.mNetId = netId;
|
H A D | WifiP2pGroupList.java | 42 public void onDeleteGroup(int netId); argument 55 protected void entryRemoved(boolean evicted, Integer netId, 92 * @param netId 95 public void remove(int netId) { argument 96 mGroups.remove(netId); 174 * @param netId network id. 178 public String getOwnerAddr(int netId) { argument 179 WifiP2pGroup grp = mGroups.get(netId); 191 * @param netId network id. 195 public boolean contains(int netId) { argument [all...] |
H A D | WifiP2pManager.java | 1348 * @param netId he network id of the p2p group. 1352 public void deletePersistentGroup(Channel c, int netId, ActionListener listener) { argument 1354 c.mAsyncChannel.sendMessage(DELETE_PERSISTENT_GROUP, netId, c.putListener(listener));
|
/frameworks/base/tests/net/java/com/android/server/ |
H A D | ConnectivityServiceTest.java | 446 return new Network(mNetworkAgent.netId); 708 final int netId = super.reserveNetId(); 715 if (netId == network.netId) { 722 return netId;
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
H A D | IpConnectivityEventBuilderTest.java | 78 ev.netId = 123;
|
H A D | IpConnectivityMetricsTest.java | 212 // netId, errno, latency, destination 220 // netId, type, return code, latency 409 void dnsEvent(int netId, int type, int result, int latency) throws Exception { argument 410 mNetdListener.onDnsEvent(netId, type, result, latency, "", null, 0, 0);
|
H A D | LingerMonitorTest.java | 332 verify(mNotifier, times(1)).showNotification(eq(from.network.netId), 336 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { argument 341 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, 347 NetworkAgentInfo wifiNai(int netId) { argument 348 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, 352 NetworkAgentInfo cellNai(int netId) { argument 353 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR,
|
H A D | NetdEventListenerServiceTest.java | 278 Thread connectEventAction(int netId, int error, int latencyMs, String ipAddr) { argument 281 mNetdEventListenerService.onConnectEvent(netId, error, latencyMs, ipAddr, 80, 1); 288 void dnsEvent(int netId, int type, int result, int latency) throws Exception { argument 289 mNetdEventListenerService.onDnsEvent(netId, type, result, latency, "", null, 0, 0);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | SecurityControllerImpl.java | 367 if (DEBUG) Log.d(TAG, "onAvailable " + network.netId); 376 if (DEBUG) Log.d(TAG, "onLost " + network.netId);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | ConnectivityService.java | 901 int netId = mNextNetId; 904 if (!mNetIdInUse.get(netId)) { 905 mNetIdInUse.put(netId, true); 906 return netId; 940 return mNetworkForNetId.get(network.netId); 1411 int netId; 1414 netId = nai.network.netId; 1416 boolean ok = addLegacyRouteToHost(lp, addr, netId, uid); 1424 private boolean addLegacyRouteToHost(LinkProperties lp, InetAddress addr, int netId, in argument 4396 updateInterfaces(LinkProperties newLp, LinkProperties oldLp, int netId) argument 4425 updateRoutes(LinkProperties newLp, LinkProperties oldLp, int netId) argument 4470 updateDnses(LinkProperties newLp, LinkProperties oldLp, int netId) argument [all...] |
H A D | NetworkManagementService.java | 1083 public void addRoute(int netId, RouteInfo route) { argument 1084 modifyRoute("add", "" + netId, route); 1088 public void removeRoute(int netId, RouteInfo route) { argument 1089 modifyRoute("remove", "" + netId, route); 1092 private void modifyRoute(String action, String netId, RouteInfo route) { argument 1095 final Command cmd = new Command("network", "route", action, netId); 1283 int netId = (network != null) ? network.netId : ConnectivityManager.NETID_UNSET; 1284 final Command cmd = new Command("tether", "dns", "set", netId); 1824 public void setDnsConfigurationForNetwork(int netId, Strin argument 1869 addVpnUidRanges(int netId, UidRange[] ranges) argument 1891 removeVpnUidRanges(int netId, UidRange[] ranges) argument 2406 createPhysicalNetwork(int netId, String permission) argument 2421 createVirtualNetwork(int netId, boolean hasDNS, boolean secure) argument 2433 removeNetwork(int netId) argument 2444 addInterfaceToNetwork(String iface, int netId) argument 2449 removeInterfaceFromNetwork(String iface, int netId) argument 2453 modifyInterfaceInNetwork(String action, String netId, String iface) argument 2463 addLegacyRouteForNetId(int netId, RouteInfo routeInfo, int uid) argument 2484 setDefaultNetId(int netId) argument 2506 setNetworkPermission(int netId, String permission) argument [all...] |