diff options
author | Rebecca Silberstein <silberst@google.com> | 2016-12-01 13:56:03 -0800 |
---|---|---|
committer | Rebecca Silberstein <silberst@google.com> | 2016-12-02 11:22:02 -0800 |
commit | ff862e399bfdffc5c6d2d15acc75ae8cbadb5bde (patch) | |
tree | a078c7f0a2b43c9a5aca6e0b0bf997cc0fbd44cf | |
parent | 585cd77a9c472af47ecd67ccd47e119b6a26bc38 (diff) |
WifiConnectivityManager: add dump call
Adding a dump call to WifiConnectivityManager (that passes through to
WifiNetworkSelector). The motivation for this change is to remove
the need to have another class to hold a reference to
WifiNetworkSelector (beyond WifiConnectivityManager) and will allow
the removal of getNetworkSelector from WifiInjector at a later date.
Bug: 33271805
Test: runtests.sh
Test: checked bugreport for NetworkSelector section
Change-Id: I948291a458946ae9d8b7e8fa87cf9936cc913dcf
-rw-r--r-- | service/java/com/android/server/wifi/WifiConnectivityManager.java | 12 |
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); + } } |