Home | History | Annotate | Download | only in net

Lines Matching refs:Network

39 import android.net.Network;
67 * - When the wifi network does not have internet connectivity, the device should
69 * - When the wifi network that the phone connects to loses connectivity, then
71 * detects that the Wifi network doesn't have internet.
111 Log.d(TAG, "New network state " + networkInfo.getState());
289 Network network) {
290 NetworkCapabilities capabilities = connectivityManager.getNetworkCapabilities(network);
299 Network[] allNetworks = mConnectivityManager.getAllNetworks();
300 for (Network network : allNetworks) {
301 if (isNetworkCellularAndHasInternet(mConnectivityManager, network)) {
456 public void onAvailable(Network network) {
457 Log.i(TAG, "Wifi network available " + network.netId);
459 mMultiNetworkValidator.onWifiNetworkConnected(network);
471 public void onAvailable(Network network) {
472 Log.i(TAG, "Cellular network available " + network.netId);
474 mMultiNetworkValidator.onCellularNetworkConnected(network);
479 Log.e(TAG, "Cellular network unavailable ");
505 // If device is not connected to the expected WifiNetwork, connect to the wifi Network.
508 int network = addOrUpdateNetwork();
511 wifiManager.enableNetwork(network, true);
555 * - Connect to cellular network
556 * - Connect to wifi network
630 /** Called when cellular network is connected. */
631 void onCellularNetworkConnected(Network network) {
636 * @param transport The active network has this transport type
640 Network activeNetwork = mConnectivityManager.getActiveNetwork();
643 Log.i(TAG, "Network capabilities for " + activeNetwork.netId + " "
650 * @param network to check if connected or not.
653 boolean isNetworkConnected(Network network) {
654 NetworkInfo networkInfo = mConnectivityManager.getNetworkInfo(network);
656 Log.i(TAG, "Network connection status " + network.netId + " " + status);
666 /** Called when a wifi network is connected and available */
667 void onWifiNetworkConnected(Network network) {
668 Log.i(TAG, "Wifi network connected " + network.netId);
702 void onWifiNetworkConnected(Network wifiNetwork) {
709 // the active network as the cell network.
736 Network mWifiNetwork;
769 void onWifiNetworkConnected(Network wifiNetwork) {
772 // If the device is connected to the expected network, then update the wifi
773 // network to the latest.
782 // if device has the active network as wifi network..
828 // before checking if device now has the active network as cell network.
831 // Check if device has fallen back to cellular network when it loses internet access
832 // in the wifi network.