Lines Matching defs:network

101  *       (key, value) pairs for a given network are grouped together and can
104 * network. A network is identified by a unique ID_KEY. If there is no
139 /* configured networks with network id as the key */
143 /* A network id is a unique identifier for a network configured in the
147 * that is generated from SSID and security type of the network. A mapping
148 * from the generated unique id to network id of the network is needed to
400 * If Connectivity Service has triggered an unwanted network disconnect
422 * The lastSelectedConfiguration is used to remember which network
424 * The connection to this network may not be successful, as well
425 * the selection (i.e. network priority) might not be persisted.
746 loge("Enable network failed on " + config.networkId);
759 * Selects the specified network for connection. This involves
761 * network while disabling others.
763 * Selecting a network will leave the other networks disabled and
767 * @param netId network to select for connection
768 * @return false if the network id is invalid
774 // Reset the priority of each network at start or if it goes too high.
793 /* Enable the given network while disabling all other networks */
805 * @return network update result
810 // A new network cannot have null SSID
828 /* enable a new network */
899 // If autojoin specified a BSSID then write it in the network block
927 //If network is already disabled, keep the status
940 * Forget the specified network and save config
942 * @param netId network to forget
950 //success but we dont want to remove the network from supplicant conf file
957 loge("Failed to remove network " + netId);
963 * Add/update a network. Note that there is no saveConfig operation.
969 * @return network Id
990 * Remove a network. Note that there is no saveConfig operation.
993 * state machine for network removal
995 * @param netId network to be removed
1090 * Enable a network. Note that there is no saveConfig operation.
1093 * state machine for connecting to a network
1095 * @param netId network to be enabled
1109 // check just in case the network was removed by someone else.
1139 loge("Disable network failed on " + config.networkId);
1149 * Disable a network. Note that there is no saveConfig operation.
1150 * @param netId network to be disabled
1158 * Disable a network. Note that there is no saveConfig operation.
1159 * @param netId network to be disabled
1160 * @param reason reason code network was disabled
1166 WifiConfiguration network = null;
1177 /* Only change the reason if the network was not previously disabled
1184 network = config;
1192 if (network != null) {
1193 sendConfiguredNetworksChangedBroadcast(network,
1264 * Fetch the static IP configuration for a given network id
1275 * Set the static IP configuration for a given network id
1297 * Fetch the proxy properties for a given network id
1298 * @param network id
1299 * @return ProxyInfo for the network id
1310 * Return if the specified network is using static IP
1311 * @param network id
1323 * Should be called when a single network configuration is made.
1324 * @param network The network configuration that changed.
1328 private void sendConfiguredNetworksChangedBroadcast(WifiConfiguration network,
1333 intent.putExtra(WifiManager.EXTRA_WIFI_CONFIGURATION, network);
1339 * Should be called when multiple network configuration changes are made.
1370 // network-id | ssid | bssid | flags
1375 loge("Failed to read network-id '" + result[0] + "'");
1395 localLog("found deleted network " + config.SSID + " ", config.networkId);
1410 if (showNetworks) localLog("discarded duplicate network ", config.networkId);
1414 if (showNetworks) localLog("loaded configured network", config.networkId);
1416 if (showNetworks) log("Ignoring loaded configured for network " + config.networkId
1470 if (line.matches("[ \\t]*network=\\{")) {
1534 // Any network using certificates to authenticate access requires
1590 loge("saving network history: " + config.configKey() + " gw: " +
1790 // since we don't have a corresponding network ID
1816 loge("Error parsing network history file, mismatched SSIDs");
2018 * depend on network time.
2488 loge("configuration found for missing network, nid=" + id
2511 * network configuration. Otherwise, the networkId should
2519 // networkId of INVALID_NETWORK_ID means we want to create a new network
2522 // Check if either we have a network Id or a WifiConfiguration
2529 + " was found, but no network Id");
2540 loge("Failed to add a network!");
2767 loge("Failed to set a network variable, removed network: " + netId);
2772 /* An update of the network variables requires reading them
2832 if (DBG) loge("will read network variables netId=" + Integer.toString(netId));
3756 /** called when CS ask WiFistateMachine to disconnect the current network
3760 /* TODO verify the bad network is current */
3837 // This is a network we self added, and we never succeeded,
3838 // the user did not create this network and never entered its credentials,
3854 // this network may be re-enabled by the "usual"
3874 * to a given network, disable the network