Merge "BugreportAPI : Connect listener to binder callbacks"

This commit is contained in:
Treehugger Robot
2019-01-16 16:24:15 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 9 deletions

View File

@@ -114,7 +114,6 @@ public class BugreportManager {
} }
} }
// TODO(b/111441001) Connect up with BugreportListener methods.
private final class DumpstateListener extends IDumpstateListener.Stub private final class DumpstateListener extends IDumpstateListener.Stub
implements DeathRecipient { implements DeathRecipient {
private final BugreportListener mListener; private final BugreportListener mListener;
@@ -130,35 +129,35 @@ public class BugreportManager {
@Override @Override
public void onProgress(int progress) throws RemoteException { public void onProgress(int progress) throws RemoteException {
// TODO(b/111441001): implement mListener.onProgress(progress);
} }
@Override @Override
public void onError(int errorCode) throws RemoteException { public void onError(int errorCode) throws RemoteException {
// TODO(b/111441001): implement mListener.onError(errorCode);
} }
@Override @Override
public void onFinished(long durationMs, String title, String description) public void onFinished(long durationMs, String title, String description)
throws RemoteException { throws RemoteException {
// TODO(b/111441001): implement mListener.onFinished(durationMs, title, description);
} }
// Old methods; should go away // Old methods; should go away
@Override @Override
public void onProgressUpdated(int progress) throws RemoteException { public void onProgressUpdated(int progress) throws RemoteException {
// TODO(b/111441001): implement // TODO(b/111441001): remove from interface
} }
@Override @Override
public void onMaxProgressUpdated(int maxProgress) throws RemoteException { public void onMaxProgressUpdated(int maxProgress) throws RemoteException {
// TODO(b/111441001): implement // TODO(b/111441001): remove from interface
} }
@Override @Override
public void onSectionComplete(String title, int status, int size, int durationMs) public void onSectionComplete(String title, int status, int size, int durationMs)
throws RemoteException { throws RemoteException {
// TODO(b/111441001): implement // TODO(b/111441001): remove from interface
} }
} }
} }

View File

@@ -1953,8 +1953,7 @@ public class BugreportProgressService extends Service {
@Override @Override
public void onProgress(int progress) throws RemoteException { public void onProgress(int progress) throws RemoteException {
// TODO(b/111441001): change max argument? updateProgressInfo(progress, 100 /* progress is already a percentage; so max = 100 */);
updateProgressInfo(progress, CAPPED_MAX);
} }
@Override @Override