summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2020-06-01 23:17:16 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-01 23:17:16 +0000
commit58850ac6e9a797dd0591b3d03932f297e800ee41 (patch)
tree11e77d9b2422ad583b199f2ef495207b1072b100 /service
parenta03c3a6bec31d9b33d95a8ce89ac010c2bdfb6e0 (diff)
parent263642833d860b12962bc83df5ab5340ba3c24ef (diff)
Merge "WifiConfigManager: dump ConfigurationMap" into rvc-dev am: 263642833d
Original change: undetermined Change-Id: Iddb4561ea43a79f779a5b488ed77c1e008114a53
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/ConfigurationMap.java11
-rw-r--r--service/java/com/android/server/wifi/WifiConfigManager.java3
2 files changed, 14 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/ConfigurationMap.java b/service/java/com/android/server/wifi/ConfigurationMap.java
index a050b9cd8..cce895847 100644
--- a/service/java/com/android/server/wifi/ConfigurationMap.java
+++ b/service/java/com/android/server/wifi/ConfigurationMap.java
@@ -21,6 +21,8 @@ import android.net.wifi.WifiConfiguration;
import android.os.UserHandle;
import android.os.UserManager;
+import java.io.FileDescriptor;
+import java.io.PrintWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
@@ -41,6 +43,15 @@ public class ConfigurationMap {
mUserManager = userManager;
}
+ /** Dump internal state for debugging. */
+ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ pw.println("mPerId=" + mPerID);
+ pw.println("mPerIDForCurrentUser=" + mPerIDForCurrentUser);
+ pw.println("mScanResultMatchInfoMapForCurrentUser="
+ + mScanResultMatchInfoMapForCurrentUser);
+ pw.println("mCurrentUserId=" + mCurrentUserId);
+ }
+
// RW methods:
public WifiConfiguration put(WifiConfiguration config) {
final WifiConfiguration current = mPerID.put(config.networkId, config);
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index d607b7893..6b88f7165 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -3229,6 +3229,9 @@ public class WifiConfigManager {
pw.println(network);
}
pw.println("WifiConfigManager - Configured networks End ----");
+ pw.println("WifiConfigManager - ConfigurationMap Begin ----");
+ mConfiguredNetworks.dump(fd, pw, args);
+ pw.println("WifiConfigManager - ConfigurationMap End ----");
pw.println("WifiConfigManager - Next network ID to be allocated " + mNextNetworkId);
pw.println("WifiConfigManager - Last selected network ID " + mLastSelectedNetworkId);
pw.println("WifiConfigManager - PNO scan frequency culling enabled = "