Android APIs

Class Index

These are the Android API classes. See all API packages.

A   D   E   L   R   S   U  

A

ActivityTestRule<T extends Activity> This rule provides functional testing of a single activity. 
AtraceLogger Class contains helper methods to dump atrace info asynchronously while running the test case  

D

DisableOnAndroidDebug The DisableOnAndroidDebug Rule allows you to label certain rules to be disabled when debugging. 

E

EnableTestTracingRule When applied to a test class this TestRule calls Trace.beginSection() before test method execution. 

L

LogBatteryInformationRule When applied to a test class this Rule resets battery information ("stats") before test method execution. 
LogDeviceGetPropInfoRule When applied to a test class this Rule executes the "getprop" device command after test method execution and logs it to a file on external storage. 
LoggingBaseRule Base class for logging rules to remove boiler-plate instance variables used by most logging rules. 
LogGraphicsStatsRule When applied to a test class this Rule performs a graphics system information reset before test method execution. 
LogLogcatRule When applied to a test class this Rule attempts to clear the Logcat buffer on the device before test method execution. 
LogNetStatsRule When applied to a test class this Rule performs a network system information reset before test method execution. 

R

RuleLoggingUtils Convenience methods to ensure logging rules perform certain actions in the same manner. 

S

ServiceTestRule A JUnit rule that provides a simplified mechanism to start and shutdown your service before and after the duration of your test. 

U

UiThreadTest This annotation should be used along with UiThreadTestRule or with any rule that inherits from it. 
UiThreadTestRule This rule allows the test method annotated with UiThreadTest to execute on the application's main thread (or UI thread).