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(ITestDevice device, IBuildInfo buildInfo)

Protected methods

Map<String, String> getCpuMaxFreqs(ITestDevice device)

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

Public constructors

CpuThrottlingWaiter

CpuThrottlingWaiter ()

Public methods

setUp

void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Parameters
device ITestDevice

buildInfo IBuildInfo

Throws
TargetSetupError
BuildError
DeviceNotAvailableException

Protected methods

getCpuMaxFreqs

Map<String, String> 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
Map<String, String> a Map with paths to sysfs cpuinfo as key, and corresponding max frequency as value

Throws
DeviceNotAvailableException