summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2020-06-01 23:04:51 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-06-01 23:04:51 +0000
commit263642833d860b12962bc83df5ab5340ba3c24ef (patch)
tree83cf2d84139a07b1feb44b5546a07c7148f0af96
parent590b4f71df5ffb5ef17da48e9d73b919de85b002 (diff)
parent056eb1fbefe20c04501072fbd6469ca34bb49c2a (diff)
Merge "WifiConfigManager: dump ConfigurationMap" into rvc-dev
-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 = "