summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Silberstein <silberst@google.com>2016-12-06 18:52:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-12-06 18:52:18 +0000
commitd4828aff7aece6bed3db16bfd74633d497b0a9cf (patch)
tree6bf734bf1405876c2070b678b3b754ed7497c3d0
parentf09b6de086d5a00417613886aa43402285d2a8ab (diff)
parentff862e399bfdffc5c6d2d15acc75ae8cbadb5bde (diff)
Merge "WifiConnectivityManager: add dump call"
-rw-r--r--service/java/com/android/server/wifi/WifiConnectivityManager.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConnectivityManager.java b/service/java/com/android/server/wifi/WifiConnectivityManager.java
index 0576ba566..2f7081dab 100644
--- a/service/java/com/android/server/wifi/WifiConnectivityManager.java
+++ b/service/java/com/android/server/wifi/WifiConnectivityManager.java
@@ -35,6 +35,8 @@ import com.android.internal.R;
import com.android.internal.annotations.VisibleForTesting;
import com.android.server.wifi.util.ScanResultUtil;
+import java.io.FileDescriptor;
+import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
@@ -1041,4 +1043,14 @@ public class WifiConnectivityManager {
long getLastPeriodicSingleScanTimeStamp() {
return mLastPeriodicSingleScanTimeStamp;
}
+
+ /**
+ * Dump the local logs.
+ *
+ * Note: this call temporarily calls in to NetworkSelector to dump the LocalLog. This should be
+ * refactored to dump from WifiConnectivityManager instead.
+ */
+ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ mNetworkSelector.dump(fd, pw, args);
+ }
}