Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8e31516 authored by Nandana Dutt's avatar Nandana Dutt Committed by Automerger Merge Worker
Browse files

Merge "Make dumpstate listener methods async" into rvc-dev am: d9c19846

Change-Id: Iaa8072c7991ae034d7749dd1cdf87816db4a60e4
parents 91e6d24a d9c19846
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ interface IDumpstateListener {
     *
     *
     * @param progress the progress in [0, 100]
     * @param progress the progress in [0, 100]
     */
     */
    void onProgress(int progress);
    oneway void onProgress(int progress);


    // NOTE: If you add to or change these error codes, please also change the corresponding enums
    // NOTE: If you add to or change these error codes, please also change the corresponding enums
    // in system server, in BugreportManager.java.
    // in system server, in BugreportManager.java.
@@ -54,16 +54,18 @@ interface IDumpstateListener {


    /**
    /**
     * Called on an error condition with one of the error codes listed above.
     * 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.
     */
     */
    void onError(int errorCode);
    void onError(int errorCode);


    /**
    /**
     * Called when taking bugreport finishes successfully.
     * Called when taking bugreport finishes successfully.
     */
     */
    void onFinished();
    oneway void onFinished();


    /**
    /**
     * Called when screenshot is taken.
     * Called when screenshot is taken.
     */
     */
    void onScreenshotTaken(boolean success);
    oneway void onScreenshotTaken(boolean success);
}
}