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

Constants

String DEVICE_TEMPERATURE_FILE_PATH_NAME

Public constructors

TemperatureThrottlingWaiter()

Public methods

void setUp(ITestDevice device, IBuildInfo buildInfo)

Protected methods

int getDeviceTemperature(ITestDevice device, String fileName)

Constants

DEVICE_TEMPERATURE_FILE_PATH_NAME

public static final String DEVICE_TEMPERATURE_FILE_PATH_NAME

Constant Value: "device-temperature-file-path"

Public constructors

TemperatureThrottlingWaiter

public TemperatureThrottlingWaiter ()

Public methods

setUp

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Parameters
device ITestDevice

buildInfo IBuildInfo

Throws
TargetSetupError
BuildError
DeviceNotAvailableException

Protected methods

getDeviceTemperature

protected int getDeviceTemperature (ITestDevice device, 
                String fileName)

Parameters
fileName String: : filename where device temperature is stored

Returns
int

Throws
DeviceNotAvailableException
TargetSetupError