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.MicrobenchmarkConfig getConfig(); 13 method public androidx.benchmark.BenchmarkState getState(); 14 property public androidx.benchmark.MicrobenchmarkConfig config; 15 property @kotlin.PublishedApi internal androidx.benchmark.TestDefinition? testDefinition; 16 field @kotlin.PublishedApi internal androidx.benchmark.TestDefinition? testDefinition; 17 } 18 19 public final class BenchmarkRule.Scope extends androidx.benchmark.MicrobenchmarkScope { 20 method @kotlin.PublishedApi internal androidx.benchmark.BenchmarkState getOuterState(); 21 method @Deprecated public inline <T> T runWithTimingDisabled(kotlin.jvm.functions.Function0<? extends T> block); 22 } 23 24 public final class BenchmarkRuleKt { 25 method public static inline void measureRepeated(androidx.benchmark.junit4.BenchmarkRule, kotlin.jvm.functions.Function1<? super androidx.benchmark.junit4.BenchmarkRule.Scope,kotlin.Unit> block); 26 method public static inline void measureRepeatedOnMainThread(androidx.benchmark.junit4.BenchmarkRule, kotlin.jvm.functions.Function1<? super androidx.benchmark.junit4.BenchmarkRule.Scope,kotlin.Unit> block); 27 } 28 29 @SuppressCompatibility @androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi public final class PerfettoTraceRule implements org.junit.rules.TestRule { 30 ctor public PerfettoTraceRule(); 31 ctor public PerfettoTraceRule(optional boolean enableAppTagTracing, optional boolean enableUserspaceTracing, optional kotlin.jvm.functions.Function1<? super androidx.benchmark.traceprocessor.PerfettoTrace,kotlin.Unit>? traceCallback); 32 method public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description); 33 method public boolean getEnableAppTagTracing(); 34 method public boolean getEnableUserspaceTracing(); 35 method public kotlin.jvm.functions.Function1<androidx.benchmark.traceprocessor.PerfettoTrace,kotlin.Unit>? getTraceCallback(); 36 property public boolean enableAppTagTracing; 37 property public boolean enableUserspaceTracing; 38 property public kotlin.jvm.functions.Function1<androidx.benchmark.traceprocessor.PerfettoTrace,kotlin.Unit>? traceCallback; 39 } 40 41} 42 43