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
protectedgetCpuMaxFreqs (ITestDevice device)
讀取 /sys/devices/system/cpu 底下的資訊,以判斷可用的核心,以及每個核心可用的最高頻率
參數 | |
---|---|
device |
ITestDevice :測試中的裝置 |
傳回 | |
---|---|
|
ERROR(/Map) ,其中 sysfs cpuinfo 的路徑做為鍵,而對應的最大頻率做為值 |
擲回 | |
---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |