diff options
author | Paul Jensen <pauljensen@google.com> | 2014-05-09 12:47:55 -0400 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2014-05-14 03:56:34 -0700 |
commit | ca8f16ad14819ba17f5ff3d2e2bf6fbc9bbaa9f7 (patch) | |
tree | 1e20685b6f4d6bb1581f89d10288504c4698cc6e /core/java/android/net/ConnectivityServiceProtocol.java | |
parent | 992f25257938ecc0378514f21c6e6e6375272976 (diff) | |
download | frameworks_base-ca8f16ad14819ba17f5ff3d2e2bf6fbc9bbaa9f7.zip frameworks_base-ca8f16ad14819ba17f5ff3d2e2bf6fbc9bbaa9f7.tar.gz frameworks_base-ca8f16ad14819ba17f5ff3d2e2bf6fbc9bbaa9f7.tar.bz2 |
Add NetworkMonitor.
At present the network evaluation / captive portal detection
is disabled pending addition of API to bind socket to network.
Change-Id: I5d1f5dc86d4dd9481d52dd45d6da0732054c8315
Diffstat (limited to 'core/java/android/net/ConnectivityServiceProtocol.java')
-rw-r--r-- | core/java/android/net/ConnectivityServiceProtocol.java | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/core/java/android/net/ConnectivityServiceProtocol.java b/core/java/android/net/ConnectivityServiceProtocol.java index c670166..74096b4 100644 --- a/core/java/android/net/ConnectivityServiceProtocol.java +++ b/core/java/android/net/ConnectivityServiceProtocol.java @@ -67,43 +67,4 @@ public class ConnectivityServiceProtocol { */ public static final int CMD_CANCEL_REQUEST = BASE + 1; } - - /** - * TODO - move to NetworkMonitor and document - */ - public static class NetworkMonitorProtocol { - private NetworkMonitorProtocol() {} - /** - * Inform NetworkMonitor that their network is connected. - * Initiates Network Validation. - */ - public static final int CMD_NETWORK_CONNECTED = BASE + 200; - - /** - * Inform ConnectivityService that the network is validated. - * obj = NetworkAgent - */ - public static final int EVENT_NETWORK_VALIDATED = BASE + 201; - - /** - * Inform NetworkMonitor to linger a network. The Monitor should - * start a timer and/or start watching for zero live connections while - * moving towards LINGER_COMPLETE. After the Linger period expires - * (or other events mark the end of the linger state) the LINGER_COMPLETE - * event should be sent to ConnectivityService and ConnectivityService - * will shut down the network, telling the corresponding NetworkAgent - * to disconnect. If a CMD_NETWORK_CONNECTED happens before the LINGER completes - * it indicates further desire to keep the network alive and so - * the LINGER is aborted. - * TODO - figure out who manages/does this simple state machine - */ - public static final int CMD_NETWORK_LINGER = BASE + 202; - - /** - * Inform ConnectivityService that the network LINGER period has - * expired. - * obj = NetworkAgent - */ - public static final int EVENT_NETWORK_LINGER_COMPLETE = BASE + 203; - } } |