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

Commit 599fee53 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 am:...

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

Change-Id: Ib275e5687f936adf17b0e9b47a9d034a050706d3
parents 675e9f68 e62d8871
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ interface IDumpstateListener {
     *
     * @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
    // 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.
     * This is not an asynchronous method since it can race with dumpstate exiting, thus triggering
     * death recipient.
     */
    void onError(int errorCode);

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

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