CpuThrottlingWaiter

public class CpuThrottlingWaiter
extends BaseTargetPreparer

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


An ITargetPreparer that waits until max frequency on all cores are restored to highest level available

Summary

Public constructors

CpuThrottlingWaiter()

Public methods

void setUp(TestInformation testInfo)

Protected methods

getCpuMaxFreqs(ITestDevice device)

Reads info under /sys/devices/system/cpu to determine cores available, and max frequencies possible for each core

Public constructors

CpuThrottlingWaiter

public CpuThrottlingWaiter ()

Public methods

setUp

public void setUp (TestInformation testInfo)

Parameters
testInfo TestInformation

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

Protected methods

getCpuMaxFreqs

protected  getCpuMaxFreqs (ITestDevice device)

Reads info under /sys/devices/system/cpu to determine cores available, and max frequencies possible for each core

Parameters
device ITestDevice: device under test

Returns
a ERROR(/Map) with paths to sysfs cpuinfo as key, and corresponding max frequency as value

Throws
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException