summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Matthew Ng <ngmatthew@google.com> 2017-11-14 14:47:05 -0800
committer Matthew Ng <ngmatthew@google.com> 2017-11-14 14:49:13 -0800
commit1e43ebdda7bf38a98ab816a03d401a4703b02e0f (patch)
treed51aaaa13b50b4b84c2aef863707dfe015e05c9c
parent885738ffbe7a10fa8fe195730b110aaaf7ad4a59 (diff)
Dump the overview proxy service information
Dumps into the dependency chain of its number of connection attempts, if user has completed setup and if the connection is currently established. Test: adb shell dumpsys activity service com.android.systemui Bug: 67957962 Change-Id: I1d5ffc51f99f08c21495d51a32a103ab8fed757c
-rw-r--r--packages/SystemUI/src/com/android/systemui/OverviewProxyService.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
index 0cefe4466774..0056e1b41b93 100644
--- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
+++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java
@@ -36,13 +36,15 @@ import com.android.systemui.OverviewProxyService.OverviewProxyListener;
import com.android.systemui.statusbar.policy.CallbackController;
import com.android.systemui.statusbar.policy.DeviceProvisionedController;
import com.android.systemui.statusbar.policy.DeviceProvisionedController.DeviceProvisionedListener;
+import java.io.FileDescriptor;
+import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
/**
* Class to send information from overview to launcher with a binder.
*/
-public class OverviewProxyService implements CallbackController<OverviewProxyListener> {
+public class OverviewProxyService implements CallbackController<OverviewProxyListener>, Dumpable {
private static final String TAG = "OverviewProxyService";
private static final long BACKOFF_MILLIS = 5000;
@@ -180,6 +182,15 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
}
}
+ @Override
+ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ pw.println(TAG + " state:");
+ pw.print(" mConnectionBackoffAttempts="); pw.println(mConnectionBackoffAttempts);
+ pw.print(" isCurrentUserSetup="); pw.println(mDeviceProvisionedController
+ .isCurrentUserSetup());
+ pw.print(" isConnected="); pw.println(mOverviewProxy != null);
+ }
+
public interface OverviewProxyListener {
void onConnectionChanged(boolean isConnected);
}