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

Commit 497350d6 authored by Vishnu Nair's avatar Vishnu Nair
Browse files

Apply IDumpstateListener changes

Bug: 70154685
Test: Take bugreport on phone and verify debug output
Change-Id: Icc5b532689c050837f6b4bde93f4655abec4aa0a
parent 61823f3a
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1909,7 +1909,7 @@ public class BugreportProgressService extends Service {
            }
            final IDumpstate dumpstate = IDumpstate.Stub.asInterface(service);
            try {
                token = dumpstate.setListener("Shell", this);
                token = dumpstate.setListener("Shell", this, /* perSectionDetails= */ false);
                if (token != null) {
                    token.asBinder().linkToDeath(this, 0);
                }
@@ -1978,6 +1978,15 @@ public class BugreportProgressService extends Service {
            info.realMax = maxProgress;
        }

        @Override
        public void onSectionComplete(String title, int status, int size, int durationMs)
                throws RemoteException {
            if (DEBUG) {
                Log.v(TAG, "Title: " + title + " Status: " + status + " Size: " + size
                        + " Duration: " + durationMs + "ms");
            }
        }

        public void dump(String prefix, PrintWriter pw) {
            pw.print(prefix); pw.print("token: "); pw.println(token);
        }