| // Signature format: 4.0 |
| package androidx.metrics.performance { |
| |
| public class FrameData { |
| ctor public FrameData(long frameStartNanos, long frameDurationUiNanos, boolean isJank, java.util.List<androidx.metrics.performance.StateInfo> states); |
| method public final long getFrameDurationUiNanos(); |
| method public final long getFrameStartNanos(); |
| method public final java.util.List<androidx.metrics.performance.StateInfo> getStates(); |
| method public final boolean isJank(); |
| property public final long frameDurationUiNanos; |
| property public final long frameStartNanos; |
| property public final boolean isJank; |
| property public final java.util.List<androidx.metrics.performance.StateInfo> states; |
| } |
| |
| public class FrameDataApi24 extends androidx.metrics.performance.FrameData { |
| ctor public FrameDataApi24(long frameStartNanos, long frameDurationUiNanos, long frameDurationCpuNanos, boolean isJank, java.util.List<androidx.metrics.performance.StateInfo> states); |
| method public final long getFrameDurationCpuNanos(); |
| property public final long frameDurationCpuNanos; |
| } |
| |
| public final class FrameDataApi31 extends androidx.metrics.performance.FrameDataApi24 { |
| ctor public FrameDataApi31(long frameStartNanos, long frameDurationUiNanos, long frameDurationCpuNanos, long frameOverrunNanos, boolean isJank, java.util.List<androidx.metrics.performance.StateInfo> states); |
| method public long getFrameOverrunNanos(); |
| property public final long frameOverrunNanos; |
| } |
| |
| public final class JankStats { |
| method @UiThread public static androidx.metrics.performance.JankStats createAndTrack(android.view.Window window, java.util.concurrent.Executor executor, androidx.metrics.performance.JankStats.OnFrameListener frameListener); |
| method public float getJankHeuristicMultiplier(); |
| method public boolean isTrackingEnabled(); |
| method public void setJankHeuristicMultiplier(float); |
| method @UiThread public void setTrackingEnabled(boolean); |
| property public final boolean isTrackingEnabled; |
| property public final float jankHeuristicMultiplier; |
| field public static final androidx.metrics.performance.JankStats.Companion Companion; |
| } |
| |
| public static final class JankStats.Companion { |
| method @UiThread public androidx.metrics.performance.JankStats createAndTrack(android.view.Window window, java.util.concurrent.Executor executor, androidx.metrics.performance.JankStats.OnFrameListener frameListener); |
| } |
| |
| public static fun interface JankStats.OnFrameListener { |
| method public void onFrame(androidx.metrics.performance.FrameData frameData); |
| } |
| |
| public final class PerformanceMetricsState { |
| method public void addSingleFrameState(String stateName, String state); |
| method public void addState(String stateName, String state); |
| method @UiThread public static androidx.metrics.performance.PerformanceMetricsState.MetricsStateHolder getForHierarchy(android.view.View view); |
| method public void removeState(String stateName); |
| field public static final androidx.metrics.performance.PerformanceMetricsState.Companion Companion; |
| } |
| |
| public static final class PerformanceMetricsState.Companion { |
| method @UiThread public androidx.metrics.performance.PerformanceMetricsState.MetricsStateHolder getForHierarchy(android.view.View view); |
| } |
| |
| public static final class PerformanceMetricsState.MetricsStateHolder { |
| method public androidx.metrics.performance.PerformanceMetricsState? getState(); |
| property public final androidx.metrics.performance.PerformanceMetricsState? state; |
| } |
| |
| public final class StateInfo { |
| ctor public StateInfo(String stateName, String state); |
| method public String getState(); |
| method public String getStateName(); |
| property public final String state; |
| property public final String stateName; |
| } |
| |
| } |
| |