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)

受保护的方法

Map<String, String> getCpuMaxFreqs(ITestDevice device)

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

公共构造函数

CpuThrottlingWaiter

public CpuThrottlingWaiter ()

公共方法

setUp

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

抛出
BuildError
DeviceNotAvailableException
TargetSetupError

受保护的方法

getCpuMaxFreqs

protected Map<String, String> getCpuMaxFreqs (ITestDevice device)

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

参数
device ITestDevice:被测设备

返回
Map<String, String> 一个 Map,其中包含 sysfs cpuinfo 的路径作为键,以及相应的最大频率作为 值

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