summaryrefslogtreecommitdiffstats
path: root/service
diff options
context:
space:
mode:
authorvandwalle <vandwalle@google.com>2014-12-10 13:34:21 -0800
committervandwalle <vandwalle@google.com>2014-12-11 16:16:33 -0800
commitacb5ebbeedbd9a206e2ed82de3a365ceedb27d0c (patch)
treeb176dd6305399abe5b80432b7852f07b20c0cd27 /service
parent815788ba7838fc54310baed3deb9b95548e0ce69 (diff)
downloadandroid_frameworks_opt_net_wifi-acb5ebbeedbd9a206e2ed82de3a365ceedb27d0c.tar.gz
android_frameworks_opt_net_wifi-acb5ebbeedbd9a206e2ed82de3a365ceedb27d0c.tar.bz2
android_frameworks_opt_net_wifi-acb5ebbeedbd9a206e2ed82de3a365ceedb27d0c.zip
fix logspam
Bug:18589606 Change-Id: Ieee0b91ab96ec9392a9b91ac1017a319605425dc
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java21
1 files changed, 19 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index cd7cb5789..ebdf40efa 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -1800,7 +1800,7 @@ public class WifiConfigStore extends IpConfigStore {
}
public void setLastSelectedConfiguration(int netId) {
- if (DBG) {
+ if (VDBG) {
loge("setLastSelectedConfiguration " + Integer.toString(netId));
}
if (netId == WifiConfiguration.INVALID_NETWORK_ID) {
@@ -3359,11 +3359,28 @@ public class WifiConfigStore extends IpConfigStore {
scanResult.untrusted = true;
}
- if (config.scanResultCache.size() > (maxNumScanCacheEntries+64)) {
+ if (config.scanResultCache.size() > (maxNumScanCacheEntries + 64)) {
+ long now_dbg = 0;
+ if (VVDBG) {
+ loge(" Will trim config " + config.configKey()
+ + " size " + config.scanResultCache.size());
+
+ for (ScanResult r : config.scanResultCache.values()) {
+ loge(" " + result.BSSID + " " + result.seen);
+ }
+ now_dbg = SystemClock.elapsedRealtimeNanos();
+ }
// Trim the scan result cache to maxNumScanCacheEntries entries max
// Since this operation is expensive, make sure it is not performed
// until the cache has grown significantly above the trim treshold
config.trimScanResultsCache(maxNumScanCacheEntries);
+ if (VVDBG) {
+ long diff = SystemClock.elapsedRealtimeNanos() - now_dbg;
+ loge(" Finished trimming config, time(ns) " + diff);
+ for (ScanResult r : config.scanResultCache.values()) {
+ loge(" " + r.BSSID + " " + r.seen);
+ }
+ }
}
// Add the scan result to this WifiConfiguration