diff options
| author | 2019-05-17 22:13:02 +0800 | |
|---|---|---|
| committer | 2019-05-21 00:23:41 +0000 | |
| commit | 76baf5f45ebcc772c0cf64cfe85eee4152425465 (patch) | |
| tree | 1cab7a7d4f26ea86099a6c6149c08fe44d21d33c | |
| parent | c0c7806ec011c33e015509bb5d249938296e31a5 (diff) | |
Move keepalive constants to their right place
The constants CMD_{ADD,REMOVE}_KEEPALIVE_PACKET_FILTER are too
high in the file and not in order. These constants should be
moved back to their rightful place.
Bug: 123987395
Test: 1. m -j 2. m -j doc-comment-check-docs
Change-Id: I44c827d3a2011cf7c66c0444566e14192fec1b1b
| -rw-r--r-- | core/java/android/net/NetworkAgent.java | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/core/java/android/net/NetworkAgent.java b/core/java/android/net/NetworkAgent.java index 1edea556c574..2ff6043576bd 100644 --- a/core/java/android/net/NetworkAgent.java +++ b/core/java/android/net/NetworkAgent.java @@ -178,7 +178,21 @@ public abstract class NetworkAgent extends Handler { */ public static final int EVENT_SOCKET_KEEPALIVE = BASE + 13; - // TODO: move the above 2 constants down so they are in order once merge conflicts are resolved + /** + * Sent by ConnectivityService to inform this network transport of signal strength thresholds + * that when crossed should trigger a system wakeup and a NetworkCapabilities update. + * + * obj = int[] describing signal strength thresholds. + */ + public static final int CMD_SET_SIGNAL_STRENGTH_THRESHOLDS = BASE + 14; + + /** + * Sent by ConnectivityService to the NeworkAgent to inform the agent to avoid + * automatically reconnecting to this network (e.g. via autojoin). Happens + * when user selects "No" option on the "Stay connected?" dialog box. + */ + public static final int CMD_PREVENT_AUTOMATIC_RECONNECT = BASE + 15; + /** * Sent by the KeepaliveTracker to NetworkAgent to add a packet filter. * @@ -198,21 +212,6 @@ public abstract class NetworkAgent extends Handler { */ public static final int CMD_REMOVE_KEEPALIVE_PACKET_FILTER = BASE + 17; - /** - * Sent by ConnectivityService to inform this network transport of signal strength thresholds - * that when crossed should trigger a system wakeup and a NetworkCapabilities update. - * - * obj = int[] describing signal strength thresholds. - */ - public static final int CMD_SET_SIGNAL_STRENGTH_THRESHOLDS = BASE + 14; - - /** - * Sent by ConnectivityService to the NeworkAgent to inform the agent to avoid - * automatically reconnecting to this network (e.g. via autojoin). Happens - * when user selects "No" option on the "Stay connected?" dialog box. - */ - public static final int CMD_PREVENT_AUTOMATIC_RECONNECT = BASE + 15; - // TODO : remove these two constructors. They are a stopgap measure to help sheperding a number // of dependent changes that would conflict throughout the automerger graph. Having these // temporarily helps with the process of going through with all these dependent changes across |