diff options
| author | 2019-01-24 14:46:28 -0800 | |
|---|---|---|
| committer | 2019-01-24 14:46:28 -0800 | |
| commit | c5cba98282435cdc579c34b56993f0e52f378843 (patch) | |
| tree | b5a66e53e8e504d4ab698bb42d140f967a1b1498 | |
| parent | fb54fde4023d1837cddf167ae6d503cb064060ad (diff) | |
| parent | 9bf1411e387fb4bdee123083c85dfdad7d07b99e (diff) | |
Merge "Add a new bugreport error code" am: 1bed967833
am: 9bf1411e38
Change-Id: Ie153b43c6bc698d8daaf93f3bda1ce589307c6b3
| -rw-r--r-- | core/java/android/os/BugreportManager.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/core/java/android/os/BugreportManager.java b/core/java/android/os/BugreportManager.java index 518528dd1a5b..d463b4422847 100644 --- a/core/java/android/os/BugreportManager.java +++ b/core/java/android/os/BugreportManager.java @@ -75,13 +75,25 @@ public class BugreportManager { int BUGREPORT_ERROR_USER_DENIED_CONSENT = IDumpstateListener.BUGREPORT_ERROR_USER_DENIED_CONSENT; + /** The request to get user consent timed out. */ + int BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT = + IDumpstateListener.BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT; + /** * Called when taking bugreport resulted in an error. * * @param errorCode the error that occurred. Possible values are * {@code BUGREPORT_ERROR_INVALID_INPUT}, * {@code BUGREPORT_ERROR_RUNTIME}, - * {@code BUGREPORT_ERROR_USER_DENIED_CONSENT}. + * {@code BUGREPORT_ERROR_USER_DENIED_CONSENT}, + * {@code BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT}. + * + * <p>If {@code BUGREPORT_ERROR_USER_DENIED_CONSENT} is passed, then the user did not + * consent to sharing the bugreport with the calling app. + * + * <p>If {@code BUGREPORT_ERROR_USER_CONSENT_TIMED_OUT} is passed, then the consent timed + * out, but the bugreport could be available in the internal directory of dumpstate for + * manual retrieval. */ void onError(@BugreportErrorCode int errorCode); |