TemperatureThrottlingWaiter

public class TemperatureThrottlingWaiter
extends Object implements ITargetPreparer

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


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

Summary

Public constructors

TemperatureThrottlingWaiter()

Public methods

void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Protected methods

int getDeviceTemperature(ITestDevice device, String fileName)

Public constructors

TemperatureThrottlingWaiter

TemperatureThrottlingWaiter ()

Public methods

setUp

void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

Throws
TargetSetupError
BuildError
DeviceNotAvailableException

Protected methods

getDeviceTemperature

int getDeviceTemperature (ITestDevice device, 
                String fileName)

Parameters
fileName String: : filename where device temperature is stored

Returns
int

Throws
DeviceNotAvailableException
TargetSetupError