DeviceBatteryLevelChecker

public class DeviceBatteryLevelChecker
extends Object implements IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.testtype.DeviceBatteryLevelChecker


An IRemoteTest that checks for a minimum battery charge, and waits for the battery to reach a second charging threshold if the minimum charge isn't present.

Summary

Public constructors

DeviceBatteryLevelChecker()

Public methods

void run(TestInformation testInfo, ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Protected methods

void setResumeLevel(int level)

Public constructors

DeviceBatteryLevelChecker

public DeviceBatteryLevelChecker ()

Public methods

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
testInfo TestInformation: The TestInformation object containing useful information to run tests.

listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

Protected methods

setResumeLevel

protected void setResumeLevel (int level)

Parameters
level int