diff options
Diffstat (limited to 'cmds/dumpstate/binder/android/os/IDumpstateListener.aidl')
-rw-r--r-- | cmds/dumpstate/binder/android/os/IDumpstateListener.aidl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmds/dumpstate/binder/android/os/IDumpstateListener.aidl b/cmds/dumpstate/binder/android/os/IDumpstateListener.aidl index 50c1624dc2..a5e6c68363 100644 --- a/cmds/dumpstate/binder/android/os/IDumpstateListener.aidl +++ b/cmds/dumpstate/binder/android/os/IDumpstateListener.aidl @@ -21,6 +21,8 @@ package android.os; * * <p>When bugreport creation is complete one of {@code onError} or {@code onFinished} is called. * + * <p>These methods are synchronous by design in order to make dumpstate's lifecycle simpler + * to handle. * * {@hide} */ @@ -52,8 +54,10 @@ interface IDumpstateListener { /** * Called on an error condition with one of the error codes listed above. + * This is not an asynchronous method since it can race with dumpstate exiting, thus triggering + * death recipient. */ - oneway void onError(int errorCode); + void onError(int errorCode); /** * Called when taking bugreport finishes successfully. @@ -68,5 +72,5 @@ interface IDumpstateListener { /** * Called when ui intensive bugreport dumps are finished. */ - oneway void onUiIntensiveBugreportDumpsFinished(); + oneway void onUiIntensiveBugreportDumpsFinished(String callingPackage); } |