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 ()
公共方法
设置
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo | TestInformation |
投掷 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
受保护的方法
获取 CpuMaxFreqs
protectedgetCpuMaxFreqs (ITestDevice device)
读取 /sys/devices/system/cpu 下的信息以确定可用内核以及每个内核可能的最大频率
参数 | |
---|---|
device | ITestDevice :被测设备 |
退货 | |
---|---|
以 sysfs cpuinfo 路径为键的ERROR(/Map) ,相应的最大频率为值 |
投掷 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |