CpuThrottlingWaiter

public class CpuThrottlingWaiter
extends BaseTargetPreparer

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


一个 ITargetPreparer,用于等待所有核心的最大频率恢复到可用的最高级别

摘要

公共构造函数

CpuThrottlingWaiter()

公共方法

void setUp(TestInformation testInfo)

受保护的方法

getCpuMaxFreqs(ITestDevice device)

读取 /sys/devices/system/cpu 下的相关信息,以确定可用的核心数以及每个核心的可能最大频率

公共构造函数

CpuThrottlingWaiter

public CpuThrottlingWaiter ()

公共方法

setUp

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

抛出
BuildError
DeviceNotAvailableException
TargetSetupError

受保护的方法

getCpuMaxFreqs

protected  getCpuMaxFreqs (ITestDevice device)

读取 /sys/devices/system/cpu 下的相关信息,以确定可用的核心数以及每个核心的可能最大频率

参数
device ITestDevice:被测设备

返回
一个 ERROR(/Map),其中包含 sysfs cpuinfo 的路径作为键,以及相应的最大频率作为值

抛出
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException