From 433d3576043396d1c06c8f552666a2759b7c5b1d Mon Sep 17 00:00:00 2001 From: Hunter Knepshield Date: Thu, 25 Feb 2021 11:25:47 -0800 Subject: [PATCH] [API review] Additional detail in BugreportCallback javadoc. This covers edge cases left out of the previous generalization. Bug: 180015324 Test: make Change-Id: I309d17cd09434469b5d88275cd59e864f4830c3a --- core/java/android/os/BugreportManager.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/java/android/os/BugreportManager.java b/core/java/android/os/BugreportManager.java index a435ac12d33c7..73bb8d5665005 100644 --- a/core/java/android/os/BugreportManager.java +++ b/core/java/android/os/BugreportManager.java @@ -68,8 +68,11 @@ public final class BugreportManager { /** * An interface describing the callback for bugreport progress and status. * - *

In general, callers can expect to receive {@link #onProgress} calls as the bugreport - * progresses, followed by a terminal call to either {@link #onFinished} or {@link #onError}. + *

Callers will receive {@link #onProgress} calls as the bugreport progresses, followed by a + * terminal call to either {@link #onFinished} or {@link #onError}. + * + *

If an issue is encountered while starting the bugreport asynchronously, callers will + * receive an {@link #onError} call without any {@link #onProgress} callbacks. */ public abstract static class BugreportCallback { /**