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

Commit fc185866 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: c8e31516

Change-Id: I935e8328a980f13892cc1ac5a912daf1ce9cf538
parents e7581ee3 c8e31516
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);
}