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

Commit 911cc0fb authored by Felipe Leme's avatar Felipe Leme
Browse files

Added dump() to AutoFillUI.

BUG: 31001899
BUG: 34637800
Test: manual verification
Change-Id: Ia7f0a4bf814c4e0e39b0dc09c62c7987a662d238
parent 87af2d85
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) {