summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorRandy Pan <zpan@google.com>2016-06-16 16:47:13 -0700
committerRandy Pan <zpan@google.com>2016-06-17 10:45:08 -0700
commit1e911c92133843fc0a50a1b1c6f654f62e7c98a8 (patch)
treeecea8eefe8cbf361e6fff12afccd547a004a6154 /service
parentb271c249debc3e0327354638a84a8daff33427ee (diff)
Cut down Wifi local log buffers size
The new buffer size can hold up to around 3 hours of logs. This can be further optimized later after we have more usage data. The goal is to save the logs from the last one hour only. Bug: 29179543 Change-Id: I99e15531328fdb03df28dcf5a014deb2f074b254
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConnectivityManager.java2
-rw-r--r--service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java3
-rw-r--r--service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java2
3 files changed, 3 insertions, 4 deletions
diff --git a/service/java/com/android/server/wifi/WifiConnectivityManager.java b/service/java/com/android/server/wifi/WifiConnectivityManager.java
index 078d48963..3d5bae73d 100644
--- a/service/java/com/android/server/wifi/WifiConnectivityManager.java
+++ b/service/java/com/android/server/wifi/WifiConnectivityManager.java
@@ -132,7 +132,7 @@ public class WifiConnectivityManager {
private final Handler mEventHandler;
private final Clock mClock;
private final LocalLog mLocalLog =
- new LocalLog(ActivityManager.isLowRamDeviceStatic() ? 256 : 1024);
+ new LocalLog(ActivityManager.isLowRamDeviceStatic() ? 128 : 256);
private final LinkedList<Long> mConnectionAttemptTimeStamps;
private boolean mDbg = false;
diff --git a/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java b/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
index 241ddb8af..ff8b7f684 100644
--- a/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
+++ b/service/java/com/android/server/wifi/WifiQualifiedNetworkSelector.java
@@ -98,8 +98,7 @@ public class WifiQualifiedNetworkSelector {
private static final int INVALID_TIME_STAMP = -1;
private long mLastQualifiedNetworkSelectionTimeStamp = INVALID_TIME_STAMP;
- // Temporarily, for dog food
- private final LocalLog mLocalLog = new LocalLog(1024);
+ private final LocalLog mLocalLog = new LocalLog(512);
private int mRssiScoreSlope = RSSI_SCORE_SLOPE;
private int mRssiScoreOffset = RSSI_SCORE_OFFSET;
private int mSameBssidAward = SAME_BSSID_AWARD;
diff --git a/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java b/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
index 422739036..49172c135 100644
--- a/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
+++ b/service/java/com/android/server/wifi/scanner/WifiScanningServiceImpl.java
@@ -76,7 +76,7 @@ public class WifiScanningServiceImpl extends IWifiScanner.Stub {
private static final int MIN_PERIOD_PER_CHANNEL_MS = 200; // DFS needs 120 ms
private static final int UNKNOWN_PID = -1;
- private final LocalLog mLocalLog = new LocalLog(1024);
+ private final LocalLog mLocalLog = new LocalLog(512);
private void localLog(String message) {
mLocalLog.log(message);