CPU節流等待者

public class CpuThrottlingWaiter
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.CpuThrotdlingWaiter


ITargetPreparer等待所有核心的最大頻率恢復到可用的最高級別

概括

公共構造函數

CpuThrottlingWaiter ()

公共方法

void setUp ( TestInformation testInfo)

受保護的方法

getCpuMaxFreqs ( ITestDevice device)

讀取 /sys/devices/system/cpu 下的資訊以確定可用的核心以及每個核心可能的最大頻率

公共構造函數

CPU節流等待者

public CpuThrottlingWaiter ()

公共方法

設定

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

投擲
BuildError
DeviceNotAvailableException
TargetSetupError

受保護的方法

取得CPU最大頻率

protected  getCpuMaxFreqs (ITestDevice device)

讀取 /sys/devices/system/cpu 下的資訊以確定可用的核心以及每個核心可能的最大頻率

參數
device ITestDevice :被測設備

退貨
一個ERROR(/Map)其中 sysfs cpuinfo 的路徑作為鍵,對應的最大頻率作為值

投擲
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException