Google is committed to advancing racial equity for Black communities. See how.

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)

Protected methods

void setResumeLevel(int level)

Public constructors

DeviceBatteryLevelChecker

public DeviceBatteryLevelChecker ()

Public methods

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Parameters
testInfo TestInformation

listener ITestInvocationListener

Throws
DeviceNotAvailableException

Protected methods

setResumeLevel

protected void setResumeLevel (int level)

Parameters
level int