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

Commit f1d24451 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add isInstrumenting() API to InteractionJankMonitorWrapper" into main

parents 1661f138 b41c4260
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -85,4 +85,10 @@ public final class InteractionJankMonitorWrapper {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return;
        InteractionJankMonitor.getInstance().cancel(cujType);
    }

    /** Return true if currently instrumenting a trace session. */
    public static boolean isInstrumenting(@Cuj.CujType int cujType) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return false;
        return InteractionJankMonitor.getInstance().isInstrumenting(cujType);
    }
}