diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2010-09-24 10:42:46 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-09-24 10:42:46 -0700 |
commit | 8f97fe551e7bd95abf395eed303b975eaa8f0158 (patch) | |
tree | c2e51b493755d421221a375e509f14bc659317f5 /core | |
parent | 4318ab058629b701e225bb7ead9dd2b229c9354b (diff) | |
parent | 8dcc28be065bb5997ed97d58c9592324b891023a (diff) | |
download | frameworks_base-8f97fe551e7bd95abf395eed303b975eaa8f0158.zip frameworks_base-8f97fe551e7bd95abf395eed303b975eaa8f0158.tar.gz frameworks_base-8f97fe551e7bd95abf395eed303b975eaa8f0158.tar.bz2 |
Merge "Move long Connectivity tasks to handler thread." into gingerbread
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/net/NetworkStateTracker.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/core/java/android/net/NetworkStateTracker.java b/core/java/android/net/NetworkStateTracker.java index c5a3277..7803bf2 100644 --- a/core/java/android/net/NetworkStateTracker.java +++ b/core/java/android/net/NetworkStateTracker.java @@ -50,6 +50,12 @@ public abstract class NetworkStateTracker extends Handler { private static boolean DBG = true; private static final String TAG = "NetworkStateTracker"; + // Share the event space with ConnectivityService (which we can't see, but + // must send events to). If you change these, change ConnectivityService + // too. + private static final int MIN_NETWORK_STATE_TRACKER_EVENT = 1; + private static final int MAX_NETWORK_STATE_TRACKER_EVENT = 100; + public static final int EVENT_STATE_CHANGED = 1; public static final int EVENT_SCAN_RESULTS_AVAILABLE = 2; /** @@ -61,16 +67,6 @@ public abstract class NetworkStateTracker extends Handler { public static final int EVENT_CONFIGURATION_CHANGED = 4; public static final int EVENT_ROAMING_CHANGED = 5; public static final int EVENT_NETWORK_SUBTYPE_CHANGED = 6; - public static final int EVENT_RESTORE_DEFAULT_NETWORK = 7; - /** - * arg1: network type - * arg2: condition (0 bad, 100 good) - */ - public static final int EVENT_INET_CONDITION_CHANGE = 8; - /** - * arg1: network type - */ - public static final int EVENT_INET_CONDITION_HOLD_END = 9; public NetworkStateTracker(Context context, Handler target, |