JankTest


public abstract @interface JankTest
implements Annotation

androidx.test.jank.JankTest


Annotation used to configure a jank test method.

Summary

Public methods

String afterLoop()

Alternate method to execute after each iteration

Note: the annotated method must have same signature as JankTestBase.afterLoop()

String afterTest()

Alternate method to execute after all iterations have completed.

String beforeLoop()

Alternate method to execute before each iteration

Note: the annotated method must have same signature as JankTestBase.beforeLoop()

String beforeTest()

Alternate method to execute before the test method

Note: the annotated method must have same signature as JankTestBase.beforeTest()

int defaultIterationCount()

Default iteration count to run if not specified by command line

int expectedFrames()

The minimum number of frames expected

Inherited methods

Public methods

afterLoop

public String afterLoop ()

Alternate method to execute after each iteration

Note: the annotated method must have same signature as JankTestBase.afterLoop()

Returns
String

afterTest

public String afterTest ()

Alternate method to execute after all iterations have completed.

Important: the annotated method must take a parameter of type Bundle.

Returns
String

beforeLoop

public String beforeLoop ()

Alternate method to execute before each iteration

Note: the annotated method must have same signature as JankTestBase.beforeLoop()

Returns
String

beforeTest

public String beforeTest ()

Alternate method to execute before the test method

Note: the annotated method must have same signature as JankTestBase.beforeTest()

Returns
String

defaultIterationCount

public int defaultIterationCount ()

Default iteration count to run if not specified by command line

Returns
int

expectedFrames

public int expectedFrames ()

The minimum number of frames expected

Returns
int