summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorNandana Dutt <nandana@google.com>2019-01-16 08:59:55 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-01-16 08:59:55 -0800
commit2a7be974fc821db2a050f4e90f3bb64e2ac92e1d (patch)
tree29ec708f7293162c428ffd2da5d5eb102f1b7764 /core/java/android
parentc2bca7b7452c45b3ed04d8b1afd6b2390ccebb9e (diff)
parent3a26a0bd5d4a34d4680b8cd0225a6d81c013e602 (diff)
Merge "BugreportAPI : Connect listener to binder callbacks" am: 4fefbddead am: 7b5f8817ce
am: 3a26a0bd5d Change-Id: Iad0274d6ae8bf76475f1852a1d202a9df83c661d
Diffstat (limited to 'core/java/android')
-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
}
}
}