diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2014-05-18 14:43:11 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-18 14:43:12 +0000 |
commit | 337a63aea7e6483a119ba876d72629acc17a9a1b (patch) | |
tree | 95a058a194f7a5f49ecb6162d68d1738ead0b0fa | |
parent | 08d4e3fb41f2d038f3659a7a9ae30a6045578b56 (diff) | |
parent | 311060571ccf5c9bd6ece57c109a22494d1c1db1 (diff) | |
download | frameworks_base-337a63aea7e6483a119ba876d72629acc17a9a1b.zip frameworks_base-337a63aea7e6483a119ba876d72629acc17a9a1b.tar.gz frameworks_base-337a63aea7e6483a119ba876d72629acc17a9a1b.tar.bz2 |
Merge "Decouple network_sampling frequency from VDBG"
-rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 2d0f6d1..5f53e49 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -193,6 +193,9 @@ public class ConnectivityService extends IConnectivityManager.Stub { private static final boolean DBG = true; private static final boolean VDBG = true; // STOPSHIP + // network sampling debugging + private static final boolean SAMPLE_DBG = false; + private static final boolean LOGD_RULES = false; // TODO: create better separation between radio types and network types @@ -219,10 +222,10 @@ public class ConnectivityService extends IConnectivityManager.Stub { // Set network sampling interval at 12 minutes, this way, even if the timers get // aggregated, it will fire at around 15 minutes, which should allow us to // aggregate this timer with other timers (specially the socket keep alive timers) - private static final int DEFAULT_SAMPLING_INTERVAL_IN_SECONDS = (VDBG ? 30 : 12 * 60); + private static final int DEFAULT_SAMPLING_INTERVAL_IN_SECONDS = (SAMPLE_DBG ? 30 : 12 * 60); // start network sampling a minute after booting ... - private static final int DEFAULT_START_SAMPLING_INTERVAL_IN_SECONDS = (VDBG ? 30 : 60); + private static final int DEFAULT_START_SAMPLING_INTERVAL_IN_SECONDS = (SAMPLE_DBG ? 30 : 60); AlarmManager mAlarmManager; |