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