Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38ca5ccb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Dump the overview proxy service information"

parents 427cc591 1e43ebdd
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -42,13 +42,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;
@@ -207,6 +209,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);
    }