summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2018-01-11 17:09:44 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-01-11 17:09:44 +0000
commit3fed747cc770063b44d9ffd75c72e6827d8ea526 (patch)
treee302da7d05ae64825c5c97515c7977f3f92b9fb3
parentd396b28c20efac67c3ea442dbfcc4db84807764e (diff)
parent497350d61e6e0d09bab8ad570329f4e4a363cfa5 (diff)
Merge "Apply IDumpstateListener changes"
-rw-r--r--packages/Shell/src/com/android/shell/BugreportProgressService.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java
index a8b184c3f204..73d03c627157 100644
--- a/packages/Shell/src/com/android/shell/BugreportProgressService.java
+++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java
@@ -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);
}