HomeSort by relevance Sort by last modified time
    Searched refs:netId (Results 1 - 25 of 29) sorted by null

1 2

  /frameworks/base/wifi/java/android/net/wifi/
NetworkUpdateResult.java 22 int netId;
28 netId = id;
34 netId = INVALID_NETWORK_ID;
40 netId = id;
44 return netId;
WifiConfigStore.java 249 * @param netId network to select for connection
252 boolean selectNetwork(int netId) {
253 if (VDBG) localLog("selectNetwork", netId);
254 if (netId == INVALID_NETWORK_ID) return false;
269 config.networkId = netId;
276 enableNetworkWithoutBroadcast(netId, true);
299 int netId = result.getNetworkId();
301 if (newNetwork && netId != INVALID_NETWORK_ID) {
302 mWifiNative.enableNetwork(netId, false);
303 mConfiguredNetworks.get(netId).status = Status.ENABLED
    [all...]
IWifiManager.aidl 40 boolean removeNetwork(int netId);
42 boolean enableNetwork(int netId, boolean disableOthers);
44 boolean disableNetwork(int netId);
WifiNative.java 210 public boolean setNetworkVariable(int netId, String name, String value) {
212 return doBooleanCommand("SET_NETWORK " + netId + " " + name + " " + value);
215 public String getNetworkVariable(int netId, String name) {
219 return doStringCommandWithoutLogging("GET_NETWORK " + netId + " " + name);
222 public boolean removeNetwork(int netId) {
223 return doBooleanCommand("REMOVE_NETWORK " + netId);
226 public boolean enableNetwork(int netId, boolean disableOthers) {
228 return doBooleanCommand("SELECT_NETWORK " + netId);
230 return doBooleanCommand("ENABLE_NETWORK " + netId);
234 public boolean disableNetwork(int netId) {
    [all...]
WifiManager.java 657 * @param netId the integer that identifies the network configuration
661 public boolean removeNetwork(int netId) {
663 return mService.removeNetwork(netId);
675 * @param netId the ID of the network in the list of configured networks
681 public boolean enableNetwork(int netId, boolean disableOthers) {
683 return mService.enableNetwork(netId, disableOthers);
693 * @param netId the ID of the network as returned by {@link #addNetwork}.
696 public boolean disableNetwork(int netId) {
698 return mService.disableNetwork(netId);
    [all...]
WifiEnterpriseConfig.java 660 boolean migrateOldEapTlsNative(WifiNative wifiNative, int netId) {
661 String oldPrivateKey = wifiNative.getNetworkVariable(netId, OLD_PRIVATE_KEY_NAME);
691 wifiNative.setNetworkVariable(netId, ENGINE_KEY, mFields.get(ENGINE_KEY));
692 wifiNative.setNetworkVariable(netId, ENGINE_ID_KEY, mFields.get(ENGINE_ID_KEY));
693 wifiNative.setNetworkVariable(netId, PRIVATE_KEY_ID_KEY, mFields.get(PRIVATE_KEY_ID_KEY));
695 wifiNative.setNetworkVariable(netId, OLD_PRIVATE_KEY_NAME, EMPTY_VALUE);
SupplicantStateTracker.java 96 private void handleNetworkConnectionFailure(int netId, int disableReason) {
103 mWifiConfigStore.disableNetwork(netId, disableReason);
WifiMonitor.java     [all...]
WifiStateMachine.java     [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
WifiClientTest.java 122 int netId = mWifiManager.addNetwork(config);
123 assertTrue(netId != -1);
129 if (c.networkId == netId && c.SSID.equals(config.SSID)) {
136 boolean ret = mWifiManager.removeNetwork(netId);
143 if (c.networkId == netId) {
159 int netId = mWifiManager.addNetwork(config);
160 assertTrue(netId != -1);
163 boolean ret = mWifiManager.enableNetwork(netId, true);
169 if (c.networkId == netId) {
177 ret = mWifiManager.disableNetwork(netId);
    [all...]
  /frameworks/base/wifi/java/android/net/wifi/p2p/
WifiP2pConfig.java 55 public int netId = WifiP2pGroup.PERSISTENT_NET_ID;
112 sbuf.append("\n persist: ").append(netId);
127 netId = source.netId;
136 dest.writeInt(netId);
147 config.netId = in.readInt();
WifiP2pGroupList.java 42 public void onDeleteGroup(int netId);
53 protected void entryRemoved(boolean evicted, Integer netId,
89 * @param netId
91 void remove(int netId) {
92 mGroups.remove(netId);
167 * @param netId network id.
170 String getOwnerAddr(int netId) {
171 WifiP2pGroup grp = mGroups.get(netId);
183 * @param netId network id.
186 boolean contains(int netId) {
    [all...]
WifiP2pService.java 436 public void onDeleteGroup(int netId) {
437 if (DBG) logd("called onDeleteGroup() netId=" + netId);
438 mWifiNative.removeNetwork(netId);
    [all...]
WifiP2pGroup.java 261 public void setNetworkId(int netId) {
262 this.mNetId = netId;
WifiP2pManager.java     [all...]
  /cts/tests/tests/net/src/android/net/wifi/cts/
WifiManagerTest.java 296 int netId = mWifiManager.addNetwork(wifiConfiguration);
306 assertTrue(mWifiManager.enableNetwork(netId, disableOthers));
312 assertTrue(mWifiManager.enableNetwork(netId, disableOthers));
316 assertTrue(mWifiManager.disableNetwork(netId));
323 netId = mWifiManager.updateNetwork(wifiConfiguration);
328 assertTrue(mWifiManager.removeNetwork(netId));
WifiEnterpriseConfigTest.java 89 int netId = mWifiManager.addNetwork(config);
91 mWifiManager.removeNetwork(netId);
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowWifiManager.java 98 public boolean enableNetwork(int netId, boolean disableOthers) {
99 lastEnabledNetwork = new Pair<Integer, Boolean>(netId, disableOthers);
  /frameworks/base/services/java/com/android/server/wifi/
WifiService.java 757 * @param netId the integer that identifies the network configuration
761 public boolean removeNetwork(int netId) {
764 return mWifiStateMachine.syncRemoveNetwork(mWifiStateMachineChannel, netId);
773 * @param netId the integer that identifies the network configuration
778 public boolean enableNetwork(int netId, boolean disableOthers) {
781 return mWifiStateMachine.syncEnableNetwork(mWifiStateMachineChannel, netId,
791 * @param netId the integer that identifies the network configuration
795 public boolean disableNetwork(int netId) {
798 return mWifiStateMachine.syncDisableNetwork(mWifiStateMachineChannel, netId);
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
ConnectivityManagerTestBase.java 611 int netId = wifiConfig.networkId;
612 mWifiManager.forget(netId, new WifiManager.ActionListener() {
  /frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
ConnectionUtil.java 628 int netId = wifiConfig.networkId;
629 mWifiManager.forget(netId, new WifiManager.ActionListener() {
  /prebuilts/sdk/12/
android.jar 
  /prebuilts/sdk/14/
android.jar 
  /prebuilts/sdk/18/
android.jar 
  /prebuilts/sdk/19/
android.jar 

Completed in 186 milliseconds

1 2