CpuThrottlingWaiter

public class CpuThrottlingWaiter
extends Object implements ITargetPreparer

java.lang.Object
   ↳ 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)

Perform the target setup for testing.

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)

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

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