Commit 15941215 authored by Randy Pan's avatar Randy Pan
Browse files

Wifi: local log size reduction

Cut down the max number of lines allowed in Wifi LocalLogs.
Currently LocalLog checks the number of lines in its buffer
instead of total size in number of bytes. The buffer being
used can grow really big if some lines are lengthy.

Bug: 28865103
Change-Id: I7f77de1048bb465b79265b3ecb3a925e3a2659d9
Test: Wifi Framework Unit Tests
parent 5de778c4
......@@ -127,7 +127,7 @@ public class WifiConnectivityManager {
private final Handler mEventHandler;
private final Clock mClock;
private final LocalLog mLocalLog =
new LocalLog(ActivityManager.isLowRamDeviceStatic() ? 1024 : 16384);
new LocalLog(ActivityManager.isLowRamDeviceStatic() ? 256 : 1024);
private final LinkedList<Long> mConnectionAttemptTimeStamps;
private boolean mDbg = false;
......
......@@ -102,7 +102,7 @@ public class WifiNative {
*/
public static final Object sLock = new Object();
private static final LocalLog sLocalLog = new LocalLog(16384);
private static final LocalLog sLocalLog = new LocalLog(8192);
public static LocalLog getLocalLog() {
return sLocalLog;
......
......@@ -99,7 +99,7 @@ public class WifiQualifiedNetworkSelector {
private long mLastQualifiedNetworkSelectionTimeStamp = INVALID_TIME_STAMP;
// Temporarily, for dog food
private final LocalLog mLocalLog = new LocalLog(16384);
private final LocalLog mLocalLog = new LocalLog(1024);
private int mRssiScoreSlope = RSSI_SCORE_SLOPE;
private int mRssiScoreOffset = RSSI_SCORE_OFFSET;
private int mSameBssidAward = SAME_BSSID_AWARD;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment