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

protected  getCpuMaxFreqs (ITestDevice device)

讀取 /sys/devices/system/cpu 下的信息以確定可用內核以及每個內核可能的最大頻率

參數
device ITestDevice :被測設備

退貨
以 sysfs cpuinfo 路徑為鍵的ERROR(/Map) ,相應的最大頻率為值

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