summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorNandana Dutt <nandana@google.com>2019-01-15 12:48:12 +0000
committerNandana Dutt <nandana@google.com>2019-01-15 12:51:42 +0000
commitc8c77bc043e36d7b6263e4f3a7f71ea30dc9dbfa (patch)
tree9735e347827eb5b80035439dce19a2388a988eca /core/java
parent432f8c7b8644249c49c485ee7fcf02e0b458f306 (diff)
BugreportAPI : Connect listener to binder callbacks
BUG: 111441001 Test: builds Test: interactive bugreport still works Change-Id: Ie3f2328f558bb2de1dec2908c6ab13f5a17df115
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/BugreportManager.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/core/java/android/os/BugreportManager.java b/core/java/android/os/BugreportManager.java
index b15a4d3170b3..cbb3909a5536 100644
--- a/core/java/android/os/BugreportManager.java
+++ b/core/java/android/os/BugreportManager.java
@@ -114,7 +114,6 @@ public class BugreportManager {
}
}
- // TODO(b/111441001) Connect up with BugreportListener methods.
private final class DumpstateListener extends IDumpstateListener.Stub
implements DeathRecipient {
private final BugreportListener mListener;
@@ -130,35 +129,35 @@ public class BugreportManager {
@Override
public void onProgress(int progress) throws RemoteException {
- // TODO(b/111441001): implement
+ mListener.onProgress(progress);
}
@Override
public void onError(int errorCode) throws RemoteException {
- // TODO(b/111441001): implement
+ mListener.onError(errorCode);
}
@Override
public void onFinished(long durationMs, String title, String description)
throws RemoteException {
- // TODO(b/111441001): implement
+ mListener.onFinished(durationMs, title, description);
}
// Old methods; should go away
@Override
public void onProgressUpdated(int progress) throws RemoteException {
- // TODO(b/111441001): implement
+ // TODO(b/111441001): remove from interface
}
@Override
public void onMaxProgressUpdated(int maxProgress) throws RemoteException {
- // TODO(b/111441001): implement
+ // TODO(b/111441001): remove from interface
}
@Override
public void onSectionComplete(String title, int status, int size, int durationMs)
throws RemoteException {
- // TODO(b/111441001): implement
+ // TODO(b/111441001): remove from interface
}
}
}