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

Commit 2a7fc664 authored by Nataniel Borges's avatar Nataniel Borges Committed by Android (Google) Code Review
Browse files

Merge "Add API for writing WM trace to file"

parents b0429656 d9edbe7a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -540,6 +540,11 @@ interface IWindowManager
     */
    void stopWindowTrace();

    /**
    * If window tracing is active, saves the window trace to file, otherwise does nothing
    */
    void saveWindowTraceToFile();

    /**
     * Returns true if window trace is enabled.
     */
+5 −0
Original line number Diff line number Diff line
@@ -5679,6 +5679,11 @@ public class WindowManagerService extends IWindowManager.Stub
        mWindowTracing.stopTrace(null /* printwriter */);
    }

    @Override
    public void saveWindowTraceToFile() {
        mWindowTracing.saveForBugreport(null /* printwriter */);
    }

    @Override
    public boolean isWindowTraceEnabled() {
        return mWindowTracing.isEnabled();