Lines Matching defs:network
30 * A class that pins a process to the first network that satisfies a particular NetworkRequest.
33 * to connect to a Wi-Fi network that has no Internet access, and then assume that they will be
34 * able to use that network because it's the system default.
37 * we try not to set the default network unless they have already done so, and we try not to
38 * clear the default network unless we set it ourselves.
41 * any wifi network that was created via enableNetwork(..., true) until that network
44 * Note that while this hack allows network traffic to flow, it is quite limited. For example:
51 * - getActiveNetworkInfo will return the system default network, not Wi-Fi.
56 * This class is a per-process singleton because the process default network is a per-process
90 public void onAvailable(Network network) {
95 sCM.bindProcessToNetwork(network);
96 sNetwork = network;
97 Log.d(TAG, "Wifi alternate reality enabled on network " + network);
104 public void onLost(Network network) {
108 if (network.equals(sNetwork) && network.equals(sCM.getBoundNetworkForProcess())) {
110 Log.d(TAG, "Wifi alternate reality disabled on network " + network);
125 Log.d(TAG, "Failed to register network callback", e);
139 Log.d(TAG, "Failed to unregister network callback", e);