1// Signature format: 4.0
2package androidx.benchmark.junit4 {
3
4  public class AndroidBenchmarkRunner extends androidx.test.runner.AndroidJUnitRunner {
5    ctor public AndroidBenchmarkRunner();
6  }
7
8  public final class BenchmarkRule implements org.junit.rules.TestRule {
9    ctor public BenchmarkRule();
10    ctor @SuppressCompatibility @androidx.benchmark.ExperimentalBenchmarkConfigApi public BenchmarkRule(androidx.benchmark.MicrobenchmarkConfig config);
11    method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
12    method public androidx.benchmark.BenchmarkState getState();
13  }
14
15  public final class BenchmarkRule.Scope {
16    method @kotlin.PublishedApi internal androidx.benchmark.BenchmarkState getOuterState();
17    method public inline <T> T runWithTimingDisabled(kotlin.jvm.functions.Function0<? extends T> block);
18  }
19
20  public final class BenchmarkRuleKt {
21    method public static inline void measureRepeated(androidx.benchmark.junit4.BenchmarkRule, kotlin.jvm.functions.Function1<? super androidx.benchmark.junit4.BenchmarkRule.Scope,kotlin.Unit> block);
22  }
23
24  @SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public final class PerfettoTraceRule implements org.junit.rules.TestRule {
25    ctor public PerfettoTraceRule(optional boolean enableAppTagTracing, optional boolean enableUserspaceTracing, optional kotlin.jvm.functions.Function1<? super androidx.benchmark.perfetto.PerfettoTrace,kotlin.Unit>? traceCallback);
26    method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description);
27    method public boolean getEnableAppTagTracing();
28    method public boolean getEnableUserspaceTracing();
29    method public kotlin.jvm.functions.Function1<androidx.benchmark.perfetto.PerfettoTrace,kotlin.Unit>? getTraceCallback();
30    property public final boolean enableAppTagTracing;
31    property public final boolean enableUserspaceTracing;
32    property public final kotlin.jvm.functions.Function1<androidx.benchmark.perfetto.PerfettoTrace,kotlin.Unit>? traceCallback;
33  }
34
35}
36
37