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

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

Merge "Added dump() to AutoFillUI."

parents 6cc0b8ac 911cc0fb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ public final class AutoFillManagerService extends SystemService {
                    }
                }
            }
            mUi.dump(pw);
            pw.println("Requests history:");
            mRequestsHistory.reverseDump(fd, pw, args);
        }
+8 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import android.widget.Toast;
import com.android.internal.annotations.GuardedBy;
import com.android.server.UiThread;

import java.io.PrintWriter;
import java.util.Arrays;
import java.util.List;

@@ -174,6 +175,13 @@ final class AutoFillUI {
        }
    }

    void dump(PrintWriter pw) {
        pw.println("AufoFill UI");
        final String prefix = "  ";
        pw.print(prefix); pw.print("sResultCode: "); pw.println(sResultCode);
        pw.print(prefix); pw.print("mSnackBar: "); pw.println(mSnackbar);
    }

    private AutoFillManagerServiceImpl getServiceLocked(int userId) {
        final AutoFillManagerServiceImpl service = mService.getServiceForUserLocked(userId);
        if (service == null) {