TemperatureThrottlingWaiter

public class TemperatureThrottlingWaiter
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.TemperatureThrottlingWaiter


An ITargetPreparer that waits until device's temperature gets down to target

Summary

Fields

public static final String DEVICE_TEMPERATURE_COMMAND_NAME

public static final String DEVICE_TEMPERATURE_FILE_PATH_NAME

Public constructors

TemperatureThrottlingWaiter()

Public methods

void setUp(TestInformation testInfo)

Protected methods

int getDeviceTemperature(ITestDevice device)
IRunUtil getRunUtil()

Fields

DEVICE_TEMPERATURE_COMMAND_NAME

public static final String DEVICE_TEMPERATURE_COMMAND_NAME

DEVICE_TEMPERATURE_FILE_PATH_NAME

public static final String DEVICE_TEMPERATURE_FILE_PATH_NAME

Public constructors

TemperatureThrottlingWaiter

public TemperatureThrottlingWaiter ()

Public methods

setUp

public void setUp (TestInformation testInfo)

Parameters
testInfo TestInformation

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

Protected methods

getDeviceTemperature

protected int getDeviceTemperature (ITestDevice device)

Returns
int

Throws
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException
TargetSetupError

getRunUtil

protected IRunUtil getRunUtil ()

Returns
IRunUtil